Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp35055lql; Fri, 12 Apr 2024 02:55:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUARkcmP/5k5XCC/6FOIfkbkb71umKyZ1HPitFetOqRt5QieJNk4alSjGCmBC1FRjQB6Zci/94u9Xwes6otx2DVHeCcj9vRAufTEPz0Yg== X-Google-Smtp-Source: AGHT+IEAMUawRA4QPqAEwKMEcicLfGkYtGGtda9vmYU+13keSHzjqQLiPZRd8VBQb9+3fAQSnr3n X-Received: by 2002:a17:906:ad83:b0:a52:34e7:ba11 with SMTP id la3-20020a170906ad8300b00a5234e7ba11mr880281ejb.55.1712915715769; Fri, 12 Apr 2024 02:55:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712915715; cv=pass; d=google.com; s=arc-20160816; b=ClJxHxIaPfXmTQoZxpELSnJXcJ4M2d82HOiX1nAmUvNWd7+5q6ofF1i+qW7DKHqF7W CWujij2+ZccxU4+gAfAcnTkxIRqobK8wiDaLUh6wmpmj//cQIE/X3j6sMfRZJP6dqDM0 HuuZL3SbJeFOVYv0ATLiVBZ/ga5ADy1fr1QSNAZmt0rFdYtwUY4j2GDpxfP9a1yrjwc4 6XuVDaI8yBzBB7zH0pwgjeSaoGU/RvitGHT0/ThScoAzp6TbkHcku0C2fh2+BzLB61A7 yC0h9uzlh2/TsciF6n0oBNFkFAvkGE/F9OZUPMpw19YYj7jAZe2iwh1UzV9s2CRJUmZh hztg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=V6GO2vbzaTzYvoUcV4Qpl0H9TBLeVNlexEEn9hFraCw=; fh=Fqz/A0f8J3UYnYz57S0o77fg/XJafPjHyz3hPeMR/R4=; b=HJZ9lAWNYs6bBIYkBjJsBtWtKwBE/0f3bg51ZeQVO/GLcld32T1HWWOM1CVorv51Oh DKW1Y+QaWHmuJVBtBz8Qjt/3lQIsiok/CdU0khzOsL6WZfYpW0+UicD8eh/Ckopih8UA 6Ih9wVixtBhWF/68lSHUJoZq9ftNKtvU6NZ+CxYOtybCwS/yw97NHLWIxbF7gAI8V/uJ AuQkIHPI+L1EsQc22JXkOmVip1e39PqDS4G/6e+E1fe8bSRGl25UgY+QbqEyPKxET/d2 BBlzcYVDQ/9brYSHWJ3NQZqiECr3X+28P5DFtETzxB80B+x4TagTFY0+e7iY2n4o5ngW WA+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fwbru7gt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-142442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142442-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b19-20020a170906151300b00a5228a059c3si1134117ejd.927.2024.04.12.02.55.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 02:55:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fwbru7gt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-142442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142442-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7842A1F2319C for ; Fri, 12 Apr 2024 09:55:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D860F51C5F; Fri, 12 Apr 2024 09:55:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fwbru7gt" Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79F4F535DC; Fri, 12 Apr 2024 09:55:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712915707; cv=none; b=eWsJC28D7UQWWfYHoEO5G5uqgRwKoSvB2ckpGj/sVQGWW/odaZgrzevUcuEJtsaXpq5AjIsmSxd7hdHAg7Yuen3o0He7VOYGfJQlXKkC/JVJeUgaEohVbN+wDkBgNKmaZY0wPYovuoTcPNS0pWVvW/WnJ1Jn+L8Z58B6wWx+ae4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712915707; c=relaxed/simple; bh=MxCP72ppniCUwq/Q6jnueZ8iwN0KI8bkGQ/p/fDaVws=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MpGcBHQi5ktkW4nixlDJZweHMU4fAHWW0Scd/uxi5vrpM1+pnKURbhplyNGVJJnSKS5JokB5BLLPdr8EiuvvvvrB5CMufsJv3uYAthqS/YUCiOfAgn1fAYNWpEKSgL/J2EV8BmnTrJqIkSl2yaMC9twXF3w/VFlm7NqXDRKZM9c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fwbru7gt; arc=none smtp.client-ip=209.85.208.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-56e37503115so576130a12.1; Fri, 12 Apr 2024 02:55:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712915703; x=1713520503; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=V6GO2vbzaTzYvoUcV4Qpl0H9TBLeVNlexEEn9hFraCw=; b=fwbru7gta6k+X/lIIpKhMDd/u6Zv8CZvGwN5LJNPAC06+hptYFIlEFC4L1h+J/UfdZ vhFI6+9KeYaqkzYOHw7wssdjab7soF/YQ7eDbKp4E8E5fGavwF3SQoJyS5GjFm3gWy1Q i3OhcPx80GE50AgVO9eN5KexPyJD9hF6CzISQ9mOuWA5QvzcWtAKGKYMs7WWY+H9T9Nm DZhHJjDzwByG9Mqnw/apngWRUTrHuaXLLjNHXOMTKJ0G0zHb0V7DYbZ6lshU1F37P2DC jVwnPkWna/rrVAkjqAiwD7o9KHjeu7jBbQd1fzPBMv2RK1RYNEDUkoUuomejz/H1od1i f5Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712915703; x=1713520503; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=V6GO2vbzaTzYvoUcV4Qpl0H9TBLeVNlexEEn9hFraCw=; b=NPaVglt3ch5vBMzYIMgpoFr541v1+ZaT9oE0sitIbAMIoMdq2n0ewH+v4hmP0zWI5+ NaOXPAWbWfhgYagnLhNLbPGM9zupYR2oHPgMgkJVyBN/9ZqdUJ3tbCWYXbciugDKaSyG kWxK+81PQhOh0QDl/t6HBriOLpAsl0FUAWIWN0xWYCPT4FVwafOR4MwLZ7Qz/mfQmuRN YGeNeJXahHtr3H/vDMHSOxu/mfzRQNE31wMfjEO0zKkBss/mJBi+L4dXiJtqdUeu8pyM YNHoUqmXQWCNzlaLvv+WaLNGDjzmEToGOYY2oYyGSUyfG4KsAuA/mVGolRGQ5fM+gJul o41g== X-Forwarded-Encrypted: i=1; AJvYcCX5ia0WQ0t/rew5N7BaIoYMvwzEi4wN+9/HtKXzQ15X1TVYLIOp0WSYuDb7tmq5nfLVfQDy3qfFb9dEn/F+21WYKP+YN0gFVXaYvXfkGEGsy+eReRB9H21wMswOHN18YynX X-Gm-Message-State: AOJu0YzJ4ZlZhqte869J0lZL7j11Io2cJ4MzpG/E9DQREcGTdCM6GjyH bLtcKw2fek1HQ+PKGxMN/BQOpp/U/MJHMV6gN9v3Q5D5n9afGD4S X-Received: by 2002:a50:aa9c:0:b0:56e:2ff3:bb89 with SMTP id q28-20020a50aa9c000000b0056e2ff3bb89mr1383824edc.28.1712915703327; Fri, 12 Apr 2024 02:55:03 -0700 (PDT) Received: from gmail.com (1F2EF1A5.nat.pool.telekom.hu. [31.46.241.165]) by smtp.gmail.com with ESMTPSA id 14-20020a0564021f4e00b0056e78dbfe13sm44670edz.32.2024.04.12.02.55.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 02:55:02 -0700 (PDT) Sender: Ingo Molnar Date: Fri, 12 Apr 2024 11:55:00 +0200 From: Ingo Molnar To: Kyle Huey Cc: Kyle Huey , linux-kernel@vger.kernel.org, Andrii Nakryiko , Jiri Olsa , Namhyung Kim , Marco Elver , Yonghong Song , Peter Zijlstra , Arnaldo Carvalho de Melo , Robert O'Callahan , bpf@vger.kernel.org Subject: [PATCH 8/7] perf/bpf: Change the !CONFIG_BPF_SYSCALL stubs to static inlines Message-ID: References: <20240412015019.7060-1-khuey@kylehuey.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240412015019.7060-1-khuey@kylehuey.com> Otherwise the compiler will be unhappy if they go unused, which they do on allnoconfigs. Cc: Kyle Huey Signed-off-by: Ingo Molnar --- kernel/events/core.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/events/core.c b/kernel/events/core.c index 2212670cbe9b..6708c1121b9f 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -9638,21 +9638,21 @@ static void perf_event_free_bpf_handler(struct perf_event *event) bpf_prog_put(prog); } #else -static int bpf_overflow_handler(struct perf_event *event, - struct perf_sample_data *data, - struct pt_regs *regs) +static inline int bpf_overflow_handler(struct perf_event *event, + struct perf_sample_data *data, + struct pt_regs *regs) { return 1; } -static int perf_event_set_bpf_handler(struct perf_event *event, - struct bpf_prog *prog, - u64 bpf_cookie) +static inline int perf_event_set_bpf_handler(struct perf_event *event, + struct bpf_prog *prog, + u64 bpf_cookie) { return -EOPNOTSUPP; } -static void perf_event_free_bpf_handler(struct perf_event *event) +static inline void perf_event_free_bpf_handler(struct perf_event *event) { } #endif