[mmotm:master 119/211] mm/migrate.c:2184:5: note: in expansion of macro 'MIGRATE_PFN_DEVICE'

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

 



tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   8276ddb3c638602509386f1a05f75326dbf5ce09
commit: a6d9a210db7db40e98f7502608c6f1413c44b9b9 [119/211] mm/hmm/migrate: support un-addressable ZONE_DEVICE page in migration
config: i386-randconfig-s0-201711 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout a6d9a210db7db40e98f7502608c6f1413c44b9b9
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from mm/migrate.c:15: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:139:15: note: in expansion of macro 'MIGRATE_PFN_VALID'
     if (!(mpfn & MIGRATE_PFN_VALID))
                  ^~~~~~~~~~~~~~~~~
   In file included from arch/x86/include/asm/page.h:75:0,
                    from arch/x86/include/asm/thread_info.h:11,
                    from include/linux/thread_info.h:25,
                    from arch/x86/include/asm/preempt.h:6,
                    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 include/linux/migrate.h:4,
                    from mm/migrate.c:15:
   include/linux/migrate.h:135: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:141:28: note: in expansion of macro 'MIGRATE_PFN_MASK'
     return pfn_to_page(mpfn & MIGRATE_PFN_MASK);
                               ^~~~~~~~~~~~~~~~
   In file included from mm/migrate.c:15: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:146:16: note: in expansion of macro 'MIGRATE_PFN_HUGE'
     return mpfn & MIGRATE_PFN_HUGE ? PMD_SIZE : PAGE_SIZE;
                   ^~~~~~~~~~~~~~~~
   In file included from mm/migrate.c:15:0:
   mm/migrate.c: In function 'migrate_vma_collect_hole':
   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))
                                  ^
   mm/migrate.c:2114:38: note: in expansion of macro 'MIGRATE_PFN_HUGE'
       migrate->src[migrate->npages++] = MIGRATE_PFN_HUGE;
                                         ^~~~~~~~~~~~~~~~
   mm/migrate.c: In function 'migrate_vma_collect_pmd':
   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))
                                   ^
   mm/migrate.c:2183:12: note: in expansion of macro 'MIGRATE_PFN_VALID'
       flags = MIGRATE_PFN_VALID |
               ^~~~~~~~~~~~~~~~~
   include/linux/migrate.h:133:33: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_DEVICE (1UL << (BITS_PER_LONG_LONG - 6))
                                    ^
>> mm/migrate.c:2184:5: note: in expansion of macro 'MIGRATE_PFN_DEVICE'
        MIGRATE_PFN_DEVICE |
        ^~~~~~~~~~~~~~~~~~
   include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
                                     ^
   mm/migrate.c:2185:5: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
        MIGRATE_PFN_MIGRATE;
        ^~~~~~~~~~~~~~~~~~~
   include/linux/migrate.h:132:32: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_WRITE (1UL << (BITS_PER_LONG_LONG - 5))
                                   ^
   mm/migrate.c:2187:14: note: in expansion of macro 'MIGRATE_PFN_WRITE'
        flags |= MIGRATE_PFN_WRITE;
                 ^~~~~~~~~~~~~~~~~
   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))
                                   ^
   mm/migrate.c:2190:12: note: in expansion of macro 'MIGRATE_PFN_VALID'
       flags = MIGRATE_PFN_VALID | MIGRATE_PFN_MIGRATE;
               ^~~~~~~~~~~~~~~~~
   include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
                                     ^
   mm/migrate.c:2190:32: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
       flags = MIGRATE_PFN_VALID | MIGRATE_PFN_MIGRATE;
                                   ^~~~~~~~~~~~~~~~~~~
   include/linux/migrate.h:132:32: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_WRITE (1UL << (BITS_PER_LONG_LONG - 5))
                                   ^
   mm/migrate.c:2191:30: note: in expansion of macro 'MIGRATE_PFN_WRITE'
       flags |= pte_write(pte) ? MIGRATE_PFN_WRITE : 0;
                                 ^~~~~~~~~~~~~~~~~
   include/linux/migrate.h:131:33: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_LOCKED (1UL << (BITS_PER_LONG_LONG - 4))
                                    ^
   mm/migrate.c:2221:13: note: in expansion of macro 'MIGRATE_PFN_LOCKED'
       flags |= MIGRATE_PFN_LOCKED;
                ^~~~~~~~~~~~~~~~~~
   mm/migrate.c: In function 'migrate_vma_prepare':
   include/linux/migrate.h:131:33: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_LOCKED (1UL << (BITS_PER_LONG_LONG - 4))
                                    ^
   mm/migrate.c:2357:27: note: in expansion of macro 'MIGRATE_PFN_LOCKED'
      if (!(migrate->src[i] & MIGRATE_PFN_LOCKED)) {
                              ^~~~~~~~~~~~~~~~~~
   include/linux/migrate.h:131:33: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_LOCKED (1UL << (BITS_PER_LONG_LONG - 4))
                                    ^
   mm/migrate.c:2360:23: note: in expansion of macro 'MIGRATE_PFN_LOCKED'
       migrate->src[i] |= MIGRATE_PFN_LOCKED;
                          ^~~~~~~~~~~~~~~~~~
   include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
                                     ^
   mm/migrate.c:2373:26: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
         migrate->src[i] &= ~MIGRATE_PFN_MIGRATE;
                             ^~~~~~~~~~~~~~~~~~~
   include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
                                     ^
   mm/migrate.c:2391:25: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
        migrate->src[i] &= ~MIGRATE_PFN_MIGRATE;
                            ^~~~~~~~~~~~~~~~~~~
   include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
                                     ^
   mm/migrate.c:2416:35: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
      if (!page || (migrate->src[i] & MIGRATE_PFN_MIGRATE))
                                      ^~~~~~~~~~~~~~~~~~~
   mm/migrate.c: In function 'migrate_vma_unmap':
   include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
                                     ^
   mm/migrate.c:2450:36: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
      if (!page || !(migrate->src[i] & MIGRATE_PFN_MIGRATE))
                                       ^~~~~~~~~~~~~~~~~~~
   include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
                                     ^
   mm/migrate.c:2455:24: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
       migrate->src[i] &= ~MIGRATE_PFN_MIGRATE;
                           ^~~~~~~~~~~~~~~~~~~
   include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
                                     ^
   mm/migrate.c:2465:35: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
      if (!page || (migrate->src[i] & MIGRATE_PFN_MIGRATE))
                                      ^~~~~~~~~~~~~~~~~~~
   mm/migrate.c: In function 'migrate_vma_pages':
   include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
                                     ^
   mm/migrate.c:2504:27: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
      if (!(migrate->src[i] & MIGRATE_PFN_MIGRATE))
                              ^~~~~~~~~~~~~~~~~~~
   include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
                                     ^
   mm/migrate.c:2511:25: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
        migrate->src[i] &= ~MIGRATE_PFN_MIGRATE;

vim +/MIGRATE_PFN_DEVICE +2184 mm/migrate.c

  2177					goto next;
  2178	
  2179				page = device_entry_to_page(entry);
  2180				if (!dev_page_allow_migrate(page))
  2181					goto next;
  2182	
> 2183				flags = MIGRATE_PFN_VALID |
> 2184					MIGRATE_PFN_DEVICE |
  2185					MIGRATE_PFN_MIGRATE;
  2186				if (is_write_device_entry(entry))
  2187					flags |= MIGRATE_PFN_WRITE;

---
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