Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4451100ioa; Wed, 27 Apr 2022 04:16:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+MxaFaTEY4/Mu7veBGTjIdA5rd15SmVlVGg85gScVi4H6bunlKBJimdpDjk3G7Yz6BC4b X-Received: by 2002:a17:90b:1c10:b0:1d2:a7c4:3cf with SMTP id oc16-20020a17090b1c1000b001d2a7c403cfmr32595499pjb.100.1651058216188; Wed, 27 Apr 2022 04:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651058216; cv=none; d=google.com; s=arc-20160816; b=lfZcO214aW9eceAij5SXHZjKxROuRAv56kfmWJB+pBn24LjDiQnmTMCmQq2B4OIY/G 26QlfhZprZp/JaQhnJ1/daNQ9YM+W53YbVuL1Bmjo2/rA7Smx8RNqOKUQGb/4GWrLYQr unmZvoezJ2JA92opZJw2a4NLMfedc+fSF6ks1Zddn4wflqbgP6glT9cOdw95vJdnb2jI UtuMjN19KYUa2rhxaou6oLNEtujfBMkCX8txte/UoLfwm1LsXHh8jX9w2G2wjZpTfyVz VWrunXCLVHexdI0tzzM/qW8QNCZ0re/Osu5z77a9LPgIHr7aTF0t5PRlhbPbqK+rGPYw JMYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ytJ8gqI6iL6hkQ4cMkAqnHDUUazMUuvlLkFKabJ8Vj8=; b=euUpLn3/TxailhzpqBI6MPP/G0vb1H2i0ZKpUYktoj2zH4cmyg134s2y/LZCTLt6b5 YQ1XuNegJKGjIueTTx6May4w3QuLArMvzzg2m+zaBd97OgTN0BC3GHuZFitFfAeOF0rZ zWcwAjr0AuNW0oBpxEZMrooYAvVAnzZ4D8oA3xiET1EJzkPyp1iD9ycPXgfDqZPL5Bfg dOPyFVL0ePmMoNxpAr/OREv2qZl0Borro9q0cKyusu82RZroDY/A5n7xz3HmuSVTMwIN B7lRqNLXGYqnWM/2Tb+GfHc29IIGyRNUl5zxkIvAV9QrayI1gWXOTLFzGT66jMj41zbR UVBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=WTOQOMUp; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i1-20020a633c41000000b003ab0a58a22bsi1193561pgn.415.2022.04.27.04.16.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 04:16:56 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=WTOQOMUp; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 10B4745B0B1; Wed, 27 Apr 2022 03:10:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346445AbiDZJb2 (ORCPT + 99 others); Tue, 26 Apr 2022 05:31:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347826AbiDZJGO (ORCPT ); Tue, 26 Apr 2022 05:06:14 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53B181632C0; Tue, 26 Apr 2022 01:46:05 -0700 (PDT) Received: from zn.tnic (p5de8eeb4.dip0.t-ipconnect.de [93.232.238.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 055C41EC0426; Tue, 26 Apr 2022 10:46:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1650962760; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ytJ8gqI6iL6hkQ4cMkAqnHDUUazMUuvlLkFKabJ8Vj8=; b=WTOQOMUpowORo4Pf9B+Tvvwl+QopiWxJjwOoMc71wqQkg60NwYuRA9QHk03Y1Y8fhAnYE1 mNVaBgrJPPvn0dZOlq9FHBi/pb91TDPht54XBIvWhpEsrB+3GsDE37suRWXOFGNZG8RZmY pBPDmRPRF2/4XnXIn7U022uQcbDxYjs= Date: Tue, 26 Apr 2022 10:46:00 +0200 From: Borislav Petkov To: Josh Poimboeuf , bpf@vger.kernel.org Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , kernel test robot Subject: Re: [PATCH] x86/speculation: Add missing prototype for unpriv_ebpf_notify() Message-ID: References: <5689d065f739602ececaee1e05e68b8644009608.1650930000.git.jpoimboe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5689d065f739602ececaee1e05e68b8644009608.1650930000.git.jpoimboe@redhat.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 + bpf@vger.kernel.org Let's sync with bpf folks on who takes this. I could route it through tip ... On Mon, Apr 25, 2022 at 04:40:02PM -0700, Josh Poimboeuf wrote: > Fix the following warnings seen with "make W=1": > > kernel/sysctl.c:183:13: warning: no previous prototype for ‘unpriv_ebpf_notify’ [-Wmissing-prototypes] > 183 | void __weak unpriv_ebpf_notify(int new_state) > | ^~~~~~~~~~~~~~~~~~ > > arch/x86/kernel/cpu/bugs.c:659:6: warning: no previous prototype for ‘unpriv_ebpf_notify’ [-Wmissing-prototypes] > 659 | void unpriv_ebpf_notify(int new_state) > | ^~~~~~~~~~~~~~~~~~ > > Fixes: 44a3918c8245 ("x86/speculation: Include unprivileged eBPF status in Spectre v2 mitigation reporting") > Reported-by: kernel test robot > Signed-off-by: Josh Poimboeuf > --- > include/linux/bpf.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/linux/bpf.h b/include/linux/bpf.h > index bdb5298735ce..ecc3d3ec41cf 100644 > --- a/include/linux/bpf.h > +++ b/include/linux/bpf.h > @@ -2085,6 +2085,8 @@ void bpf_offload_dev_netdev_unregister(struct bpf_offload_dev *offdev, > struct net_device *netdev); > bool bpf_offload_dev_match(struct bpf_prog *prog, struct net_device *netdev); > > +void unpriv_ebpf_notify(int new_state); > + > #if defined(CONFIG_NET) && defined(CONFIG_BPF_SYSCALL) > int bpf_prog_offload_init(struct bpf_prog *prog, union bpf_attr *attr); > > -- -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette