From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3E0A3C28 for ; Tue, 11 Jul 2023 05:34:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689053684; x=1720589684; h=date:from:to:cc:subject:message-id:mime-version; bh=P4hIUj0/J7wb6irHvZQTQVuY4pj5w8l5U6YgNh082AA=; b=SI8FpDQ4T56K9BCp1B3rPVYVeCKEN6UlfIRPep2MMhUPvuKeFdAzg5aw sFzO0vFTx37GRTV8KwMXQ4NZNh2wxpwPb97U6rcEsV6eKEYQ5O9wvPSNQ rOGbsjwWV4jgfMk8DEZoNBPP+TC2BA5yjVdNOkXZNrWsR9+/n5uJ2sHhc dAu6230j4UAdI4dwiCvnkg7cjq1x0sUpzSswxRvwyRvKBP1QOiOjlT8pv gWDQo9uSyykjOrCL3FNlQyuxncWkI6+tNZPARcmMwVyvRaJr/MXhjdLhe Wq7DsdXfL208FhXWAemzPOaNUNzmMzdsxAm28qX2si+2rrtny3xNIQTzY A==; X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="361991284" X-IronPort-AV: E=Sophos;i="6.01,196,1684825200"; d="scan'208";a="361991284" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2023 22:34:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="720948870" X-IronPort-AV: E=Sophos;i="6.01,196,1684825200"; d="scan'208";a="720948870" Received: from lkp-server01.sh.intel.com (HELO c544d7fc5005) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 10 Jul 2023 22:34:43 -0700 Received: from kbuild by c544d7fc5005 with local (Exim 4.96) (envelope-from ) id 1qJ61K-0004M9-0t; Tue, 11 Jul 2023 05:34:42 +0000 Date: Tue, 11 Jul 2023 13:34:38 +0800 From: kernel test robot To: Amir Goldstein Cc: oe-kbuild-all@lists.linux.dev Subject: [amir73il:start-write-safe 4/6] fs/nfsd/vfs.c:1031:20: error: implicit declaration of function 'file_access_permission'; did you mean 'file_permission'? Message-ID: <202307111306.ZDSbRFMG-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://github.com/amir73il/linux start-write-safe head: dee92d97ca4a2052cddcf1875441bdbe30e50b13 commit: 28373848f0ca3bbfb2c00e4b210d8b498d145d98 [4/6] splice: move permission hook out of splice_direct_to_actor() config: alpha-defconfig (https://download.01.org/0day-ci/archive/20230711/202307111306.ZDSbRFMG-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230711/202307111306.ZDSbRFMG-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202307111306.ZDSbRFMG-lkp@intel.com/ All errors (new ones prefixed by >>): fs/nfsd/vfs.c: In function 'nfsd_splice_read': >> fs/nfsd/vfs.c:1031:20: error: implicit declaration of function 'file_access_permission'; did you mean 'file_permission'? [-Werror=implicit-function-declaration] 1031 | host_err = file_access_permission(file, MAY_READ); | ^~~~~~~~~~~~~~~~~~~~~~ | file_permission cc1: some warnings being treated as errors vim +1031 fs/nfsd/vfs.c 1005 1006 /** 1007 * nfsd_splice_read - Perform a VFS read using a splice pipe 1008 * @rqstp: RPC transaction context 1009 * @fhp: file handle of file to be read 1010 * @file: opened struct file of file to be read 1011 * @offset: starting byte offset 1012 * @count: IN: requested number of bytes; OUT: number of bytes read 1013 * @eof: OUT: set non-zero if operation reached the end of the file 1014 * 1015 * Returns nfs_ok on success, otherwise an nfserr stat value is 1016 * returned. 1017 */ 1018 __be32 nfsd_splice_read(struct svc_rqst *rqstp, struct svc_fh *fhp, 1019 struct file *file, loff_t offset, unsigned long *count, 1020 u32 *eof) 1021 { 1022 struct splice_desc sd = { 1023 .len = 0, 1024 .total_len = *count, 1025 .pos = offset, 1026 .u.data = rqstp, 1027 }; 1028 ssize_t host_err; 1029 1030 trace_nfsd_read_splice(rqstp, fhp, offset, *count); > 1031 host_err = file_access_permission(file, MAY_READ); 1032 if (!host_err) 1033 host_err = splice_direct_to_actor(file, &sd, 1034 nfsd_direct_splice_actor); 1035 return nfsd_finish_read(rqstp, fhp, file, offset, count, eof, host_err); 1036 } 1037 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki