[linux-next:master 11896/11991] include/linux/page_idle.h:49:19: warning: unused variable 'page_ext'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   66c198deda3725c57939c6cdaf2c9f5375cd79ad
commit: 186ba1a848cef542bdf7c881f863783e9e7a91df [11896/11991] mm-check-the-return-value-of-lookup_page_ext-for-all-call-sites-checkpatch-fixes
config: i386-randconfig-h1-05241552 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout 186ba1a848cef542bdf7c881f863783e9e7a91df
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   fs/proc/task_mmu.c:408:30: warning: unused variable 'proc_pid_maps_operations' [-Wunused-variable]
    const struct file_operations proc_pid_maps_operations = {
                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from fs/proc/task_mmu.c:22:0:
   fs/proc/internal.h:299:37: warning: unused variable 'proc_pagemap_operations' [-Wunused-variable]
    extern const struct file_operations proc_pagemap_operations;
                                        ^~~~~~~~~~~~~~~~~~~~~~~
   fs/proc/internal.h:298:37: warning: unused variable 'proc_clear_refs_operations' [-Wunused-variable]
    extern const struct file_operations proc_clear_refs_operations;
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/proc/internal.h:297:37: warning: unused variable 'proc_tid_smaps_operations' [-Wunused-variable]
    extern const struct file_operations proc_tid_smaps_operations;
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
   fs/proc/internal.h:296:37: warning: unused variable 'proc_pid_smaps_operations' [-Wunused-variable]
    extern const struct file_operations proc_pid_smaps_operations;
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
   fs/proc/internal.h:295:37: warning: unused variable 'proc_tid_numa_maps_operations' [-Wunused-variable]
    extern const struct file_operations proc_tid_numa_maps_operations;
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/proc/internal.h:294:37: warning: unused variable 'proc_pid_numa_maps_operations' [-Wunused-variable]
    extern const struct file_operations proc_pid_numa_maps_operations;
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/proc/internal.h:270:30: warning: unused variable 'proc_root' [-Wunused-variable]
    extern struct proc_dir_entry proc_root;
                                 ^~~~~~~~~
   fs/proc/internal.h:228:38: warning: unused variable 'proc_net_inode_operations' [-Wunused-variable]
    extern const struct inode_operations proc_net_inode_operations;
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~
   fs/proc/internal.h:227:37: warning: unused variable 'proc_net_operations' [-Wunused-variable]
    extern const struct file_operations proc_net_operations;
                                        ^~~~~~~~~~~~~~~~~~~
   fs/proc/internal.h:222:37: warning: unused variable 'proc_ns_dir_operations' [-Wunused-variable]
    extern const struct file_operations proc_ns_dir_operations;
                                        ^~~~~~~~~~~~~~~~~~~~~~
   fs/proc/internal.h:221:38: warning: unused variable 'proc_ns_dir_inode_operations' [-Wunused-variable]
    extern const struct inode_operations proc_ns_dir_inode_operations;
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/proc/internal.h:211:38: warning: unused variable 'proc_pid_link_inode_operations' [-Wunused-variable]
    extern const struct inode_operations proc_pid_link_inode_operations;
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/proc/internal.h:209:38: warning: unused variable 'proc_link_inode_operations' [-Wunused-variable]
    extern const struct inode_operations proc_link_inode_operations;
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/proc/internal.h:162:39: warning: unused variable 'pid_dentry_operations' [-Wunused-variable]
    extern const struct dentry_operations pid_dentry_operations;
                                          ^~~~~~~~~~~~~~~~~~~~~
   fs/proc/internal.h:148:37: warning: unused variable 'proc_tid_children_operations' [-Wunused-variable]
    extern const struct file_operations proc_tid_children_operations;
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from fs/proc/internal.h:16:0,
                    from fs/proc/task_mmu.c:22:
   include/linux/binfmts.h:105:12: warning: unused variable 'suid_dumpable' [-Wunused-variable]
    extern int suid_dumpable;
               ^~~~~~~~~~~~~
   In file included from fs/proc/internal.h:13:0,
                    from fs/proc/task_mmu.c:22:
   include/linux/proc_ns.h:29:40: warning: unused variable 'cgroupns_operations' [-Wunused-variable]
    extern const struct proc_ns_operations cgroupns_operations;
                                           ^~~~~~~~~~~~~~~~~~~
   include/linux/proc_ns.h:28:40: warning: unused variable 'mntns_operations' [-Wunused-variable]
    extern const struct proc_ns_operations mntns_operations;
                                           ^~~~~~~~~~~~~~~~
   include/linux/proc_ns.h:27:40: warning: unused variable 'userns_operations' [-Wunused-variable]
    extern const struct proc_ns_operations userns_operations;
                                           ^~~~~~~~~~~~~~~~~
   include/linux/proc_ns.h:26:40: warning: unused variable 'pidns_operations' [-Wunused-variable]
    extern const struct proc_ns_operations pidns_operations;
                                           ^~~~~~~~~~~~~~~~
   include/linux/proc_ns.h:25:40: warning: unused variable 'ipcns_operations' [-Wunused-variable]
    extern const struct proc_ns_operations ipcns_operations;
                                           ^~~~~~~~~~~~~~~~
   include/linux/proc_ns.h:24:40: warning: unused variable 'utsns_operations' [-Wunused-variable]
    extern const struct proc_ns_operations utsns_operations;
                                           ^~~~~~~~~~~~~~~~
   include/linux/proc_ns.h:23:40: warning: unused variable 'netns_operations' [-Wunused-variable]
    extern const struct proc_ns_operations netns_operations;
                                           ^~~~~~~~~~~~~~~~
   In file included from fs/proc/task_mmu.c:19:0:
   arch/x86/include/asm/elf.h:364:28: warning: unused variable 'va_align' [-Wunused-variable]
    extern struct va_alignment va_align;
                               ^~~~~~~~
   In file included from arch/x86/include/asm/elf.h:94:0,
                    from fs/proc/task_mmu.c:19:
   arch/x86/include/asm/desc.h:40:18: warning: unused variable 'debug_idt_table' [-Wunused-variable]
    extern gate_desc debug_idt_table[];
                     ^~~~~~~~~~~~~~~
   arch/x86/include/asm/desc.h:39:24: warning: unused variable 'debug_idt_descr' [-Wunused-variable]
    extern struct desc_ptr debug_idt_descr;
                           ^~~~~~~~~~~~~~~
   In file included from fs/proc/task_mmu.c:19:0:
   arch/x86/include/asm/elf.h:82:21: warning: unused variable 'vdso32_enabled' [-Wunused-variable]
    extern unsigned int vdso32_enabled;
                        ^~~~~~~~~~~~~~
   In file included from arch/x86/include/asm/elf.h:76:0,
                    from fs/proc/task_mmu.c:19:
   arch/x86/include/asm/vdso.h:39:32: warning: unused variable 'vdso_image_32' [-Wunused-variable]
    extern const struct vdso_image vdso_image_32;
                                   ^~~~~~~~~~~~~
   In file included from fs/proc/task_mmu.c:16:0:
>> include/linux/page_idle.h:49:19: warning: unused variable 'page_ext' [-Wunused-variable]
     struct page_ext *page_ext = lookup_page_ext(page);
                      ^~~~~~~~
   fs/proc/task_mmu.c:420:1: warning: no return statement in function returning non-void [-Wreturn-type]
    };
    ^
   At top level:
   fs/proc/task_mmu.c:91:15: warning: 'task_statm' defined but not used [-Wunused-function]
    unsigned long task_statm(struct mm_struct *mm,
                  ^~~~~~~~~~
   fs/proc/task_mmu.c:86:15: warning: 'task_vsize' defined but not used [-Wunused-function]
    unsigned long task_vsize(struct mm_struct *mm)
                  ^~~~~~~~~~
   fs/proc/task_mmu.c:24:6: warning: 'task_mem' defined but not used [-Wunused-function]
    void task_mem(struct seq_file *m, struct mm_struct *mm)
         ^~~~~~~~
   cc1: some warnings being treated as errors
--
                    from include/trace/events/pagemap.h:87,
                    from mm/swap.c:41:
   arch/x86/include/asm/hw_breakpoint.h:74:19: warning: unused variable 'perf_ops_bp' [-Wunused-variable]
    extern struct pmu perf_ops_bp;
                      ^~~~~~~~~~~
   In file included from arch/x86/include/asm/perf_event.h:246:0,
                    from include/linux/perf_event.h:24,
                    from include/linux/trace_events.h:9,
                    from include/trace/trace_events.h:19,
                    from include/trace/define_trace.h:95,
                    from include/trace/events/pagemap.h:87,
                    from mm/swap.c:41:
   arch/x86/include/asm/stacktrace.h:92:21: warning: unused variable 'code_bytes' [-Wunused-variable]
    extern unsigned int code_bytes;
                        ^~~~~~~~~~
   arch/x86/include/asm/stacktrace.h:12:12: warning: unused variable 'kstack_depth_to_print' [-Wunused-variable]
    extern int kstack_depth_to_print;
               ^~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/ptrace.h:8:0,
                    from arch/x86/include/asm/stacktrace.h:10,
                    from arch/x86/include/asm/perf_event.h:246,
                    from include/linux/perf_event.h:24,
                    from include/linux/trace_events.h:9,
                    from include/trace/trace_events.h:19,
                    from include/trace/define_trace.h:95,
                    from include/trace/events/pagemap.h:87,
                    from mm/swap.c:41:
   include/linux/pid_namespace.h:50:29: warning: unused variable 'init_pid_ns' [-Wunused-variable]
    extern struct pid_namespace init_pid_ns;
                                ^~~~~~~~~~~
   In file included from include/linux/ring_buffer.h:7:0,
                    from include/linux/trace_events.h:5,
                    from include/trace/trace_events.h:19,
                    from include/trace/define_trace.h:95,
                    from include/trace/events/pagemap.h:87,
                    from mm/swap.c:41:
   include/linux/poll.h:14:25: warning: unused variable 'epoll_table' [-Wunused-variable]
    extern struct ctl_table epoll_table[]; /* for sysctl */
                            ^~~~~~~~~~~
   In file included from include/trace/events/pagemap.h:7:0,
                    from mm/swap.c:41:
   include/linux/tracepoint.h:235:20: warning: unused variable '__tracepoint_mm_lru_activate' [-Wunused-variable]
     struct tracepoint __tracepoint_##name     \
                       ^
   include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN'
     DEFINE_TRACE_FN(name, NULL, NULL);
     ^~~~~~~~~~~~~~~
   include/trace/define_trace.h:27:2: note: in expansion of macro 'DEFINE_TRACE'
     DEFINE_TRACE(name)
     ^~~~~~~~~~~~
   include/trace/events/pagemap.h:63:1: note: in expansion of macro 'TRACE_EVENT'
    TRACE_EVENT(mm_lru_activate,
    ^~~~~~~~~~~
   include/linux/tracepoint.h:235:20: warning: unused variable '__tracepoint_mm_lru_insertion' [-Wunused-variable]
     struct tracepoint __tracepoint_##name     \
                       ^
   include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN'
     DEFINE_TRACE_FN(name, NULL, NULL);
     ^~~~~~~~~~~~~~~
   include/trace/define_trace.h:27:2: note: in expansion of macro 'DEFINE_TRACE'
     DEFINE_TRACE(name)
     ^~~~~~~~~~~~
   include/trace/events/pagemap.h:27:1: note: in expansion of macro 'TRACE_EVENT'
    TRACE_EVENT(mm_lru_insertion,
    ^~~~~~~~~~~
   In file included from mm/swap.c:38:0:
   mm/internal.h:485:39: warning: unused variable 'gfpflag_names' [-Wunused-variable]
    extern const struct trace_print_flags gfpflag_names[];
                                          ^~~~~~~~~~~~~
   mm/internal.h:484:39: warning: unused variable 'vmaflag_names' [-Wunused-variable]
    extern const struct trace_print_flags vmaflag_names[];
                                          ^~~~~~~~~~~~~
   mm/internal.h:483:39: warning: unused variable 'pageflag_names' [-Wunused-variable]
    extern const struct trace_print_flags pageflag_names[];
                                          ^~~~~~~~~~~~~~
   mm/internal.h:443:12: warning: unused variable 'hwpoison_filter_enable' [-Wunused-variable]
    extern u32 hwpoison_filter_enable;
               ^~~~~~~~~~~~~~~~~~~~~~
   mm/internal.h:442:12: warning: unused variable 'hwpoison_filter_memcg' [-Wunused-variable]
    extern u64 hwpoison_filter_memcg;
               ^~~~~~~~~~~~~~~~~~~~~
   mm/internal.h:441:12: warning: unused variable 'hwpoison_filter_flags_value' [-Wunused-variable]
    extern u64 hwpoison_filter_flags_value;
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   mm/internal.h:440:12: warning: unused variable 'hwpoison_filter_flags_mask' [-Wunused-variable]
    extern u64 hwpoison_filter_flags_mask;
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
   mm/internal.h:439:12: warning: unused variable 'hwpoison_filter_dev_minor' [-Wunused-variable]
    extern u32 hwpoison_filter_dev_minor;
               ^~~~~~~~~~~~~~~~~~~~~~~~~
   mm/internal.h:438:12: warning: unused variable 'hwpoison_filter_dev_major' [-Wunused-variable]
    extern u32 hwpoison_filter_dev_major;
               ^~~~~~~~~~~~~~~~~~~~~~~~~
   mm/internal.h:152:12: warning: unused variable 'user_min_free_kbytes' [-Wunused-variable]
    extern int user_min_free_kbytes;
               ^~~~~~~~~~~~~~~~~~~~
   mm/internal.h:71:22: warning: unused variable 'highest_memmap_pfn' [-Wunused-variable]
    extern unsigned long highest_memmap_pfn;
                         ^~~~~~~~~~~~~~~~~~
   In file included from mm/swap.c:36:0:
>> include/linux/page_idle.h:49:19: warning: unused variable 'page_ext' [-Wunused-variable]
     struct page_ext *page_ext = lookup_page_ext(page);
                      ^~~~~~~~
   mm/swap.c:971:1: warning: no return statement in function returning non-void [-Wreturn-type]
    }
    ^
   At top level:
   mm/swap.c:952:13: warning: 'swap_setup' defined but not used [-Wunused-function]
    void __init swap_setup(void)
                ^~~~~~~~~~
   mm/swap.c:940:10: warning: 'pagevec_lookup_tag' defined but not used [-Wunused-function]
    unsigned pagevec_lookup_tag(struct pagevec *pvec, struct address_space *mapping,
             ^~~~~~~~~~~~~~~~~~
   mm/swap.c:932:10: warning: 'pagevec_lookup' defined but not used [-Wunused-function]
    unsigned pagevec_lookup(struct pagevec *pvec, struct address_space *mapping,
             ^~~~~~~~~~~~~~
   mm/swap.c:904:6: warning: 'pagevec_remove_exceptionals' defined but not used [-Wunused-function]
    void pagevec_remove_exceptionals(struct pagevec *pvec)
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   mm/swap.c:885:10: warning: 'pagevec_lookup_entries' defined but not used [-Wunused-function]
    unsigned pagevec_lookup_entries(struct pagevec *pvec,
             ^~~~~~~~~~~~~~~~~~~~~~
   mm/swap.c:859:6: warning: '__pagevec_lru_add' defined but not used [-Wunused-function]
    void __pagevec_lru_add(struct pagevec *pvec)
         ^~~~~~~~~~~~~~~~~
   mm/swap.c:801:6: warning: 'lru_add_page_tail' defined but not used [-Wunused-function]
    void lru_add_page_tail(struct page *page, struct page *page_tail,
         ^~~~~~~~~~~~~~~~~
   mm/swap.c:791:6: warning: '__pagevec_release' defined but not used [-Wunused-function]
    void __pagevec_release(struct pagevec *pvec)
         ^~~~~~~~~~~~~~~~~
   mm/swap.c:670:6: warning: 'lru_add_drain_all' defined but not used [-Wunused-function]
    void lru_add_drain_all(void)
         ^~~~~~~~~~~~~~~~~
   mm/swap.c:645:6: warning: 'deactivate_page' defined but not used [-Wunused-function]
    void deactivate_page(struct page *page)
         ^~~~~~~~~~~~~~~
   mm/swap.c:619:6: warning: 'deactivate_file_page' defined but not used [-Wunused-function]
    void deactivate_file_page(struct page *page)
         ^~~~~~~~~~~~~~~~~~~~
   mm/swap.c:469:6: warning: 'lru_cache_add_active_or_unevictable' defined but not used [-Wunused-function]
    void lru_cache_add_active_or_unevictable(struct page *page,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   mm/swap.c:411:6: warning: 'lru_cache_add_file' defined but not used [-Wunused-function]
    void lru_cache_add_file(struct page *page)
         ^~~~~~~~~~~~~~~~~~
   mm/swap.c:404:6: warning: 'lru_cache_add_anon' defined but not used [-Wunused-function]
    void lru_cache_add_anon(struct page *page)
         ^~~~~~~~~~~~~~~~~~
   mm/swap.c:362:6: warning: 'mark_page_accessed' defined but not used [-Wunused-function]
    void mark_page_accessed(struct page *page)
         ^~~~~~~~~~~~~~~~~~
   mm/swap.c:235:6: warning: 'rotate_reclaimable_page' defined but not used [-Wunused-function]
    void rotate_reclaimable_page(struct page *page)
         ^~~~~~~~~~~~~~~~~~~~~~~
   mm/swap.c:166:5: warning: 'get_kernel_page' defined but not used [-Wunused-function]
    int get_kernel_page(unsigned long start, int write, struct page **pages)
        ^~~~~~~~~~~~~~~
   mm/swap.c:113:6: warning: 'put_pages_list' defined but not used [-Wunused-function]
    void put_pages_list(struct list_head *pages)
         ^~~~~~~~~~~~~~
   mm/swap.c:97:6: warning: '__put_page' defined but not used [-Wunused-function]
    void __put_page(struct page *page)
         ^~~~~~~~~~
   cc1: some warnings being treated as errors
--
    static bool invalid_mkclean_vma(struct vm_area_struct *vma, void *arg)
                ^~~~~~~~~~~~~~~~~~~
   mm/rmap.c:1094:1: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
    void page_move_anon_rmap(struct page *page,
    ^~~~
   mm/rmap.c:1119:13: error: invalid storage class for function '__page_set_anon_rmap'
    static void __page_set_anon_rmap(struct page *page,
                ^~~~~~~~~~~~~~~~~~~~
   mm/rmap.c:1148:13: error: invalid storage class for function '__page_check_anon_rmap'
    static void __page_check_anon_rmap(struct page *page,
                ^~~~~~~~~~~~~~~~~~~~~~
   mm/rmap.c:1284:13: error: invalid storage class for function 'page_remove_file_rmap'
    static void page_remove_file_rmap(struct page *page)
                ^~~~~~~~~~~~~~~~~~~~~
   mm/rmap.c:1313:13: error: invalid storage class for function 'page_remove_anon_compound_rmap'
    static void page_remove_anon_compound_rmap(struct page *page)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   mm/rmap.c:1398:17: error: field 'flags' has incomplete type
     enum ttu_flags flags;
                    ^~~~~
   mm/rmap.c:1405:12: error: invalid storage class for function 'try_to_unmap_one'
    static int try_to_unmap_one(struct page *page, struct vm_area_struct *vma,
               ^~~~~~~~~~~~~~~~
   mm/rmap.c: In function 'try_to_unmap_one':
   mm/rmap.c:1414:7: error: variable 'flags' has initializer but incomplete type
     enum ttu_flags flags = rp->flags;
          ^~~~~~~~~
   mm/rmap.c:1414:17: error: storage size of 'flags' isn't known
     enum ttu_flags flags = rp->flags;
                    ^~~~~
   mm/rmap.c:1414:17: warning: unused variable 'flags' [-Wunused-variable]
   mm/rmap.c: In function 'page_is_young':
   mm/rmap.c:1568:13: error: invalid storage class for function 'invalid_migration_vma'
    static bool invalid_migration_vma(struct vm_area_struct *vma, void *arg)
                ^~~~~~~~~~~~~~~~~~~~~
   mm/rmap.c:1573:12: error: invalid storage class for function 'page_mapcount_is_zero'
    static int page_mapcount_is_zero(struct page *page)
               ^~~~~~~~~~~~~~~~~~~~~
   mm/rmap.c:1592:52: error: parameter 2 ('flags') has incomplete type
    int try_to_unmap(struct page *page, enum ttu_flags flags)
                                                       ^~~~~
   mm/rmap.c:1592:5: error: function declaration isn't a prototype [-Werror=strict-prototypes]
    int try_to_unmap(struct page *page, enum ttu_flags flags)
        ^~~~~~~~~~~~
   mm/rmap.c:1631:12: error: invalid storage class for function 'page_not_mapped'
    static int page_not_mapped(struct page *page)
               ^~~~~~~~~~~~~~~
   mm/rmap.c:1651:1: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
    int try_to_munlock(struct page *page)
    ^~~
   mm/rmap.c:1682:25: error: invalid storage class for function 'rmap_walk_anon_lock'
    static struct anon_vma *rmap_walk_anon_lock(struct page *page,
                            ^~~~~~~~~~~~~~~~~~~
   mm/rmap.c:1718:12: error: invalid storage class for function 'rmap_walk_anon'
    static int rmap_walk_anon(struct page *page, struct rmap_walk_control *rwc,
               ^~~~~~~~~~~~~~
   mm/rmap.c:1771:12: error: invalid storage class for function 'rmap_walk_file'
    static int rmap_walk_file(struct page *page, struct rmap_walk_control *rwc,
               ^~~~~~~~~~~~~~
   mm/rmap.c:1841:13: error: invalid storage class for function '__hugepage_set_anon_rmap'
    static void __hugepage_set_anon_rmap(struct page *page,
                ^~~~~~~~~~~~~~~~~~~~~~~~
   mm/rmap.c:1878:1: error: expected declaration or statement at end of input
    }
    ^
   In file included from mm/rmap.c:69:0:
   mm/internal.h:485:39: warning: unused variable 'gfpflag_names' [-Wunused-variable]
    extern const struct trace_print_flags gfpflag_names[];
                                          ^~~~~~~~~~~~~
   mm/internal.h:484:39: warning: unused variable 'vmaflag_names' [-Wunused-variable]
    extern const struct trace_print_flags vmaflag_names[];
                                          ^~~~~~~~~~~~~
   mm/internal.h:483:39: warning: unused variable 'pageflag_names' [-Wunused-variable]
    extern const struct trace_print_flags pageflag_names[];
                                          ^~~~~~~~~~~~~~
   mm/internal.h:443:12: warning: unused variable 'hwpoison_filter_enable' [-Wunused-variable]
    extern u32 hwpoison_filter_enable;
               ^~~~~~~~~~~~~~~~~~~~~~
   mm/internal.h:442:12: warning: unused variable 'hwpoison_filter_memcg' [-Wunused-variable]
    extern u64 hwpoison_filter_memcg;
               ^~~~~~~~~~~~~~~~~~~~~
   mm/internal.h:441:12: warning: unused variable 'hwpoison_filter_flags_value' [-Wunused-variable]
    extern u64 hwpoison_filter_flags_value;
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   mm/internal.h:440:12: warning: unused variable 'hwpoison_filter_flags_mask' [-Wunused-variable]
    extern u64 hwpoison_filter_flags_mask;
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
   mm/internal.h:439:12: warning: unused variable 'hwpoison_filter_dev_minor' [-Wunused-variable]
    extern u32 hwpoison_filter_dev_minor;
               ^~~~~~~~~~~~~~~~~~~~~~~~~
   mm/internal.h:438:12: warning: unused variable 'hwpoison_filter_dev_major' [-Wunused-variable]
    extern u32 hwpoison_filter_dev_major;
               ^~~~~~~~~~~~~~~~~~~~~~~~~
   mm/internal.h:152:12: warning: unused variable 'user_min_free_kbytes' [-Wunused-variable]
    extern int user_min_free_kbytes;
               ^~~~~~~~~~~~~~~~~~~~
   mm/internal.h:71:22: warning: unused variable 'highest_memmap_pfn' [-Wunused-variable]
    extern unsigned long highest_memmap_pfn;
                         ^~~~~~~~~~~~~~~~~~
   In file included from mm/rmap.c:63:0:
>> include/linux/page_idle.h:49:19: warning: unused variable 'page_ext' [-Wunused-variable]
     struct page_ext *page_ext = lookup_page_ext(page);
                      ^~~~~~~~
   mm/rmap.c:1878:1: warning: no return statement in function returning non-void [-Wreturn-type]
    }
    ^
   At top level:
   mm/rmap.c:1872:6: warning: 'hugepage_add_new_anon_rmap' defined but not used [-Wunused-function]
    void hugepage_add_new_anon_rmap(struct page *page,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
   mm/rmap.c:1858:6: warning: 'hugepage_add_anon_rmap' defined but not used [-Wunused-function]
    void hugepage_add_anon_rmap(struct page *page,
         ^~~~~~~~~~~~~~~~~~~~~~
   mm/rmap.c:1825:5: warning: 'rmap_walk_locked' defined but not used [-Wunused-function]
    int rmap_walk_locked(struct page *page, struct rmap_walk_control *rwc)
        ^~~~~~~~~~~~~~~~
   mm/rmap.c:1814:5: warning: 'rmap_walk' defined but not used [-Wunused-function]
    int rmap_walk(struct page *page, struct rmap_walk_control *rwc)
        ^~~~~~~~~
   mm/rmap.c:1673:6: warning: '__put_anon_vma' defined but not used [-Wunused-function]
    void __put_anon_vma(struct anon_vma *anon_vma)
         ^~~~~~~~~~~~~~
   mm/rmap.c:1651:5: warning: 'try_to_munlock' defined but not used [-Wunused-function]
    int try_to_munlock(struct page *page)
        ^~~~~~~~~~~~~~
   mm/rmap.c:1592:5: warning: 'try_to_unmap' defined but not used [-Wunused-function]
    int try_to_unmap(struct page *page, enum ttu_flags flags)
        ^~~~~~~~~~~~
   mm/rmap.c:1274:6: warning: 'page_add_file_rmap' defined but not used [-Wunused-function]
    void page_add_file_rmap(struct page *page)
         ^~~~~~~~~~~~~~~~~~
   mm/rmap.c:1246:6: warning: 'page_add_new_anon_rmap' defined but not used [-Wunused-function]
    void page_add_new_anon_rmap(struct page *page,
         ^~~~~~~~~~~~~~~~~~~~~~
   mm/rmap.c:1192:6: warning: 'do_page_add_anon_rmap' defined but not used [-Wunused-function]
    void do_page_add_anon_rmap(struct page *page,
         ^~~~~~~~~~~~~~~~~~~~~
   mm/rmap.c:1181:6: warning: 'page_add_anon_rmap' defined but not used [-Wunused-function]
    void page_add_anon_rmap(struct page *page,
         ^~~~~~~~~~~~~~~~~~
   mm/rmap.c:1094:6: warning: 'page_move_anon_rmap' defined but not used [-Wunused-function]
    void page_move_anon_rmap(struct page *page,
         ^~~~~~~~~~~~~~~~~~~
   mm/rmap.c:1058:5: warning: 'page_mkclean' defined but not used [-Wunused-function]
    int page_mkclean(struct page *page)
        ^~~~~~~~~~~~
   mm/rmap.c:968:5: warning: 'page_referenced' defined but not used [-Wunused-function]
    int page_referenced(struct page *page,
        ^~~~~~~~~~~~~~~
   mm/rmap.c:771:5: warning: 'page_mapped_in_vma' defined but not used [-Wunused-function]
    int page_mapped_in_vma(struct page *page, struct vm_area_struct *vma)
        ^~~~~~~~~~~~~~~~~~
   mm/rmap.c:723:8: warning: '__page_check_address' defined but not used [-Wunused-function]
    pte_t *__page_check_address(struct page *page, struct mm_struct *mm,
           ^~~~~~~~~~~~~~~~~~~~
   mm/rmap.c:662:15: warning: 'page_address_in_vma' defined but not used [-Wunused-function]
    unsigned long page_address_in_vma(struct page *page, struct vm_area_struct *vma)
                  ^~~~~~~~~~~~~~~~~~~
   mm/rmap.c:603:6: warning: 'try_to_unmap_flush_dirty' defined but not used [-Wunused-function]
    void try_to_unmap_flush_dirty(void)
         ^~~~~~~~~~~~~~~~~~~~~~~~
   mm/rmap.c:566:6: warning: 'page_unlock_anon_vma_read' defined but not used [-Wunused-function]
    void page_unlock_anon_vma_read(struct anon_vma *anon_vma)
         ^~~~~~~~~~~~~~~~~~~~~~~~~
   mm/rmap.c:461:18: warning: 'page_get_anon_vma' defined but not used [-Wunused-function]
    struct anon_vma *page_get_anon_vma(struct page *page)
                     ^~~~~~~~~~~~~~~~~
   mm/rmap.c:429:13: warning: 'anon_vma_init' defined but not used [-Wunused-function]
    void __init anon_vma_init(void)
                ^~~~~~~~~~~~~
   mm/rmap.c:373:6: warning: 'unlink_anon_vmas' defined but not used [-Wunused-function]
    void unlink_anon_vmas(struct vm_area_struct *vma)
         ^~~~~~~~~~~~~~~~
   mm/rmap.c:312:5: warning: 'anon_vma_fork' defined but not used [-Wunused-function]
    int anon_vma_fork(struct vm_area_struct *vma, struct vm_area_struct *pvma)
        ^~~~~~~~~~~~~
   mm/rmap.c:170:5: warning: 'anon_vma_prepare' defined but not used [-Wunused-function]
    int anon_vma_prepare(struct vm_area_struct *vma)
        ^~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
..

vim +/page_ext +49 include/linux/page_idle.h

    33		SetPageIdle(page);
    34	}
    35	
    36	static inline void clear_page_idle(struct page *page)
    37	{
    38		ClearPageIdle(page);
    39	}
    40	#else /* !CONFIG_64BIT */
    41	/*
    42	 * If there is not enough space to store Idle and Young bits in page flags, use
    43	 * page ext flags instead.
    44	 */
    45	extern struct page_ext_operations page_idle_ops;
    46	
    47	static inline bool page_is_young(struct page *page)
    48	{
  > 49		struct page_ext *page_ext = lookup_page_ext(page);
    50	
    51		if (unlikely(!page_ext)
    52			return false;
    53	
    54		return test_bit(PAGE_EXT_YOUNG, &page_ext->flags);
    55	}
    56	
    57	static inline void set_page_young(struct page *page)

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]