Received: by 10.223.164.202 with SMTP id h10csp102644wrb; Wed, 29 Nov 2017 17:58:19 -0800 (PST) X-Google-Smtp-Source: AGs4zMaRRSgZUg62HXUMi/ckCzvhzRB4FMX/8wZhApmE3MC95GzVW1MYxvcZDQrEn1RfuORZKDV/ X-Received: by 10.84.234.9 with SMTP id m9mr900931plk.436.1512007099701; Wed, 29 Nov 2017 17:58:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512007099; cv=none; d=google.com; s=arc-20160816; b=wEKRDWXMYRJDJYP1BUgjm1gUkDr2TT8PCcM60ZlvD8LAKXKlP9M24XpspNJ0XgkMaX 3cs9swR0kSnGhdyycVMXNOsJUQVQFHKgl7EfCJj7H0WHDlwn/1Rq6Nd+lhI0FAUxGjSz DiwpUuj+F0W3nVXB61UVEb5C/I0TPXhVyPwGzYlGthgZufS9EQKtHrnZ05E1zlTI6tBF tPORli1I1xzgDuIe34ANeMD4SDrZs+H1JqsCNeB8gqyrc92nxsAjfNdJDqpEUkOht64X l3dc1pSt7+uQ0bb71tZj9rQQdV8hM6IPShyJVxwUucS4FD82hxbSfxt0AINu5DzIcAWv ZEog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=hAoJ7vtwh+ZnHj10ecfTMPYOBJxImRAwEWgM/nr+X6w=; b=Q52JqlnE2hN4htZ2Z1yVqZLVF5LPDW9xMo1pam+LBUR1DAHBoZsqZUJmYDXU7uPhS1 5qboXtvWE612u5dnoG3NB/w9ZsgAcxKQJKN5+2P66VCI/gaM5vifq8TDx1MpYGCKossN 4KyyN1ylqhSxzk4qI2qApgOEXmO6c31YQoSwPHt/N6sKkynrAvZ2XvcDXkoT2CuWMzFj ls1U0KQeZr8z/ymgLBAeJF4AQAgErLdqe3CqA5ifS5DIk0Uc4rN9NtUzywiOcbKdq6l/ U3dhftGn2m9OvAJzxSwL5yi+jD/BAQtKSz0+90QYLyfgZciBhvAQihbgq+CiPpz+8D2n yoEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=z8q8XtAI; 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 q2si1266600pgp.400.2017.11.29.17.58.06; Wed, 29 Nov 2017 17:58:19 -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=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=z8q8XtAI; 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 S1753587AbdK3Bzw (ORCPT + 99 others); Wed, 29 Nov 2017 20:55:52 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:41793 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753552AbdK3Bzt (ORCPT ); Wed, 29 Nov 2017 20:55:49 -0500 Received: by mail-pf0-f194.google.com with SMTP id j28so2421161pfk.8 for ; Wed, 29 Nov 2017 17:55:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hAoJ7vtwh+ZnHj10ecfTMPYOBJxImRAwEWgM/nr+X6w=; b=z8q8XtAIE3cbwxO9p9T1DqIka3Vqemg/EBVc+vdAqm66p689PCe+qZSKHc7nbFUSSh XnDBbu8N9rPzDUYQ5yr9RlE2ctgB3OSFsLH4wlb8OrR5AKVBn2XmjhsEL+zaTN41ZcCb V6rjPdfKrNr/O9XOld2toRIUwbDKsSHIM9/B/38h/eoMiLx5kd+aTuLyhpAoikFUfblP kILsXGMBvqd3UV5Kkuo/Q40HzBAP0Auc1klDy3LisrLaetEyYOx63hOa+5ml0fAEHTgW VLFmyKgfetsXvVZ9GRqxIx+iQm0KYzZ7+s2KsWDDHUpmsmyzkmmPnTsevQjh9McVseQB teQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hAoJ7vtwh+ZnHj10ecfTMPYOBJxImRAwEWgM/nr+X6w=; b=lq+yKC03cSeWMunMHvLM2L5IDL7FUfFPtQTmNRHcjIdb0jrmBzDTClZGUf2g/jwykn +FjeJoSdERIOPjI5U3w9IuxHgzw4Rak26FBJEaBzNd3t6vA5pykrLGYkshHVF7FcBkgE d2YRx4ypukeE6ANHwz/o3K+xKUUI2fYB4GUX7C2urwk2E0HVhdJ30I4cRSr8q8sz+YZr Lxk3cx4twp+lzIVK7bd1xNABVGfQ4YwWCR5ydjOPuU6Xtl4pntWs2ekPeT4Vp13g47jl H2QrfN09Z0XSuOBfFjRCh593og31dBknpvi4z91FjgvwKMzT+lI93ftHiSvaj7pb2e9w CyhA== X-Gm-Message-State: AJaThX4ZrpW/0JGO6zP9oZGTwc9OF5hNsCxFO88ZE1LE0hfSHYnMWfUn vOjFbvBrXEbHPTGvCEB6TDr0ig== X-Received: by 10.101.64.71 with SMTP id h7mr864961pgp.144.1512006949004; Wed, 29 Nov 2017 17:55:49 -0800 (PST) Received: from brutus.lixom.net (173-13-129-225-sfba.hfc.comcastbusiness.net. [173.13.129.225]) by smtp.gmail.com with ESMTPSA id l80sm5178177pfb.124.2017.11.29.17.55.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Nov 2017 17:55:47 -0800 (PST) From: Olof Johansson To: Palmer Dabbelt Cc: Albert Ou , patches@groups.riscv.org, linux-kernel@vger.kernel.org, Olof Johansson Subject: [PATCH 05/10] RISC-V: Export some expected symbols for modules Date: Wed, 29 Nov 2017 17:55:16 -0800 Message-Id: <20171130015521.1289-6-olof@lixom.net> X-Mailer: git-send-email 2.8.6 In-Reply-To: <20171130015521.1289-1-olof@lixom.net> References: <20171130015521.1289-1-olof@lixom.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These are the ones needed by current allmodconfig, so add them instead of everything other architectures are exporting -- the rest can be added on demand later if needed. Signed-off-by: Olof Johansson --- arch/riscv/kernel/riscv_ksyms.c | 3 +++ arch/riscv/kernel/setup.c | 2 ++ arch/riscv/lib/delay.c | 1 + 3 files changed, 6 insertions(+) diff --git a/arch/riscv/kernel/riscv_ksyms.c b/arch/riscv/kernel/riscv_ksyms.c index 23cc81e..5517342 100644 --- a/arch/riscv/kernel/riscv_ksyms.c +++ b/arch/riscv/kernel/riscv_ksyms.c @@ -12,4 +12,7 @@ /* * Assembly functions that may be used (directly or indirectly) by modules */ +EXPORT_SYMBOL(__clear_user); EXPORT_SYMBOL(__copy_user); +EXPORT_SYMBOL(memset); +EXPORT_SYMBOL(memcpy); diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c index 4375375..8fbb674 100644 --- a/arch/riscv/kernel/setup.c +++ b/arch/riscv/kernel/setup.c @@ -58,7 +58,9 @@ static char __initdata builtin_cmdline[COMMAND_LINE_SIZE] = CONFIG_CMDLINE; #endif /* CONFIG_CMDLINE_BOOL */ unsigned long va_pa_offset; +EXPORT_SYMBOL(va_pa_offset); unsigned long pfn_base; +EXPORT_SYMBOL(pfn_base); unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)] __page_aligned_bss; EXPORT_SYMBOL(empty_zero_page); diff --git a/arch/riscv/lib/delay.c b/arch/riscv/lib/delay.c index 1cc4ac3..dce8ae2 100644 --- a/arch/riscv/lib/delay.c +++ b/arch/riscv/lib/delay.c @@ -84,6 +84,7 @@ void __delay(unsigned long cycles) while ((unsigned long)(get_cycles() - t0) < cycles) cpu_relax(); } +EXPORT_SYMBOL(__delay); void udelay(unsigned long usecs) { -- 2.8.6 From 1585425399435186560@xxx Wed Nov 29 18:18:04 +0000 2017 X-GM-THRID: 1585425399435186560 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread