From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (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 039673C3431 for ; Mon, 23 Mar 2026 17:52:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774288345; cv=none; b=JpLTbW4iZmoIIRZInyM5PvzQEJoR3cGLuhliUt83Z4mgjC9xF9DtoKCC19QjzFYZnZzQfSsnrXnA/iX1NGJa1T3GpZfZih/Yk9+F9CKF8/OxRxcFGUEnytWHxliTnidvNbGq8EtnBs0JkTMs5Lo4CDywG18eZPbAbZDg1Cqbha0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774288345; c=relaxed/simple; bh=yapwoUzOvn7cONs7A50A3OTgvcl2QiW0T7f4g0gRLqI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qs/TJGaoBbPe6FWkx/Kb/RCJpqYK+JNrhaMFQwKkF1hoKT/lJfv5YoEiHq/79g2Fic/Cp5hoAfMp/Nw1CFjEOBCTAe6Xqpsn+YbApWMdwrZaFFqCjKrULHlQlPNYryhZTPUQa62aXIFPqI+bYPBmjxfRz5YmzwG9pVRc0MHKfMk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=gQPlF6KP; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="gQPlF6KP" Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id B7C9240E019D; Mon, 23 Mar 2026 17:52:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id C8O-fQG2EmVU; Mon, 23 Mar 2026 17:52:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1774288336; bh=WC06XyReJTx1ZYTKnoBsE6lWpjKg/jJfsSzHm3Raf4o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gQPlF6KPp1bnwI+WamXAor/zQfkv//LCZ54nKCpsIECEi4H9dZ4GqPrFOKAGIegeB jHOlzOcKX4h8PI6mho0eQ617auuCN2solJkZ0EthM1DbER8U/6vm2PxQB2vsmFLFzw 7EuFMmjg8ZS0ewzkBtZDtRZP4rZeJeb7YzGVA4gtWkS00Zp1wwg4984oswDdgmwa+O tIOhkjp3oHTBllP6NIwiWkNba8+oBwV8fWTTjgNTNfFQSsc7k8vyVNXDRso6473GWk QU2GazOfFO/Lz7EdA96Ar1hCT2BE9kgIpL23BUkhszAGPcoszjs1ZCvx0iDzwRh+1O bwdbUPs9U7FCSGvAKTI91ASCWIO/NnAFuHPCHn37K0Sgu5kJjdqeRgqsDRgwgkXmK7 SkWPXf649k6MXoVxGG7NAXKcyfm1C9IvCHmdG/QH7CtaRKIKHQTMyPQSmr/r1BwvCd eHFAWq6VN8khp7PxhKNZJVfUJKQi/cvB5TAKUoQVX67x/aVqpoMhcWwutwuaCKDgMv fdh06FDUGd7jDc9Y/l0lDeNtF2jVupSwLU6lPAyszsq42YffwDsMqX+ZGQ36ynO2cx bR74CXHGz7M3vKXxraMincG4nC+QX11B5p7aAfcsTy9Pzh2+b4DU2tmT0bZvrU2Q2Q P241HozSMwvRy9xhv63gtxqA= Received: from zn.tnic (p5de8e020.dip0.t-ipconnect.de [93.232.224.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with UTF8SMTPSA id 6334D40E0031; Mon, 23 Mar 2026 17:51:58 +0000 (UTC) Date: Mon, 23 Mar 2026 18:51:51 +0100 From: Borislav Petkov To: Maciej Wieczor-Retman Cc: tglx@kernel.org, peterz@infradead.org, xin@zytor.com, maciej.wieczor-retman@intel.com, babu.moger@amd.com, chang.seok.bae@intel.com, sohil.mehta@intel.com, dave.hansen@linux.intel.com, jpoimboe@kernel.org, elena.reshetova@intel.com, hpa@zytor.com, pawan.kumar.gupta@linux.intel.com, ak@linux.intel.com, darwi@linutronix.de, mingo@redhat.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v11 2/4] x86/cpu: Check if feature string is non-zero Message-ID: <20260323175151.GIacF9t0vrWxk1L9sB@fat_crate.local> References: <20260323140222.GCacFH7gxMNOw-smj4@fat_crate.local> <20260323162324.GFacFo_LVNMJtPT6w8@fat_crate.local> 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=utf-8 Content-Disposition: inline In-Reply-To: On Mon, Mar 23, 2026 at 04:58:20PM +0000, Maciej Wieczor-Retman wrote: > Ah sorry, it's a bit of a misunderstanding, the X86_CAP_BUF_SIZE refers only to > the value that's needed for a buffer when the word:bit format is returned. > Otherwise the const char * is returned from the x86_cap_flags[] array. Yes, I know that. That's why I said: "But this macro name is generically saying, this is the cap string size. Which makes it misleading." > So I guess the constant name should be different? Maybe X86_CAP_NUM_BUF_SIZE? #define X86_NAMELESS_FEAT_STRLEN or so. Your naming must be explicit and denote for what this is used. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette