Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1412239rwa; Sun, 21 Aug 2022 07:56:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR4eWGwR8bmEe4M7YKqA8YUrODgRkm2A5ln5aOz8cWSr5nBoh6UFp2PbDsVDqtMYW0KIbbvn X-Received: by 2002:a17:903:40cf:b0:172:eb95:c625 with SMTP id t15-20020a17090340cf00b00172eb95c625mr914201pld.30.1661093818287; Sun, 21 Aug 2022 07:56:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661093818; cv=none; d=google.com; s=arc-20160816; b=ov/z1JtUwZ9dGkLKXwL6rxBzHLDeP/jkAo8Z10tB5S4palxwRpdfzWpUa5436ir2lm 4rQNCsV1sWuDbBQxq6dXMv7ZbNkXEc8gJyhjLgbxmyujisq5aTRXfiKv2cMxO/+wbhA5 uHvyuuWhwM62eKjf77Yr+w04QoaAscX4hSHlHatEtVqvt1XZMEhQFRmepABXcri8xRbd OvL9/zLOruqELVhXXSUGwE8XQceBXT65Ju12vHO50WSCRL+sKxWHf6cOcysqf27sydd3 a3deL/nQo8WXi4EJOD8verP/eiOsksni9GC1IZfCs8BU4YBl4NCY7H7LLnWf1Ztxrr5e vV/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jWrlm9FiTlmtCrkQO+B8td3fXcXgerys/vEjI2qxJjs=; b=VKvCqGquYoCErjM9A/GoQ+AXNsN/rb1u7CR1j87r+H6WWy5RadyGIzIiBwrHXNlddV U+rRz3VjQz4zfWCpfUBg29MQWmLrjCpmEBqtZpO+9d/zbkE2dltwHgV/0GONA4GEOxAG i2ikoRQMIpF6pzAH2V7W0qVn18eTOPKLAyMmrykOUycgYEw3+Jzw7UuhrPVI3jouj2dx 2lH/yDwcRVeQE0hll8GJQVu++4IZWZxVM2EwFvM1rrGm9rvIVYSOxBNFqfO2xleGoLCu gs7fPOglr/YhUeOoEb84iEKuh27BySTek3kqxLWpspS/3Bzb9eth3D1XSETokW1HgIM6 r9Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EJlKZKCt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j65-20020a638b44000000b0041cc49d9b11si9928874pge.240.2022.08.21.07.56.45; Sun, 21 Aug 2022 07:56:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EJlKZKCt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230300AbiHUOiM (ORCPT + 99 others); Sun, 21 Aug 2022 10:38:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbiHUOiK (ORCPT ); Sun, 21 Aug 2022 10:38:10 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E74B91DA6E for ; Sun, 21 Aug 2022 07:38:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 66450CE098B for ; Sun, 21 Aug 2022 14:38:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9CF4C433B5 for ; Sun, 21 Aug 2022 14:38:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661092686; bh=eUoxZaV850V7I73F63glT/eaPAo9OplEnZdMkKkslSM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=EJlKZKCtPKg+cXb7k/9Kaen+hy/daM+dup7Wc/aGisTvKGB8lQLOV4hfg91unD7Lk pT08Ibryy6s9Bn5M4KnjxbMJPg79PMHEUFIkQESSb08twLVZWUri5BxAY0+LB+a0QH OHhgBl2+S55C7ad7enraI+tRVXDiRWMR++8dd7/YkEU+F4AeqQvvK1lv5suyaR+UBG 1HM3oDqXHXQlkF3LYRGJATJCY84Yn49rK1RGfbmTSS3uQMGhMYp5JxJi238pcIHoTr F96nRUkI+wfBPLdjPXSpAMljHYdh3OOncGpvv/oX7alG/GTdlxu9widC5cpwR3ljy+ oU2rNGDFhw8ag== Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-11c4d7d4683so10116025fac.8 for ; Sun, 21 Aug 2022 07:38:06 -0700 (PDT) X-Gm-Message-State: ACgBeo0CMTyvkyJqQCMjLw4xlN/gnK3kCgZK9AWHgVfJL81u0IbuRdiR uGA4SfDFD837jHExwiIXv0GHDBerhgQKt07/uRA= X-Received: by 2002:a05:6870:c596:b0:101:6409:ae62 with SMTP id ba22-20020a056870c59600b001016409ae62mr10627308oab.112.1661092685876; Sun, 21 Aug 2022 07:38:05 -0700 (PDT) MIME-Version: 1.0 References: <20220821141819.3804-1-jszhang@kernel.org> In-Reply-To: <20220821141819.3804-1-jszhang@kernel.org> From: Guo Ren Date: Sun, 21 Aug 2022 22:37:53 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] riscv: compat: s/failed/unsupported if compat mode isn't supported To: Jisheng Zhang Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Sun, Aug 21, 2022 at 10:27 PM Jisheng Zhang wrote: > > When compat mode isn't supported(I believe this is the most case now), > kernel will emit somthing as: > [ 0.050407] riscv: ELF compat mode failed > > This msg may make users think there's something wrong with the kernel > itself, replace "failed" with "unsupported" to make it clear. In fact Acked-by: Guo Ren > this is the real compat_mode_supported meaning. After the patch, the > msg would be: > [ 0.050407] riscv: ELF compat mode unsupported > > Signed-off-by: Jisheng Zhang > --- > arch/riscv/kernel/process.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/riscv/kernel/process.c b/arch/riscv/kernel/process.c > index ceb9ebab6558..b0c63e8e867e 100644 > --- a/arch/riscv/kernel/process.c > +++ b/arch/riscv/kernel/process.c > @@ -105,7 +105,7 @@ static int __init compat_mode_detect(void) > csr_write(CSR_STATUS, tmp); > > pr_info("riscv: ELF compat mode %s", > - compat_mode_supported ? "supported" : "failed"); > + compat_mode_supported ? "supported" : "unsupported"); > > return 0; > } > -- > 2.34.1 > -- Best Regards Guo Ren