[next:master 182/217] arch/powerpc/boot/types.h:18:14: warning: comparison of distinct pointer types lacks a cast

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

 



tree:   git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   633594bb2d3890711a887897f2003f41735f0dfa
commit: 8d9dfa4b0125b04eb215909a388cf83fcdeee719 [182/217] initramfs: support initramfs that is more than 2G
config: make ARCH=powerpc mpc86xx_defconfig

All warnings:

   In file included from arch/powerpc/boot/ops.h:15:0,
                    from arch/powerpc/boot/gunzip_util.c:14:
   arch/powerpc/boot/gunzip_util.c: In function 'gunzip_partial':
>> arch/powerpc/boot/types.h:18:14: warning: comparison of distinct pointer types lacks a cast [enabled by default]
     (void) (&_x == &_y); \
                 ^
>> arch/powerpc/boot/gunzip_util.c:118:9: note: in expansion of macro 'min'
      len = min(state->s.avail_in, (unsigned)dstlen);
            ^

vim +18 arch/powerpc/boot/types.h

b2c5f619 Mark A. Greer 2006-09-19   2  #define _TYPES_H_
b2c5f619 Mark A. Greer 2006-09-19   3  
b2c5f619 Mark A. Greer 2006-09-19   4  #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
b2c5f619 Mark A. Greer 2006-09-19   5  
b2c5f619 Mark A. Greer 2006-09-19   6  typedef unsigned char		u8;
b2c5f619 Mark A. Greer 2006-09-19   7  typedef unsigned short		u16;
b2c5f619 Mark A. Greer 2006-09-19   8  typedef unsigned int		u32;
b2c5f619 Mark A. Greer 2006-09-19   9  typedef unsigned long long	u64;
72d06895 Geoff Levand  2007-06-16  10  typedef signed char		s8;
72d06895 Geoff Levand  2007-06-16  11  typedef short			s16;
72d06895 Geoff Levand  2007-06-16  12  typedef int			s32;
72d06895 Geoff Levand  2007-06-16  13  typedef long long		s64;
b2c5f619 Mark A. Greer 2006-09-19  14  
b2c5f619 Mark A. Greer 2006-09-19  15  #define min(x,y) ({ \
b2c5f619 Mark A. Greer 2006-09-19  16  	typeof(x) _x = (x);	\
b2c5f619 Mark A. Greer 2006-09-19  17  	typeof(y) _y = (y);	\
b2c5f619 Mark A. Greer 2006-09-19 @18  	(void) (&_x == &_y);	\
b2c5f619 Mark A. Greer 2006-09-19  19  	_x < _y ? _x : _y; })
b2c5f619 Mark A. Greer 2006-09-19  20  
b2c5f619 Mark A. Greer 2006-09-19  21  #define max(x,y) ({ \
b2c5f619 Mark A. Greer 2006-09-19  22  	typeof(x) _x = (x);	\
b2c5f619 Mark A. Greer 2006-09-19  23  	typeof(y) _y = (y);	\
b2c5f619 Mark A. Greer 2006-09-19  24  	(void) (&_x == &_y);	\
b2c5f619 Mark A. Greer 2006-09-19  25  	_x > _y ? _x : _y; })
b2c5f619 Mark A. Greer 2006-09-19  26  

:::::: The code at line 18 was first introduced by commit
:::::: b2c5f61920eeee9c4e78698de4fde4586fe5ae79 [POWERPC] Start arch/powerpc/boot code reorganization

:::::: TO: Mark A. Greer <mgreer@xxxxxxxxxx>
:::::: CC: Paul Mackerras <paulus@xxxxxxxxx>

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]