drivers/block/paride/bpck.c:32: warning: "PC" redefined

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f78d76e72a4671ea52d12752d92077788b4f5d50
commit: 4ef873226ceb9c7bf11a922caddc5698a24bcfaf mm: introduce fault_signal_pending()
date:   11 months ago
config: mips-randconfig-r033-20210312 (attached as .config)
compiler: mips64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4ef873226ceb9c7bf11a922caddc5698a24bcfaf
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 4ef873226ceb9c7bf11a922caddc5698a24bcfaf
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/block/paride/bpck.c:32: warning: "PC" redefined
      32 | #define PC   pi->private
         | 
   In file included from arch/mips/include/asm/ptrace.h:19,
                    from include/linux/sched/signal.h:14,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:34,
                    from arch/mips/include/asm/elf.h:12,
                    from include/linux/elf.h:5,
                    from include/linux/module.h:18,
                    from drivers/block/paride/bpck.c:19:
   arch/mips/include/uapi/asm/ptrace.h:17: note: this is the location of the previous definition
      17 | #define PC  64
         | 


vim +/PC +32 drivers/block/paride/bpck.c

^1da177e4c3f415 Linus Torvalds 2005-04-16  31  
^1da177e4c3f415 Linus Torvalds 2005-04-16 @32  #define PC			pi->private
^1da177e4c3f415 Linus Torvalds 2005-04-16  33  #define r2()			(PC=(in_p(2) & 0xff))
^1da177e4c3f415 Linus Torvalds 2005-04-16  34  #define w2(byte)  		{out_p(2,byte); PC = byte;}
^1da177e4c3f415 Linus Torvalds 2005-04-16  35  #define t2(pat)   		{PC ^= pat; out_p(2,PC);}
^1da177e4c3f415 Linus Torvalds 2005-04-16  36  #define e2()			{PC &= 0xfe; out_p(2,PC);}
^1da177e4c3f415 Linus Torvalds 2005-04-16  37  #define o2()			{PC |= 1; out_p(2,PC);}
^1da177e4c3f415 Linus Torvalds 2005-04-16  38  

:::::: The code at line 32 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


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

  Powered by Linux