From: kernel test robot <lkp@intel.com>
To: Suren Baghdasaryan <surenb@google.com>, akpm@linux-foundation.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
kent.overstreet@linux.dev, corbet@lwn.net, arnd@arndb.de,
mcgrof@kernel.org, rppt@kernel.org, paulmck@kernel.org,
thuth@redhat.com, tglx@linutronix.de, bp@alien8.de,
xiongwei.song@windriver.com, ardb@kernel.org, david@redhat.com,
vbabka@suse.cz, mhocko@suse.com, hannes@cmpxchg.org,
roman.gushchin@linux.dev, dave@stgolabs.net, willy@infradead.org,
liam.howlett@oracle.com, pasha.tatashin@soleen.com,
souravpanda@google.com, keescook@chromium.org, dennis@kernel.org,
jhubbard@nvidia.com, yuzhao@google.com, vvvvvv@google.com,
rostedt@goodmis.org, iamjoonsoo.kim@lge.com, rientjes@google.com
Subject: Re: [PATCH v3 3/5] alloc_tag: populate memory for module tags as needed
Date: Fri, 18 Oct 2024 20:01:18 +0800 [thread overview]
Message-ID: <202410181939.vLqV33c7-lkp@intel.com> (raw)
In-Reply-To: <20241014203646.1952505-4-surenb@google.com>
Hi Suren,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 828d7267c42c2aab3877c08b4bb00b1e56769557]
url: https://github.com/intel-lab-lkp/linux/commits/Suren-Baghdasaryan/maple_tree-add-mas_for_each_rev-helper/20241015-044156
base: 828d7267c42c2aab3877c08b4bb00b1e56769557
patch link: https://lore.kernel.org/r/20241014203646.1952505-4-surenb%40google.com
patch subject: [PATCH v3 3/5] alloc_tag: populate memory for module tags as needed
config: i386-randconfig-006-20241018 (https://download.01.org/0day-ci/archive/20241018/202410181939.vLqV33c7-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241018/202410181939.vLqV33c7-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/202410181939.vLqV33c7-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> lib/alloc_tag.c:394:4: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
393 | pr_err("Failed to map %lu bytes for module allocation tags\n",
| ~~~
| %u
394 | MODULE_ALLOC_TAG_VMAP_SIZE);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:533:33: note: expanded from macro 'pr_err'
533 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/printk.h:490:60: note: expanded from macro 'printk'
490 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/printk.h:462:19: note: expanded from macro 'printk_index_wrap'
462 | _p_func(_fmt, ##__VA_ARGS__); \
| ~~~~ ^~~~~~~~~~~
lib/alloc_tag.c:386:36: note: expanded from macro 'MODULE_ALLOC_TAG_VMAP_SIZE'
386 | #define MODULE_ALLOC_TAG_VMAP_SIZE (100000 * sizeof(struct alloc_tag))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +394 lib/alloc_tag.c
5b662b363f38b01 Suren Baghdasaryan 2024-10-14 387
5b662b363f38b01 Suren Baghdasaryan 2024-10-14 388 static int __init alloc_mod_tags_mem(void)
5b662b363f38b01 Suren Baghdasaryan 2024-10-14 389 {
f0d7ffe60ce5cf0 Suren Baghdasaryan 2024-10-14 390 /* Map space to copy allocation tags */
f0d7ffe60ce5cf0 Suren Baghdasaryan 2024-10-14 391 vm_module_tags = execmem_vmap(EXECMEM_MODULE_DATA, MODULE_ALLOC_TAG_VMAP_SIZE);
f0d7ffe60ce5cf0 Suren Baghdasaryan 2024-10-14 392 if (!vm_module_tags) {
f0d7ffe60ce5cf0 Suren Baghdasaryan 2024-10-14 393 pr_err("Failed to map %lu bytes for module allocation tags\n",
5b662b363f38b01 Suren Baghdasaryan 2024-10-14 @394 MODULE_ALLOC_TAG_VMAP_SIZE);
f0d7ffe60ce5cf0 Suren Baghdasaryan 2024-10-14 395 module_tags.start_addr = 0;
5b662b363f38b01 Suren Baghdasaryan 2024-10-14 396 return -ENOMEM;
f0d7ffe60ce5cf0 Suren Baghdasaryan 2024-10-14 397 }
5b662b363f38b01 Suren Baghdasaryan 2024-10-14 398
f0d7ffe60ce5cf0 Suren Baghdasaryan 2024-10-14 399 vm_module_tags->pages = kmalloc_array(get_vm_area_size(vm_module_tags) >> PAGE_SHIFT,
f0d7ffe60ce5cf0 Suren Baghdasaryan 2024-10-14 400 sizeof(struct page *), GFP_KERNEL | __GFP_ZERO);
f0d7ffe60ce5cf0 Suren Baghdasaryan 2024-10-14 401 if (!vm_module_tags->pages) {
f0d7ffe60ce5cf0 Suren Baghdasaryan 2024-10-14 402 free_vm_area(vm_module_tags);
f0d7ffe60ce5cf0 Suren Baghdasaryan 2024-10-14 403 return -ENOMEM;
f0d7ffe60ce5cf0 Suren Baghdasaryan 2024-10-14 404 }
f0d7ffe60ce5cf0 Suren Baghdasaryan 2024-10-14 405
f0d7ffe60ce5cf0 Suren Baghdasaryan 2024-10-14 406 module_tags.start_addr = (unsigned long)vm_module_tags->addr;
5b662b363f38b01 Suren Baghdasaryan 2024-10-14 407 module_tags.end_addr = module_tags.start_addr + MODULE_ALLOC_TAG_VMAP_SIZE;
5b662b363f38b01 Suren Baghdasaryan 2024-10-14 408
5b662b363f38b01 Suren Baghdasaryan 2024-10-14 409 return 0;
5b662b363f38b01 Suren Baghdasaryan 2024-10-14 410 }
5b662b363f38b01 Suren Baghdasaryan 2024-10-14 411
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next parent reply other threads:[~2024-10-18 12:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20241014203646.1952505-4-surenb@google.com>
2024-10-18 12:01 ` kernel test robot [this message]
2024-10-18 15:45 ` [PATCH v3 3/5] alloc_tag: populate memory for module tags as needed Suren Baghdasaryan
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=202410181939.vLqV33c7-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=ardb@kernel.org \
--cc=arnd@arndb.de \
--cc=bp@alien8.de \
--cc=corbet@lwn.net \
--cc=dave@stgolabs.net \
--cc=david@redhat.com \
--cc=dennis@kernel.org \
--cc=hannes@cmpxchg.org \
--cc=iamjoonsoo.kim@lge.com \
--cc=jhubbard@nvidia.com \
--cc=keescook@chromium.org \
--cc=kent.overstreet@linux.dev \
--cc=liam.howlett@oracle.com \
--cc=llvm@lists.linux.dev \
--cc=mcgrof@kernel.org \
--cc=mhocko@suse.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pasha.tatashin@soleen.com \
--cc=paulmck@kernel.org \
--cc=rientjes@google.com \
--cc=roman.gushchin@linux.dev \
--cc=rostedt@goodmis.org \
--cc=rppt@kernel.org \
--cc=souravpanda@google.com \
--cc=surenb@google.com \
--cc=tglx@linutronix.de \
--cc=thuth@redhat.com \
--cc=vbabka@suse.cz \
--cc=vvvvvv@google.com \
--cc=willy@infradead.org \
--cc=xiongwei.song@windriver.com \
--cc=yuzhao@google.com \
/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