From nobody Thu Oct 2 07:43:49 2025 Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 41F862F83BA; Fri, 19 Sep 2025 15:36:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758296166; cv=none; b=e25cU4x7e3JWQdcgtu8uRP8qk4FEoCMUaKoDo1D4uCEB3I4Qw49NJHlNvEeJsnxjMhqRRkdb7GlJBnYfG0nDMOQU818sXrfMhygR31cT9cst70dyS4BByOnPe8r+CT4sWYVBVj09JB1WMRCDvnRes7Zju+HRNh6ug4E4M1RRluw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758296166; c=relaxed/simple; bh=OnThKVkAxTbvu2cs4FLMAMZ+dEhCwYFgliP6EBhRpLM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lFSrfEbCdzSySQGFqF/5b/SVrMVH+TokG8uzbXplb4HpompuysSnYKs8hEWVIrpSteuNMXYw4OEUCc+1qwFu68/Ic5K3SbZG8YyGfnNhMI6M2guvCHOEGkdu9rYnK+8uYMmticG36LzmVMOIqnAcUbkgPVzMOMtP6JwAqnVzsYk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=n4xvTQm/; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="n4xvTQm/" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=w0zvkyHycNf62ji7JboPNe59KMTBMZPeiYVTw++Mcio=; t=1758296164; x=1759505764; b=n4xvTQm/qmzoOF+LkA+Oqzqi9cLqBe/n/LzwIseLCoUMqqB QBeedQR6gd0IiYAl8aWXwuOz2zQXz43AvC6Cq6mTnjWCsn77CNcQeyVbdoErgfabwAC8e6nKOgPPw zh4eCTWXlMSi2W+T40+D79oYRl3N27urzdZucv3gY0sbZ98202bKMxeF0LLUcagXKcPW32iYW27ut lwsb+RhDZgQS5Rw8GBgLGr3cbt5CIU1r4QwBcpuxcole96fzuh+8rnlhrq0oX1IQxtrQwdorf9s2x wOHgCYTrPUEAI8STLqLGc+d9eGT7p4uS2IvvLp1cHhfPYFh48QQoWsmrBl3UwLbA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.98.2) (envelope-from ) id 1uzd9T-0000000G6O6-2i20; Fri, 19 Sep 2025 17:35:59 +0200 From: Benjamin Berg To: linux-um@lists.infradead.org, Willy Tarreau , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , linux-kselftest@vger.kernel.org, Arnaldo Carvalho de Melo Cc: linux-kernel@vger.kernel.org, Benjamin Berg Subject: [PATCH v2 01/11] tools compiler.h: fix __used definition Date: Fri, 19 Sep 2025 17:34:10 +0200 Message-ID: <20250919153420.727385-2-benjamin@sipsolutions.net> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250919153420.727385-1-benjamin@sipsolutions.net> References: <20250919153420.727385-1-benjamin@sipsolutions.net> 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-Transfer-Encoding: quoted-printable X-malware-bazaar: not-scanned From: Benjamin Berg The define mapped to __attribute__((__unused__)) instead of using __used__. Having the wrong definition here may result in the linker incorrectly removing the symbol. Also, this now matches the definition in include/linux/compiler_attributes.h. Fixes: e58e871becec ("tools/lib/lockdep: Remove private kernel headers") Signed-off-by: Benjamin Berg Reviewed-by: Thomas Wei=C3=9Fschuh --- tools/include/linux/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/include/linux/compiler.h b/tools/include/linux/compiler.h index 33411ca0cc90..b2c40621d441 100644 --- a/tools/include/linux/compiler.h +++ b/tools/include/linux/compiler.h @@ -127,7 +127,7 @@ #endif =20 #ifndef __used -# define __used __attribute__((__unused__)) +# define __used __attribute__((__used__)) #endif =20 #ifndef __packed --=20 2.51.0