Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27412261rwd; Tue, 4 Jul 2023 02:34:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlHb6ZIym8rFOB6/0hZO6VvZTneSP6wW6TPw8Pr1QB6+1Yyy92cYMs7q6FG0SPYwzYKqu/uk X-Received: by 2002:a17:902:da92:b0:1b8:4e00:96b with SMTP id j18-20020a170902da9200b001b84e00096bmr16629927plx.9.1688463266265; Tue, 04 Jul 2023 02:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688463266; cv=none; d=google.com; s=arc-20160816; b=03sBwIHkD2qlaVpAibNJwpgR19nAOxyNXFvkZqqav/zgKt5WJ4/Hkkj3Z/hK0HAiob Ldiw+42GTlvO+ZLiNvJOfFWHLctNBD0WQb7kB+k9smSmGkBHviW/L2TwJHx0RJ6sKgBV hZc0B3hwQl5HI5vtSeZH59KRGg6gIbw/z2HtvdgiVPpwQvX9S4SSYrZLjit3CPFREuMR UD0XVhwWhupSXyjpI/1VzxnU7ywDqZrtUILDWJZQhuApwZK0YKqOdiBGwZwCrro8maTd /pnMCSrAY3QIpwfuixXawB0AX3lHMZEe2V2HPs6xLpV1Dp3XYMbF310tEwFf0wChnOqp DMpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qaOalho3nqRwTHuUgTDLzMxibsA/eLeaCFoxfQgxC3g=; fh=GR1i6//Imwd/0PQ0I7F0fbSnYkeBkiyYNyB9r9OdvTQ=; b=Ttdk+fSjGyT4COAehHQ8EUd8CjC+/TrIdqSEbbSWW62d0muhZGJqpxDyQfJFiHtxu0 jttxQQNuBM0HgcAPoGTnVDGs9HUXXjOw+AbI93mAM4gYqLf4jjUe/Gn7JpOtxO52vhhc tdfDyqYwRHfzcxySH9zDq9cUNwh0WPFvN+zLgKqG2yNlDPhS6aUq0sTLqvRyKjPnTsX5 zkg9fPQhxWDsNPpxv+ced2eYuAgliSFEEIaYzOs2CiY13nsTjZmBrF9Owkxi8Tjqvup2 Vqhs4XXS2vgH8qswcGVPBRLYFYwWSHo8d5hgUQiBOgp1aObwCYZCjrsW9B7EuQG88ajh ZrhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Lf8Z0jR9; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w2-20020a170902e88200b001b7fa0f052dsi20201346plg.484.2023.07.04.02.34.01; Tue, 04 Jul 2023 02:34:26 -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=@gmail.com header.s=20221208 header.b=Lf8Z0jR9; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230364AbjGDIzm (ORCPT + 99 others); Tue, 4 Jul 2023 04:55:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230472AbjGDIzj (ORCPT ); Tue, 4 Jul 2023 04:55:39 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CCCC136; Tue, 4 Jul 2023 01:55:38 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id d2e1a72fcca58-666eec46206so4374563b3a.3; Tue, 04 Jul 2023 01:55:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688460937; x=1691052937; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=qaOalho3nqRwTHuUgTDLzMxibsA/eLeaCFoxfQgxC3g=; b=Lf8Z0jR9X+Mp/jKqeetxppnVfQtNHdOZ9ErjuTJQ8jvNfPwWsgHViNqq4SpVghiAIn PxjnNr43TbIU3qwrjPi03ww8KUe7HRan68O4qX4YI8sMI81bom61e+F5JDE2ptQrAbCV 6vdFhsUj28XXBp5JIP5Qxgbw3r95MkZFtZgIRyx2/Y8yMwls8Etixib7w7aGRlUkMyRU /Fw1WIoxdJH+HbKh4g6AFwNxawG/d13BmrSHCyMwoiTsPd4DelegI8MXkdZMPLZcAjkP Bo2JWkQBVmhXSDDEWOtoUMTGXnljk5yQ+iCuLvZTJkbnPxswz+BrvSbXvBfjbnMa8irM GlGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688460937; x=1691052937; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qaOalho3nqRwTHuUgTDLzMxibsA/eLeaCFoxfQgxC3g=; b=daRafbJGoYte71r7e9ecWrfiZ/ViHVtmZMWVH+U8oNFPMN1yQzIV1px3WYsdWmEr9Z 2trxnY2hswwovWLpqSQB8JYRu0msQ214saJ+EoKWu6KjyK71wUV7qsd8C3cNGdld8Ty/ p3RxOmfXnqiRt65eBugbF6xmnd+xGFsuhLhF/XFZFn38FyQ1dT5EMvsrCf8lmXmR7k85 6Hdmzsacki081ui9iLPQHIluLuiaBW7MxnT3K+VQ2Q3AAS6L0XgmtOp18pKyG5O3/GNc 1p/AKryALTuw4GcBkWZmTuvY/EN9T/wIacHPgWrg9l6/ywHibM8ogU56fYyPmPDvh4Eg +Hqw== X-Gm-Message-State: AC+VfDyHcH86TXx4wh1GQovGPi+VYOSn+u3tOAOhKFIRf+GYAcEq3vt7 ybnYzEelsqI0wtp3mVbx/ac= X-Received: by 2002:a05:6a20:3c92:b0:12c:6268:cd31 with SMTP id b18-20020a056a203c9200b0012c6268cd31mr17011918pzj.47.1688460937461; Tue, 04 Jul 2023 01:55:37 -0700 (PDT) Received: from localhost ([2409:8a3c:3609:db21:fbac:2cf0:59be:e1b8]) by smtp.gmail.com with ESMTPSA id fe21-20020a056a002f1500b0066ebaeb149dsm14443282pfb.88.2023.07.04.01.55.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 01:55:37 -0700 (PDT) From: John Sanpe To: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org Cc: 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, John Sanpe Subject: [PATCH] libbpf: fix some typo of hashmap init Date: Tue, 4 Jul 2023 16:54:29 +0800 Message-Id: <20230704085429.3110340-1-sanpeqf@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 rename macro parameters to prevent replacing struct members of hashmap Signed-off-by: John Sanpe --- tools/lib/bpf/hashmap.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/lib/bpf/hashmap.h b/tools/lib/bpf/hashmap.h index 0a5bf1937a7c..bae3feaf29d0 100644 --- a/tools/lib/bpf/hashmap.h +++ b/tools/lib/bpf/hashmap.h @@ -80,14 +80,14 @@ struct hashmap { size_t sz; }; -#define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \ - .hash_fn = (hash_fn), \ - .equal_fn = (equal_fn), \ - .ctx = (ctx), \ - .buckets = NULL, \ - .cap = 0, \ - .cap_bits = 0, \ - .sz = 0, \ +#define HASHMAP_INIT(_hash_fn, _equal_fn, _ctx) { \ + .hash_fn = (_hash_fn), \ + .equal_fn = (_equal_fn), \ + .ctx = (_ctx), \ + .buckets = NULL, \ + .cap = 0, \ + .cap_bits = 0, \ + .sz = 0, \ } void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, -- 2.40.1