The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Rohit Jain <rohit.k.jain@oracle.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	eas-dev@lists.linaro.org, peterz@infradead.org, mingo@redhat.com,
	joelaf@google.com, atish.patra@oracle.com,
	vincent.guittot@linaro.org, dietmar.eggemann@arm.com,
	morten.rasmussen@arm.com
Subject: Re: [PATCH 3/3] ignore_this_patch: Fixing compilation error on Peter's tree
Date: Sun, 1 Oct 2017 08:32:53 +0800	[thread overview]
Message-ID: <201710010827.tXEh21Zn%fengguang.wu@intel.com> (raw)
In-Reply-To: <1506384126-2862-4-git-send-email-rohit.k.jain@oracle.com>

[-- Attachment #1: Type: text/plain, Size: 5956 bytes --]

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.campbell@citrix.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 11120 bytes --]

      reply	other threads:[~2017-10-01  0:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-26  0:02 [PATCH v4 0/3] sched/fair: Introduce scaled capacity awareness in enqueue Rohit Jain
2017-09-26  0:02 ` [PATCH 1/3] sched/fair: Introduce scaled capacity awareness in find_idlest_cpu code path Rohit Jain
2017-09-26  2:51   ` joelaf
2017-09-26  4:40     ` Rohit Jain
2017-09-26  6:59       ` Joel Fernandes
2017-09-26  0:02 ` [PATCH 2/3] sched/fair: Introduce scaled capacity awareness in select_idle_sibling " Rohit Jain
2017-09-26  6:53   ` Joel Fernandes
2017-09-26 19:48     ` Rohit Jain
2017-09-28 10:53       ` joelaf
2017-09-28 15:09         ` Rohit Jain
2017-10-03  4:52           ` Joel Fernandes
2017-10-04  0:21             ` Rohit Jain
2017-09-26  0:02 ` [PATCH 3/3] ignore_this_patch: Fixing compilation error on Peter's tree Rohit Jain
2017-10-01  0:32   ` kbuild test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201710010827.tXEh21Zn%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=atish.patra@oracle.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=eas-dev@lists.linaro.org \
    --cc=joelaf@google.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=morten.rasmussen@arm.com \
    --cc=peterz@infradead.org \
    --cc=rohit.k.jain@oracle.com \
    --cc=vincent.guittot@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox