lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 17 Nov 2021 14:41:17 +0800
From:   kernel test robot <lkp@...el.com>
To:     Luis Chamberlain <mcgrof@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [mcgrof-next:20211116-sysctl-cleanups-v3 18/20]
 include/linux/sysctl.h:227:30: error: 'register_sysctl_mount_point' defined
 but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211116-sysctl-cleanups-v3
head:   06113f1d9a2d0669964adfa2e0128bd50e56b621
commit: 39ba9159476b6d86288f95f4cb62ad7055680395 [18/20] sysctl: add helper to register a sysctl mount point
config: sparc-randconfig-r004-20211116 (attached as .config)
compiler: sparc-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/mcgrof/linux-next.git/commit/?id=39ba9159476b6d86288f95f4cb62ad7055680395
        git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
        git fetch --no-tags mcgrof-next 20211116-sysctl-cleanups-v3
        git checkout 39ba9159476b6d86288f95f4cb62ad7055680395
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=sparc 

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

All errors (new ones prefixed by >>):

   In file included from include/linux/key.h:17,
                    from include/linux/cred.h:13,
                    from include/linux/sched/signal.h:10,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/proc_fs.h:10,
                    from arch/sparc/include/asm/prom.h:18,
                    from include/linux/of.h:250,
                    from arch/sparc/include/asm/openprom.h:15,
                    from arch/sparc/include/asm/kdebug_32.h:11,
                    from arch/sparc/include/asm/kdebug.h:7,
                    from include/linux/kdebug.h:5,
                    from arch/sparc/kernel/traps_32.c:19:
   include/linux/sysctl.h: In function 'register_sysctl_mount_point':
   include/linux/sysctl.h:230:1: error: expected ';' before '}' token
     230 | }
         | ^
   arch/sparc/kernel/traps_32.c: At top level:
   arch/sparc/kernel/traps_32.c:368:6: error: no previous prototype for 'trap_init' [-Werror=missing-prototypes]
     368 | void trap_init(void)
         |      ^~~~~~~~~
   In file included from include/linux/key.h:17,
                    from include/linux/cred.h:13,
                    from include/linux/sched/signal.h:10,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/proc_fs.h:10,
                    from arch/sparc/include/asm/prom.h:18,
                    from include/linux/of.h:250,
                    from arch/sparc/include/asm/openprom.h:15,
                    from arch/sparc/include/asm/kdebug_32.h:11,
                    from arch/sparc/include/asm/kdebug.h:7,
                    from include/linux/kdebug.h:5,
                    from arch/sparc/kernel/traps_32.c:19:
>> include/linux/sysctl.h:227:30: error: 'register_sysctl_mount_point' defined but not used [-Werror=unused-function]
     227 | static struct sysctl_header *register_sysctl_mount_point(const char *path)
         |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
   In file included from include/linux/key.h:17,
                    from include/linux/cred.h:13,
                    from include/linux/sched/signal.h:10,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/seq_file.h:12,
                    from arch/sparc/kernel/irq_32.c:16:
   include/linux/sysctl.h: In function 'register_sysctl_mount_point':
   include/linux/sysctl.h:230:1: error: expected ';' before '}' token
     230 | }
         | ^
   At top level:
>> include/linux/sysctl.h:227:30: error: 'register_sysctl_mount_point' defined but not used [-Werror=unused-function]
     227 | static struct sysctl_header *register_sysctl_mount_point(const char *path)
         |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
   In file included from include/linux/key.h:17,
                    from include/linux/cred.h:13,
                    from include/linux/sched/signal.h:10,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/proc_fs.h:10,
                    from arch/sparc/include/asm/prom.h:18,
                    from include/linux/of.h:250,
                    from arch/sparc/include/asm/openprom.h:15,
                    from arch/sparc/include/asm/oplib_32.h:12,
                    from arch/sparc/include/asm/oplib.h:7,
                    from arch/sparc/include/asm/pgtable_32.h:32,
                    from arch/sparc/include/asm/pgtable.h:7,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from arch/sparc/kernel/smp_32.c:19:
   include/linux/sysctl.h: In function 'register_sysctl_mount_point':
   include/linux/sysctl.h:230:1: error: expected ';' before '}' token
     230 | }
         | ^
   arch/sparc/kernel/smp_32.c: At top level:
   arch/sparc/kernel/smp_32.c:177:5: error: no previous prototype for 'setup_profiling_timer' [-Werror=missing-prototypes]
     177 | int setup_profiling_timer(unsigned int multiplier)
         |     ^~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/key.h:17,
                    from include/linux/cred.h:13,
                    from include/linux/sched/signal.h:10,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/proc_fs.h:10,
                    from arch/sparc/include/asm/prom.h:18,
                    from include/linux/of.h:250,
                    from arch/sparc/include/asm/openprom.h:15,
                    from arch/sparc/include/asm/oplib_32.h:12,
                    from arch/sparc/include/asm/oplib.h:7,
                    from arch/sparc/include/asm/pgtable_32.h:32,
                    from arch/sparc/include/asm/pgtable.h:7,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from arch/sparc/kernel/smp_32.c:19:
>> include/linux/sysctl.h:227:30: error: 'register_sysctl_mount_point' defined but not used [-Werror=unused-function]
     227 | static struct sysctl_header *register_sysctl_mount_point(const char *path)
         |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
   In file included from include/linux/umh.h:9,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:17,
                    from include/linux/moduleloader.h:6,
                    from arch/sparc/kernel/module.c:8:
   include/linux/sysctl.h: In function 'register_sysctl_mount_point':
   include/linux/sysctl.h:230:1: error: expected ';' before '}' token
     230 | }
         | ^
   arch/sparc/kernel/module.c: In function 'module_frob_arch_sections':
   arch/sparc/kernel/module.c:62:15: error: variable 'strtab' set but not used [-Werror=unused-but-set-variable]
      62 |         char *strtab;
         |               ^~~~~~
   In file included from include/linux/umh.h:9,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:17,
                    from include/linux/moduleloader.h:6,
                    from arch/sparc/kernel/module.c:8:
   At top level:
>> include/linux/sysctl.h:227:30: error: 'register_sysctl_mount_point' defined but not used [-Werror=unused-function]
     227 | static struct sysctl_header *register_sysctl_mount_point(const char *path)
         |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
   In file included from include/linux/key.h:17,
                    from include/linux/cred.h:13,
                    from include/linux/sched/signal.h:10,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/seq_file.h:12,
                    from arch/sparc/mm/srmmu.c:12:
   include/linux/sysctl.h: In function 'register_sysctl_mount_point':
   include/linux/sysctl.h:230:1: error: expected ';' before '}' token
     230 | }
         | ^
   arch/sparc/mm/srmmu.c: In function 'poke_hypersparc':
   arch/sparc/mm/srmmu.c:1081:32: error: variable 'clear' set but not used [-Werror=unused-but-set-variable]
    1081 |         volatile unsigned long clear;
         |                                ^~~~~
   arch/sparc/mm/srmmu.c: In function 'smp_flush_page_for_dma':
   arch/sparc/mm/srmmu.c:1639:13: error: cast between incompatible function types from 'void (*)(long unsigned int)' to 'void (*)(long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)' [-Werror=cast-function-type]
    1639 |         xc1((smpfunc_t) local_ops->page_for_dma, page);
         |             ^
   arch/sparc/mm/srmmu.c: In function 'smp_flush_cache_mm':
   arch/sparc/mm/srmmu.c:1662:29: error: cast between incompatible function types from 'void (*)(struct mm_struct *)' to 'void (*)(long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)' [-Werror=cast-function-type]
    1662 |                         xc1((smpfunc_t) local_ops->cache_mm, (unsigned long) mm);
         |                             ^
   arch/sparc/mm/srmmu.c: In function 'smp_flush_tlb_mm':
   arch/sparc/mm/srmmu.c:1674:29: error: cast between incompatible function types from 'void (*)(struct mm_struct *)' to 'void (*)(long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)' [-Werror=cast-function-type]
    1674 |                         xc1((smpfunc_t) local_ops->tlb_mm, (unsigned long) mm);
         |                             ^
   arch/sparc/mm/srmmu.c: In function 'smp_flush_cache_range':
   arch/sparc/mm/srmmu.c:1694:29: error: cast between incompatible function types from 'void (*)(struct vm_area_struct *, long unsigned int,  long unsigned int)' to 'void (*)(long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)' [-Werror=cast-function-type]
    1694 |                         xc3((smpfunc_t) local_ops->cache_range,
         |                             ^
   arch/sparc/mm/srmmu.c: In function 'smp_flush_tlb_range':
   arch/sparc/mm/srmmu.c:1711:29: error: cast between incompatible function types from 'void (*)(struct vm_area_struct *, long unsigned int,  long unsigned int)' to 'void (*)(long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)' [-Werror=cast-function-type]
    1711 |                         xc3((smpfunc_t) local_ops->tlb_range,
         |                             ^
   arch/sparc/mm/srmmu.c: In function 'smp_flush_cache_page':
   arch/sparc/mm/srmmu.c:1726:29: error: cast between incompatible function types from 'void (*)(struct vm_area_struct *, long unsigned int)' to 'void (*)(long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)' [-Werror=cast-function-type]
    1726 |                         xc2((smpfunc_t) local_ops->cache_page,
         |                             ^
   arch/sparc/mm/srmmu.c: In function 'smp_flush_tlb_page':
   arch/sparc/mm/srmmu.c:1741:29: error: cast between incompatible function types from 'void (*)(struct vm_area_struct *, long unsigned int)' to 'void (*)(long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)' [-Werror=cast-function-type]
    1741 |                         xc2((smpfunc_t) local_ops->tlb_page,
         |                             ^
   arch/sparc/mm/srmmu.c: In function 'smp_flush_page_to_ram':
   arch/sparc/mm/srmmu.c:1756:13: error: cast between incompatible function types from 'void (*)(long unsigned int)' to 'void (*)(long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)' [-Werror=cast-function-type]
    1756 |         xc1((smpfunc_t) local_ops->page_to_ram, page);
         |             ^
   arch/sparc/mm/srmmu.c: In function 'smp_flush_sig_insns':
   arch/sparc/mm/srmmu.c:1767:21: error: cast between incompatible function types from 'void (*)(struct mm_struct *, long unsigned int)' to 'void (*)(long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)' [-Werror=cast-function-type]
    1767 |                 xc2((smpfunc_t) local_ops->sig_insns,
         |                     ^
   In file included from include/linux/key.h:17,
                    from include/linux/cred.h:13,
                    from include/linux/sched/signal.h:10,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/seq_file.h:12,
                    from arch/sparc/mm/srmmu.c:12:
   At top level:
>> include/linux/sysctl.h:227:30: error: 'register_sysctl_mount_point' defined but not used [-Werror=unused-function]
     227 | static struct sysctl_header *register_sysctl_mount_point(const char *path)
         |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
   In file included from include/linux/key.h:17,
                    from include/linux/cred.h:13,
                    from include/linux/sched/signal.h:10,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/proc_fs.h:10,
                    from arch/sparc/include/asm/prom.h:18,
                    from include/linux/of.h:250,
                    from arch/sparc/include/asm/openprom.h:15,
                    from arch/sparc/include/asm/oplib_32.h:12,
                    from arch/sparc/include/asm/oplib.h:7,
                    from arch/sparc/include/asm/pgtable_32.h:32,
                    from arch/sparc/include/asm/pgtable.h:7,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from arch/sparc/mm/leon_mm.c:14:
   include/linux/sysctl.h: In function 'register_sysctl_mount_point':
   include/linux/sysctl.h:230:1: error: expected ';' before '}' token
     230 | }
         | ^
   arch/sparc/mm/leon_mm.c: In function 'leon_swprobe':
   arch/sparc/mm/leon_mm.c:42:32: error: variable 'paddrbase' set but not used [-Werror=unused-but-set-variable]
      42 |         unsigned int lvl, pte, paddrbase;
         |                                ^~~~~~~~~
   In file included from include/linux/key.h:17,
                    from include/linux/cred.h:13,
                    from include/linux/sched/signal.h:10,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/proc_fs.h:10,
                    from arch/sparc/include/asm/prom.h:18,
                    from include/linux/of.h:250,
                    from arch/sparc/include/asm/openprom.h:15,
                    from arch/sparc/include/asm/oplib_32.h:12,
                    from arch/sparc/include/asm/oplib.h:7,
                    from arch/sparc/include/asm/pgtable_32.h:32,
                    from arch/sparc/include/asm/pgtable.h:7,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from arch/sparc/mm/leon_mm.c:14:
   At top level:
>> include/linux/sysctl.h:227:30: error: 'register_sysctl_mount_point' defined but not used [-Werror=unused-function]
     227 | static struct sysctl_header *register_sysctl_mount_point(const char *path)
         |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
   In file included from include/linux/umh.h:9,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:17,
                    from arch/sparc/lib/cmpdi2.c:2:
   include/linux/sysctl.h: In function 'register_sysctl_mount_point':
   include/linux/sysctl.h:230:1: error: expected ';' before '}' token
     230 | }
         | ^
   arch/sparc/lib/cmpdi2.c: At top level:
   arch/sparc/lib/cmpdi2.c:6:11: error: no previous prototype for '__cmpdi2' [-Werror=missing-prototypes]
       6 | word_type __cmpdi2(long long a, long long b)
         |           ^~~~~~~~
   In file included from include/linux/umh.h:9,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:17,
                    from arch/sparc/lib/cmpdi2.c:2:
>> include/linux/sysctl.h:227:30: error: 'register_sysctl_mount_point' defined but not used [-Werror=unused-function]
     227 | static struct sysctl_header *register_sysctl_mount_point(const char *path)
         |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
   In file included from include/linux/umh.h:9,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:17,
                    from arch/sparc/lib/ucmpdi2.c:2:
   include/linux/sysctl.h: In function 'register_sysctl_mount_point':
   include/linux/sysctl.h:230:1: error: expected ';' before '}' token
     230 | }
         | ^
   arch/sparc/lib/ucmpdi2.c: At top level:
   arch/sparc/lib/ucmpdi2.c:5:11: error: no previous prototype for '__ucmpdi2' [-Werror=missing-prototypes]
       5 | word_type __ucmpdi2(unsigned long long a, unsigned long long b)
         |           ^~~~~~~~~
   In file included from include/linux/umh.h:9,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:17,
                    from arch/sparc/lib/ucmpdi2.c:2:
>> include/linux/sysctl.h:227:30: error: 'register_sysctl_mount_point' defined but not used [-Werror=unused-function]
     227 | static struct sysctl_header *register_sysctl_mount_point(const char *path)
         |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/register_sysctl_mount_point +227 include/linux/sysctl.h

   226	
 > 227	static struct sysctl_header *register_sysctl_mount_point(const char *path)
   228	{
   229		return NULL
   230	}
   231	

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

Download attachment ".config.gz" of type "application/gzip" (27931 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ