Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp7607rdb; Fri, 5 Jan 2024 00:21:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGkWYXlfiAes81BrZrRBCQmX85/BzcJE7AhZg3g318BcROBJrjAqow1jb57A8Ofn566fVsf X-Received: by 2002:aa7:c716:0:b0:556:ee31:c13e with SMTP id i22-20020aa7c716000000b00556ee31c13emr1113711edq.18.1704442906418; Fri, 05 Jan 2024 00:21:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704442906; cv=none; d=google.com; s=arc-20160816; b=BjqT0GPgdUxSOWhKvAbfFwWGiGrcbGXLeHr3D18KJLWnvpcdk8XjkjIah96IyfpNIh nAHwxKNAM+5H7ma/RQ/bxL+CIfYH3cr5OvQlsjHJfgtoiWzpaqxHgFBjeZQnBehZWTwo EDmlb6ih90KDZynUBqtI9EuLFzag7lcXYVL5RIamzAUwozm6NAmJV4GOltyCyqpR2BMb YJ0+Rqbb8kWThhCBNX5HiSMm4RhxtggdxTUt3Y+RLriVWjJQwr87kawDQWbVAaH1jTfS lM2+WopOSzQJFE89gdIycSxYD5TZVvf+Qe1hGtImCkLX3lBJRMSycEHhd/XqDp5C2wlL 4APw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=6VQ6j0LINTXUCaF6pqicbZbvJ/sJcDPd8VasoZJ96ws=; fh=BMIkmePzDpnm0yD0ak54mfO8Ier7ixyy1WVfLLEebjs=; b=fwG5/Dy75fhy1+/5f83RShqrYVpD5mM6TCyVTM1J+a71kXCixPkvKvDjELXlyLLMrv 9kPexrdYPeHFwBxj2qMbEQAwGg+lOpQU1ltHjmEEySW2wuVnlGvOP6dJyCw3iPPX4u/l e4zkrpU4RFrmz5C63LFbDTWyMJtUDQQCdeiyMHiSs7oIb/53FNqe/kmj+j5FvzW4euuF nA048/sw6dzBfXHtdigNIXnZHFZd8DBdwHkyWHNWu+dHL79ifGSOnuWa5B+gpFzTTbWl I/QmzBrInWrHTL2mSTki4F9gxcgO6XjVamgBSRR6HvEkyO3D6VvCMJkAYpizsRKpPuMn UH5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=L6ZLNsgF; spf=pass (google.com: domain of linux-kernel+bounces-17578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17578-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y13-20020a056402358d00b00555936f21e4si450372edc.92.2024.01.05.00.21.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 00:21:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=L6ZLNsgF; spf=pass (google.com: domain of linux-kernel+bounces-17578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17578-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 2D7D31F214DA for ; Fri, 5 Jan 2024 08:21:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D917720DD3; Fri, 5 Jan 2024 08:21:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="L6ZLNsgF" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84B6020DC8; Fri, 5 Jan 2024 08:21:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-50e80d40a41so1596265e87.1; Fri, 05 Jan 2024 00:21:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704442894; x=1705047694; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=6VQ6j0LINTXUCaF6pqicbZbvJ/sJcDPd8VasoZJ96ws=; b=L6ZLNsgFM78s7igRXguErFzof063CSdlaW+2XOo9+n1U/utC8VCOtHnT4tKUiIYefa vAowkiGxuSZ543SjgfAiGVJ8tk8/ESemcVsuRufFJ28U3Zwb06GpHuz+iNW5xKAFVA7g 3/7kfI44/zmdXfwTFtCrAN55mBYfHqUEHuKyQdCX0ny64RgXMv+a0lEMKytqTXIlOX2F xN5/8zE+IESSnFCFjQ8vzn/iGKNyqQeeeIBwFp4tAujIUcHroiyiwDpmM51oQLgyccJd xAZbSD3Xfu8LXdBdd5VE+dzl8vm0Bhrry1xUrEtuTr8ELVM83AfaTEHfIhVWt0eGeIzM 6RMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704442894; x=1705047694; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=6VQ6j0LINTXUCaF6pqicbZbvJ/sJcDPd8VasoZJ96ws=; b=qDy47S05gxOoA4e2VkhShoipNH21DxRko7wP5nQVd2gnQwQOdYfZ0VrbL4d56CPAq2 9fkeNUVjg9XbDY2Ut29k2SDPDscjAsVEV4sIMGThp5L8Ubbazo45Ypv5PhrMM8hMewqN 140xPgLlfYmsMn5YMUjJ/Ueu79GXvIPoPUXnzi6WrK3l4F4jh+z34BgOKi+oyAihTMNg /XqL91z01JPzOXeFT2Dtp75CVGeAeraWqgSg41+wirihMfXpbLhftExodpNu7MFDoYw0 SsVYzkL93V4g+47aY0IoRccYmxepNMYXePsA7DL2ea9yc3QDuNmGDSE5QZyMJpa65iCl Qu5g== X-Gm-Message-State: AOJu0YwM2DxGqNZ8xoILR3HVbrsyhSaz/3cm8Yx4ujo4NqUHubOqIugT n2gzZ3RfNKL+wTuj1CeTmNoHGnV6AdiEfg5bbfk= X-Received: by 2002:a05:6512:15b:b0:50e:a859:1421 with SMTP id m27-20020a056512015b00b0050ea8591421mr843213lfo.9.1704442894057; Fri, 05 Jan 2024 00:21:34 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240103135454.376021-1-masahiroy@kernel.org> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Fri, 5 Jan 2024 09:20:57 +0100 Message-ID: Subject: Re: [PATCH] linux/export.h: remove unneeded .balign directive To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Helge Deller Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 4, 2024 at 3:17=E2=80=AFPM Masahiro Yamada wrote: > > On Thu, Jan 4, 2024 at 1:05=E2=80=AFAM Sedat Dilek wrote: > > > > Happy new 2024 Masahiro, > > > > some small nits. > > > > What about adding links to the commits... > > > > linux/export: Fix alignment for 64-bit ksymtab entries > > [ Upstream commit f6847807c22f6944c71c981b630b9fff30801e73 ] > > > > linux/export: Ensure natural alignment of kcrctab array > > [ Upstream commit 753547de0daecbdbd1af3618987ddade325d9aaa ] > > > > ^^ AFAICS in linux-stable - v6.6.10-rc1 includes both > > ^^ Is yours a follow-up and makes sense for linux-stable releases? > > > No. > > This patch is a separate clean-up, not a bug fix. > > No need for back-porting. > Thanks for the clarification. But it is an improvement - so no discarding at link-time means reduction of build-time? Amy numbers? > > > > > > > ...and CC Helge Deller? > CC in the patch - makes for me only sense if you agree on adding above commit-ids of Helge's work. I think this is good in sense of follow-able references. Best regards, -Sedat- > > You did it. > > > Thanks. > > > > > > > Best regards, > > -Sedat- > > > > Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stab= le-rc.git/log/?h=3Dlinux-6.6.y > > > > On Wed, Jan 3, 2024 at 2:55=E2=80=AFPM Masahiro Yamada wrote: > > > > > > 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 > > > > > > > > > > > -- > Best Regards > Masahiro Yamada