Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp799948pxb; Thu, 17 Feb 2022 15:14:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfetj2lepedOLzoxZXVs0rcGKWV2PcxN5jjYuXRakzP8XHj0D5NZqcjzWXhNXfFy76SgCr X-Received: by 2002:a17:90b:1d8d:b0:1b8:2db4:892a with SMTP id pf13-20020a17090b1d8d00b001b82db4892amr9652115pjb.209.1645139691765; Thu, 17 Feb 2022 15:14:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645139691; cv=none; d=google.com; s=arc-20160816; b=hXUUzvEchGkxtzdVEsC8X/dBK6C1GxzFbYuAbsF8iC1MnAV4EyAP/E35BUyGqCO7oU NgrM1U7N9MaUsmSi4PvaC0emHJtSV09naKqxeMNuvVvtkE6sXOut5tYI1GDWBu7B9igQ ILPiT5ymJXDY2NCWyWkNB3+bL0MdXJYGJTo6rGQpZL/D1tDk7UkKoqHlOFiQ0tEz49cc 2XZvZo10+OLeyyArFtk3WYzz6+abEyIDpMh4CdD5Po4kTaSOCMuXpMeuUcpCHFRehZjl mtCBUxno6/WqQlNeOKixY5qG0Smi2RxYx3bWrB8KT0RlAlEey0FkdD0T04BX/Z69SgVW vSlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=vLjm0kESIAa+6ZBYNulsLlT2uttcrNLQTT/0eM12PVo=; b=VUpRhuALLiHfvEq4dN3+Zh9giKKh/dSJ0oQUEnP67g7zRFq2AKn7CBBloqhFNLn3Sa PGbkVljMxG2QePgaR/0JPxs4jspO/hc70vXm1gO0K7cpBeqKxKaaNTXEv4vnnv0HexsT iidwxm793iFjEj/039RCIoQ+L3+Dm4RLvfkhhfl2Kioo3OcQTIqhySDPNs4qS6hmJtV0 KbJEhPLiNLr8hTBLWXI93XVkCBOycspDyWcqvhXk3HaJ4jNcdoMo7BXceYwmXJW+cT52 Yvd8opBsEAT+L0WBh6GUjHXswoqkfEuy95P63fBOul7n+kOy6z1PF4fHk95hqcYnjBlJ lrMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 62si9226434pgc.281.2022.02.17.15.14.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 15:14:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 87DF72B8AE5; Thu, 17 Feb 2022 15:05:38 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243278AbiBQUsD (ORCPT + 99 others); Thu, 17 Feb 2022 15:48:03 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242835AbiBQUsD (ORCPT ); Thu, 17 Feb 2022 15:48:03 -0500 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A2DCB4131A; Thu, 17 Feb 2022 12:47:47 -0800 (PST) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1nKngn-0007Qh-00; Thu, 17 Feb 2022 21:47:45 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 1F9C3C2512; Thu, 17 Feb 2022 21:47:16 +0100 (CET) Date: Thu, 17 Feb 2022 21:47:16 +0100 From: Thomas Bogendoerfer To: "Maciej W. Rozycki" Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: remove asm/war.h Message-ID: <20220217204716.GA17899@alpha.franken.de> References: <20220217134630.42203-1-tsbogend@alpha.franken.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) 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, Feb 17, 2022 at 01:58:01PM +0000, Maciej W. Rozycki wrote: > 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. that looks much nicer, I'll send a v2 with that changed Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]