Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2226939imm; Thu, 18 Oct 2018 11:01:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV61dZksL7/F1XzGhrbABvj1EK3fR9Q3UflKFSAuRp70iCaZSC5Qnhlj8HIWkcyZe8B5VKG4z X-Received: by 2002:a62:68c3:: with SMTP id d186-v6mr23733869pfc.195.1539885697770; Thu, 18 Oct 2018 11:01:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539885697; cv=none; d=google.com; s=arc-20160816; b=cTcOIl3gHTPACSZIxuZXc1TAjdiiTo4rqO39dsiULF6LSN+tMFX4x//ZO+nr77WsFS k2x092rwXAFPxnXetFZ63YPNEh+Naep50DdU2HVkDCr2zYcVsE5e1XqSHAB93IiCWmLH VSXBLFKGvU8JBm3Y/4jDYalAxE7Kb0XPMphPH/T4xGm/pfPi8MJkU3McQFi+eVFyJVTN 1nTTtdudEeVQtulbwgsJnEInEzEuZBGA2X4as96/XriqDXj8qwctMRRpSd5qN0IRWSxT GtlQ9Zt8eLUeej3cx1UJIyKKzX3MYzLjwXI0KxenYdYz8Xwy0kZGtuzjn3VBjRu5Dbiv Mpww== 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=swRgfROM6IWakMDnfYAYxQ242ttAhJcnlrJmzwoOGCk=; b=oBwKmQ9cuhuAtqnBisRFhcmILx6+VmwesaSss0a8PbB7Tf61DmExIcyIqCecNMfVF5 J1Br351sOIGP/M3Hwvr4d6OGbgm7l7oLF3Elbv57MspfhvFVx7P0V2E35OobAF/tBZYm Hc5R9W0fh00NLEtTHRqhF4zWK6V2u+7QR0eLf1fflZq8lxQYyBHLkbOowyLPqQNufL4f dDijcLfodHWx9a4EqmDmI6wkAEix4fApI3HHYlwrLHF8wYu4KQDCgKw9aQrDDDU4fXIc MRlVFZSAE30NPPevwCkd7ZNBrHx+J6ay5Yn3wi2i/yiVX3C6Tf3f+FLi29yE6IZX3MI8 eksA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2uREfogO; 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 e3-v6si22035803pga.369.2018.10.18.11.01.22; Thu, 18 Oct 2018 11:01:37 -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=2uREfogO; 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 S1729156AbeJSCBD (ORCPT + 99 others); Thu, 18 Oct 2018 22:01:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:48684 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728724AbeJSCBC (ORCPT ); Thu, 18 Oct 2018 22:01:02 -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 2D54B21476; Thu, 18 Oct 2018 17:58:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539885537; bh=60r8qyRzV/ueA68i7m4dRAZRqNOHmJQhyVj7JKyKtcw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2uREfogOozPB7l318sR/jr0/vy+NxpP1Slc5uQvrBfm4QmNPr6jcEQJZkMSHGVddQ +7J9jIxjT+TQ6Mc0P9VxAAmZZZMoEjYLVuGgJpyz70LAmKCbrU/VsMr3nC8aD54fzL Wzm31KeCAAB9UUlJw7eS8/g1j7AHP3orsb4YQpwI= 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.18 42/53] RISC-V: include linux/ftrace.h in asm-prototypes.h Date: Thu, 18 Oct 2018 19:54:35 +0200 Message-Id: <20181018175423.687063206@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181018175416.561567978@linuxfoundation.org> References: <20181018175416.561567978@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.18-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 */