Re: [spi:topic/lantiq-ssc 11/12] drivers/spi/spi-lantiq-ssc.c:38:0: warning: "SPI_STAT" redefined

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

 



On 02/19/2017 06:42 PM, kbuild test robot wrote:
> Hi Hauke,
> 
> First bad commit (maybe != root cause):
> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git topic/lantiq-ssc
> head:   30fb27239f987c53429f24297f5d46e28d0e16ed
> commit: 582c97f6868cf70720a17d2421d317333f3ad597 [11/12] spi: lantiq-ssc: activate under COMPILE_TEST
> config: blackfin-allmodconfig (attached as .config)
> compiler: bfin-uclinux-gcc (GCC) 6.2.0
> reproduce:
>         wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout 582c97f6868cf70720a17d2421d317333f3ad597
>         # save the attached .config to linux build tree
>         make.cross ARCH=blackfin 
> 
> All warnings (new ones prefixed by >>):
> 
>>> drivers/spi/spi-lantiq-ssc.c:38:0: warning: "SPI_STAT" redefined
>     #define SPI_STAT  0x14
>     
>    In file included from arch/blackfin/mach-bf533/include/mach/blackfin.h:16:0,
>                     from arch/blackfin/include/asm/irqflags.h:11,
>                     from include/linux/irqflags.h:15,
>                     from arch/blackfin/include/asm/bitops.h:33,
>                     from include/linux/bitops.h:36,
>                     from include/linux/kernel.h:10,
>                     from drivers/spi/spi-lantiq-ssc.c:10:
>    arch/blackfin/mach-bf533/include/mach/defBF532.h:74:0: note: this is the location of the previous definition
>     #define SPI_STAT                0xFFC00508 /* SPI Status register */
>     
> 
> vim +/SPI_STAT +38 drivers/spi/spi-lantiq-ssc.c

I think the blackfin.h should change and not export such generic names.
Or should I prefix the defines with LTQ_ or something else in the
spi-lantiq-ssc.c driver?

I do not think this SPI SIP block was or will ever be used with the
blackfin arch.

Hauke
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux