From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 0C6ED205E11; Wed, 5 Mar 2025 10:28:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741170532; cv=none; b=X1OqT8eWTPD6nCCUsdaaXX3vKhqMlcd+2VeFIUUHyOjrdoA1uP6tdi2pc2QyeeWAlN9t8PZzLXfbpvv2mJmGbSzf1dRXlZfgBA8k9kxNH95wP8ib81EEFPK3VsbKYdTyVBSDR6Im07UC7I2r36s0kK8kaqrXryorhQ5+gLH8IlU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741170532; c=relaxed/simple; bh=OpKK5OcF3YIghJMe6FXcLvbApwXLZUKwa8gH3NGHGko=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=a4oj1HeiM3KW+KQPSQRgLKEveb639MwuKBLNNPxrFSrwvFaTrRR6c9BxD4eko/MCvrgaCTC+mceewVVRbjjwIc9QTFkjrLYAs7TUa1DN+XC1qKGJWX/Vbgo2FpsTurU9Hl7fBR+b3U4lCNar2GS/kz5vS4CZrd9eSzWjVBWzsJI= 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=kukFHpsU; arc=none smtp.client-ip=198.175.65.10 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kukFHpsU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1741170531; x=1772706531; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=OpKK5OcF3YIghJMe6FXcLvbApwXLZUKwa8gH3NGHGko=; b=kukFHpsUgNZKf3kJW+cgk1/lSlEc4uP8EcabUX8CQ4JgczoU+0103A/Z hJhMvRQBWBFbX37R6WcLlrgOm2qlAhPAsiVHJ5Er+SNoMlU/XcOVRVdfh XRM7UiEEqMQygEtXU0Kv9+yAncJGkME5sA3Lw4dSgGLylZ4aLAbDCo5Bu W/hHIx2W1aSEyrnMhr0ylonCcjlK13ovcYjLhP554xcQWBUJnoLj8Qn+U Ihl6EIZH3e6rlnK3XVQQwMutX+My4ZY68nOKhevqczHTfX0DoHGwLJdYY Z1V6Uxax1eZgGvINVyQHA6gnMKcUwqqy8KuhrQzJblDpyV+Dh3761ivHq g==; X-CSE-ConnectionGUID: /RFoQ8yGQ5OMWrAaMIus9A== X-CSE-MsgGUID: BiU2j8llRNWAdRZk2HMNIQ== X-IronPort-AV: E=McAfee;i="6700,10204,11363"; a="59540314" X-IronPort-AV: E=Sophos;i="6.14,222,1736841600"; d="scan'208";a="59540314" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Mar 2025 02:28:51 -0800 X-CSE-ConnectionGUID: 8p1v9zbjRtuJLZoKCZbe3w== X-CSE-MsgGUID: YDSajSqQRjKMSs1A9JRr9Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="149606738" Received: from lkp-server02.sh.intel.com (HELO 76cde6cc1f07) ([10.239.97.151]) by fmviesa001.fm.intel.com with ESMTP; 05 Mar 2025 02:28:48 -0800 Received: from kbuild by 76cde6cc1f07 with local (Exim 4.96) (envelope-from ) id 1tplza-000KpW-0o; Wed, 05 Mar 2025 10:28:46 +0000 Date: Wed, 5 Mar 2025 18:28:39 +0800 From: kernel test robot To: Seyediman Seyedarab , jack@suse.cz, amir73il@gmail.com Cc: oe-kbuild-all@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linux.dev, Seyediman Seyedarab Subject: Re: [PATCH] inotify: disallow watches on unsupported filesystems Message-ID: <202503051755.5uktuxba-lkp@intel.com> References: <20250304080044.7623-1-ImanDevel@gmail.com> Precedence: bulk X-Mailing-List: linux-fsdevel@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: <20250304080044.7623-1-ImanDevel@gmail.com> Hi Seyediman, kernel test robot noticed the following build errors: [auto build test ERROR on jack-fs/fsnotify] [also build test ERROR on linus/master v6.14-rc5 next-20250304] [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/Seyediman-Seyedarab/inotify-disallow-watches-on-unsupported-filesystems/20250304-160213 base: https://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs.git fsnotify patch link: https://lore.kernel.org/r/20250304080044.7623-1-ImanDevel%40gmail.com patch subject: [PATCH] inotify: disallow watches on unsupported filesystems config: s390-randconfig-002-20250305 (https://download.01.org/0day-ci/archive/20250305/202503051755.5uktuxba-lkp@intel.com/config) compiler: s390-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250305/202503051755.5uktuxba-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/202503051755.5uktuxba-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/kernel.h:16, from include/linux/cpumask.h:11, from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/spinlock.h:63, from include/linux/wait.h:9, from include/linux/wait_bit.h:8, from include/linux/fs.h:6, from fs/notify/inotify/inotify_user.c:17: fs/notify/inotify/inotify_user.c: In function 'is_unwatchable_fs': >> fs/notify/inotify/inotify_user.c:702:40: error: 'unwatchable_fs' undeclared (first use in this function); did you mean 'is_unwatchable_fs'? 702 | for (int i = 0; i < ARRAY_SIZE(unwatchable_fs); i++) | ^~~~~~~~~~~~~~ include/linux/array_size.h:11:33: note: in definition of macro 'ARRAY_SIZE' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ fs/notify/inotify/inotify_user.c:702:40: note: each undeclared identifier is reported only once for each function it appears in 702 | for (int i = 0; i < ARRAY_SIZE(unwatchable_fs); i++) | ^~~~~~~~~~~~~~ include/linux/array_size.h:11:33: note: in definition of macro 'ARRAY_SIZE' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from include/linux/file.h:9, from fs/notify/inotify/inotify_user.c:16: include/linux/compiler.h:245:77: error: expression in static assertion is not an integer 245 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ include/linux/compiler.h:249:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG' 249 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(__same_type((a), &(a)[0]), "must be array") | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ fs/notify/inotify/inotify_user.c:702:29: note: in expansion of macro 'ARRAY_SIZE' 702 | for (int i = 0; i < ARRAY_SIZE(unwatchable_fs); i++) | ^~~~~~~~~~ vim +702 fs/notify/inotify/inotify_user.c 698 699 700 static inline bool is_unwatchable_fs(struct inode *inode) 701 { > 702 for (int i = 0; i < ARRAY_SIZE(unwatchable_fs); i++) 703 if (inode->i_sb->s_magic == unwatchable_fs[i]) 704 return true; 705 return false; 706 } 707 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki