All of lore.kernel.org
 help / color / mirror / Atom feed
* Sparse warning: bitmap.h: bad constant expression
@ 2003-09-01 19:59 Petri Koistinen
  2003-09-02  1:57 ` Dave Olien
  2003-09-02 17:22 ` William Lee Irwin III
  0 siblings, 2 replies; 10+ messages in thread
From: Petri Koistinen @ 2003-09-01 19:59 UTC (permalink / raw)
  To: linux-kernel

Hi!

If I try to compile latest kernel with "make C=1" I'll get many warning
messages from sparse saying:

warning: include/linux/bitmap.h:85:2: bad constant expression
warning: include/linux/bitmap.h:98:2: bad constant expression

Sparse doesn't seem to like DECLARE_BITMAP macros.

#define DECLARE_BITMAP(name,bits) \
        unsigned long name[BITS_TO_LONGS(bits)]

So what is wrong with this and how it could be fixed so that sparse
wouldn't complain?

Best regards,
Petri Koistinen

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-09-02 20:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-01 19:59 Sparse warning: bitmap.h: bad constant expression Petri Koistinen
2003-09-02  1:57 ` Dave Olien
2003-09-02  9:56   ` Jörn Engel
2003-09-02 10:23     ` Mikael Pettersson
2003-09-02 10:54       ` Jörn Engel
2003-09-02 16:45       ` Linus Torvalds
2003-09-02 20:08       ` Jörn Engel
2003-09-02 17:38     ` Dave Olien
2003-09-02 20:11       ` Jörn Engel
2003-09-02 17:22 ` William Lee Irwin III

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.