Message ID | ZY1Pk61PP5HvLDag@p100 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-12568-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp1912476dyb; Thu, 28 Dec 2023 02:37:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEL5+cIyiEcHFFA9c8/hWFcqTMfqVJlqG+wjCoSuudbdxnQ6HjCs5ZOIC+i1pa4IxOwZZcc X-Received: by 2002:a17:907:3682:b0:a27:6d9c:8194 with SMTP id bi2-20020a170907368200b00a276d9c8194mr390273ejc.119.1703759832823; Thu, 28 Dec 2023 02:37:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703759832; cv=none; d=google.com; s=arc-20160816; b=dgPb0FLWzfXAZI+iP+GjIKcTYaGDAvT2AybsMeSUEEKk0aSzqjNChg/w38weUn/QM5 8WNpZYY5fsRyL7SEbLWuqixPhiT3CICpWNU16YcbYqa8ZeeW1e2cdvRFjq/sRTSzwYDd 0zKY/D57NzXV2cEpuZQ5fWRbQA5p9fA6SXgpxhusJrpZRF2fA5FAQQd5g8yCfML4bPZw 9Y4j1Y0a0d6X5BSQ4LqS8lV4XUAE6d6anDtQmsBojmC/lH/wJiTfJQsVwJEMEXBNFeFz w1s3yMTcwjfMTdTXK7rbSFce270nBRqC9jaovaBaKVahkn+rSzl6T8W2nexaRyX+ouf8 sfqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:to:from:date:dkim-signature; bh=WLUzhno6P+LUUf/Mz+c3iP4tS0uiQ3KSj59us72ibm8=; fh=W92auUQysBX5tPHAH+LwTeLfI009thFtCDuzZWTFhXI=; b=qjYshE5Z2rlun2SWVkWK4YtVX3QUTBl3tvVwoh5Blu64uzoqplynu8qju7WCBikCef uOCWOI5ooQnXgRbZvR7izia0lJ3jQzRvXNi+fxTCJGcD51r0rZ1YZCfcVlwGPQAsS9MN arl54nCLzqsAgiWqMQzrTFtdrC8te9q3jyKk+KhOYJCjCI8EJ9kTmT4MehGqZ2z5lQWr koQRF1dHbHevHOd6IOmpfq/6qcoR/a+rUpy1GX/+ONQ8lJ/AQNf6kNCuGisVgd4LHV7j dgN58hCHoDfzg0Yma4vVKFCifhkaaEchW9A9tNlC+btKppzNaLn2BB2PIQQk1kscDNTW 76tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=btPA8EHQ; spf=pass (google.com: domain of linux-kernel+bounces-12568-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12568-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gj19-20020a170907741300b00a26ed08e7f9si3405518ejc.792.2023.12.28.02.37.12 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 02:37:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12568-ouuuleilei=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=@kernel.org header.s=k20201202 header.b=btPA8EHQ; spf=pass (google.com: domain of linux-kernel+bounces-12568-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12568-ouuuleilei=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 661841F237AB for <ouuuleilei@gmail.com>; Thu, 28 Dec 2023 10:36:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6B226FAA; Thu, 28 Dec 2023 10:36:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="btPA8EHQ" 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 157A663CD; Thu, 28 Dec 2023 10:36:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68C75C433C7; Thu, 28 Dec 2023 10:36:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703759767; bh=mvxOzryFUJYG+VAWBGem3xdZ4uAeuRSgHvJF8WeD0+o=; h=Date:From:To:Subject:From; b=btPA8EHQEbELEh5ovAVGEfREwJVJBl2uLuyb/zqh+90HKfuRICTLbBB6wos6eX70W kE8clig5X0wTK/wCpasG3vgZZtM9q838S5RuHbpvC01wNgksrlK2ygdFRctjqqIWiG N1y1Ql8XWpgSQL5VTmhMM0q5OX5AK3dEG3B3714n2VPvvVWUpT2XyfcgopYx5Aw2HY NM15QoyqMwuH9T/YHZn9nLV4m1pjUeN95eGOC9jkPrUVqOo0JZM4IggZnXkfGJoiVr cc/X2accfmdiyk8Altr3njBiCv6OGm47wdoI+hZLMHDAcPNVMHdfYD6o20jfOomQfL HQj5RD7szEacQ== Date: Thu, 28 Dec 2023 11:36:03 +0100 From: Helge Deller <deller@kernel.org> To: Masahiro Yamada <masahiroy@kernel.org>, linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org Subject: [PATCH] linux/export: Ensure natural alignment of kcrctab array Message-ID: <ZY1Pk61PP5HvLDag@p100> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786521670207760458 X-GMAIL-MSGID: 1786521670207760458 |
Series |
linux/export: Ensure natural alignment of kcrctab array
|
|
Commit Message
Helge Deller
Dec. 28, 2023, 10:36 a.m. UTC
The ___kcrctab section holds an array of 32-bit CRC values.
Add a .balign 4 to tell the linker the correct memory alignment.
Signed-off-by: Helge Deller <deller@gmx.de>
Fixes: f3304ecd7f06 ("linux/export: use inline assembler to populate symbol CRCs")
Link: https://lore.kernel.org/r/CAK7LNAT5gyn0C9EJhh1EeFT7gF0rOudWcdqAVN=+C4jR42W90w@mail.gmail.com/
Comments
On Thu, Dec 28, 2023 at 7:36 PM Helge Deller <deller@kernel.org> wrote: > > The ___kcrctab section holds an array of 32-bit CRC values. > Add a .balign 4 to tell the linker the correct memory alignment. > > Signed-off-by: Helge Deller <deller@gmx.de> > Fixes: f3304ecd7f06 ("linux/export: use inline assembler to populate symbol CRCs") > Link: https://lore.kernel.org/r/CAK7LNAT5gyn0C9EJhh1EeFT7gF0rOudWcdqAVN=+C4jR42W90w@mail.gmail.com/ Applied to linux-kbuild/fixes. Thanks! > diff --git a/include/linux/export-internal.h b/include/linux/export-internal.h > index 69501e0ec239..51b8cf3f60ef 100644 > --- a/include/linux/export-internal.h > +++ b/include/linux/export-internal.h > @@ -61,6 +61,7 @@ > > #define SYMBOL_CRC(sym, crc, sec) \ > asm(".section \"___kcrctab" sec "+" #sym "\",\"a\"" "\n" \ > + ".balign 4" "\n" \ > "__crc_" #sym ":" "\n" \ > ".long " #crc "\n" \ > ".previous" "\n")
diff --git a/include/linux/export-internal.h b/include/linux/export-internal.h index 69501e0ec239..51b8cf3f60ef 100644 --- a/include/linux/export-internal.h +++ b/include/linux/export-internal.h @@ -61,6 +61,7 @@ #define SYMBOL_CRC(sym, crc, sec) \ asm(".section \"___kcrctab" sec "+" #sym "\",\"a\"" "\n" \ + ".balign 4" "\n" \ "__crc_" #sym ":" "\n" \ ".long " #crc "\n" \ ".previous" "\n")