From patchwork Fri Jan 6 11:40:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Michal_Such=C3=A1nek?= X-Patchwork-Id: 40096 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp778394wrt; Fri, 6 Jan 2023 03:47:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXuccPKUr1F0JWaFCCZn6V9dX2fELD5ccWIrin0T0VvxekGNTg69LauSDnZFfKLsvw5bEdCt X-Received: by 2002:a05:6402:2072:b0:487:6d4a:444c with SMTP id bd18-20020a056402207200b004876d4a444cmr28692999edb.28.1673005637090; Fri, 06 Jan 2023 03:47:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673005637; cv=none; d=google.com; s=arc-20160816; b=NYpautl3mX8+aV+s5Knsh73Gp7D6LwFP6GpCxher8P62CzZ/JxddFpD85pb/z/IQyp 6ZriFr066ZtlRybBIXbtTKWgAj2wPp2MmsYk875Zo8Qp8ttHWxRZqBkI38B2ODOa4JIr ltEZNRCqruHB0yhV0dnBEB90x/I7B4oJU7xvO5KQ6lX7w4k8KzaU4br9RQbhL0HUC35v a4A1h2ssK3y3j/46uOgCMyrnyk0WdJp/9vnO9UUcIeBoI5pdXy8GqsxL4VmhjVaWqcdk eL9E+clEXNYUefWabLNsN7c0B0x0JmwMwpblFOSZnXyfnves0bvVIjVnYBTNn2tXShuM 2ikg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature:dkim-signature; bh=Pq8vo72VlOIQypibTelr8uWjzVpZ26KKZVeqmmbrazM=; b=OjwEFcm8q/z9+tbu0U3qCZ/qi5l3E8hC1eEbGZmikfhFUKxbyNmRkiKO661IT0XqFr a3vZoQu9DudBUyjYoxyKQQQQo2DsMcH1UGSFPDSFANTF5frL4932dArU9TeQgzOhi/Qn 4Z1AZBPKHw7AuuRse/Ch2CmntgZn6hAvglvb0CacbIHvrUHhF1aVQ5ePFj2KUlhqW0x6 nQ+LrbpElW4rb8NTnYYb2dlsd7YBMCozYpOYWc/AZnR+S04MAniT7krM91lR1///kvAk co6e+/agKPNn39M6yBymXLgEuih8qU67yius8EwLmBCo8TPN9FVZR5l+TVgTXg4q6V4M FcwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@suse.de header.s=susede2_rsa header.b=FKpJpfyR; dkim=neutral (no key) header.i=@suse.de; 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=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eq12-20020a056402298c00b0048567770f4esi1197584edb.628.2023.01.06.03.46.53; Fri, 06 Jan 2023 03:47:17 -0800 (PST) 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=fail header.i=@suse.de header.s=susede2_rsa header.b=FKpJpfyR; dkim=neutral (no key) header.i=@suse.de; 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=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231972AbjAFLkz (ORCPT + 99 others); Fri, 6 Jan 2023 06:40:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjAFLkt (ORCPT ); Fri, 6 Jan 2023 06:40:49 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE47D7148D; Fri, 6 Jan 2023 03:40:47 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id C312F250F6; Fri, 6 Jan 2023 11:40:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1673005244; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Pq8vo72VlOIQypibTelr8uWjzVpZ26KKZVeqmmbrazM=; b=FKpJpfyRQKcremgQ+4r8TS5oT0mCAMfqVMntXZGxvcxb3S2OUdSCNOSXx0ecUMit01ktWj +ZVLPc2n1jVInQxyXM3B5kN16x49BSUoyAAJabAEC5ODMkE7ia35wdv+dkpHLiSuHHuye4 AmuP1HMiQJRxj9Gypf+Va4XQAVMIS8k= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1673005244; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Pq8vo72VlOIQypibTelr8uWjzVpZ26KKZVeqmmbrazM=; b=RkjMr1qzKL+z+wZS5TezVCSDPmKTGuXMnsUbbp3Qap4Ao886wi4xAzu+nkR6aHXWuZzpPX XJA4ui9CY316i6Cw== Received: from kitsune.suse.cz (kitsune.suse.cz [10.100.12.127]) by relay2.suse.de (Postfix) with ESMTP id 606E02C143; Fri, 6 Jan 2023 11:40:44 +0000 (UTC) From: Michal Suchanek Cc: Michal Suchanek , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Quentin Monnet , =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8?= =?utf-8?q?rgensen?= , bpf@vger.kernel.org (open list:BPF [GENERAL] (Safe Dynamic Programs and Tools)), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] bpf_doc: Fix build error with older python versions Date: Fri, 6 Jan 2023 12:40:37 +0100 Message-Id: <20230106114037.25036-1-msuchanek@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754273558695214064?= X-GMAIL-MSGID: =?utf-8?q?1754273558695214064?= + make -j48 -s -C /dev/shm/kbuild/linux.33946/current ARCH=powerpc HOSTCC=gcc CROSS_COMPILE=powerpc64-suse-linux- clean TypeError: '_sre.SRE_Match' object is not subscriptable Fixes: 8a76145a2ec2 ("bpf: explicitly define BPF_FUNC_xxx integer values") Signed-off-by: Michal Suchanek Acked-by: Quentin Monnet --- scripts/bpf_doc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bpf_doc.py b/scripts/bpf_doc.py index e8d90829f23e..38d51e05c7a2 100755 --- a/scripts/bpf_doc.py +++ b/scripts/bpf_doc.py @@ -271,7 +271,7 @@ class HeaderParser(object): if capture: fn_defines_str += self.line helper_name = capture.expand(r'bpf_\1') - self.helper_enum_vals[helper_name] = int(capture[2]) + self.helper_enum_vals[helper_name] = int(capture.group(2)) self.helper_enum_pos[helper_name] = i i += 1 else: