From nobody Sun Feb 8 13:09:14 2026 Received: from imap4.hz.codethink.co.uk (imap4.hz.codethink.co.uk [188.40.203.114]) (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 606DD287511 for ; Wed, 7 Jan 2026 10:44:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.203.114 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767782686; cv=none; b=T8k5LR12feyLbWi1ClJdDekOLPVCLxjmHBC7l+pDscPHarAzUAYYj8w8GZKQfjKRjpZdHwJq93EaG/i5MDFnN5n8dvk+YFzhzYe1S+dJo9G23WU3WuKzW7Ot9XTsonb85CIkvmpvF6YPHfDfdRqDYmAlksS9YCEhhdfbdMR+u/k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767782686; c=relaxed/simple; bh=HHS3WbLXpMJWC5uKq3dZCEph1zURJEivilxUsEjcxK4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=RaCoXhg26QtaFpVRCBYz7Qu0pEM5yWi/gOFo1UzH1QcWs3pwq5xyTp+ZNc5P91LqHD95To2JZkL9Kp6VkTMCWExGqOA522NNNqiZCh9ZXArA/nTl46otdYfV06Cn9lJH9tzgrrtTP4GvN3M9XJ+nebTB+f7mwy4F8Fbk4aT2SPY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=codethink.co.uk; spf=pass smtp.mailfrom=codethink.com; dkim=pass (2048-bit key) header.d=codethink.co.uk header.i=@codethink.co.uk header.b=de0LGpqo; arc=none smtp.client-ip=188.40.203.114 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=codethink.co.uk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=codethink.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=codethink.co.uk header.i=@codethink.co.uk header.b="de0LGpqo" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codethink.co.uk; s=imap4-20230908; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:In-Reply-To: References; bh=Raijp6wQ+nxyrQkkekHD6aC8/0JEv0Hkz/+/bOPHujw=; b=de0LGpqoS9A+CH lqcuFw4ySRPfjjxDARCFovsdOUD6r7nFNX333hDJVF+EclvOqHEDweDeX5iUUqTSVBQh56cZq6Yt+ d1USfMVicUFDtQ1VajYYhLchLv/XLeTelIkN0FGuyB8NOTmChgSnV0/TcRkuP2Rzon+jMXXW+fNqv AqUoM7qlDdqb9WsRhrW2uSu72cWUdKYp5HlDhnCQuNr9cvM/sDxMB25QuU9OpJnaNJ2hBlDVWHgbh 16JbLg7LWwn+cT8o5RMaLsIz3spuc8FE+DQW99oKjmRU8/4zwCtGT/xebxgAyTv70E7g5DuXIovVj zbVMa2Y/LSNIjucz1RMA==; Received: from [63.135.74.212] (helo=rainbowdash) by imap4.hz.codethink.co.uk with esmtpsa (Exim 4.94.2 #2 (Debian)) id 1vdR1q-009FMK-4m; Wed, 07 Jan 2026 10:44:38 +0000 Received: from ben by rainbowdash with local (Exim 4.99.1) (envelope-from ) id 1vdR1p-00000000giL-1jeT; Wed, 07 Jan 2026 10:44:37 +0000 From: Ben Dooks To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, mhiramat@redhat.com, Ben Dooks Subject: [PATCH] x86/insn: make unexported tables static Date: Wed, 7 Jan 2026 10:44:36 +0000 Message-Id: <20260107104436.164184-1-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.37.2.352.g3c44437643 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: srv_ts003@codethink.com Content-Type: text/plain; charset="utf-8" None of the insn_attr_t tables outside of the main arrays are exported to anything else by name. These are causing a lot of warnings, so make them static. Fixes some of the following sparse warnings: arch/x86/lib/inat-tables.c:233:19: warning: symbol 'inat_escape_table_1' wa= s not declared. Should it be static? arch/x86/lib/inat-tables.c:457:19: warning: symbol 'inat_escape_table_1_1' = was not declared. Should it be static? arch/x86/lib/inat-tables.c:585:19: warning: symbol 'inat_escape_table_1_2' = was not declared. Should it be static? arch/x86/lib/inat-tables.c:621:19: warning: symbol 'inat_escape_table_1_3' = was not declared. Should it be static? arch/x86/lib/inat-tables.c:659:19: warning: symbol 'inat_escape_table_2' wa= s not declared. Should it be static? ... Fixes: eb13296cfaf6c6995 ("x86: Instruction decoder API") Signed-off-by: Ben Dooks --- arch/x86/tools/gen-insn-attr-x86.awk | 2 +- tools/arch/x86/tools/gen-insn-attr-x86.awk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/tools/gen-insn-attr-x86.awk b/arch/x86/tools/gen-insn= -attr-x86.awk index 7ea1b75e59b7..c4319f170f2b 100644 --- a/arch/x86/tools/gen-insn-attr-x86.awk +++ b/arch/x86/tools/gen-insn-attr-x86.awk @@ -188,7 +188,7 @@ function array_size(arr, i,c) { =20 function print_table(tbl,name,fmt,n) { - print "const insn_attr_t " name " =3D {" + print "static const insn_attr_t " name " =3D {" for (i =3D 0; i < n; i++) { id =3D sprintf(fmt, i) if (tbl[id]) diff --git a/tools/arch/x86/tools/gen-insn-attr-x86.awk b/tools/arch/x86/to= ols/gen-insn-attr-x86.awk index 7ea1b75e59b7..c4319f170f2b 100644 --- a/tools/arch/x86/tools/gen-insn-attr-x86.awk +++ b/tools/arch/x86/tools/gen-insn-attr-x86.awk @@ -188,7 +188,7 @@ function array_size(arr, i,c) { =20 function print_table(tbl,name,fmt,n) { - print "const insn_attr_t " name " =3D {" + print "static const insn_attr_t " name " =3D {" for (i =3D 0; i < n; i++) { id =3D sprintf(fmt, i) if (tbl[id]) --=20 2.37.2.352.g3c44437643