Re: [PATCH v1] net: dev: Use unsigned integer as an argument to left-shift

2019-02-27 Thread David Miller
From: Andy Shevchenko Date: Wed, 27 Feb 2019 13:37:26 +0300 > 1 << 31 is Undefined Behaviour according to the C standard. > Use U type modifier to avoid theoretical overflow. > > Signed-off-by: Andy Shevchenko Applied, thanks Andy.

[PATCH v1] net: dev: Use unsigned integer as an argument to left-shift

2019-02-27 Thread Andy Shevchenko
1 << 31 is Undefined Behaviour according to the C standard. Use U type modifier to avoid theoretical overflow. Signed-off-by: Andy Shevchenko --- include/linux/netdevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h in