From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2A344330659 for ; Tue, 24 Feb 2026 20:24:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771964689; cv=none; b=H8EFfQ69o9rGHwYqJVTHUMf5paL+Nyttr0sIPu2LChzYi6bB5ZuXjpeFYvUW2mW2wjrwfeUjtrdpSsA+jTYlBTOLz+bEuCFJz/R/B0M/QUpW5pVGf7B6BHHCH8HPbHN+7FxFv83NLxAtJEfO6um+meL+Koz33RQr99pJE5ZJMqE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771964689; c=relaxed/simple; bh=9UkqNS7l72Irll7teaOjmwJ+UAT6VapCcjUa1lWATIA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=UIcTTO8oKAxtFuXtx+GyJbiKTNVglCQ5QcWnaJySe45sIwMeZ/+boa4fZjzuJl2mhExB23xp8FY0bUyXHV3tjFekUL0ucT9bO/KB2jLYjLt1sL75o7zPU5mXChObuKIlmXdrwiWVAFJaD3gWeLABY8IsSNhLKl3eJIXQ8whXxQY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Fod/xTC7; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Fod/xTC7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4DEAC116D0; Tue, 24 Feb 2026 20:24:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771964688; bh=9UkqNS7l72Irll7teaOjmwJ+UAT6VapCcjUa1lWATIA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Fod/xTC7NJReJ4aJB8DIJf18fw7u4y4ClWBYQUj6gEY5Ovd5pgjdb28BxpnBPGSLb u2/wwBmKjkaTO+463g2JtSnSf3+2vRMzzJdmpobY5bKHQ6+xWc9+ir4riPtn6hE8FZ BpUlqlpUVZytRxsINns+TmjjEq6g4ZAWupXaaWf47m2t3/YcvT9VXvVFbGUKi7JAzQ /ReJlzXuWKaFGIn2ubLncyRP51JzW4975mIO8hoS+7CbdSqi4UafbNwIdrSpAwKNGF ZljHojxd5GelwxdGxTczHZpUsR3DF9x0wJ7XaFSTcq8PnoqapHWs7EtwwJ3iRXDNka yp1O6gzkP41tg== From: Thomas Gleixner To: Maciej Wieczor-Retman , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra Cc: m.wieczorretman@pm.me, Maciej Wieczor-Retman , linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 2/3] x86/cpu: Check if feature string is non-zero In-Reply-To: References: Date: Tue, 24 Feb 2026 21:24:45 +0100 Message-ID: <87pl5tubxu.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Tue, Feb 24 2026 at 12:40, Maciej Wieczor-Retman wrote: > diff --git a/include/linux/cpu.h b/include/linux/cpu.h > index 8239cd95a005..acd3f0f4867a 100644 > --- a/include/linux/cpu.h > +++ b/include/linux/cpu.h > @@ -233,4 +233,6 @@ int arch_get_indir_br_lp_status(struct task_struct *t, unsigned long __user *sta > int arch_set_indir_br_lp_status(struct task_struct *t, unsigned long status); > int arch_lock_indir_br_lp_status(struct task_struct *t, unsigned long status); > > +const char *x86_cap_name(unsigned int bit, char *buf); This x86 specific muck has no place in the generic header file. That's what architecture specific headers are for. Thanks, tglx