linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sparse bad constant expression caused by 7322dd755e7d ("byteswap: try to avoid __builtin_constant_p gcc bug", 2016-05-05)
@ 2016-06-21 23:14 Keller, Jacob E
  0 siblings, 0 replies; only message in thread
From: Keller, Jacob E @ 2016-06-21 23:14 UTC (permalink / raw)
  To: linux-kernel; +Cc: Arnd Bergmann, Ingo Molnar, Josh Poimboeuf

Hi,

I recently ran into a sparse error when running sparse on Intel's i40e kernel driver against v4.7-rc3.

  CC [M]  drivers/net/ethernet/intel/i40e/i40e_nvm.o
include/linux/sctp.h:172:51: error: bad constant expression
include/linux/sctp.h:174:51: error: bad constant expression
include/linux/sctp.h:172:51: error: bad constant expression
include/linux/sctp.h:174:51: error: bad constant expression
include/linux/sctp.h:175:51: error: bad constant expression
include/linux/sctp.h:176:51: error: bad constant expression
include/linux/sctp.h:177:51: error: bad constant expression
include/linux/sctp.h:178:51: error: bad constant expression

And similar. I ran a bisect and determined the offending commit was 7322dd755e7d ("byteswap: try to avoid __builtin_constant_p gcc bug", 2016-05-05)

I am not sure if this is a regression in sparse, a real issue, or something else?

Thanks,
Jake 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-06-21 23:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-21 23:14 sparse bad constant expression caused by 7322dd755e7d ("byteswap: try to avoid __builtin_constant_p gcc bug", 2016-05-05) Keller, Jacob E

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).