Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp724672pxt; Thu, 12 Aug 2021 08:15:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyf8mVDsPC1TbqU9rkcqe07ERsuaL2L3yO9giTxyaSNWDpJSTvWWQRtYsdBzFfY58UVbknT X-Received: by 2002:a17:906:9c84:: with SMTP id fj4mr4124014ejc.438.1628781334039; Thu, 12 Aug 2021 08:15:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628781334; cv=none; d=google.com; s=arc-20160816; b=T1oYsYi1DQ8CN3lfwMU3czA9YcmTzA6shpksGA3m7Ovt837Cea7Z96jeRGNlanfRHP ABWvG56PgVdDsIOMGHi+WnwC3LTg/RpLyL8q8dK06aRYx2u8Lc3LYJ3VD75v0V5uvYLb vPNc5muitd0oLtPoifAf+ZPii4/oEYmvxpG1V359/cxFvCftt3xa+M8RnOoFk9iFn2F+ oKYoPndgE3cY/RA113EJd4EiDpclEa1dL+A85XfJmlpxvBeMOFDWI+UKFBIINC5cnHUQ suGu0ap9TZRB+kFniczD9Sy4WmDY2D5WE/u4h9ETAVViQkV5z48jVfaljA/gNnwj5QZf tEQA== 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=+5/fWvHp8aq1zEiYJAMOsxHT3ZPQdBh9rhvnMPkvUx0=; b=gHPMlDGuO8pml+YsrIurhjSEJzUMrfAX7XDzQt9JEMFvTonNVb7uovVDYB3VJaDpQY /TRIbSFkc2ps8itL2JdcSg6snjJp629/UsasRC4JcsckxYyFmtsH5BEkClGL9lmyC7QH jRIf6RJTxbsFFj3dxoM31YUeJgRqciJIccn6haR3Y8hFaNNXOxLQKAULdKVDndu0BO+k U9IStnClGCPnIecpm0eLs1h6kaydMZnbUcdLWBiAgZL0jrlifCcRXRLP7904enRPTBFj d+28dA0iTPD+wca/hNC0YMN7H2mfNaLe5qqoGAMdKeQqirO3jp82bsQSfmuPx9R+JiBW FTuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq34si2943561ejc.343.2021.08.12.08.15.08; Thu, 12 Aug 2021 08:15:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238020AbhHLO0Q (ORCPT + 99 others); Thu, 12 Aug 2021 10:26:16 -0400 Received: from elvis.franken.de ([193.175.24.41]:57507 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237963AbhHLO0P (ORCPT ); Thu, 12 Aug 2021 10:26:15 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1mEBeQ-0002iE-01; Thu, 12 Aug 2021 16:25:42 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 0C3FBC07E5; Thu, 12 Aug 2021 16:10:15 +0200 (CEST) Date: Thu, 12 Aug 2021 16:10:15 +0200 From: Thomas Bogendoerfer To: Huilong Deng Cc: alexandre.belloni@bootlin.com, UNGLinuxDriver@microchip.com, paulburton@kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: generic: Return true/false (not 1/0) from bool functions Message-ID: <20210812141014.GB9924@alpha.franken.de> References: <20210811043615.57969-1-denghuilong@cdjrlc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210811043615.57969-1-denghuilong@cdjrlc.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 11, 2021 at 12:36:15PM +0800, Huilong Deng wrote: > ./arch/mips/generic/board-ocelot.c:29:9-10: WARNING: return of 0/1 in > function 'ocelot_detect' with return type bool > > Signed-off-by: Huilong Deng > --- > arch/mips/generic/board-ocelot.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]