[mmotm:master 133/276] include/linux/memcontrol.h:743:35: error: parameter 2 ('idx') has incomplete type

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

 



tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   5b220005fda0593464fc4549eea586e597bf783c
commit: 305552ab63f28e26d836c82e30b81899d5a919d3 [133/276] mm: memcontrol: re-use node VM page state enum
config: i386-tinyconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 305552ab63f28e26d836c82e30b81899d5a919d3
        # save the attached .config to linux build tree
        make ARCH=i386 

Note: the mmotm/master HEAD 5b220005fda0593464fc4549eea586e597bf783c builds fine.
      It only hurts bisectibility.

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

   In file included from include/linux/swap.h:8:0,
                    from include/linux/suspend.h:4,
                    from arch/x86/kernel/asm-offsets.c:12:
>> include/linux/memcontrol.h:743:13: warning: 'enum mem_cgroup_stat_index' declared inside parameter list will not be visible outside of this definition or declaration
           enum mem_cgroup_stat_index idx)
                ^~~~~~~~~~~~~~~~~~~~~
>> include/linux/memcontrol.h:743:35: error: parameter 2 ('idx') has incomplete type
           enum mem_cgroup_stat_index idx)
                                      ^~~
   include/linux/memcontrol.h:742:29: error: function declaration isn't a prototype [-Werror=strict-prototypes]
    static inline unsigned long mem_cgroup_read_stat(struct mem_cgroup *memcg,
                                ^~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
   make[2]: *** [arch/x86/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2

vim +743 include/linux/memcontrol.h

49426420 Johannes Weiner 2013-10-16  737  static inline bool mem_cgroup_oom_synchronize(bool wait)
3812c8c8 Johannes Weiner 2013-09-12  738  {
3812c8c8 Johannes Weiner 2013-09-12  739  	return false;
3812c8c8 Johannes Weiner 2013-09-12  740  }
3812c8c8 Johannes Weiner 2013-09-12  741  
fbb9f7c4 Johannes Weiner 2017-04-07  742  static inline unsigned long mem_cgroup_read_stat(struct mem_cgroup *memcg,
fbb9f7c4 Johannes Weiner 2017-04-07 @743  						 enum mem_cgroup_stat_index idx)
fbb9f7c4 Johannes Weiner 2017-04-07  744  {
fbb9f7c4 Johannes Weiner 2017-04-07  745  	return 0;
fbb9f7c4 Johannes Weiner 2017-04-07  746  }

:::::: The code at line 743 was first introduced by commit
:::::: fbb9f7c42acf2f168ca1eb86cd98dd9100155fe2 mm: vmscan: fix IO/refault regression in cache workingset transition

:::::: TO: Johannes Weiner <hannes@xxxxxxxxxxx>
:::::: CC: Johannes Weiner <hannes@xxxxxxxxxxx>

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