From patchwork Thu Sep 28 03:01:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KaiLong Wang X-Patchwork-Id: 145713 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3038667vqu; Wed, 27 Sep 2023 20:04:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHatALgBAuzOwGFJfVysirqE87dhvCyDon/accv1c+XJFSzNMs5yrVYF0FDYAugL32czX5f X-Received: by 2002:a05:6870:230e:b0:1bb:7d24:eabb with SMTP id w14-20020a056870230e00b001bb7d24eabbmr43779oao.0.1695870270062; Wed, 27 Sep 2023 20:04:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695870270; cv=none; d=google.com; s=arc-20160816; b=AR7nsaTdgkYnMZvtmJtsaae4ABZErzl5hhSB2syzE/9CxZqk8SsXiby/019Ptufo02 0ZpmaXh41ybb7YiDrMcSs+F5xpXufZjvayVJ5P6OYOEQxKYljd/chqe6w4bhRYuMOcIV Opr911Rdfxpuvw9FmMOvzrk85EDJnrzedVCBS4+/OHojdOSp2RF6/ZLX4EO6QtxCPgRs cKQ3LNIlYQ7hDXQ1JqufiFetRKCX17yu2RgDu6bQeQ10s9EF4BS9nyKhQ/Y1+PAYinQs 2KroAJmLkZMRGoFhR8W0lprHOUvwT8EY2MkKRfjWjL95uSd98EBALNLIykwr2onCgATP Hahw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:subject:cc:to:from:date; bh=IhuGHkVmCY+4lPEWQLY+JfZSQ30nykDwwI8zTNTEuqc=; fh=Tc+KD+HgxPy1oAgCHaobFeAbzlpvnq01pVYx/OFmtp0=; b=OevtpHNeZgG325seWKR9Kwcmyv1geFdOZTETZwobENMMdCIkEhbVK4EAj6FkD8uL4m JH5Mvoehyxaa3rmsaRImSYhrrNcUMM4nkE6r0WSZjjasXGzF3zp2nPJ8SXeR/PTY/9ko c6fI7Evmor+KAJJz4WVgrgdEQkZS60dHlrLxj4JaVDVLus8YYoYCvtQOFC+/SV0neheC Nc2TAxgJiSw12k1OnC0ABk9mz/YwVXQJ2AlSWrPGllgvu9jJlEpTaOmCwUXrD+D3QBcM 4gnaCdE/PIkeDGnkuz1RrtE4fR1+u0IroMCd5btz/7Xc8zSbitmaSqTEV5Dyo6mfe1Zg 7Zsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id y63-20020a636442000000b005578c6a7672si17926876pgb.90.2023.09.27.20.04.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 20:04:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id BF21E802FA86; Wed, 27 Sep 2023 20:03:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229984AbjI1DCc (ORCPT + 20 others); Wed, 27 Sep 2023 23:02:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjI1DCa (ORCPT ); Wed, 27 Sep 2023 23:02:30 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 21FB899; Wed, 27 Sep 2023 20:02:27 -0700 (PDT) Received: from wangkailong$jari.cn ( [182.148.12.64] ) by ajax-webmail-localhost.localdomain (Coremail) ; Thu, 28 Sep 2023 11:01:08 +0800 (GMT+08:00) X-Originating-IP: [182.148.12.64] Date: Thu, 28 Sep 2023 11:01:08 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "KaiLong Wang" To: arnd@arndb.de Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] vmlinux.lds.h: Clean up errors in vmlinux.lds.h X-Priority: 3 X-Mailer: Coremail Webmail Server Version 2023.1-cmXT6 build 20230419(ff23bf83) Copyright (c) 2002-2023 www.mailtech.cn mispb-4e503810-ca60-4ec8-a188-7102c18937cf-zhkzyfz.cn MIME-Version: 1.0 Message-ID: <72e80688.8a8.18ad9bba905.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwD3lD917BRlq3++AA--.692W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQAIB2UT+K8AFQACs4 X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 27 Sep 2023 20:03:08 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778248864339106282 X-GMAIL-MSGID: 1778248864339106282 Fix the following errors reported by checkpatch: ERROR: spaces required around that ':' (ctx:WxV) ERROR: space required after that ',' (ctx:VxO) ERROR: need consistent spacing around '*' (ctx:VxW) Signed-off-by: KaiLong Wang --- include/asm-generic/vmlinux.lds.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 9c59409104f6..9e19234bbf97 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -63,8 +63,8 @@ * up in the PT_NOTE Program Header. */ #ifdef EMITS_PT_NOTE -#define NOTES_HEADERS :text :note -#define NOTES_HEADERS_RESTORE __restore_ph : { *(.__restore_ph) } :text +#define NOTES_HEADERS : text : note +#define NOTES_HEADERS_RESTORE __restore_ph : { *(.__restore_ph) } : text #else #define NOTES_HEADERS #define NOTES_HEADERS_RESTORE @@ -98,10 +98,10 @@ */ #if defined(CONFIG_LD_DEAD_CODE_DATA_ELIMINATION) || defined(CONFIG_LTO_CLANG) #define TEXT_MAIN .text .text.[0-9a-zA-Z_]* -#define DATA_MAIN .data .data.[0-9a-zA-Z_]* .data..L* .data..compoundliteral* .data.$__unnamed_* .data.$L* +#define DATA_MAIN .data .data.[0-9a-zA-Z_] * .data..L * .data..compoundliteral * .data.$__unnamed_ * .data.$L* #define SDATA_MAIN .sdata .sdata.[0-9a-zA-Z_]* -#define RODATA_MAIN .rodata .rodata.[0-9a-zA-Z_]* .rodata..L* -#define BSS_MAIN .bss .bss.[0-9a-zA-Z_]* .bss..compoundliteral* +#define RODATA_MAIN .rodata .rodata.[0-9a-zA-Z_] * .rodata..L* +#define BSS_MAIN .bss .bss.[0-9a-zA-Z_] * .bss..compoundliteral* #define SBSS_MAIN .sbss .sbss.[0-9a-zA-Z_]* #else #define TEXT_MAIN .text @@ -294,7 +294,7 @@ #ifdef CONFIG_SERIAL_EARLYCON #define EARLYCON_TABLE() \ . = ALIGN(8); \ - BOUNDED_SECTION_POST_LABEL(__earlycon_table, __earlycon_table, , _end) + BOUNDED_SECTION_POST_LABEL(__earlycon_table, __earlycon_table,, _end) #else #define EARLYCON_TABLE() #endif @@ -462,7 +462,7 @@ . = ALIGN((align)); \ .rodata : AT(ADDR(.rodata) - LOAD_OFFSET) { \ __start_rodata = .; \ - *(.rodata) *(.rodata.*) \ + *(.rodata) * (.rodata.*) \ SCHED_DATA \ RO_AFTER_INIT_DATA /* Read only after init */ \ . = ALIGN(8); \ @@ -494,28 +494,28 @@ /* Kernel symbol table: Normal symbols */ \ __ksymtab : AT(ADDR(__ksymtab) - LOAD_OFFSET) { \ __start___ksymtab = .; \ - KEEP(*(SORT(___ksymtab+*))) \ + KEEP(*(SORT(___ksymtab+ *))) \ __stop___ksymtab = .; \ } \ \ /* Kernel symbol table: GPL-only symbols */ \ __ksymtab_gpl : AT(ADDR(__ksymtab_gpl) - LOAD_OFFSET) { \ __start___ksymtab_gpl = .; \ - KEEP(*(SORT(___ksymtab_gpl+*))) \ + KEEP(*(SORT(___ksymtab_gpl+ *))) \ __stop___ksymtab_gpl = .; \ } \ \ /* Kernel symbol table: Normal symbols */ \ __kcrctab : AT(ADDR(__kcrctab) - LOAD_OFFSET) { \ __start___kcrctab = .; \ - KEEP(*(SORT(___kcrctab+*))) \ + KEEP(*(SORT(___kcrctab+ *))) \ __stop___kcrctab = .; \ } \ \ /* Kernel symbol table: GPL-only symbols */ \ __kcrctab_gpl : AT(ADDR(__kcrctab_gpl) - LOAD_OFFSET) { \ __start___kcrctab_gpl = .; \ - KEEP(*(SORT(___kcrctab_gpl+*))) \ + KEEP(*(SORT(___kcrctab_gpl+ *))) \ __stop___kcrctab_gpl = .; \ } \ \