[mmotm:master 113/211] include/linux/migrate.h:144:35: error: 'PMD_SIZE' undeclared

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

 



tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   8276ddb3c638602509386f1a05f75326dbf5ce09
commit: 50973108c6444ebacff41fbdb553c156dd144c33 [113/211] mm/migrate: new memory migration helper for use with device memory
config: blackfin-allmodconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 50973108c6444ebacff41fbdb553c156dd144c33
        # save the attached .config to linux build tree
        make.cross ARCH=blackfin 

All errors (new ones prefixed by >>):

   In file included from drivers/staging/lustre/lustre/llite/rw26.c:45:0:
   include/linux/migrate.h: In function 'migrate_pfn_to_page':
   include/linux/migrate.h:128:32: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_VALID (1UL << (BITS_PER_LONG_LONG - 1))
                                   ^
   include/linux/migrate.h:137:15: note: in expansion of macro 'MIGRATE_PFN_VALID'
     if (!(mpfn & MIGRATE_PFN_VALID))
                  ^~~~~~~~~~~~~~~~~
   In file included from include/asm-generic/page.h:97:0,
                    from arch/blackfin/include/asm/page.h:18,
                    from arch/blackfin/include/asm/thread_info.h:10,
                    from include/linux/thread_info.h:25,
                    from include/asm-generic/preempt.h:4,
                    from ./arch/blackfin/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:80,
                    from include/linux/spinlock.h:50,
                    from include/linux/mmzone.h:7,
                    from include/linux/gfp.h:5,
                    from include/linux/mm.h:9,
                    from drivers/staging/lustre/lustre/llite/rw26.c:38:
   include/linux/migrate.h:133:32: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_MASK ((1UL << (BITS_PER_LONG_LONG - PAGE_SHIFT)) - 1)
                                   ^
   include/asm-generic/memory_model.h:32:41: note: in definition of macro '__pfn_to_page'
    #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET))
                                            ^~~
   include/linux/migrate.h:139:28: note: in expansion of macro 'MIGRATE_PFN_MASK'
     return pfn_to_page(mpfn & MIGRATE_PFN_MASK);
                               ^~~~~~~~~~~~~~~~
   In file included from drivers/staging/lustre/lustre/llite/rw26.c:45:0:
   include/linux/migrate.h: In function 'migrate_pfn_size':
   include/linux/migrate.h:130:31: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_HUGE (1UL << (BITS_PER_LONG_LONG - 3))
                                  ^
   include/linux/migrate.h:144:16: note: in expansion of macro 'MIGRATE_PFN_HUGE'
     return mpfn & MIGRATE_PFN_HUGE ? PMD_SIZE : PAGE_SIZE;
                   ^~~~~~~~~~~~~~~~
>> include/linux/migrate.h:144:35: error: 'PMD_SIZE' undeclared (first use in this function)
     return mpfn & MIGRATE_PFN_HUGE ? PMD_SIZE : PAGE_SIZE;
                                      ^~~~~~~~
   include/linux/migrate.h:144:35: note: each undeclared identifier is reported only once for each function it appears in

vim +/PMD_SIZE +144 include/linux/migrate.h

   124	}
   125	#endif /* CONFIG_NUMA_BALANCING && CONFIG_TRANSPARENT_HUGEPAGE*/
   126	
   127	
   128	#define MIGRATE_PFN_VALID	(1UL << (BITS_PER_LONG_LONG - 1))
   129	#define MIGRATE_PFN_MIGRATE	(1UL << (BITS_PER_LONG_LONG - 2))
 > 130	#define MIGRATE_PFN_HUGE	(1UL << (BITS_PER_LONG_LONG - 3))
   131	#define MIGRATE_PFN_LOCKED	(1UL << (BITS_PER_LONG_LONG - 4))
   132	#define MIGRATE_PFN_WRITE	(1UL << (BITS_PER_LONG_LONG - 5))
   133	#define MIGRATE_PFN_MASK	((1UL << (BITS_PER_LONG_LONG - PAGE_SHIFT)) - 1)
   134	
   135	static inline struct page *migrate_pfn_to_page(unsigned long mpfn)
   136	{
   137		if (!(mpfn & MIGRATE_PFN_VALID))
   138			return NULL;
   139		return pfn_to_page(mpfn & MIGRATE_PFN_MASK);
   140	}
   141	
   142	static inline unsigned long migrate_pfn_size(unsigned long mpfn)
   143	{
 > 144		return mpfn & MIGRATE_PFN_HUGE ? PMD_SIZE : PAGE_SIZE;
   145	}
   146	
   147	/*

---
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 ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]
  Powered by Linux