[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#320515: BITS_PER_LONG used unconditionally but defined only if __KERNEL__ is defined



Package: linux-kernel-headers
Version: 2.6.13+0rc3-1
Severity: important

linux/joystick.h contains the following:

#if BITS_PER_LONG == 64
#define JS_DATA_SAVE_TYPE JS_DATA_SAVE_TYPE_64
#elif BITS_PER_LONG == 32
#define JS_DATA_SAVE_TYPE JS_DATA_SAVE_TYPE_32
#else
#error Unexpected BITS_PER_LONG
#endif

but BITS_PER_LONG is defined in asm/types only if __KERNEL__ is defined.
presumably the above code snippet should also be protected by an 
#ifdef __KERNEL__

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13-rc4
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

-- no debconf information



Reply to: