Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2234938imm; Thu, 18 Oct 2018 11:08:31 -0700 (PDT) X-Google-Smtp-Source: ACcGV60M9ts/uf8xKKhn68SomV8uQs1qoUOI9N8+dp7W3VyF42pF6/RBzfRretHokcljk81nClVI X-Received: by 2002:a17:902:bb88:: with SMTP id m8-v6mr30030206pls.120.1539886111800; Thu, 18 Oct 2018 11:08:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539886111; cv=none; d=google.com; s=arc-20160816; b=Rh1uBcMJBtzgz0fmcf/AJQZ473+fh9bFodTlbDP25Eyk8+q+NbCV3cnQNGciFOYDxg KMU6XPhwi0+Vj/0ZUsRpcdFyE8l0t5kApZmrck6YQE1MVjz6rdVgrA3TpAQB80K0rvDN fGff0kYhB5y0SGpPEPlKnoW3jyHsjD7FXbyBNIUMg3em1nIq4vj6OJujpiYXVjaPgC+Z GD6VF5h1TzSXTb38Fcr+5KoSWvhqWGRQXtjsWv4vWU2NLbZqFIxy+TrJygTw/16WZvrM o2s3xVk35ACxpOU9RiFs2QQBXA5Sit737SU62juef9Vl8sHChPgwEwftS29Cd3lLBgvg 1QSw== 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=lMrKJ8aJlVb6Crl5375pBXkT6KWkD2Ftv6urwne4N30=; b=HDYKEFaOhVmT2dXNMmTiheReDfJ3jhB0RptDW+OCfPLXSHImhDZxfmLDRk++zbsRA7 GV0sEJFzpqicK5B5aPgoj8JoDSjNYx4fgeWA+8soAzvhnLa15k5/Qt30+bG1DCDPBl9A F65f1sdmyEfEGnbtKtenyUd1kt4yZdh6GTUvEYXQYYm0zVTHaK7Gg+nnDjIE21+mKKXE hPrLEpO5V3+rr9b0nhzSJGDV3PSxGq6oJVZyjStuQm0EMb1hroGGjr6Tb+jDb06sZA6y mQFC93NFON3djr47GxEhiO9TXw5fxvFthVddLWYrPNdpR0pMjsF4PVftvOs1lL49+PXy ySmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="EY/ehsgS"; 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 c29-v6si18368372pgc.10.2018.10.18.11.08.16; Thu, 18 Oct 2018 11:08:31 -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="EY/ehsgS"; 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 S1730675AbeJSCJ3 (ORCPT + 99 others); Thu, 18 Oct 2018 22:09:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:58930 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728851AbeJSCJ3 (ORCPT ); Thu, 18 Oct 2018 22:09:29 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (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 65BDD2145D; Thu, 18 Oct 2018 18:07:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539886041; bh=52/qiMNakQ6gPiMAttlhdfhp1MPP8UQeYkqZH0hvsN8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EY/ehsgS4RFfZ6nUFOAsooU0PWRiIDIfKto6TwUx/wrLCHbNyEUG/F8VcMo13l8+n Bmb2gS45oHHtV9UiMO3Ie8A2/yL/huU7V0J+8/eXxfUaUVSxuEkY70Tvy9YIc33RhT 8ce7HVyVEzFz8xAfrMrenWyUsWreWPc+SsvqjxmQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Karsten Merker , James Cowgill , Palmer Dabbelt , Sasha Levin Subject: [PATCH 4.4 40/48] RISC-V: include linux/ftrace.h in asm-prototypes.h Date: Thu, 18 Oct 2018 19:55:15 +0200 Message-Id: <20181018175430.054065335@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181018175427.133690306@linuxfoundation.org> References: <20181018175427.133690306@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: James Cowgill [ Upstream commit 57a489786de9ec37d6e25ef1305dc337047f0236 ] Building a riscv kernel with CONFIG_FUNCTION_TRACER and CONFIG_MODVERSIONS enabled results in these two warnings: MODPOST vmlinux.o WARNING: EXPORT symbol "return_to_handler" [vmlinux] version generation failed, symbol will not be versioned. WARNING: EXPORT symbol "_mcount" [vmlinux] version generation failed, symbol will not be versioned. When exporting symbols from an assembly file, the MODVERSIONS code requires their prototypes to be defined in asm-prototypes.h (see scripts/Makefile.build). Since both of these symbols have prototypes defined in linux/ftrace.h, include this header from RISC-V's asm-prototypes.h. Reported-by: Karsten Merker Signed-off-by: James Cowgill Signed-off-by: Palmer Dabbelt Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/riscv/include/asm/asm-prototypes.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 arch/riscv/include/asm/asm-prototypes.h --- /dev/null +++ b/arch/riscv/include/asm/asm-prototypes.h @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _ASM_RISCV_PROTOTYPES_H + +#include +#include + +#endif /* _ASM_RISCV_PROTOTYPES_H */