mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [brauner:pidfd.pidfd_get_task 2/2] mm/madvise.c:1241:22: error: unused variable 'f_flags'
@ 2021-09-14  0:45 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-14  0:45 UTC (permalink / raw)
  To: Christian Brauner; +Cc: kbuild-all, linux-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git pidfd.pidfd_get_task
head:   fd3fd0b4eb17f0ef3605d7bfd85ef7c97b93ec61
commit: fd3fd0b4eb17f0ef3605d7bfd85ef7c97b93ec61 [2/2] mm: use pidfd_get_task()
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 11.2.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/brauner/linux.git/commit/?id=fd3fd0b4eb17f0ef3605d7bfd85ef7c97b93ec61
        git remote add brauner https://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git
        git fetch --no-tags brauner pidfd.pidfd_get_task
        git checkout fd3fd0b4eb17f0ef3605d7bfd85ef7c97b93ec61
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nios2 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   mm/madvise.c: In function '__do_sys_process_madvise':
>> mm/madvise.c:1241:22: error: unused variable 'f_flags' [-Werror=unused-variable]
    1241 |         unsigned int f_flags;
         |                      ^~~~~~~
   cc1: all warnings being treated as errors


vim +/f_flags +1241 mm/madvise.c

ecb8ac8b1f1469 Minchan Kim 2020-10-17  1230  
ecb8ac8b1f1469 Minchan Kim 2020-10-17  1231  SYSCALL_DEFINE5(process_madvise, int, pidfd, const struct iovec __user *, vec,
ecb8ac8b1f1469 Minchan Kim 2020-10-17  1232  		size_t, vlen, int, behavior, unsigned int, flags)
ecb8ac8b1f1469 Minchan Kim 2020-10-17  1233  {
ecb8ac8b1f1469 Minchan Kim 2020-10-17  1234  	ssize_t ret;
ecb8ac8b1f1469 Minchan Kim 2020-10-17  1235  	struct iovec iovstack[UIO_FASTIOV], iovec;
ecb8ac8b1f1469 Minchan Kim 2020-10-17  1236  	struct iovec *iov = iovstack;
ecb8ac8b1f1469 Minchan Kim 2020-10-17  1237  	struct iov_iter iter;
ecb8ac8b1f1469 Minchan Kim 2020-10-17  1238  	struct task_struct *task;
ecb8ac8b1f1469 Minchan Kim 2020-10-17  1239  	struct mm_struct *mm;
ecb8ac8b1f1469 Minchan Kim 2020-10-17  1240  	size_t total_len;
ecb8ac8b1f1469 Minchan Kim 2020-10-17 @1241  	unsigned int f_flags;

:::::: The code at line 1241 was first introduced by commit
:::::: ecb8ac8b1f146915aa6b96449b66dd48984caacc mm/madvise: introduce process_madvise() syscall: an external memory hinting API

:::::: TO: Minchan Kim <minchan@kernel.org>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-14  0:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14  0:45 [brauner:pidfd.pidfd_get_task 2/2] mm/madvise.c:1241:22: error: unused variable 'f_flags' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®