From: Andrew Morton fs/ext3/ioctl.c: In function `ext3_ioctl': fs/ext3/ioctl.c:266: warning: 'err2' might be used uninitialized in this function fs/ext3/ioctl.c:242: warning: 'err2' might be used uninitialized in this function Signed-off-by: Andrew Morton --- drivers/w1/w1.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff -puN drivers/w1/w1.h~w1-build-fix drivers/w1/w1.h --- a/drivers/w1/w1.h~w1-build-fix +++ a/drivers/w1/w1.h @@ -22,19 +22,23 @@ #ifndef __W1_H #define __W1_H -struct w1_reg_num -{ +struct w1_reg_num { + union { + __u64 unused; /* So gcc will permit pointers to this struct */ + struct { #if defined(__LITTLE_ENDIAN_BITFIELD) - __u64 family:8, - id:48, - crc:8; + __u64 family:8, + id:48, + crc:8; #elif defined(__BIG_ENDIAN_BITFIELD) - __u64 crc:8, - id:48, - family:8; + __u64 crc:8, + id:48, + family:8; #else #error "Please fix " #endif + }; + }; }; #ifdef __KERNEL__ _