Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1631193lqm; Fri, 3 May 2024 01:14:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXDGBPpkPi77QQdDvPQnjJh3q9iM2Nl85Sh6+qezWUaHOy/RqzEE9P+lo0JBYNCpBDTCIxE53uC3CvPkt7BIZ5poBz1/+9yn/Taku9N2A== X-Google-Smtp-Source: AGHT+IGWlm5EL/MB8iiWmMfN+F0g3kVcpopwHiZ29LKSSf7Iz1Kh3HLQ/sIU154g/BZ7rcLvm46k X-Received: by 2002:a17:906:f20f:b0:a59:6d4d:fe42 with SMTP id gt15-20020a170906f20f00b00a596d4dfe42mr1073487ejb.33.1714724054719; Fri, 03 May 2024 01:14:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714724054; cv=pass; d=google.com; s=arc-20160816; b=b4ARmKh3Kt/hq+N/yhY9XscjIETwMtd5xfQYQMdVNbVnGgkjL1o9/X4vK1+CcHrDs4 eL5c9jfOsKHU8aDeyeqaQqeXAuPVHaQBfHWlB4AylcI0J9g9H/pj0zBSpuUHn4lzBzV9 /QymKKlF+ysdRwkZKe/j5SwosLisT6Bn1H6Dfbjd0ZebFHu/H/3oNJO+vOL7VGXN3ZFn zV9GGPt7OYgDHGkXMRfsf2bRoNF341B/LDJM89BZML4GW1LCuKB/KcQU7OMoCIprOxFe BS+rjGdDNI5zz/ETU0IRbgeJHLWFnbHkyQNzvWcvKyTYlT5MrV7JvQDyfJ8+wt4GuIIU fMzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=r+qp9uDwqXMAaGmMpn15eh/pwXRYx7zVi4gNFFPoxrY=; fh=KsdebulFSTDgUgDP2OamvZF2uEg8nzoUdEjFl7UPhdc=; b=U0aY8jHrkXQdCfUPI5Wt4yyozGutWpcayAoSxHsUCfR6qjyLEFHlM1Rj2nm9de9nCJ g0EJ6N4ZRqyIN1Edhd1Ytp3MmyjDaf0Gr0Lm4ZMt4zgI3A1uVGnGVtOwcj3rnzR5LHPF oqeMeHX3i601/C0l7UAxhyNK6Yu3mju15pk8vKhPccPeshS+Ti1O4Tmq6UyWbiMZJCka ffJFXUQm2ZatCkcmjbc/yg3SzKdkhfb1VYBKyd+P/RrVrmedfH3qVlDcQkODUwf4XKTc rG18RuRprLvcTFdo4FCIgnQciMriRqt0jXC3N+ER6qrxKuZwa2+qjQUqnK7Z3QvOIjBU n+wA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jB5+pj7P; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167361-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167361-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gq14-20020a170906e24e00b00a5999a16df7si163468ejb.890.2024.05.03.01.14.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 01:14:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167361-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jB5+pj7P; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167361-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167361-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 73D591F22302 for ; Fri, 3 May 2024 08:14:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A0A714F9F1; Fri, 3 May 2024 08:12:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jB5+pj7P" 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 87B89149DF6; Fri, 3 May 2024 08:12:30 +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=1714723950; cv=none; b=TlmK6gZ+fgzhzvm/KA+duMxGRmfL1lWCBkckfQ1C4XQ/+Let939WuHkZXliQZr4YF2WdsX6Nlu2CXLnvWSMBsHy/FpS8bh0MFO8TkB1q/lPeecErhPNG4FawEV2KDtMEVM2vNmF9c96WTyzO3Zef0hpdBPTKkX0GXUXbmR8N6TA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714723950; c=relaxed/simple; bh=9BAn9hUftPS3eYIiTpLzl4khfNyMbi9G7KQSc69tEzA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=EyzDPNWUnWpAP2w2/LLlCQz8MxLkS6t2OPOzpsyTx6CgzyQVNEwXL5V/vSELZlzvm1kdbHrbdQ4ldFWmUJl2vgtThdnaTJ8I8/VhQhnAyFvOFuh7enR+ujpesP+YtH368RAxWqEuJlx5ZEW3hgajsJv1683o8LIMKYmwg07tzXk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jB5+pj7P; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 322FDC116B1; Fri, 3 May 2024 08:12:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714723950; bh=9BAn9hUftPS3eYIiTpLzl4khfNyMbi9G7KQSc69tEzA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jB5+pj7Pxp2NPdrQlZ6tbBSj2ibqT4eat2lOYfizgPpwpBW4AvNB8vLZvYnAvjmeS bbTtxKQ+A38d8G9q1t/KAN4VuMjpqG7nQ0VBn5boJj2a1U0Tc33fQ2zDFkktwA+t/N 8HnRULlDNZmMF3dVk6GO6qNuuGlAxQwMdZR568nwo7ync7zRWblln28/4P7Vo9N8zs gPeP/2EzLvv/KE2mPiKe1Y/T+8PMaxzPNbWbGVRdGuwiTJi1elwPcQYCmRhVODGiNA 2OEQRv3OqP87kZPlS37WKaBaiU9NfcroqcKNlcNv/boTzyH8ISZMsgiNFjQvtaxEHJ CFEhhMz7//Ksw== From: Arnd Bergmann To: linux-alpha@vger.kernel.org Cc: Arnd Bergmann , Richard Henderson , Ivan Kokshaysky , Matt Turner , Alexander Viro , Marc Zyngier , Linus Torvalds , "Paul E. McKenney" , linux-kernel@vger.kernel.org Subject: [PATCH 09/14] alpha: trim the unused stuff from asm-offsets.c Date: Fri, 3 May 2024 10:11:20 +0200 Message-Id: <20240503081125.67990-10-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240503081125.67990-1-arnd@kernel.org> References: <20240503081125.67990-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Al Viro Out of 21 constants, only 6 are used... Signed-off-by: Al Viro Signed-off-by: Arnd Bergmann --- arch/alpha/kernel/asm-offsets.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/arch/alpha/kernel/asm-offsets.c b/arch/alpha/kernel/asm-offsets.c index bf1eedd27cf7..4cfeae42c79a 100644 --- a/arch/alpha/kernel/asm-offsets.c +++ b/arch/alpha/kernel/asm-offsets.c @@ -10,35 +10,16 @@ #include #include #include -#include +#include static void __used foo(void) { - DEFINE(TI_TASK, offsetof(struct thread_info, task)); DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); - DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); DEFINE(TI_FP, offsetof(struct thread_info, fp)); DEFINE(TI_STATUS, offsetof(struct thread_info, status)); BLANK(); - DEFINE(TASK_BLOCKED, offsetof(struct task_struct, blocked)); - DEFINE(TASK_CRED, offsetof(struct task_struct, cred)); - DEFINE(TASK_REAL_PARENT, offsetof(struct task_struct, real_parent)); - DEFINE(TASK_GROUP_LEADER, offsetof(struct task_struct, group_leader)); - DEFINE(TASK_TGID, offsetof(struct task_struct, tgid)); - BLANK(); - - DEFINE(CRED_UID, offsetof(struct cred, uid)); - DEFINE(CRED_EUID, offsetof(struct cred, euid)); - DEFINE(CRED_GID, offsetof(struct cred, gid)); - DEFINE(CRED_EGID, offsetof(struct cred, egid)); - BLANK(); - DEFINE(SIZEOF_PT_REGS, sizeof(struct pt_regs)); - DEFINE(PT_PTRACED, PT_PTRACED); - DEFINE(CLONE_VM, CLONE_VM); - DEFINE(CLONE_UNTRACED, CLONE_UNTRACED); - DEFINE(SIGCHLD, SIGCHLD); BLANK(); DEFINE(HAE_CACHE, offsetof(struct alpha_machine_vector, hae_cache)); -- 2.39.2