linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
To: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com,
	"David S. Miller" <davem@davemloft.net>,
	Florian Fainelli <f.fainelli@gmail.com>,
	Andrew Lunn <andrew@lunn.ch>,
	Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Subject: [PATCH net-next 01/11] net: dsa: make switch index unsigned
Date: Fri,  3 Nov 2017 19:05:20 -0400	[thread overview]
Message-ID: <20171103230530.996-2-vivien.didelot@savoirfairelinux.com> (raw)
In-Reply-To: <20171103230530.996-1-vivien.didelot@savoirfairelinux.com>

Define the DSA switch index as an unsigned int, because it will never be
less than 0.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
---
 include/net/dsa.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/net/dsa.h b/include/net/dsa.h
index 50e276dc4c01..fa1c21ab8092 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -209,7 +209,7 @@ struct dsa_switch {
 	 * Parent switch tree, and switch index.
 	 */
 	struct dsa_switch_tree	*dst;
-	int			index;
+	unsigned int		index;
 
 	/* Listener for switch fabric events */
 	struct notifier_block	nb;
-- 
2.14.3

  reply	other threads:[~2017-11-03 23:05 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-03 23:05 [PATCH net-next 00/11] net: dsa: parsing stage Vivien Didelot
2017-11-03 23:05 ` Vivien Didelot [this message]
2017-11-03 23:09   ` [PATCH net-next 01/11] net: dsa: make switch index unsigned Florian Fainelli
2017-11-03 23:05 ` [PATCH net-next 02/11] net: dsa: make tree " Vivien Didelot
2017-11-03 23:15   ` Florian Fainelli
2017-11-03 23:05 ` [PATCH net-next 03/11] net: dsa: simplify tree reference counting Vivien Didelot
2017-11-03 23:16   ` Florian Fainelli
2017-11-03 23:05 ` [PATCH net-next 04/11] net: dsa: get and put " Vivien Didelot
2017-11-03 23:16   ` Florian Fainelli
2017-11-03 23:05 ` [PATCH net-next 05/11] net: dsa: provide a find or new tree helper Vivien Didelot
2017-11-03 23:18   ` Florian Fainelli
2017-11-03 23:05 ` [PATCH net-next 06/11] net: dsa: rework switch addition and removal Vivien Didelot
2017-11-03 23:05 ` [PATCH net-next 07/11] net: dsa: get tree before parsing ports Vivien Didelot
2017-11-03 23:05 ` [PATCH net-next 08/11] net: dsa: rework switch parsing Vivien Didelot
2017-11-03 23:05 ` [PATCH net-next 09/11] net: dsa: only check presence of link property Vivien Didelot
2017-11-03 23:05 ` [PATCH net-next 10/11] net: dsa: add one port parsing function per type Vivien Didelot
2017-11-03 23:05 ` [PATCH net-next 11/11] net: dsa: resolve tagging protocol at parse time Vivien Didelot
2017-11-05 13:32 ` [PATCH net-next 00/11] net: dsa: parsing stage David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171103230530.996-2-vivien.didelot@savoirfairelinux.com \
    --to=vivien.didelot@savoirfairelinux.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=f.fainelli@gmail.com \
    --cc=kernel@savoirfairelinux.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).