Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2561318lkm; Mon, 20 Sep 2021 18:45:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQFYWpaRsPYYTuEAJHIW3+wd4rf7Ji2m/CqhOf7TPnShNU0eFUTwxI9vwe7Rh6yk9k7m4e X-Received: by 2002:a05:6e02:1a28:: with SMTP id g8mr20777971ile.158.1632188633297; Mon, 20 Sep 2021 18:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632188633; cv=none; d=google.com; s=arc-20160816; b=nIW2BU4FhzL8/t66vpexrJk8gruh6Nae44hmlPYNMAi1r999GDyE9G+3gh6Wz2R10Z PruCm8PWaHZa6lnJXi25nTwwBzZuEuXIZwMi6cRn25iZpNXBEJeVo2AUtVqnxeWB1Jwh SIOnyUxaSZF57/zHTYH2XWS0bzjEa8Cbga4vY+SiteeSDPnoKs5o+zKf9Jf1EbMdNqGV A9etoB0eyAdM0Gp/0PjbYMX6qrChZyqUyEHCDlHy5Bck55lSXGx5e/NIejavQThX6j4n UyMJQwHClVMYZwcY7L/ZIgYQyAwUTr8VJgn5YDKrNnV3z4QYEJC6saocJm2xxyOaJNII wsFg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sHJLHV6c01D6vPWk/51BKHXEethZuUPnkIGlfE9NwX8=; b=G59qqXbtoEmASs6sHsbsJZWg+j0SUMrRaetdLeO20lW9WesBk6sKl/GeEaUn69Ntmf iaPQt5HRG+zJHchxVnDjQtE/HkzqCjZtIen71icbV4468HIFFXKQlnPtBXhHB9XNAek7 fyGMfg8gRRAB27O44QE3IBhQ+UdnNQI7lScw8lqF+qrmc47YvHYJmGNVNa8LNVXj29rb aqRXpWm/JbgCKoxSXNrV2J06MK1EUc/ru1+Uz9sCeUOdU0ERgxuoMHGnddfz7qd8fwA/ 8qX6pX6lkONswWAPk2eprevBS0d5iwL4sx/Vm5d49aogm+QO++Kem99x4TRjfPmQ8o6L /kHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=h1KCk94L; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l126si13420762ioa.77.2021.09.20.18.43.41; Mon, 20 Sep 2021 18:43:53 -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=@linuxfoundation.org header.s=korg header.b=h1KCk94L; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244616AbhITQ4p (ORCPT + 99 others); Mon, 20 Sep 2021 12:56:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:39398 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245387AbhITQxJ (ORCPT ); Mon, 20 Sep 2021 12:53:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 83C1F611ED; Mon, 20 Sep 2021 16:50:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632156611; bh=faO3FdE5clD/PqC7Oe5fqJAwQaksY0pubEw8Y/foOpk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h1KCk94LNxlDoIWo9OF4B2AWQ7K/vQi0uEF2fed2aE+/bnPRpC1Xk1zxxCoUO959/ 7cJc3u+IMbufIimMlvAwst4sZS4/778VW49IOtdBWRm2tIJ+OqoX+E3r825t5QDK7R hrc++T8vooHDljtlheEsCXf8G4rKwL4S5RtzDy+o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , kernel test robot , Guenter Roeck , linux-snps-arc@lists.infradead.org, Vineet Gupta , Sasha Levin Subject: [PATCH 4.4 131/133] ARC: export clear_user_page() for modules Date: Mon, 20 Sep 2021 18:43:29 +0200 Message-Id: <20210920163916.907549425@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163912.603434365@linuxfoundation.org> References: <20210920163912.603434365@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap [ Upstream commit 6b5ff0405e4190f23780362ea324b250bc495683 ] 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: linux-snps-arc@lists.infradead.org Signed-off-by: Vineet Gupta Signed-off-by: Sasha Levin --- arch/arc/mm/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/mm/cache.c b/arch/arc/mm/cache.c index 017fb440bba4..f425405a8a76 100644 --- a/arch/arc/mm/cache.c +++ b/arch/arc/mm/cache.c @@ -904,7 +904,7 @@ void clear_user_page(void *to, unsigned long u_vaddr, struct page *page) clear_page(to); clear_bit(PG_dc_clean, &page->flags); } - +EXPORT_SYMBOL(clear_user_page); /********************************************************************** * Explicit Cache flush request from user space via syscall -- 2.30.2