Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1720590ioo; Mon, 23 May 2022 01:27:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIRHDDE1ptFbhNgRa9H2FZZwAwQG3m3SEqUAUv25CtFmW6aZm6nSLpE34+uJ5/M7uBegNj X-Received: by 2002:a17:902:c2d8:b0:15e:fa17:56cc with SMTP id c24-20020a170902c2d800b0015efa1756ccmr21785823pla.40.1653294462157; Mon, 23 May 2022 01:27:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653294462; cv=none; d=google.com; s=arc-20160816; b=KyqJr0eCOwBLZzq0irDdLW75ZvhIp664SbF0V8XGKvO3BSGsQrC9a6eabgl6+mmVCf VVlSQacsMNx/EQtFpfag7wLxh8Ve20OEeMPaAotTcTNRwakoHzaTgZPFU2oQdezCkVXj 9g9hcedIlF0dFA7kT614S6gTXq1kMmpFAMJd3x73314zC6JutpA9yZ34QzvcXKc5bezu TlS44BJds4LvJFIJpOJJ1QA0JEB0P/4oOAik7aVgVgeQRIxM9e5uTai8RYCOww3zS0oA c6HM8aQiKZXBRrZ0WW/1VJasLDNgkulsQgqHp/VYbPqHV7GcyAi8n8D5Z1FpzTfeScj0 KQoA== 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=nfc8r7NT7wtvHcx6MP/0oIdg3AV2iAuRw51nic1YztY=; b=OMk8fwhFfeVbEQN2QF2c3jmSCZiAn2Gakw7217hppqA/rkGQTMeh4vZrzcuAbMzrJx cfxUAwk79/JPw1J17wgzA3VkCzCEXGJA7+B9sqsVzhqdeWJImaIbSe664MsmtHWjU4gI 4gqcHaN41CVQaSmdUg3oiVqJbX2q7vJrXpoZ5Tx65PCGpKw5B8B82VXAQ8fehevPItiy n6xYiUo+bUvLyNTLod44D88oNuOOGkZYHCWB07qEfHBvr/73F6SpZ/SAiF/exleNHIjj VMwg1OxoabRgF4NBY+s/asYdyLUgp4LrSTBqhO++oreFWeRDms1mw76NjzjzH08GWLRq dr2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IF8vzXzD; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id oa11-20020a17090b1bcb00b001e0182829cdsi9803567pjb.155.2022.05.23.01.27.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 01:27:42 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IF8vzXzD; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D673F13CC6; Mon, 23 May 2022 00:37:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229806AbiEWHgv (ORCPT + 99 others); Mon, 23 May 2022 03:36:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230357AbiEWHgF (ORCPT ); Mon, 23 May 2022 03:36:05 -0400 Received: from mail-oa1-x29.google.com (mail-oa1-x29.google.com [IPv6:2001:4860:4864:20::29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0238F15712 for ; Mon, 23 May 2022 00:35:53 -0700 (PDT) Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-e93bbb54f9so17367206fac.12 for ; Mon, 23 May 2022 00:35:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nfc8r7NT7wtvHcx6MP/0oIdg3AV2iAuRw51nic1YztY=; b=IF8vzXzDNvZ4rrYYB7Wnh1QmvqH6Ii3XDGg2N4qU66JB8ffmqQCPeMp3xsuLsQbFQk SC08EQX+pXfLPvPlLJE7dSr0gAl2sz4WoA4VAOun8qM3teWALPzfgQMXd16hFc350JC3 jUiniHXxD3QaTJA90Tnd1LpJIPdZqxbvEMdyYZohJ46QT0IlQiC7uGbHYCpjvX5xq4lE xaqaSnccVMqKdmsgLa+z34FedxIrA0JVxn6hu92H2qtYeMHlKP0hzPWKK22qlkh9pCKT IIvK27YKjLintPOIVBoEfqktJxEto8ICPMWFRyb/60Vk5OzNLiC8IVbbAk5vrPyUsaYe 7UZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nfc8r7NT7wtvHcx6MP/0oIdg3AV2iAuRw51nic1YztY=; b=YL9AgeOCOPYsaQcBiRpQ6jIjjnNvV4jRvFXGu/jGg5IUIFlsQsp9+/49qC+UDmUbSc gQRJqSukFZfzuHdDfSZuomA2VhJQmSynUooKH9aYSgibdtsefo+GZOmt+Ondrdu/gR8q xu/ebNpVG/TnLQ1psrY3h7s/3yrQcUvG5Yl9QO3O1+r0yQK9Js+Ta66xJleHDq2ZuwM0 F4pMI09wSk+eklLVt3EqRJPNR89EIV+7J6tpq1Xv9OabuqBMEqr8x4ja8gtOOEFzunFs gJZNhhxMa3bdP6W/9UO9+10vMaNp1YU7o5HwyFNo5vL+HrLs4u0ytB10/mhJ5cBXcXjZ gZ3g== X-Gm-Message-State: AOAM532xnAFM7kNi1Smk0qRAZ6eRdS40XkXBD04y4HZ0I+Fek2yX+D5Q KbzJDOqfOMnPk3Q5gyitqXcc3fLBFk22OfyNge8= X-Received: by 2002:a05:6870:d152:b0:f1:b21a:a168 with SMTP id f18-20020a056870d15200b000f1b21aa168mr11071169oac.55.1653291352708; Mon, 23 May 2022 00:35:52 -0700 (PDT) MIME-Version: 1.0 References: <20220518230953.112266-1-yang.lee@linux.alibaba.com> In-Reply-To: <20220518230953.112266-1-yang.lee@linux.alibaba.com> From: Max Filippov Date: Mon, 23 May 2022 00:35:41 -0700 Message-ID: Subject: Re: [PATCH -next] xtensa: Return true/false (not 1/0) from bool function To: Yang Li Cc: Chris Zankel , "open list:TENSILICA XTENSA PORT (xtensa)" , LKML , Abaci Robot Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, 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 Wed, May 18, 2022 at 4:10 PM Yang Li wrote: > > Return boolean values ("true" or "false") instead of 1 or 0 from bool > function. This fixes the following warnings from coccicheck: > > ./arch/xtensa/kernel/traps.c:304:10-11: WARNING: return of 0/1 in > function 'check_div0' with return type bool > > Reported-by: Abaci Robot > Signed-off-by: Yang Li > --- > arch/xtensa/kernel/traps.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Thanks! Applied to my xtensa tree. -- Max