tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ed8780e3f2ecc82645342d070c6b4e530532e680 commit: a07a63b0e24dd1316d11427601a9f83dc955bb40 video: fbdev: controlfb: add COMPILE_TEST support date: 6 months ago :::::: branch date: 11 hours ago :::::: commit date: 6 months ago config: powerpc64-randconfig-s032-20201028 (attached as .config) compiler: powerpc-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3-56-gc09e8239-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a07a63b0e24dd1316d11427601a9f83dc955bb40 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout a07a63b0e24dd1316d11427601a9f83dc955bb40 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=powerpc64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot "sparse warnings: (new ones prefixed by >>)" drivers/video/fbdev/controlfb.c:69:9: sparse: sparse: preprocessor token pgprot_cached_wthru redefined drivers/video/fbdev/controlfb.c: note: in included file (through arch/powerpc/include/asm/pgtable.h, include/linux/mm.h): >> arch/powerpc/include/asm/nohash/pgtable.h:253:9: sparse: this was the original definition vim +253 arch/powerpc/include/asm/nohash/pgtable.h ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 227 ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 228 ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 229 #define __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 230 extern int ptep_set_access_flags(struct vm_area_struct *vma, unsigned long address, ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 231 pte_t *ptep, pte_t entry, int dirty); ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 232 ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 233 /* ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 234 * Macro to mark a page protection value as "uncacheable". ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 235 */ ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 236 ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 237 #define _PAGE_CACHE_CTL (_PAGE_COHERENT | _PAGE_GUARDED | _PAGE_NO_CACHE | \ ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 238 _PAGE_WRITETHRU) ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 239 ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 240 #define pgprot_noncached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 241 _PAGE_NO_CACHE | _PAGE_GUARDED)) ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 242 ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 243 #define pgprot_noncached_wc(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 244 _PAGE_NO_CACHE)) ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 245 ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 246 #define pgprot_cached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 247 _PAGE_COHERENT)) ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 248 5f356497c384488 arch/powerpc/include/asm/nohash/pgtable.h Christophe Leroy 2018-01-12 249 #if _PAGE_WRITETHRU != 0 ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 250 #define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 251 _PAGE_COHERENT | _PAGE_WRITETHRU)) 56f3c1413f5cce0 arch/powerpc/include/asm/nohash/pgtable.h Christophe Leroy 2018-10-09 252 #else 56f3c1413f5cce0 arch/powerpc/include/asm/nohash/pgtable.h Christophe Leroy 2018-10-09 @253 #define pgprot_cached_wthru(prot) pgprot_noncached(prot) 5f356497c384488 arch/powerpc/include/asm/nohash/pgtable.h Christophe Leroy 2018-01-12 254 #endif ee4889c7bc2a416 arch/powerpc/include/asm/pgtable-book3e.h Aneesh Kumar K.V 2015-12-01 255 :::::: The code at line 253 was first introduced by commit :::::: 56f3c1413f5cce0c8f4d6f1ab79d790da5aa61af powerpc/mm: properly set PAGE_KERNEL flags in ioremap() :::::: TO: Christophe Leroy :::::: CC: Michael Ellerman --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org