lkml.org 
[lkml]   [2019]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/net//fddi/skfp/h/skfbi.h:362:0: warning: "IRQ_TIMER" redefined
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e42617b825f8073569da76dc4510bfa019b1c35a
commit: a4c3733d32a72f11dee86d0731d7565aa6ebe22d riscv: abstract out CSR names for supervisor vs machine mode
date: 5 weeks ago
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout a4c3733d32a72f11dee86d0731d7565aa6ebe22d
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=riscv

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

In file included from drivers/net//fddi/skfp/skfddi.c:91:0:
>> drivers/net//fddi/skfp/h/skfbi.h:362:0: warning: "IRQ_TIMER" redefined
#define IRQ_TIMER (1L<<22) /* Bit 22: IRQ_TIMER */

In file included from arch/riscv/include/asm/ptrace.h:10:0,
from arch/riscv/include/asm/processor.h:11,
from arch/riscv/include/asm/irqflags.h:10,
from include/linux/irqflags.h:16,
from arch/riscv/include/asm/bitops.h:14,
from include/linux/bitops.h:26,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/module.h:9,
from drivers/net//fddi/skfp/skfddi.c:73:
arch/riscv/include/asm/csr.h:135:0: note: this is the location of the previous definition
# define IRQ_TIMER IRQ_S_TIMER

--
In file included from arch/riscv/include/asm/ptrace.h:10:0,
from arch/riscv/include/asm/processor.h:11,
from arch/riscv/include/asm/irqflags.h:10,
from include/linux/irqflags.h:16,
from arch/riscv/include/asm/bitops.h:14,
from include/linux/bitops.h:26,
from include/linux/kernel.h:12,
from include/linux/cpumask.h:10,
from arch/riscv/include/asm/smp.h:9,
from include/asm-generic/mmiowb.h:27,
from arch/riscv/include/asm/mmiowb.h:12,
from arch/riscv/include/asm/io.h:15,
from drivers/net//fddi/skfp/h/targetos.h:42,
from drivers/net//fddi/skfp/h/smc.h:46,
from drivers/net//fddi/skfp/hwmtm.c:25:
>> arch/riscv/include/asm/csr.h:135:0: warning: "IRQ_TIMER" redefined
# define IRQ_TIMER IRQ_S_TIMER

In file included from drivers/net//fddi/skfp/h/targethw.h:24:0,
from drivers/net//fddi/skfp/h/smc.h:45,
from drivers/net//fddi/skfp/hwmtm.c:25:
drivers/net//fddi/skfp/h/skfbi.h:362:0: note: this is the location of the previous definition
#define IRQ_TIMER (1L<<22) /* Bit 22: IRQ_TIMER */

--
In file included from sound/pci//au88x0/au8810.c:3:0:
>> sound/pci//au88x0/au88x0.h:52:0: warning: "IRQ_TIMER" redefined
#define IRQ_TIMER 0x1000

In file included from arch/riscv/include/asm/ptrace.h:10:0,
from arch/riscv/include/asm/processor.h:11,
from arch/riscv/include/asm/irqflags.h:10,
from include/linux/irqflags.h:16,
from arch/riscv/include/asm/bitops.h:14,
from include/linux/bitops.h:26,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/pci.h:32,
from sound/pci//au88x0/au88x0.h:8,
from sound/pci//au88x0/au8810.c:3:
arch/riscv/include/asm/csr.h:135:0: note: this is the location of the previous definition
# define IRQ_TIMER IRQ_S_TIMER

--
In file included from arch/riscv/include/asm/ptrace.h:10:0,
from arch/riscv/include/asm/processor.h:11,
from arch/riscv/include/asm/irqflags.h:10,
from include/linux/irqflags.h:16,
from arch/riscv/include/asm/bitops.h:14,
from include/linux/bitops.h:26,
from include/linux/kernel.h:12,
from include/linux/cpumask.h:10,
from arch/riscv/include/asm/smp.h:9,
from include/asm-generic/mmiowb.h:27,
from arch/riscv/include/asm/mmiowb.h:12,
from arch/riscv/include/asm/io.h:15,
from drivers/net/fddi/skfp/h/targetos.h:42,
from drivers/net/fddi/skfp/h/smc.h:46,
from drivers/net/fddi/skfp/hwmtm.c:25:
>> arch/riscv/include/asm/csr.h:135:0: warning: "IRQ_TIMER" redefined
# define IRQ_TIMER IRQ_S_TIMER

In file included from drivers/net/fddi/skfp/h/targethw.h:24:0,
from drivers/net/fddi/skfp/h/smc.h:45,
from drivers/net/fddi/skfp/hwmtm.c:25:
drivers/net/fddi/skfp/h/skfbi.h:362:0: note: this is the location of the previous definition
#define IRQ_TIMER (1L<<22) /* Bit 22: IRQ_TIMER */


vim +/IRQ_TIMER +362 drivers/net//fddi/skfp/h/skfbi.h

^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 346
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 347
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 348 /* B0_IMSK 32 bit Interrupt mask register */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 349 /*
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 350 * The Bit definnition of this register are the same as of the interrupt
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 351 * source register. These definition are directly derived from the Hardware
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 352 * spec.
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 353 */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 354 /* Bit 31..28: reserved */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 355 #define IRQ_I2C_READY (1L<<27) /* Bit 27: (ML) IRQ on end of I2C tx */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 356 #define IRQ_SW (1L<<26) /* Bit 26: (ML) SW forced IRQ */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 357 #define IRQ_EXT_REG (1L<<25) /* Bit 25: (ML) IRQ from external reg*/
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 358 #define IRQ_STAT (1L<<24) /* Bit 24: IRQ status exception */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 359 /* PERR, RMABORT, RTABORT DATAPERR */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 360 #define IRQ_MST_ERR (1L<<23) /* Bit 23: IRQ master error */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 361 /* RMABORT, RTABORT, DATAPERR */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 @362 #define IRQ_TIMER (1L<<22) /* Bit 22: IRQ_TIMER */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 363 #define IRQ_RTM (1L<<21) /* Bit 21: IRQ_RTM */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 364 #define IRQ_DAS (1L<<20) /* Bit 20: IRQ_PHY_DAS */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 365 #define IRQ_IFCP_4 (1L<<19) /* Bit 19: IRQ_IFCP_4 */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 366 #define IRQ_IFCP_3 (1L<<18) /* Bit 18: IRQ_IFCP_3/IRQ_PHY */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 367 #define IRQ_IFCP_2 (1L<<17) /* Bit 17: IRQ_IFCP_2/IRQ_MAC_2 */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 368 #define IRQ_IFCP_1 (1L<<16) /* Bit 16: IRQ_IFCP_1/IRQ_MAC_1 */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 369 /* Receive Queue 1 */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 370 #define IRQ_R1_P (1L<<15) /* Bit 15: Parity Error (q1) */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 371 #define IRQ_R1_B (1L<<14) /* Bit 14: End of Buffer (q1) */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 372 #define IRQ_R1_F (1L<<13) /* Bit 13: End of Frame (q1) */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 373 #define IRQ_R1_C (1L<<12) /* Bit 12: Encoding Error (q1) */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 374 /* Receive Queue 2 */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 375 #define IRQ_R2_P (1L<<11) /* Bit 11: (DV) Parity Error (q2) */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 376 #define IRQ_R2_B (1L<<10) /* Bit 10: (DV) End of Buffer (q2) */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 377 #define IRQ_R2_F (1L<<9) /* Bit 9: (DV) End of Frame (q2) */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 378 #define IRQ_R2_C (1L<<8) /* Bit 8: (DV) Encoding Error (q2) */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 379 /* Asynchronous Transmit queue */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 380 /* Bit 7: reserved */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 381 #define IRQ_XA_B (1L<<6) /* Bit 6: End of Buffer (xa) */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 382 #define IRQ_XA_F (1L<<5) /* Bit 5: End of Frame (xa) */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 383 #define IRQ_XA_C (1L<<4) /* Bit 4: Encoding Error (xa) */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 384 /* Synchronous Transmit queue */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 385 /* Bit 3: reserved */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 386 #define IRQ_XS_B (1L<<2) /* Bit 2: End of Buffer (xs) */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 387 #define IRQ_XS_F (1L<<1) /* Bit 1: End of Frame (xs) */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 388 #define IRQ_XS_C (1L<<0) /* Bit 0: Encoding Error (xs) */
^1da177e4c3f41 drivers/net/skfp/h/skfbi.h Linus Torvalds 2005-04-16 389

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

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2019-12-09 07:03    [W:0.035 / U:6.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site