Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1008494yba; Thu, 4 Apr 2019 02:18:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrG0c2Lg1K6S9aH/yFjGahDnuchN+WCy3wUi9LBzUWZ3zi/9+J2oeCFAZ6l8N62ODG2igS X-Received: by 2002:a63:4e4e:: with SMTP id o14mr4735022pgl.254.1554369513074; Thu, 04 Apr 2019 02:18:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554369513; cv=none; d=google.com; s=arc-20160816; b=nxcj9n2qykGMErua6OJekec09nEKcvP7asqvGCOQKmLKlG66s9cMNJsDV+j4tAMy45 7kstdb+cKo4JAXhPLoaM2419Ro5OItPeEOsuGFkcy3b7hncKaYH4lHPZWZpBi1JbBumR xUGY1KUm8XhIvR8tCjGKobemUaCNy8tkq59dTP86G/p7iiZh/n8AYHhFalI0jpArflJ8 edynWsDv1UQbp617sTW9hk4aT/TeFAWyqxuCqynzreavNNaUbT6vV3mTc5G3wwXCTsdg iRvEnvAP1G94ayGrYaUJOELYgc6TE6mFpvDnqBaf26AgUoqY50409EnWJGh3BEatJSgz xLnQ== 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=3v3KdgKeBU/wBUfg7JUSkyPsjXqy6dQZspYLCs7hjq8=; b=lqAjEkbnmPpyrzvXKWCQ/aKx1mPUB0tZeZ67ZyToPTel3zv80YILyxOdQqc26RxCBx B548oPMgXD7O2fia3byYQLQ3tom0lkTabPU8o1Kg23RSO1nbmxdBw0iCE7njbC2+rqvK 8LuSXvRVkev6AhEK4DVxfkBxqPGTCp0xbu7S+VK03kfO1ZDpBfHIPMc/SGTKOzEX/swT Lb6NUpbrcu0nSe3Gs6wamSPbdEFpZMgo+TC6LK102UY0BC8x1ktjyIhNenteL3gDW0eG ibm0b+SSgxDWFqljbofeHlrE/K61tI9NUDcAfqmtVUVXWSRbpMAJLby5wrBYztK+4FzO aD8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=igtblQhy; 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 z73si15986298pgd.345.2019.04.04.02.18.18; Thu, 04 Apr 2019 02:18:33 -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=igtblQhy; 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 S2388065AbfDDJQb (ORCPT + 99 others); Thu, 4 Apr 2019 05:16:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:57668 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388040AbfDDJQZ (ORCPT ); Thu, 4 Apr 2019 05:16:25 -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 856172054F; Thu, 4 Apr 2019 09:16:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554369385; bh=g98lJnzl7z1yu/6IaGP4+0vDTvDFHiO1c/NhU0TVhAw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=igtblQhyE/SR2fTR/Rywp9JQCdxbBrFwOu2N7X4IFXAo0JZ7aQm49zb55NUIFAkUv sVhPkOYk8UzoGbOjxAPdTKdyxsaPNE/EfEnIGqhVOLAJqcShoH4hjxxqtu/tNYTZHR TBeUgLQ9DX19AXlhuZ+rmtJD7IZ4weXmnjrqXZzw= 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 5.0 188/246] bpf: fix missing prototype warnings Date: Thu, 4 Apr 2019 10:48:08 +0200 Message-Id: <20190404084625.767186914@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084619.236418459@linuxfoundation.org> References: <20190404084619.236418459@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 5.0-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 e532fcc6e4b5..3358646a8e7a 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -874,7 +874,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); int bpf_jit_get_func_addr(const struct bpf_prog *prog, -- 2.19.1