Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp650030pxb; Mon, 16 Aug 2021 14:08:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxztKBDFh/hqxkI9Mpi0lBYVvQQRBFtsuh9z6Hptq85N1acCQIlKbXicaFobXRbdQi6ZZpm X-Received: by 2002:a92:4406:: with SMTP id r6mr567480ila.88.1629148095655; Mon, 16 Aug 2021 14:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629148095; cv=none; d=google.com; s=arc-20160816; b=FkUlDrr5omxL9sZAM3EKTrLztg/ulKWEqM+R2P8+0Wr4DwDAEAiNa7ytVYTwUO/LGm E5qKqszgA31Gdew98IHyezzAhuKyjd+F4SpAD/C/3Ot3n0HFRhN3JDs/6VlxPwPtyguG JHM50/IF5quc6RMjtAg71g1tMoDFuFFrWHVDp/IE18uFyoMf3rq5AlIEPXkWXcNTXYON AnRtcSYRAB9ER88vnRe9JJPIogEXXbP1bRVsMEpTazpfIZBzaxECsSlmLxKRYC90L+xK BdQNg64OjUCVp/gJSnHpqQJbj7rZiYMw5lOLkfdiujnBHHyvjjH7AvKVJyuAIco34pFO 3sGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=j4FGlKHzU+9QsIeL4bCA8FwQiqDc04xmmkeiNTCnd0w=; b=zcJ7p89CXsb82AlvwfELodvz02Uj9S8g4t047LxEyyM/U5IIzXzaldSgz6JrguYiZl vT5Jw/Ia1cEz39nQRsmQOtcQvIiIw8AOoT+6ppVLdYJuBBjb6JnPl63aa7tT3Wy5EO/+ tCtRrIQg/lYIwYuFgdcVJyse4JbSGfeGXSsesBnrkxPWjv+iUDZGYO5GinqG1T0wneJy rvFPGqNERQ2EPMRlsAnheoNHaVV6vj+Qh5hQ0yWNequVyBmtjvhNq0+ny1ywtETxPAPk 7GDNDn1wXiFIxgS1C0dGWQ7dyWZuebcmrEGbzG0AArLtJSRBudxey+ERzG4nxSqV7oDn cRBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=VF4MsJL4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si46063jav.94.2021.08.16.14.08.03; Mon, 16 Aug 2021 14:08:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=VF4MsJL4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233459AbhHPVGM (ORCPT + 99 others); Mon, 16 Aug 2021 17:06:12 -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