Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp939457iob; Fri, 13 May 2022 17:09:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhG1jNAJIYlOAOuuH/QtixZO+c450HX0pdY7iei/l9PxUyQccBRDhaD85pfRKuetOmKW6D X-Received: by 2002:adf:d213:0:b0:20a:d703:154f with SMTP id j19-20020adfd213000000b0020ad703154fmr6082246wrh.604.1652486957860; Fri, 13 May 2022 17:09:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652486957; cv=none; d=google.com; s=arc-20160816; b=dl2lWEzW81WSSrwERgF8eD51zqAGCIYrjlRj7/R/SLoddilR09dg7C+6MXbxANTnTT EWo2/WNU72a7DtHex923ApkukJtQleh9ILQBmcmEFOEgke7utD8bb8RyRMUQ/2j1CZ1H 18qftKA87sJk9Z8+MV4d7pkTsiyhGZavglaUuA41SHecUZekG2LyqeBp5tHk2GFX3ORs IEMtJ9E7SsoqWOqeac0q5QDg9LFbslFynJvasUp4+Y95XNBbTIDNQRDJ3RjQA6XwpKI1 EA4pyKz866aB8aVQGKlVpAUmbtD3Fii8NGddlGxuN6rL8emwT32y8xlrw80ULIBUnw1A v5Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=f/uJPlb5KEN55ZbuanhRibq8IypPGUuGTtPeq4uLGTQ=; b=WchjcH9/sbX2TYnW3W6GDxh8m2Vm+msyK+FFlYATEgDw5XNJp7MTSCTLkZb9vCfjBZ vgvG8NOfNgxKD4K+MyFQa7qBM9Ly6mQJpjZXHQGHljQqS3QAyapstbn1tyUBkcR/rQKO OMo3N8egPKbKcMLiGokQlhMIKU9PnaJ6vUMwIzSS115/rp9whG+8x/ZN2kPUqtWmhRyL ZDqPFIIpOMlXUnCZmoni+wvb+TKpdSQQM4qskFRAbdjtT1HRgMPfaDJzBd/VzRq+1EtJ ZOMG4nYJl26Z0kFcpAtHidG2y/yAJhyyqvKa7HZK2hWL8j7/BBsT2SUUWGiKwFaeaWD+ TBNg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id bs18-20020a056000071200b00203e901942esi2745157wrb.434.2022.05.13.17.09.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:09:17 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8A6892F12C8; Fri, 13 May 2022 16:11:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346875AbiEKT34 (ORCPT + 99 others); Wed, 11 May 2022 15:29:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241016AbiEKT3r (ORCPT ); Wed, 11 May 2022 15:29:47 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D52B2F29EC for ; Wed, 11 May 2022 12:29:44 -0700 (PDT) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nos1h-0004fe-Mg; Wed, 11 May 2022 21:29:37 +0200 From: Heiko Stuebner To: palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, wefu@redhat.com, liush@allwinnertech.com, guoren@kernel.org, atishp@atishpatra.org, anup@brainfault.org, drew@beagleboard.org, hch@lst.de, arnd@arndb.de, wens@csie.org, maxime@cerno.tech, gfavor@ventanamicro.com, andrea.mondelli@huawei.com, behrensj@mit.edu, xinhaoqu@huawei.com, mick@ics.forth.gr, allen.baum@esperantotech.com, jscheid@ventanamicro.com, rtrauben@gmail.com, samuel@sholland.org, cmuellner@linux.com, philipp.tomsich@vrull.eu, Heiko Stuebner Subject: [PATCH 05/12] riscv: extend concatenated alternatives-lines to the same length Date: Wed, 11 May 2022 21:29:14 +0200 Message-Id: <20220511192921.2223629-6-heiko@sntech.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220511192921.2223629-1-heiko@sntech.de> References: <20220511192921.2223629-1-heiko@sntech.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ALT_NEW_CONTENT already uses same-length assembler lines, so extend this to the other elements as well. This makes it more readable when these elements need to be extended in the future. Signed-off-by: Heiko Stuebner Reviewed-by: Philipp Tomsich --- arch/riscv/include/asm/alternative-macros.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/riscv/include/asm/alternative-macros.h b/arch/riscv/include/asm/alternative-macros.h index 9e04cd53afc8..8c2bbc7bbe50 100644 --- a/arch/riscv/include/asm/alternative-macros.h +++ b/arch/riscv/include/asm/alternative-macros.h @@ -62,14 +62,14 @@ #include #include -#define ALT_ENTRY(oldptr, newptr, vendor_id, errata_id, newlen) \ - RISCV_PTR " " oldptr "\n" \ - RISCV_PTR " " newptr "\n" \ - REG_ASM " " vendor_id "\n" \ - REG_ASM " " newlen "\n" \ +#define ALT_ENTRY(oldptr, newptr, vendor_id, errata_id, newlen) \ + RISCV_PTR " " oldptr "\n" \ + RISCV_PTR " " newptr "\n" \ + REG_ASM " " vendor_id "\n" \ + REG_ASM " " newlen "\n" \ ".word " errata_id "\n" -#define ALT_NEW_CONTENT(vendor_id, errata_id, enable, new_c) \ +#define ALT_NEW_CONTENT(vendor_id, errata_id, enable, new_c) \ ".if " __stringify(enable) " == 1\n" \ ".pushsection .alternative, \"a\"\n" \ ALT_ENTRY("886b", "888f", __stringify(vendor_id), __stringify(errata_id), "889f - 888f") \ @@ -83,10 +83,10 @@ ".org . - (889b - 888b) + (887b - 886b)\n" \ ".endif\n" -#define __ALTERNATIVE_CFG(old_c, new_c, vendor_id, errata_id, enable) \ - "886 :\n" \ - old_c "\n" \ - "887 :\n" \ +#define __ALTERNATIVE_CFG(old_c, new_c, vendor_id, errata_id, enable) \ + "886 :\n" \ + old_c "\n" \ + "887 :\n" \ ALT_NEW_CONTENT(vendor_id, errata_id, enable, new_c) #define _ALTERNATIVE_CFG(old_c, new_c, vendor_id, errata_id, CONFIG_k) \ -- 2.35.1