Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3528654pxb; Mon, 4 Apr 2022 20:03:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/k2GqiANAXZZj6U7TepbOZeYZnwbKwzfBPw3OCT9VE7+Ep0XYPMYZpdXiUAAS72P7xkZB X-Received: by 2002:a17:902:d64a:b0:156:5b17:415 with SMTP id y10-20020a170902d64a00b001565b170415mr1309500plh.118.1649127794378; Mon, 04 Apr 2022 20:03:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649127794; cv=none; d=google.com; s=arc-20160816; b=Y80NyF7cQQtYPxKw88BWn4ov5bg5G8D5r7fSLhU5I9gnYCrIa/Euz2Adiic8U9Wuo9 IbnDvsWTr73g52z0haPyMqc94Y/FqnZHWkswaDmvetIMq34PGKRpRdVdqIs27gTO4fb6 DVZT5+yUsaxqPxhEmSU6KvfPTWDWaUm5KjODSwZtWF55mSY4FwVbxLb3B2FR1UozHw+i r71UV4PvUIunfNztiJ+Q+krIsb20NQXGXobIJv4h2Y0ITIhWzyrxiF6pPeT144DW1qB1 Ukc2Hd3C+4K66AjsHfc3L9OOnGdw6ggHSijCqI4KsiizbRQvdc/U46fUPRDFV/s+F1qe eCsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=SIBmIQuXyA2hstIvC363neHjkvJ7hBnH1jSKyJP3tWE=; b=Rt7QSQiBYiJdV+dYv3YoADic99d/XZ1IA5qMir2x7zH4cmw5QyC5cxMJJGlrHXwkzZ x3tLhz3D1X1p9cs5X4aOZvLsRGQ3tIGCz5nO3Hy8Azwgz9clX38/GDTw2u8nyZ4LUmnC TKEn+yP7U0AWFvw4Do+rwQNu7Az11JFVCEYa5imWoLraluCW/bnF++NxE1TxhpVSecP2 NVZ3Y2/G7eMw5/ZBNmmVjdojo/jONY7afz9pdHvMRE/GhsiwvoqvP5h5sP8cxzU6+U5H jGFrrIeggCn68Z94uEsDpFHGBdhL1TxJOq2KLl+HNkciDQjhrT5ThjHSD9bsz0qTLlkF nKPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L4HBaEIQ; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d59-20020a17090a6f4100b001c6739ec79asi1071950pjk.160.2022.04.04.20.03.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 20:03:14 -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=@kernel.org header.s=k20201202 header.b=L4HBaEIQ; 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=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B7C1E2993C9; Mon, 4 Apr 2022 18:27:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376728AbiDCXwJ (ORCPT + 99 others); Sun, 3 Apr 2022 19:52:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355215AbiDCXwI (ORCPT ); Sun, 3 Apr 2022 19:52:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0046127CD5; Sun, 3 Apr 2022 16:50:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8DF7860FCE; Sun, 3 Apr 2022 23:50:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id E34FAC340F3; Sun, 3 Apr 2022 23:50:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649029812; bh=qfZV7Dhd5nr5eNuhCIcYPdfMBnCJLTwYyEedtJhWN2o=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=L4HBaEIQFfvLJXN/ZxkXK2Rf8zxDebS9RNWIhuN4+HFiag1tO+zWkJKBMPvnhhDCq fCwInqkEyPE9zYkffONY/sQ7GuknNb+VDMHif+DlWn5jbAMZGMoD+fQ4AQpO97k44R voesww62SbeYKArTKvEGf7LfPo1swnvROPsQ4y3c7OfGr3rVA+Z3oyHHGjpUIRL5Uq N2QrtBq5XO6jG4v+JXwGaS8mdgXx7tcotuvwcObPiz/hDVwOs2PaNWHyta9f+BO0oq PEbXDQPUnkWUCxGuoxCsj6HMTz6Prdh0npBP4LWrplrPgUUN+ihfxIQL28eN33dbBq 6bL07M+WLKwuw== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id C3DD6E85BCB; Sun, 3 Apr 2022 23:50:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] selftests/bpf: Return true/false (not 1/0) from bool functions From: patchwork-bot+netdevbpf@kernel.org Message-Id: <164902981179.6975.18361732639754204431.git-patchwork-notify@kernel.org> Date: Sun, 03 Apr 2022 23:50:11 +0000 References: <1648779354-14700-1-git-send-email-baihaowen@meizu.com> In-Reply-To: <1648779354-14700-1-git-send-email-baihaowen@meizu.com> To: Haowen Bai Cc: shuah@kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, davem@davemloft.net, kuba@kernel.org, hawk@kernel.org, linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hello: This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko : On Fri, 1 Apr 2022 10:15:54 +0800 you wrote: > Return boolean values ("true" or "false") instead of 1 or 0 from bool > functions. This fixes the following warnings from coccicheck: > > ./tools/testing/selftests/bpf/progs/test_xdp_noinline.c:567:9-10: WARNING: > return of 0/1 in function 'get_packet_dst' with return type bool > ./tools/testing/selftests/bpf/progs/test_l4lb_noinline.c:221:9-10: WARNING: > return of 0/1 in function 'get_packet_dst' with return type bool > > [...] Here is the summary with links: - selftests/bpf: Return true/false (not 1/0) from bool functions https://git.kernel.org/bpf/bpf-next/c/f6d60facd9b6 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html