linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 5469/6165] uffd-common.c:636:28: warning: unused variable 'uffdio_move'
@ 2023-12-08 10:00 kernel test robot
  2023-12-08 17:27 ` Suren Baghdasaryan
  0 siblings, 1 reply; 8+ messages in thread
From: kernel test robot @ 2023-12-08 10:00 UTC (permalink / raw)
  To: Suren Baghdasaryan
  Cc: oe-kbuild-all, Linux Memory Management List, Andrew Morton

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   bc63de6e6ba0b16652c5fb4b9c9916b9e7ca1f23
commit: d02321ca0329457d5828a83b82b156e6337c4236 [5469/6165] selftests/mm: add UFFDIO_MOVE ioctl test
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/20231208/202312081716.LUUhSNS4-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/202312081716.LUUhSNS4-lkp@intel.com/

All warnings (new ones prefixed by >>):

   uffd-common.c: In function 'move_page':
   uffd-common.c:636:28: error: storage size of 'uffdio_move' isn't known
     636 |         struct uffdio_move uffdio_move;
         |                            ^~~~~~~~~~~
   uffd-common.c:643:28: error: 'UFFDIO_MOVE_MODE_ALLOW_SRC_HOLES' undeclared (first use in this function)
     643 |         uffdio_move.mode = UFFDIO_MOVE_MODE_ALLOW_SRC_HOLES;
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   uffd-common.c:643:28: note: each undeclared identifier is reported only once for each function it appears in
   uffd-common.c:645:24: error: 'UFFDIO_MOVE' undeclared (first use in this function); did you mean 'UFFDIO_COPY'?
     645 |         if (ioctl(ufd, UFFDIO_MOVE, &uffdio_move)) {
         |                        ^~~~~~~~~~~
         |                        UFFDIO_COPY
>> uffd-common.c:636:28: warning: unused variable 'uffdio_move' [-Wunused-variable]
     636 |         struct uffdio_move uffdio_move;
         |                            ^~~~~~~~~~~
--
   uffd-unit-tests.c:1323:42: error: 'UFFD_FEATURE_MOVE' undeclared here (not in a function); did you mean 'UFFD_EVENT_REMOVE'?
    1323 |                 .uffd_feature_required = UFFD_FEATURE_MOVE,
         |                                          ^~~~~~~~~~~~~~~~~
         |                                          UFFD_EVENT_REMOVE
   uffd-common.c: In function 'move_page':
   uffd-common.c:636:28: error: storage size of 'uffdio_move' isn't known
     636 |         struct uffdio_move uffdio_move;
         |                            ^~~~~~~~~~~
   uffd-common.c:643:28: error: 'UFFDIO_MOVE_MODE_ALLOW_SRC_HOLES' undeclared (first use in this function)
     643 |         uffdio_move.mode = UFFDIO_MOVE_MODE_ALLOW_SRC_HOLES;
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   uffd-common.c:643:28: note: each undeclared identifier is reported only once for each function it appears in
   uffd-common.c:645:24: error: 'UFFDIO_MOVE' undeclared (first use in this function); did you mean 'UFFDIO_COPY'?
     645 |         if (ioctl(ufd, UFFDIO_MOVE, &uffdio_move)) {
         |                        ^~~~~~~~~~~
         |                        UFFDIO_COPY
>> uffd-common.c:636:28: warning: unused variable 'uffdio_move' [-Wunused-variable]
     636 |         struct uffdio_move uffdio_move;
         |                            ^~~~~~~~~~~

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-12-08 22:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-08 10:00 [linux-next:master 5469/6165] uffd-common.c:636:28: warning: unused variable 'uffdio_move' kernel test robot
2023-12-08 17:27 ` Suren Baghdasaryan
2023-12-08 18:05   ` Andrew Morton
2023-12-08 18:06     ` Suren Baghdasaryan
2023-12-08 18:09       ` Suren Baghdasaryan
2023-12-08 18:14         ` Andrew Morton
2023-12-08 22:17           ` Suren Baghdasaryan
2023-12-08 18:06   ` Suren Baghdasaryan

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