Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1022369yba; Thu, 4 Apr 2019 02:38:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4jwYJtHdCpYFw721NXAEjdG7ihxg7xlKmxPBzIIewRyIsWGsaEPqVYU4UkQ+gnv3+gwYe X-Received: by 2002:a62:2fc7:: with SMTP id v190mr3155657pfv.10.1554370682535; Thu, 04 Apr 2019 02:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554370682; cv=none; d=google.com; s=arc-20160816; b=loHMMnbwrYFQn+MEU8E+QsoxMWK/uSnUwFi/ChjfP+Z4mS0XY+bMc2UJYQcINfXzBb CKyCfFFxs4gt5khRMW0mhg8A5SQEwjvgEnQQlsTTuARejhCmPKKf+iIlSfLrkQkOecqY IFsog/3klzHQpE3m2kF2spmiMwTviWGIyj+Qs0bZcdlb6IsEtAcs12oQpa6NOl1qdZ4h Ie5duercRPU7M78/N0If83ZNaUCqnnXzYq03zOFs7UMeUbHegsPaRacXXq/EhnRc28OJ eYj3boGE5RT/dNgC0Sq5/Pw8cgfz5kcenm5vTGO8buHcLZ1Wz9aPvT0z66yYm/5r9ed+ tLdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZhYXFniLR7YnPenhUAyvPG3UqhAqxf7zpjn03/2OkRk=; b=SBjgd2+Yzrxmlfso4uEf16vnlELyK9EN76WC8qtn2SCwjnl3LqXa4zMu4hcHSyMErN xZ388jTwLiF8Mq9cHzW5IgyUOMjBZ9ytTJgGm8Ogb8b8mEHH0kPF4p1w6hwVFXM1IupD 7eD8VkF14avmQ3+KRQv5yZAJKDplmVHc32YLxVnsqUJm8RICIy9u7cND6QRQliItPY05 y7urrkDjldY6vGEUPNRW8IBveVBjpPjZxV8gXGOw7s98canfABDaupWMjH1oMN8btnq/ OVWauuY8LxhDgdkrLKFRrbVFE9o8ZtUVst8C22hZP0l93OjjbtjEu+fs+wLspgd1NQrr ob7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Caqs9e3Y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si15530451pfd.88.2019.04.04.02.37.47; Thu, 04 Apr 2019 02:38:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Caqs9e3Y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732193AbfDDJgk (ORCPT + 99 others); Thu, 4 Apr 2019 05:36:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:43768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729416AbfDDJFh (ORCPT ); Thu, 4 Apr 2019 05:05:37 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3674A2186A; Thu, 4 Apr 2019 09:05:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368736; bh=m1chJ3oGxsatMQf5Zt1rKaUxtrZX/6F+yXkExyWmBTw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Caqs9e3YOT1h7E2GDgRQG0BlkFrqE6pSS8cu+FMewupanoTzYEkDqCfJ6UnQupNkV mlouFpciCgk5Boxi2mTeTQG78OyMnlgug9TAphcbhM78FfNE773q5qP2H9paMWXaUf 7evlja0UMLvy/1Azx5Ll4EwdX8qkC5NO2Oc47rek= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Valdis Kletnieks , Song Liu , Daniel Borkmann , Sasha Levin Subject: [PATCH 4.19 143/187] bpf: fix missing prototype warnings Date: Thu, 4 Apr 2019 10:48:00 +0200 Message-Id: <20190404084609.903142625@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084603.119654039@linuxfoundation.org> References: <20190404084603.119654039@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 116bfa96a255123ed209da6544f74a4f2eaca5da ] Compiling with W=1 generates warnings: CC kernel/bpf/core.o kernel/bpf/core.c:721:12: warning: no previous prototype for ?bpf_jit_alloc_exec_limit? [-Wmissing-prototypes] 721 | u64 __weak bpf_jit_alloc_exec_limit(void) | ^~~~~~~~~~~~~~~~~~~~~~~~ kernel/bpf/core.c:757:14: warning: no previous prototype for ?bpf_jit_alloc_exec? [-Wmissing-prototypes] 757 | void *__weak bpf_jit_alloc_exec(unsigned long size) | ^~~~~~~~~~~~~~~~~~ kernel/bpf/core.c:762:13: warning: no previous prototype for ?bpf_jit_free_exec? [-Wmissing-prototypes] 762 | void __weak bpf_jit_free_exec(void *addr) | ^~~~~~~~~~~~~~~~~ All three are weak functions that archs can override, provide proper prototypes for when a new arch provides their own. Signed-off-by: Valdis Kletnieks Acked-by: Song Liu Signed-off-by: Daniel Borkmann Signed-off-by: Sasha Levin --- include/linux/filter.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/filter.h b/include/linux/filter.h index 1a39d57eb88f..037610845892 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -844,7 +844,9 @@ bpf_jit_binary_alloc(unsigned int proglen, u8 **image_ptr, unsigned int alignment, bpf_jit_fill_hole_t bpf_fill_ill_insns); void bpf_jit_binary_free(struct bpf_binary_header *hdr); - +u64 bpf_jit_alloc_exec_limit(void); +void *bpf_jit_alloc_exec(unsigned long size); +void bpf_jit_free_exec(void *addr); void bpf_jit_free(struct bpf_prog *fp); struct bpf_prog *bpf_jit_blind_constants(struct bpf_prog *fp); -- 2.19.1