Message ID | 20231215131534.7188-2-ansuelsmth@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-986-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp9264885dys; Fri, 15 Dec 2023 05:16:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFvA3E9QNlnWKb11YFjm2a+evnOwtY+pTND9cEQc4WBaosbElhj9MdeevkVIohXwp/dhZ10 X-Received: by 2002:a17:90a:d70d:b0:28a:f9d2:e58e with SMTP id y13-20020a17090ad70d00b0028af9d2e58emr2084950pju.33.1702646191850; Fri, 15 Dec 2023 05:16:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702646191; cv=none; d=google.com; s=arc-20160816; b=ky5JavqwQbX+t2LdUiiq/pz7/KiM2xOVM8ZKtH6i0+enF0I184XQh7wL1aV0BI4+i2 rn/oom8ZkmnCC7JFDmX9TjS2vCG2JzGrd90HRcbha4LtUfuabDf3DD99uO+4RFqugtTV QSwUcLmrmnmgeZxP8OcyDgbh+9Yz68rACs3sXmSo6zy69zSq8tcVxI28wKpY0koDIhjw EqGwPLf0FFPyxuh1L5odX9OM2E7i5I7IcDLaZSPqUkw3hd/5KFb6z8AuSTgLdTdC32jt 22Og4wk2xLqKqGYyWS3MOl42rQnqgpXFYhsosxdGkC5VMDZLts0R2zPdTpci5LReJWvg A+ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=iioDY7je2sF6fbSitgQ396/5pChLBrfWf7mOLks6Yho=; fh=SMtxaQKMvEI7BG6lkR8YRVPMKkLsNzxoa7wuhYbp9hc=; b=ZdprLd8Kskrx3/SE2VMw0tjsyrtxeVvheqNzKFaA9q3j4XII1VUgBFPOAVMz4pyaez tA7HgDMBpmPtQEHYVfB8c3290uMoPEbrT//z7grB1v3E8MahGqcL+X5sqWQc+wXMRig5 ZLPj3emasrlRWb/D6AIOR53aniNTbhSp5rz3yJRTY5YNj4JAT7vKS4jq0XIewTK3uqkX bGeer5Fh9i0Gyj0QbKzgLqIGd0r0OGpchN9nQWyoxO2j27fwIGUEVrYB+Qjn//X+kLb7 hb2i3FqRKo+zfKU5gEImP6RWrBWYth8iOZCfAN1q5wwdnjaha6oVFdkB78eQ7476xdtc 2vnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZCyTOKhE; spf=pass (google.com: domain of linux-kernel+bounces-986-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-986-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id kb4-20020a17090ae7c400b002871b0b4a11si13280109pjb.61.2023.12.15.05.16.31 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 05:16:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-986-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZCyTOKhE; spf=pass (google.com: domain of linux-kernel+bounces-986-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-986-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9AA2B286310 for <ouuuleilei@gmail.com>; Fri, 15 Dec 2023 13:16:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 339332E414; Fri, 15 Dec 2023 13:15:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZCyTOKhE" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EAA61347BB; Fri, 15 Dec 2023 13:15:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-40c580ba223so7859215e9.3; Fri, 15 Dec 2023 05:15:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702646141; x=1703250941; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iioDY7je2sF6fbSitgQ396/5pChLBrfWf7mOLks6Yho=; b=ZCyTOKhE0KwYiedZI6dbSYo52ZaISBE9ABpD706skGS+98cM6Ah2e7bcr6ARiVas8O 2adUzumroQhPSd0ZzWVrrU7t7YpdQSHtM38FIbExs05auT85O+gMbTEAzYr1/7j59UBo hP+2OZWTNJBv4fFGK3ZRMVAzyDfvvtPpQ59JzQiwKd7whOTzQPCXMfcMKJNABXiVF0U2 wNn4gwgYzmPvKAtZ0P6UK+THflAqljMe6m7nUFyIXaCE4vY8+FRV699YHhv6pKLLDSck S1yb0TAdvq9VfrOrnvI8aIZ0dkyEvJF1ywJDXrNtwVGf5uKeg/ENXORI/PK6dszDTnHh AdEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702646141; x=1703250941; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iioDY7je2sF6fbSitgQ396/5pChLBrfWf7mOLks6Yho=; b=dtyjqpHWWhl7z/N0q/1jEydqFV2r2qPblOUOdajIoZ/a72IVkzXu8+4Z/oKh/EyqQt 3SfpO1Yp/8D5ZYyLn7cSsWvhXIFXrca2C0yx7465ShjGKioL1THe8JqLjqBSRksCEOO7 5aUOzM+vaiJnq1j8Wx74dLOqRSUpA1fvLuMxrz7DV7tYJhtzCyzS/i9I3PemtTfjlSZx mbTCVUOl6KcDAbFinVVAb8SZ9fvBbJL/Z58LqkjlzJQOXJGeTzy66wlAHuq18aTYKljo 4yEjr492llCTwl+9C4UZP2tkjHowMWx8R6WKq32jyCb1VRmIgRxhzOjkOmKqyQ+oWjUu DrdQ== X-Gm-Message-State: AOJu0YzoRjG/Jxy61OmoSPuf495rHL8imWNo9Q1pPoxF7VIhjNCuVCyD nlid8QxXSN/cwjFpxOiMf2g= X-Received: by 2002:a05:600c:221a:b0:40c:313a:f7c0 with SMTP id z26-20020a05600c221a00b0040c313af7c0mr6920223wml.7.1702646141057; Fri, 15 Dec 2023 05:15:41 -0800 (PST) Received: from localhost.localdomain (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.googlemail.com with ESMTPSA id fc7-20020a05600c524700b0040c44cb251dsm21618324wmb.46.2023.12.15.05.15.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 05:15:40 -0800 (PST) From: Christian Marangi <ansuelsmth@gmail.com> To: Florian Fainelli <florian.fainelli@broadcom.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Andrew Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, David Epping <david.epping@missinglinkelectronics.com>, Vladimir Oltean <olteanv@gmail.com>, Christian Marangi <ansuelsmth@gmail.com>, Harini Katakam <harini.katakam@amd.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Russell King <rmk+kernel@armlinux.org.uk> Subject: [net-next PATCH v8 1/4] net: phy: make addr type u8 in phy_package_shared struct Date: Fri, 15 Dec 2023 14:15:31 +0100 Message-Id: <20231215131534.7188-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231215131534.7188-1-ansuelsmth@gmail.com> References: <20231215131534.7188-1-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785353933189425643 X-GMAIL-MSGID: 1785353933189425643 |
Series |
net: phy: add PHY package base addr + mmd APIs
|
|
Commit Message
Christian Marangi
Dec. 15, 2023, 1:15 p.m. UTC
Switch addr type in phy_package_shared struct to u8. The value is already checked to be non negative and to be less than PHY_MAX_ADDR, hence u8 is better suited than using int. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> --- Changes v8: - Add Reviewed-by tag Changes v7: - Add this patch include/linux/phy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/phy.h b/include/linux/phy.h index e5f1f41e399c..e5e29fca4d17 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -338,7 +338,7 @@ struct mdio_bus_stats { * phy_package_leave(). */ struct phy_package_shared { - int addr; + u8 addr; refcount_t refcnt; unsigned long flags; size_t priv_size;