From: kernel test robot <lkp@intel.com>
To: Brendan Jackman <jackmanb@google.com>,
Andrew Morton <akpm@linux-foundation.org>,
David Hildenbrand <david@redhat.com>,
Oscar Salvador <osalvador@suse.de>
Cc: oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>,
Johannes Weiner <hannes@cmpxchg.org>,
Vlastimil Babka <vbabka@suse.cz>,
linux-kernel@vger.kernel.org,
Brendan Jackman <jackmanb@google.com>
Subject: Re: [PATCH] mm/page_alloc: Add lockdep assertion for pageblock type change
Date: Sat, 1 Mar 2025 07:42:41 +0800 [thread overview]
Message-ID: <202503010632.CEkonAAQ-lkp@intel.com> (raw)
In-Reply-To: <20250227-pageblock-lockdep-v1-1-3701efb331bb@google.com>
Hi Brendan,
kernel test robot noticed the following build errors:
[auto build test ERROR on d58172d128acbafa2295aa17cc96e28260da9a86]
url: https://github.com/intel-lab-lkp/linux/commits/Brendan-Jackman/mm-page_alloc-Add-lockdep-assertion-for-pageblock-type-change/20250228-002107
base: d58172d128acbafa2295aa17cc96e28260da9a86
patch link: https://lore.kernel.org/r/20250227-pageblock-lockdep-v1-1-3701efb331bb%40google.com
patch subject: [PATCH] mm/page_alloc: Add lockdep assertion for pageblock type change
config: i386-buildonly-randconfig-005-20250301 (https://download.01.org/0day-ci/archive/20250301/202503010632.CEkonAAQ-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250301/202503010632.CEkonAAQ-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503010632.CEkonAAQ-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/x86/include/asm/bug.h:99,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:6,
from mm/page_alloc.c:19:
mm/page_alloc.c: In function 'set_pageblock_migratetype':
>> mm/page_alloc.c:421:17: error: implicit declaration of function 'in_mem_hotplug' [-Werror=implicit-function-declaration]
421 | in_mem_hotplug() ||
| ^~~~~~~~~~~~~~
include/asm-generic/bug.h:171:32: note: in definition of macro 'WARN_ON'
171 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~
include/linux/lockdep.h:282:14: note: in expansion of macro 'WARN_ON_ONCE'
282 | do { WARN_ON_ONCE(debug_locks && !(cond)); } while (0)
| ^~~~~~~~~~~~
mm/page_alloc.c:420:9: note: in expansion of macro 'lockdep_assert_once'
420 | lockdep_assert_once(system_state == SYSTEM_BOOTING ||
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/in_mem_hotplug +421 mm/page_alloc.c
417
418 void set_pageblock_migratetype(struct page *page, int migratetype)
419 {
420 lockdep_assert_once(system_state == SYSTEM_BOOTING ||
> 421 in_mem_hotplug() ||
422 lockdep_is_held(&page_zone(page)->lock));
423
424 if (unlikely(page_group_by_mobility_disabled &&
425 migratetype < MIGRATE_PCPTYPES))
426 migratetype = MIGRATE_UNMOVABLE;
427
428 set_pfnblock_flags_mask(page, (unsigned long)migratetype,
429 page_to_pfn(page), MIGRATETYPE_MASK);
430 }
431
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2025-02-28 23:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-27 16:15 Brendan Jackman
2025-02-27 22:33 ` Andrew Morton
2025-02-28 9:20 ` Brendan Jackman
2025-02-28 10:12 ` Vlastimil Babka
2025-02-28 17:31 ` kernel test robot
2025-02-28 18:28 ` Johannes Weiner
2025-03-03 11:18 ` Andy Shevchenko
2025-03-03 23:13 ` Stephen Rothwell
2025-03-04 10:18 ` Brendan Jackman
2025-03-04 10:31 ` David Hildenbrand
2025-02-28 23:42 ` kernel 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=202503010632.CEkonAAQ-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=david@redhat.com \
--cc=hannes@cmpxchg.org \
--cc=jackmanb@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=osalvador@suse.de \
--cc=vbabka@suse.cz \
/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