[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090217.194951.04719813.davem@davemloft.net>
Date: Tue, 17 Feb 2009 19:49:51 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: hannes@...neseder.net
Cc: netdev@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org, jjschlst@...il.com,
viro@...iv.linux.org.uk
Subject: Re: [PATCH 31/43 v2] drivers/net/tokenring: fix sparse warning:
cast truncates bits from const value
From: Hannes Eder <hannes@...neseder.net>
Date: Sun, 15 Feb 2009 13:13:01 +0100
> Impact: Remove the write-only field 'current_ring_status' completely.
>
> Fix this sparse warnings:
> drivers/net/tokenring/smctr.c:4410:52: warning: cast truncates bits from constant value (100 becomes 0)
> drivers/net/tokenring/smctr.c:4415:52: warning: cast truncates bits from constant value (400 becomes 0)
> drivers/net/tokenring/smctr.c:4420:52: warning: cast truncates bits from constant value (800 becomes 0)
> drivers/net/tokenring/smctr.c:4425:52: warning: cast truncates bits from constant value (1000 becomes 0)
> drivers/net/tokenring/smctr.c:4430:52: warning: cast truncates bits from constant value (2000 becomes 0)
> drivers/net/tokenring/smctr.c:4435:52: warning: cast truncates bits from constant value (4000 becomes 0)
> drivers/net/tokenring/smctr.c:4440:52: warning: cast truncates bits from constant value (8000 becomes 0)
>
> Signed-off-by: Hannes Eder <hannes@...neseder.net>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists