From: kernel test robot <lkp@intel.com>
To: Nhat Pham <nphamcs@gmail.com>, akpm@linux-foundation.org
Cc: oe-kbuild-all@lists.linux.dev, hannes@cmpxchg.org,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
bfoster@redhat.com, willy@infradead.org, arnd@arndb.de,
linux-api@vger.kernel.org, kernel-team@meta.com
Subject: Re: [PATCH v11 2/3] cachestat: implement cachestat syscall
Date: Thu, 9 Mar 2023 22:08:26 +0800 [thread overview]
Message-ID: <202303092111.mhDcYB71-lkp@intel.com> (raw)
In-Reply-To: <20230308032748.609510-3-nphamcs@gmail.com>
Hi Nhat,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on 1440f576022887004f719883acb094e7e0dd4944]
url: https://github.com/intel-lab-lkp/linux/commits/Nhat-Pham/workingset-refactor-LRU-refault-to-expose-refault-recency-check/20230308-112932
base: 1440f576022887004f719883acb094e7e0dd4944
patch link: https://lore.kernel.org/r/20230308032748.609510-3-nphamcs%40gmail.com
patch subject: [PATCH v11 2/3] cachestat: implement cachestat syscall
config: arm-randconfig-r046-20230308 (https://download.01.org/0day-ci/archive/20230309/202303092111.mhDcYB71-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.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://github.com/intel-lab-lkp/linux/commit/ca34a4daf11f6fbb9731205af7acd06fe620e447
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Nhat-Pham/workingset-refactor-LRU-refault-to-expose-refault-recency-check/20230308-112932
git checkout ca34a4daf11f6fbb9731205af7acd06fe620e447
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash kernel/bpf/ mm/ prepare
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303092111.mhDcYB71-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> <stdin>:1565:2: warning: #warning syscall cachestat not implemented [-Wcpp]
--
In file included from include/linux/filter.h:11,
from include/linux/bpf_verifier.h:9,
from tools/lib/bpf/relo_core.c:8:
>> include/linux/compat.h:821:45: warning: 'struct cachestat' declared inside parameter list will not be visible outside of this definition or declaration
821 | compat_arg_u64(off), struct cachestat __user *cstat,
| ^~~~~~~~~
--
In file included from include/linux/filter.h:11,
from kernel/bpf/core.c:21:
>> include/linux/compat.h:821:45: warning: 'struct cachestat' declared inside parameter list will not be visible outside of this definition or declaration
821 | compat_arg_u64(off), struct cachestat __user *cstat,
| ^~~~~~~~~
kernel/bpf/core.c:1628:12: warning: no previous prototype for 'bpf_probe_read_kernel' [-Wmissing-prototypes]
1628 | u64 __weak bpf_probe_read_kernel(void *dst, u32 size, const void *unsafe_ptr)
| ^~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/filter.h:11,
from include/linux/bpf_verifier.h:9,
from kernel/bpf/btf.c:19:
>> include/linux/compat.h:821:45: warning: 'struct cachestat' declared inside parameter list will not be visible outside of this definition or declaration
821 | compat_arg_u64(off), struct cachestat __user *cstat,
| ^~~~~~~~~
kernel/bpf/btf.c: In function 'btf_seq_show':
kernel/bpf/btf.c:6786:29: warning: function 'btf_seq_show' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
6786 | seq_vprintf((struct seq_file *)show->target, fmt, args);
| ^~~~~~~~
kernel/bpf/btf.c: In function 'btf_snprintf_show':
kernel/bpf/btf.c:6823:9: warning: function 'btf_snprintf_show' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
6823 | len = vsnprintf(show->target, ssnprintf->len_left, fmt, args);
| ^~~
--
>> mm/filemap.c:4034:6: warning: no previous prototype for 'ksys_cachestat' [-Wmissing-prototypes]
4034 | long ksys_cachestat(unsigned int fd, size_t len, loff_t off,
| ^~~~~~~~~~~~~~
--
>> <stdin>:1565:2: warning: #warning syscall cachestat not implemented [-Wcpp]
--
>> <stdin>:1565:2: warning: #warning syscall cachestat not implemented [-Wcpp]
vim +821 include/linux/compat.h
809
810 /* net/socket.c */
811 asmlinkage long compat_sys_recvfrom(int fd, void __user *buf, compat_size_t len,
812 unsigned flags, struct sockaddr __user *addr,
813 int __user *addrlen);
814 asmlinkage long compat_sys_sendmsg(int fd, struct compat_msghdr __user *msg,
815 unsigned flags);
816 asmlinkage long compat_sys_recvmsg(int fd, struct compat_msghdr __user *msg,
817 unsigned int flags);
818
819 /* mm/filemap.c */
820 asmlinkage long compat_sys_cachestat(unsigned int fd, size_t len,
> 821 compat_arg_u64(off), struct cachestat __user *cstat,
822 unsigned int flags);
823
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
next prev parent reply other threads:[~2023-03-09 14:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-08 3:27 [PATCH v11 0/3] cachestat: a new syscall for page cache state of files Nhat Pham
2023-03-08 3:27 ` [PATCH v11 1/3] workingset: refactor LRU refault to expose refault recency check Nhat Pham
2023-03-08 3:27 ` [PATCH v11 2/3] cachestat: implement cachestat syscall Nhat Pham
2023-03-09 14:08 ` kernel test robot [this message]
2023-03-09 14:08 ` kernel test robot
2023-03-09 17:02 ` Nhat Pham
2023-03-08 3:27 ` [PATCH v11 3/3] selftests: Add selftests for cachestat Nhat Pham
2023-03-14 23:00 ` [PATCH v11 0/3] cachestat: a new syscall for page cache state of files Andrew Morton
2023-03-15 17:09 ` Johannes Weiner
2023-03-15 19:14 ` Andres Freund
2023-03-24 21:59 ` Nhat Pham
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=202303092111.mhDcYB71-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=arnd@arndb.de \
--cc=bfoster@redhat.com \
--cc=hannes@cmpxchg.org \
--cc=kernel-team@meta.com \
--cc=linux-api@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=nphamcs@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=willy@infradead.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