Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp80974pxf; Wed, 24 Mar 2021 21:49:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvcPwf5Yrhil6fYh1q0Yqwfw+x8UEa90PhhnfL8GRDUgfWlyRaHOZmZo4WaufyXagZB6Qb X-Received: by 2002:a17:906:3f88:: with SMTP id b8mr7490094ejj.36.1616647790014; Wed, 24 Mar 2021 21:49:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616647790; cv=none; d=google.com; s=arc-20160816; b=rX7VIJQz1W2csXFQ1WaOSYU3qi6SNSbUpTUsdfDRG8iaXAiCbFQbqgtEK2aUdL/vcl SdnDQHEk/Fh31mcwXKxL38EJcJgWiyaXMHvOBS8HFPJo52kxNo0J0SrzSdi+/pM62xqT o919QkLrb1WcHgJZhe3TU20+tpX3LBYU7ZGi7flr2yeg8qWs2lbXOfZptZxKavV2+r1b IKkAWhkawoIkvMpRIPMMAfT7tRznh8V8t+22Y8P3gpvJTYwGEWS/p37X2ZFQHISbE7ia 9xoAn34txf3knX+8O551ENlX6Lz5M4oQTXxICDBvNfrEEl6jVUa/2BLzqPur+v3Pb3il 35sA== 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:dkim-filter; bh=LaHNVlaOy53jqJwwQZtyYFUyZryl+Mejn02Pwe9PQ+8=; b=elJT3HBQWvxLBQhJKJQn2xSClSJdAyvInMzGUFdlW1fZaHg8cc03BkOKD9Qjstc3x6 dqWeXW9GmRR48Kop8+nvr8sb8BI/9FUAtlvOlNqu/3IgrND2b5FgFHetczmfW5+LT43E TKJ2hX2a1/Ja27VlyFPBnpM6smACmydAb9FeVhvWIvvrWMbQYIKuEeSl2pSfG9wfc7Dd yYHfFGZ01u+vrvedpJ2ppEWOEiZbRnmarVBqrANVjSBM6/H/vYy67JTZlfYEAJfZe//X qENTByGGsucdReVvo1QApfYpouV6TP/da1utVznDQWHSlWFHALCdGoL6wcVXYFTm15mT 6NVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=l16p7qe2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qq23si3349483ejb.505.2021.03.24.21.49.27; Wed, 24 Mar 2021 21:49:50 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=l16p7qe2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229461AbhCYEsT (ORCPT + 99 others); Thu, 25 Mar 2021 00:48:19 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:48778 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbhCYEr4 (ORCPT ); Thu, 25 Mar 2021 00:47:56 -0400 Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (authenticated) by conssluserg-04.nifty.com with ESMTP id 12P4lfQV004224; Thu, 25 Mar 2021 13:47:41 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 12P4lfQV004224 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1616647662; bh=LaHNVlaOy53jqJwwQZtyYFUyZryl+Mejn02Pwe9PQ+8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=l16p7qe232+EwMAh73vfvxSMQ+zmJofd1m1i4xCgDzaEcS4tHzjcjVFVZScFiOH0h x+dHdlIfKH0+ai533ICzNWvPhn1/33eI2lpW6Loi9oyeK1MEdqLvBq0MLzRykTckON 2h4qrk31+IBDQBv6fX4Lrk/93nVMGRuhst6etVVVLhQh4PL6dX8GIw4AiQnVTvWM3+ AVuJSOgUTXGsbkztUNiu7cTCf+YPkoG9StG5Lz2KcbIizT3XVQaJxhx1yN+I1j3JJp Ut7DA1Bqmb3bfk0m6pj+4k8qbZhLlr0qc1T+bBHRYrlQ9Lcy7hQckzyDQYRKYy/2FB exBcgkiSd4QAg== X-Nifty-SrcIP: [209.85.216.41] Received: by mail-pj1-f41.google.com with SMTP id f2-20020a17090a4a82b02900c67bf8dc69so2204135pjh.1; Wed, 24 Mar 2021 21:47:41 -0700 (PDT) X-Gm-Message-State: AOAM5300tsTbHKo7kAmYebTwpCKsCJoBizTRomubDuH6ro1mx55clStc 9b+9GFSUTbl+sgqmvK+UaOiQo70SaG1UF9v8BUI= X-Received: by 2002:a17:90a:fb54:: with SMTP id iq20mr6592682pjb.153.1616647660965; Wed, 24 Mar 2021 21:47:40 -0700 (PDT) MIME-Version: 1.0 References: <1615791344-48675-1-git-send-email-yang.lee@linux.alibaba.com> In-Reply-To: <1615791344-48675-1-git-send-email-yang.lee@linux.alibaba.com> From: Masahiro Yamada Date: Thu, 25 Mar 2021 13:47:04 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kconfig: use true and false for bool variable To: Yang Li Cc: Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 15, 2021 at 3:55 PM Yang Li wrote: > > fixed the following coccicheck: > ./scripts/kconfig/confdata.c:36:9-10: WARNING: return of 0/1 in function > 'is_dir' with return type bool > > Reported-by: Abaci Robot > Signed-off-by: Yang Li > --- Applied. Thanks. > scripts/kconfig/confdata.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c > index 2568dbe..b65b8c3 100644 > --- a/scripts/kconfig/confdata.c > +++ b/scripts/kconfig/confdata.c > @@ -33,7 +33,7 @@ static bool is_dir(const char *path) > struct stat st; > > if (stat(path, &st)) > - return 0; > + return false; > > return S_ISDIR(st.st_mode); > } > -- > 1.8.3.1 > -- Best Regards Masahiro Yamada