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]
Message-ID: <202205010039.npL4Bn76-lkp@intel.com>
Date:   Sun, 1 May 2022 00:40:54 +0800
From:   kernel test robot <lkp@...el.com>
To:     Dai Ngo <dai.ngo@...cle.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org, Chuck Lever <chuck.lever@...cle.com>
Subject: [cel:nfsd-courteous-server 3/7] fs/nfsd/nfsd.h:180:59: error:
 expected ';' after return statement

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux nfsd-courteous-server
head:   d5b28de053a07bebbf61359a4bbceeaef3b48962
commit: 5e58ea722404baa3052c44d8e68129502b34f135 [3/7] NFSD: move create/destroy of laundry_wq to init_nfsd and exit_nfsd
config: i386-randconfig-a015 (https://download.01.org/0day-ci/archive/20220501/202205010039.npL4Bn76-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 400775649969b9baf3bc2a510266e7912bb16ae9)
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/cel/linux.git/commit/?id=5e58ea722404baa3052c44d8e68129502b34f135
        git remote add cel git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
        git fetch --no-tags cel nfsd-courteous-server
        git checkout 5e58ea722404baa3052c44d8e68129502b34f135
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/

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 fs/nfsd/nfssvc.c:27:
>> fs/nfsd/nfsd.h:180:59: error: expected ';' after return statement
   static inline int nfsd4_create_laundry_wq(void) { return 0 };
                                                             ^
                                                             ;
   1 error generated.
--
   In file included from fs/nfsd/export.c:21:
>> fs/nfsd/nfsd.h:180:59: error: expected ';' after return statement
   static inline int nfsd4_create_laundry_wq(void) { return 0 };
                                                             ^
                                                             ;
   fs/nfsd/export.c:979:17: warning: variable 'inode' set but not used [-Wunused-but-set-variable]
           struct inode            *inode;
                                    ^
   1 warning and 1 error generated.
--
   In file included from fs/nfsd/trace.c:4:
   In file included from fs/nfsd/trace.h:442:
   In file included from fs/nfsd/state.h:42:
>> fs/nfsd/nfsd.h:180:59: error: expected ';' after return statement
   static inline int nfsd4_create_laundry_wq(void) { return 0 };
                                                             ^
                                                             ;
   In file included from fs/nfsd/trace.c:4:
   In file included from fs/nfsd/trace.h:1130:
   include/trace/define_trace.h:95:10: fatal error: './trace.h' file not found
   #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/define_trace.h:90:32: note: expanded from macro 'TRACE_INCLUDE'
   # define TRACE_INCLUDE(system) __TRACE_INCLUDE(system)
                                  ^~~~~~~~~~~~~~~~~~~~~~~
   include/trace/define_trace.h:87:34: note: expanded from macro '__TRACE_INCLUDE'
   # define __TRACE_INCLUDE(system) __stringify(TRACE_INCLUDE_PATH/system.h)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/stringify.h:10:27: note: expanded from macro '__stringify'
   #define __stringify(x...)       __stringify_1(x)
                                   ^~~~~~~~~~~~~~~~
   include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1'
   #define __stringify_1(x...)     #x
                                   ^~
   <scratch space>:45:1: note: expanded from here
   "./trace.h"
   ^~~~~~~~~~~
   2 errors generated.


vim +180 fs/nfsd/nfsd.h

   150	
   151	/* 
   152	 * NFSv4 State
   153	 */
   154	#ifdef CONFIG_NFSD_V4
   155	extern unsigned long max_delegations;
   156	int nfsd4_init_slabs(void);
   157	void nfsd4_free_slabs(void);
   158	int nfs4_state_start(void);
   159	int nfs4_state_start_net(struct net *net);
   160	void nfs4_state_shutdown(void);
   161	void nfs4_state_shutdown_net(struct net *net);
   162	int nfs4_reset_recoverydir(char *recdir);
   163	char * nfs4_recoverydir(void);
   164	bool nfsd4_spo_must_allow(struct svc_rqst *rqstp);
   165	int nfsd4_create_laundry_wq(void);
   166	void nfsd4_destroy_laundry_wq(void);
   167	#else
   168	static inline int nfsd4_init_slabs(void) { return 0; }
   169	static inline void nfsd4_free_slabs(void) { }
   170	static inline int nfs4_state_start(void) { return 0; }
   171	static inline int nfs4_state_start_net(struct net *net) { return 0; }
   172	static inline void nfs4_state_shutdown(void) { }
   173	static inline void nfs4_state_shutdown_net(struct net *net) { }
   174	static inline int nfs4_reset_recoverydir(char *recdir) { return 0; }
   175	static inline char * nfs4_recoverydir(void) {return NULL; }
   176	static inline bool nfsd4_spo_must_allow(struct svc_rqst *rqstp)
   177	{
   178		return false;
   179	}
 > 180	static inline int nfsd4_create_laundry_wq(void) { return 0 };
   181	static inline void nfsd4_destroy_laundry_wq(void) {};
   182	#endif
   183	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ