Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2152828iof; Tue, 7 Jun 2022 21:31:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyO1t+m9LWUhaSvEQGd7MJvlPh0DGNbR0PAUoVDJ3+zH1CfsaPxsIZtKIutEI55UFnVGmPD X-Received: by 2002:a17:90b:4b0a:b0:1e8:6ff0:7ec1 with SMTP id lx10-20020a17090b4b0a00b001e86ff07ec1mr18230458pjb.212.1654662678013; Tue, 07 Jun 2022 21:31:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654662678; cv=none; d=google.com; s=arc-20160816; b=Q7QDfm41lipcZolokuYjWeQbZgSEOCdc4D6qOHEmZdHauR9I8wdC1ZzeoWcP0qOAXA sKAsywucbaYdhsDEVAHJuUMWncxOYgNyhVaHHGpXEdRgX9rJWwCmvBOuiScOctDZB6PW M+BuTLn87KNr5VgaZV3ZItRbHU0qkkjlHVq4g3VxKcHkRSN9f7fKMBrVJ7+ShMpD6Ram /+jKUU6cfRaBp+njUmlH8hdXUj91Vj+4nkHBQ7k/T3n7ez7arHhqMidfc5lgVEvU1z30 spkpVruFK3xtv+YrjF/VZ5DggYa1Y2b8/s7RqXm+Lh2hoLXImcIxZiAPiJZyoCDIZAKe R74Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YFbu3/xU/is4zhRvuBx7II0Zg1OzuhW+pg/IGz9d7Qc=; b=Liux6KR4Z6bzOo1LfTyTNQLAiX5Qq+QD4xRmVaPhiFKaW+SRahQQN7dnmWpQqH8IZc H9KmQ/b1pEPv+7/aLyX7oag3AJBtNPi9Cet8Xw+iLVBbRL05OPKrihmvpq91Gqe1GzvI JFeHSOeBn1Md3l6tY98OQnjtup4J49zbRGVo8Ngb5Y3CovTr5eTLijXL4hPyP3hgkwrM gsOhOTrcPYx7ciePrT4OE4yskRFoBLO7aXTqz8kmTW78f0yZVARoA44KCN3SmiyRpuFW xSGoH2B5tzNkgFYFrsSOI0CaE81Nx4npoT+YGOlFqkFyavNO109ehxEKTrwAWtQUsN6L 5Mww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g3F0FPIb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l4-20020a056a00140400b0051bc1e07544si26439909pfu.319.2022.06.07.21.31.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:31:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g3F0FPIb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 033573F7FBC; Tue, 7 Jun 2022 21:00:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379879AbiFGVO5 (ORCPT + 99 others); Tue, 7 Jun 2022 17:14:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376473AbiFGUQt (ORCPT ); Tue, 7 Jun 2022 16:16:49 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A0551CE7B6; Tue, 7 Jun 2022 11:29:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 59282CE2452; Tue, 7 Jun 2022 18:24:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 676CCC385A2; Tue, 7 Jun 2022 18:24:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654626248; bh=IZMxjjab0MeqFDPuBR/inMNlodIgWB0ahUKVDgWxLpw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g3F0FPIbrJPvDVgndqB1EPlJrRBzTDOObzM2q4Da7CWhyRwndUKBYQeJwxaRoYrbV 2tjlICaTOCvhFq5kojKwtyH8pvhVxYrzb063K60I9vm8x+/75Hg89SWYICUsjmJGDd GpHS2diTeDxFdLLiddi9G9jmjFT8pIeoCihUdVd0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Josh Poimboeuf , Borislav Petkov , Sasha Levin Subject: [PATCH 5.17 311/772] x86/speculation: Add missing prototype for unpriv_ebpf_notify() Date: Tue, 7 Jun 2022 18:58:23 +0200 Message-Id: <20220607164958.191727742@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164948.980838585@linuxfoundation.org> References: <20220607164948.980838585@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Josh Poimboeuf [ Upstream commit 2147c438fde135d6c145a96e373d9348e7076f7f ] 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 Signed-off-by: Borislav Petkov Link: https://lore.kernel.org/r/5689d065f739602ececaee1e05e68b8644009608.1650930000.git.jpoimboe@redhat.com Signed-off-by: Sasha Levin --- include/linux/bpf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/bpf.h b/include/linux/bpf.h index 2f7e00e7af37..e78113f25b71 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -2064,6 +2064,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); -- 2.35.1