From mboxrd@z Thu Jan 1 00:00:00 1970 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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 5E63CC4338F for ; Mon, 16 Aug 2021 21:05:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4284F60F11 for ; Mon, 16 Aug 2021 21:05:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233259AbhHPVGN (ORCPT ); Mon, 16 Aug 2021 17:06:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233357AbhHPVGJ (ORCPT ); Mon, 16 Aug 2021 17:06:09 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB7DFC0613CF for ; Mon, 16 Aug 2021 14:05:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=j4FGlKHzU+9QsIeL4bCA8FwQiqDc04xmmkeiNTCnd0w=; b=VF4MsJL4BjezM3z/K+B3WN3yqT b2XlR3fDiLOfH4hC8cWNwRl6IpQWUZUPYbuKyaOYtelhrVCNaqrxRLHoY6Lbbv6rUTvaUzBa6TqvM /7X5LIuopoc6cM/Rezog8OVyad4MIfVHvoy5VmUl6ESyRzVlaYzPScoRlnMPP3SNjjTNslQc7BM1c VUDtU+sH1TvAb4srXew3bxc/nNqOaderKDhQisucJ3lxgBiru9A+g8/RwOQGphKZeIVHHgK1Y1LFO Y4pyHSDfG1nXohCC4HyTLAVpHV4S+nKEJxPmiLDMKYQpfQLbWG/fbpzyYNkIveWrd8fexXT/047Ff A9Qb2iRw==; Received: from [2601:1c0:6280:3f0::aa0b] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mFjna-000IV3-OE; Mon, 16 Aug 2021 21:05:34 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Guenter Roeck , Vineet Gupta , linux-snps-arc@lists.infradead.org Subject: [PATCH] ARC: export clear_user_page() for modules Date: Mon, 16 Aug 2021 14:05:33 -0700 Message-Id: <20210816210533.16929-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 0day bot reports a build error: ERROR: modpost: "clear_user_page" [drivers/media/v4l2-core/videobuf-dma-sg.ko] undefined! so export it in arch/arc/ to fix the build error. In most ARCHes, clear_user_page() is a macro. OTOH, in a few ARCHes it is a function and needs to be exported. PowerPC exported it in 2004. It looks like nds32 and nios2 still need to have it exported. Fixes: 4102b53392d63 ("ARC: [mm] Aliasing VIPT dcache support 2/4") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Guenter Roeck Cc: Vineet Gupta Cc: linux-snps-arc@lists.infradead.org --- arch/arc/mm/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20210816.orig/arch/arc/mm/cache.c +++ linux-next-20210816/arch/arc/mm/cache.c @@ -1041,7 +1041,7 @@ void clear_user_page(void *to, unsigned clear_page(to); clear_bit(PG_dc_clean, &page->flags); } - +EXPORT_SYMBOL(clear_user_page); /********************************************************************** * Explicit Cache flush request from user space via syscall