[asm-generic:clkdev 5/7] arch/m68k/coldfire/m53xx.c:278:29: error: 'xC0000000' undeclared; did you mean 'B3000000'?

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git clkdev
head:   2c79796a923663135ddaf8e9ddca4b46ac8e0113
commit: 5b2335ed6a67ea9f7894c2ffe27b2884ac46f39f [5/7] m68k: coldfire: remove private clk_get/clk_put
config: m68k-randconfig-r006-20210601 (attached as .config)
compiler: m68k-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/arnd/asm-generic.git/commit/?id=5b2335ed6a67ea9f7894c2ffe27b2884ac46f39f
        git remote add asm-generic https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git
        git fetch --no-tags asm-generic clkdev
        git checkout 5b2335ed6a67ea9f7894c2ffe27b2884ac46f39f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

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

All errors (new ones prefixed by >>):

   arch/m68k/coldfire/m53xx.c:294:24: warning: no previous prototype for 'sysinit' [-Wmissing-prototypes]
     294 | asmlinkage void __init sysinit(void)
         |                        ^~~~~~~
   In file included from arch/m68k/include/asm/io.h:6,
                    from include/linux/io.h:13,
                    from arch/m68k/coldfire/m53xx.c:20:
   arch/m68k/coldfire/m53xx.c: In function 'fbcs_init':
>> arch/m68k/coldfire/m53xx.c:278:29: error: 'xC0000000' undeclared (first use in this function); did you mean 'B3000000'?
     278 | #define EXT_SRAM_ADDRESS (0,xC0000000)
         |                             ^~~~~~~~~
   arch/m68k/include/asm/io_no.h:25:76: note: in definition of macro '__raw_writel'
      25 | #define __raw_writel(b, addr) (void)((*(__force volatile u32 *) (addr)) = (b))
         |                                                                            ^
   arch/m68k/coldfire/m53xx.c:347:9: note: in expansion of macro 'EXT_SRAM_ADDRESS'
     347 |  writel(EXT_SRAM_ADDRESS, MCF_FBCS1_CSAR);
         |         ^~~~~~~~~~~~~~~~
   arch/m68k/coldfire/m53xx.c:278:29: note: each undeclared identifier is reported only once for each function it appears in
     278 | #define EXT_SRAM_ADDRESS (0,xC0000000)
         |                             ^~~~~~~~~
   arch/m68k/include/asm/io_no.h:25:76: note: in definition of macro '__raw_writel'
      25 | #define __raw_writel(b, addr) (void)((*(__force volatile u32 *) (addr)) = (b))
         |                                                                            ^
   arch/m68k/coldfire/m53xx.c:347:9: note: in expansion of macro 'EXT_SRAM_ADDRESS'
     347 |  writel(EXT_SRAM_ADDRESS, MCF_FBCS1_CSAR);
         |         ^~~~~~~~~~~~~~~~
   arch/m68k/coldfire/m53xx.c:278:28: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     278 | #define EXT_SRAM_ADDRESS (0,xC0000000)
         |                            ^
   arch/m68k/include/asm/io_no.h:25:76: note: in definition of macro '__raw_writel'
      25 | #define __raw_writel(b, addr) (void)((*(__force volatile u32 *) (addr)) = (b))
         |                                                                            ^
   arch/m68k/coldfire/m53xx.c:347:9: note: in expansion of macro 'EXT_SRAM_ADDRESS'
     347 |  writel(EXT_SRAM_ADDRESS, MCF_FBCS1_CSAR);
         |         ^~~~~~~~~~~~~~~~


vim +278 arch/m68k/coldfire/m53xx.c

   277	
 > 278	#define EXT_SRAM_ADDRESS	(0,xC0000000)
   279	#define FLASH_ADDRESS		(0x00000000)
   280	#define SDRAM_ADDRESS		(0x40000000)
   281	
   282	#define NAND_FLASH_ADDRESS	(0xD0000000)
   283	
   284	void wtm_init(void);
   285	void scm_init(void);
   286	void gpio_init(void);
   287	void fbcs_init(void);
   288	void sdramc_init(void);
   289	int  clock_pll (int fsys, int flags);
   290	int  clock_limp (int);
   291	int  clock_exit_limp (void);
   292	int  get_sys_clock (void);
   293	
 > 294	asmlinkage void __init sysinit(void)
   295	{
   296		clock_pll(0, 0);
   297	
   298		wtm_init();
   299		scm_init();
   300		gpio_init();
   301		fbcs_init();
   302		sdramc_init();
   303	}
   304	

---
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 Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux