Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp828183pxb; Thu, 17 Feb 2022 15:59:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwspdfWmPiF1aNjh6Wc27+KL/KOB3PyMyH7HXW8z+1F68IdoWf/bc8E/qlbt12HXBTgRmLc X-Received: by 2002:a17:90a:4306:b0:1b9:80b3:7a3d with SMTP id q6-20020a17090a430600b001b980b37a3dmr9658034pjg.66.1645142356422; Thu, 17 Feb 2022 15:59:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645142356; cv=none; d=google.com; s=arc-20160816; b=OQKXpqSZSCYnZ4nLoluypj0d9Fh9o79b7TSvUnur3VEA7AMMBT0A6GGDfLoMjWs/Ad CpuT7Wp7ZlsRdmLTy/rrdhlldB7KyU3FuYY6PnbDlTRRemDm+INa+MN2lvs6XGY+4/Da 5nXyioTXts5VAWncrvPsuhHwr2O/6QicJIOys6eR6SELILuZwz33wKKhfGwWEG+8VB5h 6pzEhxHJgi918wS/jStlcfgI3y/HSg4WY+ZquU/mPf9gjPk53zCJ9P2H1+LRlB7h9SFw JLHEJvYVNMaDCj6dXjbxwYbKwkWEmN3gOvmne8IWVocIeppq3qcimNPoQ9b9fYDRMpdV wvsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=XXTQkabSuD5sAfQsJFpkl9lTsSJx+7Pv7rH4Au2p/I8=; b=ClvB7WX1pWfaMXYH/Cdly9tyyj1ftInFsO8hBq96Xf3bn0venggmSFRkyAcPq3+SX8 YHlPqHNCZovU4VI4nH3yEhKHMTSxLbybbN+ZSOo2NQ1TLyfjtmR2XoJ0VBvh901GAs+O AYvcQH0u2ZOjuLF480bXERxa8wK8UTCM7z+QxqRlXIrS2MDgVqeAsR/bRrfhmHstO0HP naqmwCreFV/e4MlWNbYDJfjD5h3PmRCpZM9VOo0Ojqkvw5ZlHFqbNIVQFvc0l8+GuesA 4JtkWSrdWARz8H2dmccfrdJ6swQrDW7CurIygqGKifIvI2fe98M+yHwwUt35xNLoQUp7 Rgpg== 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 o11si25396358plg.26.2022.02.17.15.59.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 15:59:16 -0800 (PST) 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 out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 098C32DA77B; Thu, 17 Feb 2022 15:28:48 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241521AbiBQN6V (ORCPT + 99 others); Thu, 17 Feb 2022 08:58:21 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241519AbiBQN6S (ORCPT ); Thu, 17 Feb 2022 08:58:18 -0500 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DBA3627B4BB; Thu, 17 Feb 2022 05:58:03 -0800 (PST) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 8389B92009C; Thu, 17 Feb 2022 14:58:01 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 7CCD092009B; Thu, 17 Feb 2022 13:58:01 +0000 (GMT) Date: Thu, 17 Feb 2022 13:58:01 +0000 (GMT) From: "Maciej W. Rozycki" To: Thomas Bogendoerfer cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: remove asm/war.h In-Reply-To: <20220217134630.42203-1-tsbogend@alpha.franken.de> Message-ID: References: <20220217134630.42203-1-tsbogend@alpha.franken.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 On Thu, 17 Feb 2022, Thomas Bogendoerfer wrote: > diff --git a/arch/mips/kernel/r4k-bugs64.c b/arch/mips/kernel/r4k-bugs64.c > index 35729c9e6cfa..11392e40d034 100644 > --- a/arch/mips/kernel/r4k-bugs64.c > +++ b/arch/mips/kernel/r4k-bugs64.c > @@ -163,7 +163,8 @@ static __always_inline __init void check_mult_sh(void) > } > > pr_cont("no.\n"); > - panic(bug64hit, !R4000_WAR ? r4kwar : nowar); > + panic(bug64hit, !IS_ENABLED(CONFIG_CPU_R4000_WORKAROUNDS) ? r4kwar : > + nowar); I think it'll read better if formatted like this: panic(bug64hit, !IS_ENABLED(CONFIG_CPU_R4000_WORKAROUNDS) ? r4kwar : nowar); or without the negation even: panic(bug64hit, IS_ENABLED(CONFIG_CPU_R4000_WORKAROUNDS) ? nowar : r4kwar); Likewise throughout. Maciej