From patchwork Fri May 14 13:17:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 439302 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B080AC433B4 for ; Fri, 14 May 2021 13:18:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8C12A6145E for ; Fri, 14 May 2021 13:18:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232495AbhENNTK (ORCPT ); Fri, 14 May 2021 09:19:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:52146 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbhENNTJ (ORCPT ); Fri, 14 May 2021 09:19:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6CC3A61451; Fri, 14 May 2021 13:17:56 +0000 (UTC) From: Krzysztof Kozlowski To: Wim Van Sebroeck , Guenter Roeck , Thomas Bogendoerfer , Philipp Zabel , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, John Crispin Cc: Lee Jones , Krzysztof Kozlowski , kernel test robot Subject: [PATCH] MIPS: ralink: of: fix build of rt2880_wdt watchdog module Date: Fri, 14 May 2021 09:17:50 -0400 Message-Id: <20210514131750.52867-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org When rt2880_wdt watchdog driver is built as a module, the rt_sysc_membase needs to be exported (it is being used via inlined rt_sysc_r32): ERROR: modpost: "rt_sysc_membase" [drivers/watchdog/rt2880_wdt.ko] undefined! Reported-by: kernel test robot Signed-off-by: Krzysztof Kozlowski Acked-by: Guenter Roeck Acked-by: John Crispin --- arch/mips/ralink/of.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/ralink/of.c b/arch/mips/ralink/of.c index 0c5de07da097..b3ce706426c4 100644 --- a/arch/mips/ralink/of.c +++ b/arch/mips/ralink/of.c @@ -24,6 +24,8 @@ #include "common.h" __iomem void *rt_sysc_membase; +EXPORT_SYMBOL_GPL(rt_sysc_membase); + __iomem void *rt_memc_membase; __iomem void *plat_of_remap_node(const char *node)