Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1406608rwa; Sun, 21 Aug 2022 07:49:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR5wZRMxgyCAqhWfiFoWjnZkyhD8A/KLmEu0DV68wUwpP4gJetUb0CskujsfNHwc5iCgrQI7 X-Received: by 2002:a17:903:228a:b0:172:ea8f:f2fd with SMTP id b10-20020a170903228a00b00172ea8ff2fdmr1189110plh.33.1661093353892; Sun, 21 Aug 2022 07:49:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661093353; cv=none; d=google.com; s=arc-20160816; b=u8DVjJseZmylHGWOwaneDa9R8SHX77ObEtbl9iwY0wp88x8kh3eKjGdxKfe/KIrkos GkoZQtvuQhqugHFN+QLLjK5w3LENP7mlHLie9dPgF50EPOwJyFST5/MAXwalSssAN+rv T9awqjpNhhpUoPfqo0XyCTIervk1LrVApnSz9B5J3eZGwhPDbBqHwttNU3wiusmetI1N uPtFDeRzbuPjz7Es+dHERj3RpbNJtmwnGDK4N9J43oCU9YS1GeWDjJG7xIZNSBxyAjv0 c12WurqxHykf/yVH8/ExDlpz3UIqWhHpmMKy4cVgRQAfIYB/XQ8f2ok+QCMCnKFSceNJ SC1g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=RLFL+KDMoLQGKFolL3mXYmMIqH6rtCnaNmx3rzUDNoA=; b=sLVmbWciXZh+VU1SV1jcmy0/R35rieYraak9fD9sWL9T1JN/VMe8ECwKA1mXot3B6X UH3WOuYIwmHoBi1WsO6RaQM5yw9vop+zk2mI0ek2sy3CN2mt0/kcGlREsbcciib4vW/z f4AkOK8djAwvakf5QoUvCHPxK9iAKtMeg0De9YDF97CSLuDlO3Xzpvhw/AXxkGA9A9N6 hWeHnsgwkEL8L+kmXZYDR+5JlXT1yhyO6S++/h6G+UwyUelA04NzbLNOD9BWi7NSKP0v 7KwplPth4kFYFoYWoa+m6B9s3NwMAm8xyxUIr0WXbO6h6WA4rlAme6/jnN/O8KbBTP0d G6aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P4l2sSNS; 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 g24-20020a170902fe1800b0016ee3f81da3si8930857plj.606.2022.08.21.07.49.02; Sun, 21 Aug 2022 07:49:13 -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=P4l2sSNS; 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 S230047AbiHUO1g (ORCPT + 99 others); Sun, 21 Aug 2022 10:27:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbiHUO1e (ORCPT ); Sun, 21 Aug 2022 10:27:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 712461ADA5 for ; Sun, 21 Aug 2022 07:27:33 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 0BF8760EA0 for ; Sun, 21 Aug 2022 14:27:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3276EC433D7; Sun, 21 Aug 2022 14:27:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661092052; bh=w/PkrSzM/YSb7wa9LQoXCP3wB1H/7EbaPvzXWLdFQ+4=; h=From:To:Cc:Subject:Date:From; b=P4l2sSNSRd6fKLtyuxgZwmpLCFeiqXTLY9U4TL0OmoXNDrsHG8VL38AT2ZluD2vJB NNSWMuaqhAH37SPiydGhEUaxFg3JVs8RekJDNEx/h9ZIUNfhFB5etI0WQJJYQkCoZK bM/9xz6vyNEntdsT+ver8E+Xaudsb7vliVcdpIB6gqOUg2XFUDNb7B7lqJ3lmD7JB5 Dg7Itif42nhm+IhpXPwJbrGoQ2NScayiwYBp15qlKVa5FyroK2ETTQaQ1oX3Eh3vsf AX7Ei1U9ofCYz1VImXqyZuZI1Mq10eJe/lCuG3KVdHF+gxTs7m9F89Aa7gz73VXzUE ywmHsn++m3hpA== From: Jisheng Zhang To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] riscv: compat: s/failed/unsupported if compat mode isn't supported Date: Sun, 21 Aug 2022 22:18:19 +0800 Message-Id: <20220821141819.3804-1-jszhang@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 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