From: kernel test robot <lkp@intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [arm-integrator:kernel-in-vmalloc-v5.19-rc1 18/35] arch/arm64/include/asm/memory.h:357:66: warning: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast
Date: Tue, 5 Jul 2022 08:35:14 +0800 [thread overview]
Message-ID: <202207050801.sTfIGPhl-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.19-rc1
head: 144435741b0a6f31403d3084103678da3b4f9d11
commit: 8097eb8a345273ee3c268b7f2956ce820b914ef1 [18/35] arm64: memory: Make virt_to_pfn() a static inline
config: arm64-randconfig-r011-20220703 (https://download.01.org/0day-ci/archive/20220705/202207050801.sTfIGPhl-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/commit/?id=8097eb8a345273ee3c268b7f2956ce820b914ef1
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.19-rc1
git checkout 8097eb8a345273ee3c268b7f2956ce820b914ef1
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash fs/proc/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/arm64/include/asm/thread_info.h:17,
from include/linux/thread_info.h:60,
from arch/arm64/include/asm/preempt.h:6,
from include/linux/preempt.h:78,
from arch/arm64/include/asm/percpu.h:8,
from include/linux/irqflags.h:17,
from include/linux/rcupdate.h:26,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/sched/task_stack.h:9,
from include/linux/elfcore.h:7,
from include/linux/crash_core.h:6,
from fs/proc/kcore.c:13:
fs/proc/kcore.c: In function 'kclist_add_private':
>> arch/arm64/include/asm/memory.h:357:66: warning: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Wint-conversion]
357 | __is_lm_address(__addr) && pfn_is_map_memory(virt_to_pfn(__addr)); \
| ^~~~~~
| |
| long unsigned int
fs/proc/kcore.c:203:14: note: in expansion of macro 'virt_addr_valid'
203 | if (!virt_addr_valid(ent->addr))
| ^~~~~~~~~~~~~~~
arch/arm64/include/asm/memory.h:312:53: note: expected 'const void *' but argument is of type 'long unsigned int'
312 | static inline unsigned long virt_to_pfn(const void *kaddr)
| ~~~~~~~~~~~~^~~~~
vim +/virt_to_pfn +357 arch/arm64/include/asm/memory.h
4f04d8f0054511 Catalin Marinas 2012-03-05 354
68dd8ef321626f Will Deacon 2019-08-13 355 #define virt_addr_valid(addr) ({ \
91cb2c8b072e00 Catalin Marinas 2021-02-01 356 __typeof__(addr) __addr = __tag_reset(addr); \
873ba463914cf4 Mike Rapoport 2021-06-30 @357 __is_lm_address(__addr) && pfn_is_map_memory(virt_to_pfn(__addr)); \
68dd8ef321626f Will Deacon 2019-08-13 358 })
4f04d8f0054511 Catalin Marinas 2012-03-05 359
:::::: The code at line 357 was first introduced by commit
:::::: 873ba463914cf484371cba06959d320f9d3121ca arm64: decouple check whether pfn is in linear map from pfn_valid()
:::::: TO: Mike Rapoport <rppt@linux.ibm.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-07-05 0:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202207050801.sTfIGPhl-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.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