Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp462079ybl; Tue, 28 Jan 2020 06:20:49 -0800 (PST) X-Google-Smtp-Source: APXvYqykNfId2HRYPK6JvHdbRMd/DGBShXxGIpsQzYU9R9b1ngl0w7feEYtPwEd3OuOj5Z70MEUO X-Received: by 2002:aca:c383:: with SMTP id t125mr2778054oif.122.1580221248961; Tue, 28 Jan 2020 06:20:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580221248; cv=none; d=google.com; s=arc-20160816; b=EMnCdkgaQUFCzxGrFvMa9yCJmZWsbwJrgBtWDpMn9JYqs/rtcOcEbtqDyf803JhSWD 5x73q2pkk9lIY7H91bGWunOco+Jk1mxJk/jHzVyTeff6DB3eitZyRk/KJs2QB+Gxb6wY BAc7w21bi/VPIEoajB94vpuwK0pmEs35P3ozS5dSIFl7ejotv7xS0VnUJ8VllzWEethj mLTRy7R89D7Nkd0qMbl8bGQ+Ne1mbtfJdWQETIVbLPFQ3Bx1d58OTS9bWR+CFiw60+K5 f9NTF9ZtHE2StOKW9vvjThg7vB2nkW9l5DyaV/kkGkGao6iRRteH4z5ufUIuiU/R6AVf 6r+w== 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=6Gm9H4lDCpvSfWQCW7UBQ6KBHXbD3zQ9vdsYYFvuEic=; b=yu1oype5AAQqnJt7ToHctCXh4JxUt4P+34skFVyteeSHyqBxc0K/AbWo0QfLpPTbJI E3D5YRsWkeGDeNy+bxYFIlx/gEarokLkgY0/M4HqduJbuEUKVxx87Raq7La60SxTRhA4 1laHwSQ0tLUzuKZEnto6ptzHUx1r3mp4Zs68oN2wvnfKkzlLvdNLHI/WlJCsnCTU2T1P BbGqyI7zHsIUAuduhUyEmSX/vIXs+UMOySDrNkaP3bBPwCnBh59Ue3oQ/U8/BLVZMQbi NQPnNvbie/kw/3SSr8PteT+8E/gEFAYJJAdtGNRKCdzoe2WSkCGl+WvJ963uscigCpnf dV6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MF0a7Lct; 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 h7si7679786otm.165.2020.01.28.06.20.36; Tue, 28 Jan 2020 06:20:48 -0800 (PST) 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=MF0a7Lct; 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 S1730690AbgA1OSg (ORCPT + 99 others); Tue, 28 Jan 2020 09:18:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:42548 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730692AbgA1OSc (ORCPT ); Tue, 28 Jan 2020 09:18:32 -0500 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 5B75B2071E; Tue, 28 Jan 2020 14:18:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221111; bh=BUju0Wx30sPMwP56BcCcBb6OikCck+XYZB+oJtZUH1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MF0a7LctiJvF+msgA5UZfkfAosWqbu++CAHy0wDpVnBzabXq4ja4lTp5inM4ZqSlo +JHNc1UC2RZuYwIAr8OXj19D5zUyFOwIbdGCbUAS752i5t/8yIYq+5SCgu5SG6Whof X5DxmVzv6mW0ayRmsv1bTNozPGX6doS4WjBd539g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guenter Roeck , Ley Foon Tan , Sasha Levin Subject: [PATCH 4.9 093/271] nios2: ksyms: Add missing symbol exports Date: Tue, 28 Jan 2020 15:04:02 +0100 Message-Id: <20200128135859.516344561@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Guenter Roeck [ Upstream commit 0f8ed994575429d6042cf5d7ef70081c94091587 ] Building nios2:allmodconfig fails as follows (each symbol is only listed once). ERROR: "__ashldi3" [drivers/md/dm-writecache.ko] undefined! ERROR: "__ashrdi3" [fs/xfs/xfs.ko] undefined! ERROR: "__ucmpdi2" [drivers/media/i2c/adv7842.ko] undefined! ERROR: "__lshrdi3" [drivers/md/dm-zoned.ko] undefined! ERROR: "flush_icache_range" [drivers/misc/lkdtm/lkdtm.ko] undefined! ERROR: "empty_zero_page" [drivers/md/dm-mod.ko] undefined! The problem is seen with gcc 7.3.0. Export the missing symbols. Fixes: 2fc8483fdcde ("nios2: Build infrastructure") Signed-off-by: Guenter Roeck Signed-off-by: Ley Foon Tan Signed-off-by: Sasha Levin --- arch/nios2/kernel/nios2_ksyms.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/nios2/kernel/nios2_ksyms.c b/arch/nios2/kernel/nios2_ksyms.c index bf2f55d10a4d8..4e704046a150c 100644 --- a/arch/nios2/kernel/nios2_ksyms.c +++ b/arch/nios2/kernel/nios2_ksyms.c @@ -9,12 +9,20 @@ #include #include +#include +#include + /* string functions */ EXPORT_SYMBOL(memcpy); EXPORT_SYMBOL(memset); EXPORT_SYMBOL(memmove); +/* memory management */ + +EXPORT_SYMBOL(empty_zero_page); +EXPORT_SYMBOL(flush_icache_range); + /* * libgcc functions - functions that are used internally by the * compiler... (prototypes are not correct though, but that @@ -31,3 +39,7 @@ DECLARE_EXPORT(__udivsi3); DECLARE_EXPORT(__umoddi3); DECLARE_EXPORT(__umodsi3); DECLARE_EXPORT(__muldi3); +DECLARE_EXPORT(__ucmpdi2); +DECLARE_EXPORT(__lshrdi3); +DECLARE_EXPORT(__ashldi3); +DECLARE_EXPORT(__ashrdi3); -- 2.20.1