[mips-linux:mips-next 45/47] arch/mips/include/asm/r4kcache.h:681:35: error: implicit declaration of function 'nid_to_addrbase'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git mips-next
head:   77e07a8a065d3102b144ff0fe555a9597990f56e
commit: 939033a264206ede9ce6be28241cbcd22581b7c2 [45/47] MIPS: c-r4k: Add r4k_blast_scache_node for Loongson-3
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gnu-gcc (Debian 7.2.0-11) 7.2.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 939033a264206ede9ce6be28241cbcd22581b7c2
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=mips 

All error/warnings (new ones prefixed by >>):

   In file included from arch/mips/kernel/smp-cps.c:25:0:
   arch/mips/include/asm/r4kcache.h: In function 'blast_scache16_node':
>> arch/mips/include/asm/r4kcache.h:681:35: error: implicit declaration of function 'nid_to_addrbase' [-Werror=implicit-function-declaration]
     unsigned long start = CAC_BASE | nid_to_addrbase(node);  \
                                      ^
>> arch/mips/include/asm/r4kcache.h:693:1: note: in expansion of macro '__BUILD_BLAST_CACHE_NODE'
    __BUILD_BLAST_CACHE_NODE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 16)
    ^~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
   In file included from arch/mips/mm/c-r4k.c:33:0:
   arch/mips/include/asm/r4kcache.h: In function 'blast_scache16_node':
>> arch/mips/include/asm/r4kcache.h:681:35: error: implicit declaration of function 'nid_to_addrbase' [-Werror=implicit-function-declaration]
     unsigned long start = CAC_BASE | nid_to_addrbase(node);  \
                                      ^
>> arch/mips/include/asm/r4kcache.h:693:1: note: in expansion of macro '__BUILD_BLAST_CACHE_NODE'
    __BUILD_BLAST_CACHE_NODE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 16)
    ^~~~~~~~~~~~~~~~~~~~~~~~
   arch/mips/mm/c-r4k.c: In function 'r4k_dma_cache_wback_inv':
>> arch/mips/mm/c-r4k.c:869:27: error: implicit declaration of function 'pa_to_nid'; did you mean 'page_to_nid'? [-Werror=implicit-function-declaration]
        r4k_blast_scache_node(pa_to_nid(addr));
                              ^~~~~~~~~
                              page_to_nid
   cc1: all warnings being treated as errors
--
   In file included from arch/mips//mm/c-r4k.c:33:0:
   arch/mips/include/asm/r4kcache.h: In function 'blast_scache16_node':
>> arch/mips/include/asm/r4kcache.h:681:35: error: implicit declaration of function 'nid_to_addrbase' [-Werror=implicit-function-declaration]
     unsigned long start = CAC_BASE | nid_to_addrbase(node);  \
                                      ^
>> arch/mips/include/asm/r4kcache.h:693:1: note: in expansion of macro '__BUILD_BLAST_CACHE_NODE'
    __BUILD_BLAST_CACHE_NODE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 16)
    ^~~~~~~~~~~~~~~~~~~~~~~~
   arch/mips//mm/c-r4k.c: In function 'r4k_dma_cache_wback_inv':
   arch/mips//mm/c-r4k.c:869:27: error: implicit declaration of function 'pa_to_nid'; did you mean 'page_to_nid'? [-Werror=implicit-function-declaration]
        r4k_blast_scache_node(pa_to_nid(addr));
                              ^~~~~~~~~
                              page_to_nid
   cc1: all warnings being treated as errors

vim +/nid_to_addrbase +681 arch/mips/include/asm/r4kcache.h

   676	
   677	/* Currently, this is very specific to Loongson-3 */
   678	#define __BUILD_BLAST_CACHE_NODE(pfx, desc, indexop, hitop, lsize)	\
   679	static inline void blast_##pfx##cache##lsize##_node(long node)		\
   680	{									\
 > 681		unsigned long start = CAC_BASE | nid_to_addrbase(node);		\
   682		unsigned long end = start + current_cpu_data.desc.waysize;	\
   683		unsigned long ws_inc = 1UL << current_cpu_data.desc.waybit;	\
   684		unsigned long ws_end = current_cpu_data.desc.ways <<		\
   685				       current_cpu_data.desc.waybit;		\
   686		unsigned long ws, addr;						\
   687										\
   688		for (ws = 0; ws < ws_end; ws += ws_inc)				\
   689			for (addr = start; addr < end; addr += lsize * 32)	\
   690				cache##lsize##_unroll32(addr|ws, indexop);	\
   691	}
   692	
 > 693	__BUILD_BLAST_CACHE_NODE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 16)
   694	__BUILD_BLAST_CACHE_NODE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 32)
   695	__BUILD_BLAST_CACHE_NODE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 64)
   696	__BUILD_BLAST_CACHE_NODE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 128)
   697	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux