Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp216003imw; Wed, 13 Jul 2022 23:36:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s/aIjmzkr5jDAJKs2aR1VHUGX+7Pc7aKGwcIr4BdBHz6r0zQKxcNTmiP0eysEoyDBwGvgc X-Received: by 2002:a05:6402:b26:b0:43a:6c93:f4e3 with SMTP id bo6-20020a0564020b2600b0043a6c93f4e3mr10003461edb.327.1657780563882; Wed, 13 Jul 2022 23:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657780563; cv=none; d=google.com; s=arc-20160816; b=Yd/L9tW8VJN4spTb2XCM1NZOn4ylg2DxScpeEWntWfsI8GGNqTNgMM7jU/Vk4XG8hy HUeCYyH3SzP9DVExmkykWGFzysxx9j//bSl+vST6b7mb/ZUrvsHPg4Q/iNeOCN2Z2y0W zFd4LVJFbAalAEymIYUdQhqDEoX6IRpEy5dHkc/9ZtYVBruy9U/oIRWVFJg/QvZQ/VJD lNusMFV4I1yBheOu8KxRJDaSc7Y6vNxVNuRMEwwKk+G6TXgV2ol9uYyZYPdIQQpfjhOk hVaxNXj60DPABOsm2ADZVrmSX0Nla2TaHHl6fXka5Zqe3HfyEKUSv8i7oxwstmJTb3Pw 17zg== 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=OlOCG4Es4Ocr+P5LyxcIvOj7Mhy0+NCv7gStuezD/q0=; b=tVvWUXpFWAmx9SkQ172mfFe/35tgOmBLsMKQlHCWe+sRzWBw8DnblNYiUvsABnFOYl uXwSBXWv+4E5e0gMoT09+sXx4bsyQOq3xAK2TJx727ADysYtYGIyxYxmCE2kZbpKiD9d QBN+/P1uTaE3JOPx64ZBu0EL+5IT+6YneF6aCcocT8Acwp2gtrlhyHuO78GWg0ODUBZ8 vNP1s9uDL9clVBz09Ah8mcRjR2IGsZCDRidPOYksd8A8VMNr4cJSg/XZsC/jV/efsB4K tN6WXRObToy4JWfY/O38rmWr9Jx9xaUmKQZQrWe+CUgocqhP4uFyJwRuJyV+72FyX0vr +h7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uDJJ0LKT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i13-20020a170906264d00b006f4d14bbbb3si435236ejc.150.2022.07.13.23.35.38; Wed, 13 Jul 2022 23:36:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uDJJ0LKT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234491AbiGNGaS (ORCPT + 99 others); Thu, 14 Jul 2022 02:30:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbiGNGaR (ORCPT ); Thu, 14 Jul 2022 02:30:17 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1957764DC; Wed, 13 Jul 2022 23:30:16 -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 ams.source.kernel.org (Postfix) with ESMTPS id CB925B823A5; Thu, 14 Jul 2022 06:30:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 52903C3411C; Thu, 14 Jul 2022 06:30:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657780213; bh=Co4vum7iIofAsD257jnj79VKCZwfePDA16sToDYsDFo=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=uDJJ0LKTiahf9Xl10Les2tj5eitPVe7zSFCq+o6CQQ7v2qxIqzua07hqJV5M2hDu1 bwDONyhcJTWF+7pGCRDRcusezXuKApExW1Q58J5Wz+e6IhoNCi5UisyIhtXX6S1Kr1 L36H9rDo+mfZ6B6dXPIzCToU/OM7CISkXjG3cpBDeOincTdmuDHaaZzzmRhlooGffe tRfOGL9iq+xjQK/T9iaC0WbU6SYdoahXBjd2rWeu1p+Z2crik9GXqiuZ/C5B1apYw2 082WCdvz/8dYJPV3RDHrxj19m7haPr1fFTc6WEAhGTCenN6hJG2BD6nv0/mXbuQZEK uyQrwPT/jwAHw== 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 34EBEE45227; Thu, 14 Jul 2022 06:30:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH bpf-next] selftests/bpf: Return true/false (not 1/0) from bool functions From: patchwork-bot+netdevbpf@kernel.org Message-Id: <165778021321.31820.870066365778813774.git-patchwork-notify@kernel.org> Date: Thu, 14 Jul 2022 06:30:13 +0000 References: <20220714015647.25074-1-xiaolinkui@kylinos.cn> In-Reply-To: <20220714015647.25074-1-xiaolinkui@kylinos.cn> To: xiaolinkui Cc: ast@kernel.org, daniel@iogearbox.net, davem@davemloft.net, kuba@kernel.org, hawk@kernel.org, john.fastabend@gmail.com, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yhs@fb.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, mykolal@fb.com, shuah@kernel.org, nathan@kernel.org, ndesaulniers@google.com, trix@redhat.com, xiaolinkui@kylinos.cn, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Thu, 14 Jul 2022 09:56:47 +0800 you wrote: > From: Linkui Xiao > > 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:407:9-10: WARNING: > return of 0/1 in function 'decap_v4' with return type bool > tools/testing/selftests/bpf/progs/test_xdp_noinline.c:389:9-10: WARNING: > return of 0/1 in function 'decap_v6' with return type bool > tools/testing/selftests/bpf/progs/test_xdp_noinline.c:290:9-10: WARNING: > return of 0/1 in function 'encap_v6' with return type bool > tools/testing/selftests/bpf/progs/test_xdp_noinline.c:264:9-10: WARNING: > return of 0/1 in function 'parse_tcp' with return type bool > tools/testing/selftests/bpf/progs/test_xdp_noinline.c:242:9-10: WARNING: > return of 0/1 in function 'parse_udp' with return type bool > > [...] Here is the summary with links: - [bpf-next] selftests/bpf: Return true/false (not 1/0) from bool functions https://git.kernel.org/bpf/bpf-next/c/94bf6aad5dbe You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html