Files
kernel_xiaomi_sm8250/include/linux
Johannes Berg 101b29a204 byteswap: don't use __builtin_bswap*() with sparse
Although sparse declares __builtin_bswap*(), it can't actually do
constant folding inside them (yet).  As such, things like

  switch (protocol) {
  case htons(ETH_P_IP):
          break;
  }

which we do all over the place cause sparse to warn that it expects a
constant instead of a function call.

Disable __HAVE_BUILTIN_BSWAP*__ if __CHECKER__ is defined to avoid this.

Fixes: 7322dd755e ("byteswap: try to avoid __builtin_constant_p gcc bug")
Link: http://lkml.kernel.org/r/1470914102-26389-1-git-send-email-johannes@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-08-26 17:39:34 -07:00
..
2016-07-25 11:47:52 +01:00
2016-08-07 14:41:02 -06:00
2016-08-04 08:50:07 -04:00
2016-08-07 14:41:02 -06:00
2016-08-07 14:41:02 -06:00
2016-08-11 09:41:35 -06:00
2016-08-02 19:35:24 -04:00
2016-07-26 16:19:19 -07:00
2016-07-22 09:07:02 +02:00
2016-08-02 19:35:44 -04:00
2016-08-04 10:16:55 +09:30
2016-07-29 12:17:52 -07:00
2016-07-12 19:25:38 -07:00
2016-07-28 16:07:41 -07:00
2016-07-12 19:25:38 -07:00
2016-07-26 16:19:19 -07:00
2016-07-20 23:30:06 -04:00
2016-07-19 17:43:38 +03:00
2016-07-26 16:19:19 -07:00