Hi Rohit,

[auto build test ERROR on tip/sched/core]
[also build test ERROR on v4.14-rc2 next-20170929]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:    
https://github.com/0day-ci/linux/commits/Rohit-Jain/sched-fair-Introduce-scaled-capacity-awareness-in-find_idlest_cpu-code-path/20170929-060222
config: blackfin-BF533-EZKIT_defconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.0
reproduce:
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=blackfin 

All errors (new ones prefixed by >>):

   In file included from kernel/time/tick-sched.c:22:0:
   include/linux/vmstat.h: In function '__inc_zone_page_state':
   include/linux/vmstat.h:294:19: error: implicit declaration of function 
'page_zone' [-Werror=implicit-function-declaration]
     __inc_zone_state(page_zone(page), item);
                      ^~~~~~~~~
   include/linux/vmstat.h:294:19: warning: passing argument 1 of 
'__inc_zone_state' makes pointer from integer without a cast [-Wint-conversion]
   include/linux/vmstat.h:267:20: note: expected 'struct zone *' but argument 
is of type 'int'
    static inline void __inc_zone_state(struct zone *zone, enum zone_stat_item 
item)
                       ^~~~~~~~~~~~~~~~
   include/linux/vmstat.h: In function '__inc_node_page_state':
   include/linux/vmstat.h:300:19: error: implicit declaration of function 
'page_pgdat' [-Werror=implicit-function-declaration]
     __inc_node_state(page_pgdat(page), item);
                      ^~~~~~~~~~
   include/linux/vmstat.h:300:19: warning: passing argument 1 of 
'__inc_node_state' makes pointer from integer without a cast [-Wint-conversion]
   include/linux/vmstat.h:273:20: note: expected 'struct pglist_data *' but 
argument is of type 'int'
    static inline void __inc_node_state(struct pglist_data *pgdat, enum 
node_stat_item item)
                       ^~~~~~~~~~~~~~~~
   include/linux/vmstat.h: In function '__dec_zone_page_state':
   include/linux/vmstat.h:307:19: warning: passing argument 1 of 
'__dec_zone_state' makes pointer from integer without a cast [-Wint-conversion]
     __dec_zone_state(page_zone(page), item);
                      ^~~~~~~~~
   include/linux/vmstat.h:279:20: note: expected 'struct zone *' but argument 
is of type 'int'
    static inline void __dec_zone_state(struct zone *zone, enum zone_stat_item 
item)
                       ^~~~~~~~~~~~~~~~
   include/linux/vmstat.h: In function '__dec_node_page_state':
   include/linux/vmstat.h:313:19: warning: passing argument 1 of 
'__dec_node_state' makes pointer from integer without a cast [-Wint-conversion]
     __dec_node_state(page_pgdat(page), item);
                      ^~~~~~~~~~
   include/linux/vmstat.h:285:20: note: expected 'struct pglist_data *' but 
argument is of type 'int'
    static inline void __dec_node_state(struct pglist_data *pgdat, enum 
node_stat_item item)
                       ^~~~~~~~~~~~~~~~
   In file included from arch/blackfin/include/asm/uaccess.h:15:0,
                    from include/linux/uaccess.h:13,
                    from include/linux/poll.h:11,
                    from include/linux/rtc.h:51,
                    from include/linux/alarmtimer.h:7,
                    from include/linux/posix-timers.h:8,
                    from kernel/time/tick-sched.c:29:
   include/linux/mm.h: At top level:
>> include/linux/mm.h:962:28: error: conflicting types for 'page_zone'
    static inline struct zone *page_zone(const struct page *page)
                               ^~~~~~~~~
   In file included from kernel/time/tick-sched.c:22:0:
   include/linux/vmstat.h:294:19: note: previous implicit declaration of 
'page_zone' was here
     __inc_zone_state(page_zone(page), item);
                      ^~~~~~~~~
   In file included from arch/blackfin/include/asm/uaccess.h:15:0,
                    from include/linux/uaccess.h:13,
                    from include/linux/poll.h:11,
                    from include/linux/rtc.h:51,
                    from include/linux/alarmtimer.h:7,
                    from include/linux/posix-timers.h:8,
                    from kernel/time/tick-sched.c:29:
>> include/linux/mm.h:967:26: error: conflicting types for 'page_pgdat'
    static inline pg_data_t *page_pgdat(const struct page *page)
                             ^~~~~~~~~~
   In file included from kernel/time/tick-sched.c:22:0:
   include/linux/vmstat.h:300:19: note: previous implicit declaration of 
'page_pgdat' was here
     __inc_node_state(page_pgdat(page), item);
                      ^~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/page_zone +962 include/linux/mm.h

57e0a030 Mel Gorman        2012-11-12  961  
33dd4e0e Ian Campbell      2011-07-25 @962  static inline struct zone 
*page_zone(const struct page *page)
89689ae7 Christoph Lameter 2006-12-06  963  {
89689ae7 Christoph Lameter 2006-12-06  964      return 
&NODE_DATA(page_to_nid(page))->node_zones[page_zonenum(page)];
89689ae7 Christoph Lameter 2006-12-06  965  }
89689ae7 Christoph Lameter 2006-12-06  966  
75ef7184 Mel Gorman        2016-07-28 @967  static inline pg_data_t 
*page_pgdat(const struct page *page)
75ef7184 Mel Gorman        2016-07-28  968  {
75ef7184 Mel Gorman        2016-07-28  969      return 
NODE_DATA(page_to_nid(page));
75ef7184 Mel Gorman        2016-07-28  970  }
75ef7184 Mel Gorman        2016-07-28  971  

:::::: The code at line 962 was first introduced by commit
:::::: 33dd4e0ec91138c3d80e790c08a3db47426c81f2 mm: make some struct page's 
const

:::::: TO: Ian Campbell <ian.campb...@citrix.com>
:::::: CC: Linus Torvalds <torva...@linux-foundation.org>

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

Attachment: .config.gz
Description: application/gzip

Reply via email to