[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202103122239.piTiyv7I-lkp@intel.com>
Date: Fri, 12 Mar 2021 22:45:52 +0800
From: kernel test robot <lkp@...el.com>
To: Peter Xu <peterx@...hat.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
Linux Memory Management List <linux-mm@...ck.org>
Subject: drivers/block/paride/bpck.c:32: warning: "PC" redefined
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@...el.com>
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@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (33724 bytes)
Powered by blists - more mailing lists