All of lore.kernel.org
 help / color / mirror / Atom feed
* fs/proc/task_mmu.c:743:33: warning: 'smaps_shmem_walk_ops' defined but not used
@ 2022-05-16  3:31 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-05-16  3:31 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: kbuild-all, linux-kernel, Jason Gunthorpe, Thomas Hellstrom,
	Steven Price

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   42226c989789d8da4af1de0c31070c96726d990c
commit: 7b86ac3371b70c3fd8fd95501719beb1faab719f pagewalk: separate function pointers from iterator data
date:   2 years, 8 months ago
config: i386-buildonly-randconfig-r001-20220516 (https://download.01.org/0day-ci/archive/20220516/202205161152.pu8S9frR-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7b86ac3371b70c3fd8fd95501719beb1faab719f
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 7b86ac3371b70c3fd8fd95501719beb1faab719f
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/proc/

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

All warnings (new ones prefixed by >>):

>> fs/proc/task_mmu.c:743:33: warning: 'smaps_shmem_walk_ops' defined but not used [-Wunused-const-variable=]
     743 | static const struct mm_walk_ops smaps_shmem_walk_ops = {
         |                                 ^~~~~~~~~~~~~~~~~~~~


vim +/smaps_shmem_walk_ops +743 fs/proc/task_mmu.c

   742	
 > 743	static const struct mm_walk_ops smaps_shmem_walk_ops = {
   744		.pmd_entry		= smaps_pte_range,
   745		.hugetlb_entry		= smaps_hugetlb_range,
   746		.pte_hole		= smaps_pte_hole,
   747	};
   748	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

* fs/proc/task_mmu.c:743:33: warning: 'smaps_shmem_walk_ops' defined but not used
@ 2023-04-03  9:23 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2023-04-03  9:23 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: oe-kbuild-all, linux-kernel, Jason Gunthorpe, Thomas Hellstrom,
	Steven Price

Hi Christoph,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7e364e56293bb98cae1b55fd835f5991c4e96e7d
commit: 7b86ac3371b70c3fd8fd95501719beb1faab719f pagewalk: separate function pointers from iterator data
date:   3 years, 7 months ago
config: i386-buildonly-randconfig-r004-20230403 (https://download.01.org/0day-ci/archive/20230403/202304031749.UiyJpxzF-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7b86ac3371b70c3fd8fd95501719beb1faab719f
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 7b86ac3371b70c3fd8fd95501719beb1faab719f
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 olddefconfig
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/proc/

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/202304031749.UiyJpxzF-lkp@intel.com/

All warnings (new ones prefixed by >>):

   fs/proc/task_mmu.c: In function 'pagemap_pmd_range':
   fs/proc/task_mmu.c:1367:22: warning: variable 'orig_pte' set but not used [-Wunused-but-set-variable]
    1367 |         pte_t *pte, *orig_pte;
         |                      ^~~~~~~~
   At top level:
>> fs/proc/task_mmu.c:743:33: warning: 'smaps_shmem_walk_ops' defined but not used [-Wunused-const-variable=]
     743 | static const struct mm_walk_ops smaps_shmem_walk_ops = {
         |                                 ^~~~~~~~~~~~~~~~~~~~


vim +/smaps_shmem_walk_ops +743 fs/proc/task_mmu.c

   742	
 > 743	static const struct mm_walk_ops smaps_shmem_walk_ops = {
   744		.pmd_entry		= smaps_pte_range,
   745		.hugetlb_entry		= smaps_hugetlb_range,
   746		.pte_hole		= smaps_pte_hole,
   747	};
   748	

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

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

* fs/proc/task_mmu.c:743:33: warning: 'smaps_shmem_walk_ops' defined but not used
@ 2022-09-19  6:11 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-09-19  6:11 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: kbuild-all, linux-kernel, Jason Gunthorpe, Thomas Hellstrom,
	Steven Price

Hi Christoph,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   521a547ced6477c54b4b0cc206000406c221b4d6
commit: 7b86ac3371b70c3fd8fd95501719beb1faab719f pagewalk: separate function pointers from iterator data
date:   3 years ago
config: i386-buildonly-randconfig-r005-20220919 (https://download.01.org/0day-ci/archive/20220919/202209191403.ovOXBsxR-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7b86ac3371b70c3fd8fd95501719beb1faab719f
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 7b86ac3371b70c3fd8fd95501719beb1faab719f
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 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 >>):

   fs/proc/task_mmu.c: In function 'pagemap_pmd_range':
   fs/proc/task_mmu.c:1367:22: warning: variable 'orig_pte' set but not used [-Wunused-but-set-variable]
    1367 |         pte_t *pte, *orig_pte;
         |                      ^~~~~~~~
   At top level:
>> fs/proc/task_mmu.c:743:33: warning: 'smaps_shmem_walk_ops' defined but not used [-Wunused-const-variable=]
     743 | static const struct mm_walk_ops smaps_shmem_walk_ops = {
         |                                 ^~~~~~~~~~~~~~~~~~~~


vim +/smaps_shmem_walk_ops +743 fs/proc/task_mmu.c

   742	
 > 743	static const struct mm_walk_ops smaps_shmem_walk_ops = {
   744		.pmd_entry		= smaps_pte_range,
   745		.hugetlb_entry		= smaps_hugetlb_range,
   746		.pte_hole		= smaps_pte_hole,
   747	};
   748	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

end of thread, other threads:[~2023-04-03  9:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-16  3:31 fs/proc/task_mmu.c:743:33: warning: 'smaps_shmem_walk_ops' defined but not used kernel test robot
2022-09-19  6:11 kernel test robot
2023-04-03  9:23 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.