Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp153533lqb; Thu, 23 May 2024 13:47:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWX9xkB/phyLBMpJGbmhrlIbCuSr00WZOcIKqhQElFC4YJyn27Wq0ZPxZVBPNnHtzICyCF44bEfs5yR5Yhix34spTaC1dRMhZhElZOaMA== X-Google-Smtp-Source: AGHT+IEHzTNRVRuiJuxR9SeVvLRZY9spidi3XaWlRAY1k3KUxbSiSISi6glDk4k52XpHU2WerrWx X-Received: by 2002:a05:6a21:81a3:b0:1b0:14fe:afa0 with SMTP id adf61e73a8af0-1b212d45344mr585334637.30.1716497226952; Thu, 23 May 2024 13:47:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716497226; cv=pass; d=google.com; s=arc-20160816; b=FmK/9B/1EZpTfnhQY62nbQLNI9sBD16qPdONnTTzGVYrXGYa4D6n3sM0Z5c+cJngjH 9MFk1pJphQKH4Zjcvodp/mqTG1/IJpTLGB1F7p8MrYlp0853q3oI3dJv4YcCaB7/mSCm uNl1JlDH1LiKzWd+5AsM52ASpVBmsqAb5uc+gVDXUm9brqtVgMGk6DowCdPT++El1LQ6 3wa+epCcRVBkd5Wp5co2AVXRKnAptZZzOfYsFmO6w2ZDD+na8eswuDxZNJuyTP0dFH2n /16TutIAQMiBJGXQB+7QPhnZ72WGSdxg/2ii/xJbphArQ8gAhTgZBPHiaSHgx9Gx5VR5 x+WA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=i3UAWWWNijiQAnCYp51tY8daNZvrU/tLu9KUjudH9Ug=; fh=MbHWXx15cUngEWLUDuz+zGWmJvtvtjoJQQyVjcB6v+U=; b=DQ3gTmowAz4WWfxtOP9KO95ovXLjz/XsWkkSmldBq2kMMABKBcfpmC2JkKDOpqCr8H 4OgXVW4R0IweTyP13atW8yeAJu0xXpj1TSuRjLN0qp/Heqkukm9mi6wqTEBECB8Jl9rZ jF+dj65Qv4ucuOt4jQ5ZqoubyTllTxphmYKTYf8UNKeh8kp6WhjlVfNwzdVlN3YTBDm6 4RC7z+ZfOC2g18w1TekaYnc/OZ9QaIW5x6U8Mu1TzEIMfOttr+YdjW+WvMyuD/wuiG9z 6nKIosbhWWUpG5EMuyTli107YSnRT5PPrWImqxuJwU2kUdtr8yXeRdt28HgcNCQaexOq ZWrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iGZoICi1; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-187983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187983-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6578166a384si2218924a12.283.2024.05.23.13.47.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 13:47:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iGZoICi1; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-187983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187983-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6454728440E for ; Thu, 23 May 2024 20:47:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 35C9984E0A; Thu, 23 May 2024 20:47:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="iGZoICi1" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (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 2E746839F4 for ; Thu, 23 May 2024 20:46:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716497220; cv=none; b=EmL9Lu9j25ZonNFRR+L+qZ+lIUk7MeEG3gieXHQQE4Eb8+1sR33gAChZIE1sBy0YCjx3+XbSZXBvTUyr1nv7a+DDDBrYEf/7epWy/3bzlvhPwDW9wGTBImcgNSMg8kR3BmUT/nXrvom3QKHjVko1uW2G1TzhMMbVqgcRn75Gj5s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716497220; c=relaxed/simple; bh=xZkhsNby25scCAdWs5FhZQpcKQIj7bsSVEO615BqzQw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pAsfDMVPiNTzRMIk9qvW4WKIRZW8EW9+B74JxKUyNp9WLgqf0r6VrdV+4Jy99nV4qybwMhwT/+X0SW8dBEZCuhOS6vPrpJKvfUvmYvIYw3cOIUh3dhna/OkQXCv1UyKu2GcbGOX5vk5IyVqdjNn5iCQ7n7VmejRDrRYWYlOEGTo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=iGZoICi1; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716497218; x=1748033218; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xZkhsNby25scCAdWs5FhZQpcKQIj7bsSVEO615BqzQw=; b=iGZoICi1eNxuABlRQZyv9oqQesV3QktFcQWa0EMNWA1NM5hfigI3r1IN svqqsC92Ij6VkPJ6Dhx0sXP7yE70tsJM4F+3gb6YCn2tMNoUpLb7vyX+I JymHy/W+bo1OVDGUEMtdoXGHbjpmgays+JHqTLKY7Kt71DZNt/vDUSuAT coVOuIuDxSje2jL+J3rFb00ivl69OtULm8DmNcoOt/ZOLU0s1VaTt6ovU TCp0IQdQqZTYpR6zboD6gLDkoS+LuitI0u5WqK8xEKo0uWfH8d3G0Z37I f2uqCKDPOgEQjFwCvx7bThaUGFQHEKavty2inD/M57VjDGuWo7OI3ImLK A==; X-CSE-ConnectionGUID: FUIxHH6dRBixVbuE1cMY0A== X-CSE-MsgGUID: 78NMontrQQmcqe45lyfX7Q== X-IronPort-AV: E=McAfee;i="6600,9927,11081"; a="12694240" X-IronPort-AV: E=Sophos;i="6.08,183,1712646000"; d="scan'208";a="12694240" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2024 13:46:56 -0700 X-CSE-ConnectionGUID: hnxjkh/iSUSoNhXxD4P/hA== X-CSE-MsgGUID: +OykMZGtR/e35b+SZUs5Mw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,183,1712646000"; d="scan'208";a="71213569" Received: from unknown (HELO 0610945e7d16) ([10.239.97.151]) by orviesa001.jf.intel.com with ESMTP; 23 May 2024 13:46:49 -0700 Received: from kbuild by 0610945e7d16 with local (Exim 4.96) (envelope-from ) id 1sAFKo-0003WL-2B; Thu, 23 May 2024 20:46:46 +0000 Date: Fri, 24 May 2024 04:46:26 +0800 From: kernel test robot To: Dominique Martinet , Eric Van Hensbergen , Latchesar Ionkov , Christian Schoenebeck Cc: oe-kbuild-all@lists.linux.dev, v9fs@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] 9p: v9fs_fid_find: also lookup by inode if not found dentry Message-ID: <202405240419.mUEPAfWQ-lkp@intel.com> References: <20240523113638.1196299-1-asmadeus@codewreck.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240523113638.1196299-1-asmadeus@codewreck.org> Hi Dominique, kernel test robot noticed the following build warnings: [auto build test WARNING on v6.9] [also build test WARNING on linus/master next-20240523] [cannot apply to ericvh-v9fs/for-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Dominique-Martinet/9p-v9fs_fid_find-also-lookup-by-inode-if-not-found-dentry/20240523-193912 base: v6.9 patch link: https://lore.kernel.org/r/20240523113638.1196299-1-asmadeus%40codewreck.org patch subject: [PATCH] 9p: v9fs_fid_find: also lookup by inode if not found dentry config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20240524/202405240419.mUEPAfWQ-lkp@intel.com/config) compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240524/202405240419.mUEPAfWQ-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/202405240419.mUEPAfWQ-lkp@intel.com/ All warnings (new ones prefixed by >>): fs/9p/fid.c: In function 'v9fs_fid_find': >> fs/9p/fid.c:137:9: warning: no return statement in function returning non-void [-Wreturn-type] 137 | } | ^ fs/9p/fid.c: At top level: fs/9p/fid.c:139:9: error: expected identifier or '(' before 'return' 139 | return ret; | ^~~~~~ fs/9p/fid.c:140:1: error: expected identifier or '(' before '}' token 140 | } | ^ vim +137 fs/9p/fid.c 987a64850996db Greg Kurz 2020-09-23 103 987a64850996db Greg Kurz 2020-09-23 104 3ed8491c8a75ce Eric Van Hensbergen 2005-09-09 105 /** ba17674fe02909 Latchesar Ionkov 2007-10-17 106 * v9fs_fid_find - retrieve a fid that belongs to the specified uid 3ed8491c8a75ce Eric Van Hensbergen 2005-09-09 107 * @dentry: dentry to look for fid in ba17674fe02909 Latchesar Ionkov 2007-10-17 108 * @uid: return fid that belongs to the specified user ba17674fe02909 Latchesar Ionkov 2007-10-17 109 * @any: if non-zero, return any fid associated with the dentry 3ed8491c8a75ce Eric Van Hensbergen 2005-09-09 110 * 3ed8491c8a75ce Eric Van Hensbergen 2005-09-09 111 */ 3ed8491c8a75ce Eric Van Hensbergen 2005-09-09 112 b464255699077c Eric W. Biederman 2013-01-30 113 static struct p9_fid *v9fs_fid_find(struct dentry *dentry, kuid_t uid, int any) 3ed8491c8a75ce Eric Van Hensbergen 2005-09-09 114 { ba17674fe02909 Latchesar Ionkov 2007-10-17 115 struct p9_fid *fid, *ret; bd238fb431f319 Latchesar Ionkov 2007-07-10 116 4b8e992392a246 Al Viro 2014-08-19 117 p9_debug(P9_DEBUG_VFS, " dentry: %pd (%p) uid %d any %d\n", 4b8e992392a246 Al Viro 2014-08-19 118 dentry, dentry, from_kuid(&init_user_ns, uid), b464255699077c Eric W. Biederman 2013-01-30 119 any); ba17674fe02909 Latchesar Ionkov 2007-10-17 120 ret = NULL; aaeb7ecfb48ad4 Al Viro 2013-02-28 121 /* we'll recheck under lock if there's anything to look in */ 22e424feb6658c Dominique Martinet 2022-01-29 122 if (dentry->d_fsdata) { aaeb7ecfb48ad4 Al Viro 2013-02-28 123 struct hlist_head *h = (struct hlist_head *)&dentry->d_fsdata; 9a268faa5f8627 Sohaib Mohamed 2021-10-01 124 634095dab2a200 Al Viro 2013-02-27 125 spin_lock(&dentry->d_lock); 56a79b7b021bf1 Linus Torvalds 2013-03-03 126 hlist_for_each_entry(fid, h, dlist) { b464255699077c Eric W. Biederman 2013-01-30 127 if (any || uid_eq(fid->uid, uid)) { ba17674fe02909 Latchesar Ionkov 2007-10-17 128 ret = fid; b48dbb998d70b7 Dominique Martinet 2022-06-12 129 p9_fid_get(ret); ba17674fe02909 Latchesar Ionkov 2007-10-17 130 break; ba17674fe02909 Latchesar Ionkov 2007-10-17 131 } ba17674fe02909 Latchesar Ionkov 2007-10-17 132 } 634095dab2a200 Al Viro 2013-02-27 133 spin_unlock(&dentry->d_lock); 7894f99a4c6ef6 Dominique Martinet 2024-05-23 134 } 7894f99a4c6ef6 Dominique Martinet 2024-05-23 135 if (!ret && dentry->d_inode) 1543b4c5071c54 Eric Van Hensbergen 2023-03-27 136 ret = v9fs_fid_find_inode(dentry->d_inode, false, uid, any); ba17674fe02909 Latchesar Ionkov 2007-10-17 @137 } bd238fb431f319 Latchesar Ionkov 2007-07-10 138 ba17674fe02909 Latchesar Ionkov 2007-10-17 139 return ret; 3ed8491c8a75ce Eric Van Hensbergen 2005-09-09 140 } 3ed8491c8a75ce Eric Van Hensbergen 2005-09-09 141 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki