Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp165305imw; Wed, 13 Jul 2022 22:03:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uEvu+12XUudKXpWG+7TSfEWnawYka9efpUnJh48tjXIkJG+zL8AQPBmdilp+GDw9hO2gMy X-Received: by 2002:a17:902:f70d:b0:16c:50a2:78d1 with SMTP id h13-20020a170902f70d00b0016c50a278d1mr6776218plo.34.1657774995493; Wed, 13 Jul 2022 22:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657774995; cv=none; d=google.com; s=arc-20160816; b=MbnLHqeD4QzaCmS9ywZLeR8My1Q0c57UOlcLla/PI0Ti0lUp5VGKFsoCl0RbX6LgOw Vbc8ZQQPNu14Kt/8dH7oGPE9hhPXHZTnWer7eYiaHrEhFQDjxycj93pHAYu0Ia24ouZ6 gudvojicTzpymPNrHfll7sHNzCVTW9roAwx+/HHMpDuzMv2LIiX7vFZOfZY5xqPqP9Mw iFdjv862fR+w08JVGjd0EYhdUEqkFp5Wsd4KgScsl5kbm3px7ppODSfBwlEHxaTrbbi4 zT5LDZ8qBd8cXyAki9JCx0aqaeYpKJu2L3quKshxupFw68FttwmBJsoSRDbjpQLDU6iM Px7w== 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=/0YgWzv/Ty+Ilk2tenNWmyt/Wj/J0jF2nYHY7qTd9EE=; b=0JMxR6eVEVGLpc5whos3xsMt+z9X8RetTxcWUZEK4+0nhTzXN0vk6uWe3l/iU3+7Hr +CKnC55kyjPN1TrRzlXiOFVomI9qh5cAbBae+e4loUJMCCKlk+TQEnKqWNpmXFO/bRBT bwDNANNEKMFVzLmpb6Eg47kRcNtlHoosfRDuIT7XrFFRM8Ig5EMUGIHcjHc+FCoK/TVX 70Gb6rSnry38FYId7iT8JP17VlEdS67Sjs3GbWNY7SVFBXRzK/PW45ppbRvLLFyzs3n1 dqJv+n6HQ6ao5FBWwu4+kB9z4ZGcqDaDjwF+WwQ2htvreucJfeN1J+9wa1s5vCi+Ultp 65DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gPprn9Th; 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 em8-20020a17090b014800b001ef9e519ea0si874853pjb.139.2022.07.13.22.03.02; Wed, 13 Jul 2022 22:03:15 -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=gPprn9Th; 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 S234307AbiGNE66 (ORCPT + 99 others); Thu, 14 Jul 2022 00:58:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234193AbiGNE6V (ORCPT ); Thu, 14 Jul 2022 00:58:21 -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 6C17B205CC; Wed, 13 Jul 2022 21:50: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 114C4B82377; Thu, 14 Jul 2022 04:50:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 11DADC34115; Thu, 14 Jul 2022 04:50:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657774213; bh=m7PhMhDaB+rsIpWOHAt562bNIHAgmxiuIBDn9m701Gw=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=gPprn9ThbFA/wgJNmd7Zx2hz3lpMYT3qAsMFlWE9ZBZqhR3mGc2B1mUd6tvmlFZIy /sekCqEXqCko5Ut6mvGYA+NTCbWrPdPUh6rC9z/jKAhGwk7OvTaXYi4LByXdNMIlHa nMAKk28itHcjwXtG0FjHoi6uD3rNqSK/8heaCMewwY3BRedC6B4KVbAx1YXcBmEo9y XNB0EgmKN2Ophu1Y4M1dZX0Nko5hggOQ+tOtv6SPCgErdufdb9Pgw5G0mHsAG/nD98 GDZ2vioNJ77HwrLIc3AXSeI0xcHi0JHt9ZA+3FPCOjF5HyqizMgOl2UOPCr3fbfUJr CPCEyRjOFc1vw== 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 E8E6EE45225; Thu, 14 Jul 2022 04:50:12 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] samples: bpf: Replace sizeof(arr)/sizeof(arr[0]) with ARRAY_SIZE From: patchwork-bot+netdevbpf@kernel.org Message-Id: <165777421294.18735.2142546131843554603.git-patchwork-notify@kernel.org> Date: Thu, 14 Jul 2022 04:50:12 +0000 References: <20220712072302.13761-1-xiaolinkui@kylinos.cn> In-Reply-To: <20220712072302.13761-1-xiaolinkui@kylinos.cn> To: xiaolinkui Cc: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, xiaolinkui@kylinos.cn 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 Tue, 12 Jul 2022 15:23:02 +0800 you wrote: > From: Linkui Xiao > > The ARRAY_SIZE macro is more compact and more formal in linux source. > > Signed-off-by: Linkui Xiao > --- > samples/bpf/fds_example.c | 3 ++- > samples/bpf/sock_example.c | 3 ++- > samples/bpf/test_cgrp2_attach.c | 3 ++- > samples/bpf/test_lru_dist.c | 2 +- > samples/bpf/test_map_in_map_user.c | 4 +++- > samples/bpf/tracex5_user.c | 3 ++- > 6 files changed, 12 insertions(+), 6 deletions(-) Here is the summary with links: - samples: bpf: Replace sizeof(arr)/sizeof(arr[0]) with ARRAY_SIZE https://git.kernel.org/bpf/bpf-next/c/b1fc28b33886 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html