From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (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 6C5101A5B9F; Wed, 19 Mar 2025 14:13:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742393631; cv=none; b=hbSYdE0ysf72fSL/2eEjY/eNnZNy+B9SUw9pHrctTusd52tXpFakHP0e8PJURd0s7L600Ps704quh8iC4kKeUOvAoy3S6hTnlO6NMWlFIv/JMQdZnQQMOb6Cr5jiAcj58n5Xo/PxqfLkKR6QfV5qudpqX8znn08VBfP7XBuUp1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742393631; c=relaxed/simple; bh=d1MWREdtzbaCDovZLjkEXWp+HndwpoCRn1SJTnJ/uMo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BHDZaNKsNwBk+lbxvGZy1a6XlQDZq0aZEBev9nX1nS8xmKJh5XtdAz2PimDHBTcI4rIlp/+88oHnE28RoGKe9K/+pyaSTMRtI8Kw8tKhZb+aMHVjFwR+BpRR2OD/JbR+zsY0dCWVEGKxUkPhHJZMPjRso14PjDSBG6LYZ2uXj7I= 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=f53qLrxY; arc=none smtp.client-ip=198.175.65.17 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="f53qLrxY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1742393626; x=1773929626; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=d1MWREdtzbaCDovZLjkEXWp+HndwpoCRn1SJTnJ/uMo=; b=f53qLrxYze4GHv2yzKXcxbqQSHxahSToJWPJm14+E9mQNLOTwFMRkCAm WTNyN579YCsRp3arS5pAXWNgx2JQszkFvKB0FM+zEvcXqGFQs0gaS9Knd ZB5PqZ6T/EMMRDy2TcpmuemNy7xOqa46m5sYgnS+MdNV2rsQewMiqhpbq HA+KALRGZpPikIhRs2Tb1FN8WymbRZI2HW3jyWijblvrI3oAM+yF+hff+ fIdqnHkuFhbNr6tcHl6TW8nEDtbzHIwH4EuvaGLguXjYZFcYy4m/Boy9m dAuW+6e9fNE6A/ZhBh0XYYQx2G/tKJ+Soo5lRCDtCCTeWSiKotNbGm3F7 g==; X-CSE-ConnectionGUID: iU7Bx0iRSOaYGuYJkfCdgw== X-CSE-MsgGUID: Bg2uY3DcQq6ZHgmvqCdsKg== X-IronPort-AV: E=McAfee;i="6700,10204,11378"; a="43601139" X-IronPort-AV: E=Sophos;i="6.14,259,1736841600"; d="scan'208";a="43601139" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Mar 2025 07:13:45 -0700 X-CSE-ConnectionGUID: GNLzpN9bRTqY6QzqszugxQ== X-CSE-MsgGUID: SlLQD+qyR1C3JCVaRA2HlQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.14,259,1736841600"; d="scan'208";a="123126308" Received: from lkp-server02.sh.intel.com (HELO a4747d147074) ([10.239.97.151]) by fmviesa010.fm.intel.com with ESMTP; 19 Mar 2025 07:13:41 -0700 Received: from kbuild by a4747d147074 with local (Exim 4.96) (envelope-from ) id 1tuuA0-000Eis-2c; Wed, 19 Mar 2025 14:13:33 +0000 Date: Wed, 19 Mar 2025 22:11:44 +0800 From: kernel test robot To: "Ahmed S. Darwish" , Ingo Molnar , Dave Hansen , Borislav Petkov Cc: oe-kbuild-all@lists.linux.dev, Thomas Gleixner , Andrew Cooper , "H. Peter Anvin" , John Ogness , x86@kernel.org, x86-cpuid@lists.linux.dev, LKML , "Ahmed S. Darwish" Subject: Re: [PATCH v2 18/29] x86/cacheinfo: Use enums for cache descriptor types Message-ID: <202503192150.Vhannmnp-lkp@intel.com> References: <20250317164745.4754-19-darwi@linutronix.de> 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 In-Reply-To: <20250317164745.4754-19-darwi@linutronix.de> Hi Ahmed, kernel test robot noticed the following build warnings: [auto build test WARNING on 6d536cad0d55e71442b6d65500f74eb85544269e] url: https://github.com/intel-lab-lkp/linux/commits/Ahmed-S-Darwish/x86-treewide-Introduce-x86_vendor_amd_or_hygon/20250318-011153 base: 6d536cad0d55e71442b6d65500f74eb85544269e patch link: https://lore.kernel.org/r/20250317164745.4754-19-darwi%40linutronix.de patch subject: [PATCH v2 18/29] x86/cacheinfo: Use enums for cache descriptor types config: i386-randconfig-061-20250319 (https://download.01.org/0day-ci/archive/20250319/202503192150.Vhannmnp-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250319/202503192150.Vhannmnp-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/202503192150.Vhannmnp-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) drivers/cpuidle/poll_state.c: note: in included file (through arch/x86/include/asm/cpuid/api.h, arch/x86/include/asm/cpuid.h, arch/x86/include/asm/processor.h, ...): >> arch/x86/include/asm/cpuid/types.h:56:1: sparse: sparse: static assertion failed: "sizeof(enum _cache_table_type) == 1" -- drivers/cpuidle/cpuidle-haltpoll.c: note: in included file (through arch/x86/include/asm/cpuid/api.h, arch/x86/include/asm/cpuid.h, arch/x86/include/asm/processor.h, ...): >> arch/x86/include/asm/cpuid/types.h:56:1: sparse: sparse: static assertion failed: "sizeof(enum _cache_table_type) == 1" -- drivers/cpuidle/sysfs.c: note: in included file (through arch/x86/include/asm/cpuid/api.h, arch/x86/include/asm/cpuid.h, arch/x86/include/asm/processor.h, ...): >> arch/x86/include/asm/cpuid/types.h:56:1: sparse: sparse: static assertion failed: "sizeof(enum _cache_table_type) == 1" -- drivers/cpuidle/governor.c: note: in included file (through arch/x86/include/asm/cpuid/api.h, arch/x86/include/asm/cpuid.h, arch/x86/include/asm/processor.h, ...): >> arch/x86/include/asm/cpuid/types.h:56:1: sparse: sparse: static assertion failed: "sizeof(enum _cache_table_type) == 1" -- drivers/cpuidle/driver.c: note: in included file (through arch/x86/include/asm/cpuid/api.h, arch/x86/include/asm/cpuid.h, arch/x86/include/asm/processor.h, ...): >> arch/x86/include/asm/cpuid/types.h:56:1: sparse: sparse: static assertion failed: "sizeof(enum _cache_table_type) == 1" -- drivers/cpuidle/cpuidle.c: note: in included file (through arch/x86/include/asm/cpuid/api.h, arch/x86/include/asm/cpuid.h, arch/x86/include/asm/processor.h, ...): >> arch/x86/include/asm/cpuid/types.h:56:1: sparse: sparse: static assertion failed: "sizeof(enum _cache_table_type) == 1" -- drivers/cpuidle/governors/menu.c: note: in included file (through arch/x86/include/asm/cpuid/api.h, arch/x86/include/asm/cpuid.h, arch/x86/include/asm/processor.h, ...): >> arch/x86/include/asm/cpuid/types.h:56:1: sparse: sparse: static assertion failed: "sizeof(enum _cache_table_type) == 1" -- drivers/cpuidle/governors/haltpoll.c: note: in included file (through arch/x86/include/asm/cpuid/api.h, arch/x86/include/asm/cpuid.h, arch/x86/include/asm/processor.h, ...): >> arch/x86/include/asm/cpuid/types.h:56:1: sparse: sparse: static assertion failed: "sizeof(enum _cache_table_type) == 1" vim +56 arch/x86/include/asm/cpuid/types.h 45 46 /* 47 * Leaf 0x2 1-byte descriptors' cache types 48 * To be used for their mappings at cache_table[] 49 */ 50 enum _cache_table_type { 51 CACHE_L1_INST, 52 CACHE_L1_DATA, 53 CACHE_L2, 54 CACHE_L3 55 } __packed; > 56 static_assert(sizeof(enum _cache_table_type) == 1); 57 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki