Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A01EC6FD1F for ; Thu, 16 Mar 2023 22:09:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230208AbjCPWJB (ORCPT ); Thu, 16 Mar 2023 18:09:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230191AbjCPWIp (ORCPT ); Thu, 16 Mar 2023 18:08:45 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B69F07D0AA; Thu, 16 Mar 2023 15:08:15 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id r11so13413029edd.5; Thu, 16 Mar 2023 15:08:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679004490; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=b5LXKdwZVY7/inb8t48z8B3i1/iePyL38mhRLs5gLt0=; b=GSjZ3vaZj1K52logUvrDKxtFiPhB1GEUlUjRp/AME8Y1y2UtAvKXxHeraMD0oJxOPh D6q3c0K8eDDvtAh5s/m3WiTp+vhiVBJIU9PsKOWYA7ij97nKdYo2KudTKsa33qJkNGJe UzE2P20eGnJWitZZ48biMmvbe/rAZpUaQ2o/WWM5pi9jsC2eXO6g8YSaydPqqVDsJ5yX FXOQ0A2lKnxObgWFdO0rCHoWaNZR+QB3IWwv5u7AtBPT6FoMO3XeMf54zQXJk2CWtbax kGljhQrSX9RyFsyBGjh3sgCOJH7sHE5uwOdHE/QhXd/CtGMX6H98gAv468ncgr1fOxWH RXFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679004490; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=b5LXKdwZVY7/inb8t48z8B3i1/iePyL38mhRLs5gLt0=; b=mSDQW5NedeObCQVlTz9YFo9+E0lxONWnQjiMKD6NRH56yUSa6aLag1rDgmEW70J+Hi fYOx52RYtFo2PKOO8qaIUnLtzcM8MPz7hPnLC7ynS5JE9Le35qmwUJBbAo6zFjvgcce9 qSOp/dvEAUPWyahVzyJjr3afnTRHrtsvQJyT2PinQCeADBaSe9zg90qPyDZAoKvD0UtT na3fnr6ZtZw0jIKJt2Ad7OXd8R310SpDqoajhDPN+tGz7jfOgHSlZqDGyX9KdDmhJTse Ycipcd5GfcrjV1RVoCzmyl+QJsWUYMCSj2N/OdYJXR3ZTeiqAsF8RX8c96u+2qRCd87e aIHA== X-Gm-Message-State: AO0yUKXjsbDWXTIleE0ogX2UNiFMBJu4WJYniskXlLBohaakO9kQ4kOD zddaKA4x6AZ4tM9CwGZxjA4PefGBjdHd+8ilYAY= X-Google-Smtp-Source: AK7set9ZtdbNPR2S12M9r+Ax3xhP8SEtTYQ6ithNo98VzEavregZQO16Z3YIpuoGmugpfmI1r3EeQTe3xFd1jdK4JlE= X-Received: by 2002:a17:907:7094:b0:931:c1a:b526 with SMTP id yj20-20020a170907709400b009310c1ab526mr1126145ejb.5.1679004490483; Thu, 16 Mar 2023 15:08:10 -0700 (PDT) MIME-Version: 1.0 References: <20230316170149.4106586-1-jolsa@kernel.org> <20230316170149.4106586-5-jolsa@kernel.org> In-Reply-To: <20230316170149.4106586-5-jolsa@kernel.org> From: Andrii Nakryiko Date: Thu, 16 Mar 2023 15:07:58 -0700 Message-ID: Subject: Re: [PATCHv3 bpf-next 4/9] bpf: Switch BUILD_ID_SIZE_MAX to enum To: Jiri Olsa Cc: Alexei Starovoitov , Andrii Nakryiko , Hao Luo , Andrew Morton , Alexander Viro , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Matthew Wilcox , bpf@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-perf-users@vger.kernel.org, Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Daniel Borkmann , Namhyung Kim , Dave Chinner Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 16, 2023 at 10:02=E2=80=AFAM Jiri Olsa wrote= : > > Switching BUILD_ID_SIZE_MAX to enum, so we expose it to BPF > programs through vmlinux.h. > > Suggested-by: Andrii Nakryiko > Signed-off-by: Jiri Olsa > --- Thanks! Acked-by: Andrii Nakryiko > include/linux/buildid.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/include/linux/buildid.h b/include/linux/buildid.h > index b8b2e00420d6..316971c634fe 100644 > --- a/include/linux/buildid.h > +++ b/include/linux/buildid.h > @@ -5,7 +5,9 @@ > #include > #include > > -#define BUILD_ID_SIZE_MAX 20 > +enum { > + BUILD_ID_SIZE_MAX =3D 20 > +}; > > struct build_id { > u32 sz; > -- > 2.39.2 >