Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7134860rdb; Wed, 3 Jan 2024 05:55:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhxzKArhqnCESr4XHmZNsdVd0cwZ09Tu3cGJW+JUnyqpWlEnFnLDE3jxeMtzBbPCjLy/D5 X-Received: by 2002:a05:651c:b09:b0:2cc:c093:a328 with SMTP id b9-20020a05651c0b0900b002ccc093a328mr8341317ljr.25.1704290126896; Wed, 03 Jan 2024 05:55:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704290126; cv=none; d=google.com; s=arc-20160816; b=kGtOidyHvOtzU8Uq2VQ1NVy7kx09xjYAQvj9jOl+pJkH5ebo/sXQ7upbL/Y+JRaif/ r/AOVWkhFLYb6o9xHVpTC4qyqfu8qjIW8sfd+ylXATC0VPosJlxbMPeI3OEnISOeHM14 ibkBdh77ZY8FT3w0pT2eJqu6Y5I0ubh0f83txdn1zlI5fQhfRlYsXjzowvQYTnk9uLj9 LNhbhjri3u5TyBAb6SIRJu7S8akwfzNbSngX6+vOr32jUEukE+Rxq3/+6mh3YAIcNRRw mRoCkpIrzsJcQLM9cGey3QW/kfYz6CZXDZpq5os3nlLNIPwPgK91kQc6QiBr/jUCWwiu vooA== ARC-Message-Signature: i=1; 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:message-id:date:subject:cc:to :from:dkim-signature; bh=0wvvrYsD1eV0jdocFL0PT8MOwBEewbJaGNv4Nu3JQc0=; fh=cr2kAYujDVm2vUVjNQU/xxltWJfGGL3pZvB2q4ufDBk=; b=wJxVgqZLa76sCcPCsCihIuVIjLJsROcO9obL/SuKKus2YLJC/iIlCAV9ftdIvc1Tjq hwYGixdItTFeVMQI2F3VsMlhPEmqd+agi3YhFLMXXeiOMBgXl8uemE0F6oMMIedJMWKS /6xP8C1uL2dRRTNUlwsjVdEpz7XjWSu5Y7XED7nNyKmKLV1IbbyDYohwTMvq6G/NzddH CUWpN3NXE//bYJSkBpQ5+y9UuhcPkxm8T2dU3jMigKPrO31MlpwJElBaTWoEFodohjv3 wBgVpSPEF063e20vumN36A13ZgQP+Rg5tUKFAIqKK18pelZ2DvtR7b2FlG9Ab12dpdC/ GMQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SJOWDdtr; spf=pass (google.com: domain of linux-kernel+bounces-15621-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15621-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 d17-20020a056402401100b005547c1890d8si10316246eda.90.2024.01.03.05.55.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 05:55:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15621-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=SJOWDdtr; spf=pass (google.com: domain of linux-kernel+bounces-15621-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15621-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 9A1821F245DD for ; Wed, 3 Jan 2024 13:55:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D27F1A58C; Wed, 3 Jan 2024 13:55:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SJOWDdtr" X-Original-To: linux-kernel@vger.kernel.org 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 96C821A59C; Wed, 3 Jan 2024 13:55:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8135BC433C7; Wed, 3 Jan 2024 13:55:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704290102; bh=e+vdgZdNlFkyaCqPGKRk3VegfICWH1EOn+tuydPy1NQ=; h=From:To:Cc:Subject:Date:From; b=SJOWDdtrO8MiO2UrWdF7alkssLRSYC87HIhmoVCdQA2HC6cZ7JwY7uAK4exvO+Cvm 1LFu1V0F63pbEEaHi3nCfcdYLV6zBe6jIj91mabM6lzN0em9qmQN5/a0/wJHFIe6Cb yQ0er1M7R/lUZN4AbdYHrSktGoQnGPqXztNwCSAr5RlYvhMf5+gG/gnXh/7LZ1H27o CPyEBmU0Sajz1SBAgkE1Wbak3su8mqK8j/3BU1u4WNf/ZUstoZrEpZbSKZE6WZec8p VvSwA21E8bz+lLbb95Vu3e922amoXZ9cJzDiGrACXyX7U3waRLZEcjz42N1ocn/tWF 0OFZSKjR6G2fw== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] linux/export.h: remove unneeded .balign directive Date: Wed, 3 Jan 2024 22:54:54 +0900 Message-Id: <20240103135454.376021-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The .export_symbol section is discarded by the linker script, hence no alignment is needed. Simplify the code. Signed-off-by: Masahiro Yamada --- include/linux/export.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/include/linux/export.h b/include/linux/export.h index 0bbd02fd351d..dff230bb5aca 100644 --- a/include/linux/export.h +++ b/include/linux/export.h @@ -15,13 +15,9 @@ */ #ifdef CONFIG_64BIT -#define __EXPORT_SYMBOL_REF(sym) \ - .balign 8 ASM_NL \ - .quad sym +#define __EXPORT_SYMBOL_PTR .quad #else -#define __EXPORT_SYMBOL_REF(sym) \ - .balign 4 ASM_NL \ - .long sym +#define __EXPORT_SYMBOL_PTR .long #endif #define ___EXPORT_SYMBOL(sym, license, ns) \ @@ -29,7 +25,7 @@ __export_symbol_##sym: ASM_NL \ .asciz license ASM_NL \ .asciz ns ASM_NL \ - __EXPORT_SYMBOL_REF(sym) ASM_NL \ + __EXPORT_SYMBOL_PTR sym ASM_NL \ .previous #if defined(__DISABLE_EXPORTS) -- 2.40.1