Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp678610pxb; Mon, 16 Aug 2021 15:01:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw03NJ0VKFK+ibyrMRpOws4QFTAgRAPDSQsth55rREu6K0oFNpqB5prSWo8TOMA5+IdcdPC X-Received: by 2002:a5d:97cc:: with SMTP id k12mr359477ios.4.1629151310416; Mon, 16 Aug 2021 15:01:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629151310; cv=none; d=google.com; s=arc-20160816; b=qWSqp8+FBvHH/L8ZNhUlOADtl2OeYt3saPfZpH1vibj2RMxcIQ7EPYsRB/AERO5e8r 6G2AQOoUU8j1fNxAu/VYN+r3nj5R8sSica7JTegZsis68tNGeJEhTvn+Ml8+aYm+44is 9EN+dpbL+fuatLoUKv5vqKIBKQNJQIx+526C/e5OaSq3ZRV0D49BBeSitZPZ1faAILle vDgJzQJdVpgoNZ7oZLHnCvgD5H0W13iKrPL5bbYBC1AL+03RA9fz8u2UzsZ4kOtZmB+j fYUlc12Ad6qCXaiOJ4aFlzVSUdOavQ09yTnnxjSxRtXnKgv/PoqPceFNBoqvgfpOaoZo Virw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=fHCfurB4x4nnaB9LicXVR9+CdUeeFe1WQ4EV0RAZOZk=; b=CqSGZII5oT/c/owep7w4XGniRwqoTeEcOL2HwCnRU+F8rvESVRjWuayV48xlu8gCwy m61NRU0UoZamU8mDIoNfAz6SEFrU4AEfeedhhHee3LNBTvZOeq3tXrnIr94O3hV/5BQi MuFZGVaitX7OPz2B34Q1wAPuT2omq1q2x+WMYISt/D7Y4cTNEvodsMpIj2KwBdRkuFlo DnpJNwcT2l8VyefaLpKO0BRQ3AJzlYWKWCoPPKf9tH2ck0UNC1E2LNbYHZVn0kQqFvtq slUJbNmVz9V+Je7+ik3PQs9UDE26Vlm9UUjfMJ/9BGw7UTokHiFd8R282bIaBm9dEVib TWkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RFoeBLTL; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b9si205610jar.79.2021.08.16.15.01.37; Mon, 16 Aug 2021 15:01:50 -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=@kernel.org header.s=k20201202 header.b=RFoeBLTL; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232067AbhHPWBQ (ORCPT + 99 others); Mon, 16 Aug 2021 18:01:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:45330 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233499AbhHPWBP (ORCPT ); Mon, 16 Aug 2021 18:01:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E0709601FA; Mon, 16 Aug 2021 22:00:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629151243; bh=D6G11k2cgnrfXeO4tqRi+f+FFeddZGnV7Vxpe2Ldj60=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=RFoeBLTLggFqBH9D60i1VYk/n1v6LifKuwoWxiuOmb7uFxRdjLRrtPmvpuPUbLGDe C5ZvdvC5T7+c9xZK2u5xHMGcm1mrh+Z1bP7FY5Sk+Uc+KFW5p9UZ+VgIPVqNQpSUx/ g/auW0EoA7B7/Ujc0ZeKUlxWid0r1vg7tSjPfIhubgBeTFNzRiO6mUOJrQikVnyay0 v36k73rJHK3gWA/UndADYQcvlMlS9PNrB9TF2eS/3gUHgoahG8MmuglW1Kq5eMt1Q2 A6vcvgXK9WdNcEJ/aOLRC+Cr+lsCfPiuuneZAZoV8l6lOKpDbLrmPw3VZ4FC3pitJU 1U3CNWlncgdEQ== Subject: Re: [PATCH] ARC: export clear_user_page() for modules To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: kernel test robot , Guenter Roeck , Vineet Gupta , linux-snps-arc@lists.infradead.org References: <20210816210533.16929-1-rdunlap@infradead.org> From: Vineet Gupta Message-ID: <16255d77-e9a5-4bac-6c6e-596af6f5b0c1@kernel.org> Date: Mon, 16 Aug 2021 15:00:42 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210816210533.16929-1-rdunlap@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/16/21 2:05 PM, Randy Dunlap wrote: > 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 Thx for the fix. Added for 5.16 ! -Vineet > --- > 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 > > _______________________________________________ > linux-snps-arc mailing list > linux-snps-arc@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-snps-arc