Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1077680pxk; Thu, 1 Oct 2020 23:49:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxy3IKMNf1Sjm5MEJ7CmtEJkOe+tJmrhcBm7bluvBH4rjSlLyOcK2tfA9vMfbye6qQGJDq X-Received: by 2002:a17:906:95cd:: with SMTP id n13mr738369ejy.297.1601621392481; Thu, 01 Oct 2020 23:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601621392; cv=none; d=google.com; s=arc-20160816; b=Mxcwieq5sbnDgGDPteIgiW5yC5t7sGkoEhZovqUcf00a9W07hQMrS3sEt8HkVKYois fnVhQnpLtH008zeU2stZ5EntbtNfl6mFpCHav97B4xWdmj09AMkk52ox4pGrF4D4uvwx F4JdGFoIYVvRfznTGP5Lk7U1FfOpnPBn+oWao2C+RLJ+v/ayMvCp3EoDv1mehaRUdZy3 ekN69n4M/88AgUjRKc8VZQ4pJ/+KI7OeRnG+5Rq8pSxOqSQFRBMAw4jaIAob4bYmNtFz dAsfi3iVmaaDATKPZ6oBF+UQ47r9QBkBBCInmOJllqwlxUyc2SnQtEhsfGlO4PIwuAGK wPCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=F0HxCM48zlkqvSK9HVb3prVdbtr0XoJkMcMZ8q5cNvA=; b=M3XahbRTWAtFXmKewDOVP9Hv09vwxqKOnlqunHTweiQwXBsSSZT6xyDjI5677amySn COoCXh7ypL7ps9akA1fVNduvxxpfhylVnIJUZ/fOGLG9Kk7ANMJZLIiSpi/udfMxL2/3 FmaxAsWaFVVFJ5VrMEG3XWKbc/XqFoP+q+qSt8920Ck1W9YCcHnq4PCmvUkSuChMbjhP ZJ4DtnlSwq9ug+cyf9p0sj3DtBRu9ti4/8jrllqn8zSSQouuMTBmD6GdBTdNBAU6ARWR 9ZtcH0WoKTius6QPzrg7u4BHFSLb46O+3BqDeHxZ38JWzUDe6t30+qemGi2ThUwfvZvK Qqlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=KDDxxvWM; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 g7si383904edu.307.2020.10.01.23.49.27; Thu, 01 Oct 2020 23:49:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=casper.20170209 header.b=KDDxxvWM; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726042AbgJBGtK (ORCPT + 99 others); Fri, 2 Oct 2020 02:49:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725968AbgJBGtK (ORCPT ); Fri, 2 Oct 2020 02:49:10 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37F2BC0613D0; Thu, 1 Oct 2020 23:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=F0HxCM48zlkqvSK9HVb3prVdbtr0XoJkMcMZ8q5cNvA=; b=KDDxxvWM+qd+VQy/Z9mnWYLcrp VPcBmyOR0oC8nWvEYSkDW2MLWZ7ZsnvBDbhUPxXsUP7NiB3KZEPdJgXdtfJQI/d+tF5UbJR4W+SIq clptew4ZQQo8cacoEUinGzP4g4x4Y5oaz9/JtjccY5fesqA8GDnOOx377W0WwIuqUD4sSbYNkEnBe h+O5gx9IDFJvsVPyX7/3QEnZXiuHEYlaH+8SgPbpOY5B+vftVpHvQkm6k78TG54crxU4xHqQgdpCt yg6HpDXyGGYupQltDce++CaqvL7dchYJ/fsCUegBIg3GpqScn3s3Ff069AXOZ+ragf9ss4ZcGko/X vuD2YdAw==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kOEsL-0007XM-Ky; Fri, 02 Oct 2020 06:49:05 +0000 Date: Fri, 2 Oct 2020 07:49:05 +0100 From: Christoph Hellwig To: Palmer Dabbelt Cc: linux-riscv@lists.infradead.org, kernel-team@android.com, kernel test robot , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, smueller@chronox.de Subject: get_cycles from modular code in jitterentropy, was Re: [PATCH] clocksource: clint: Export clint_time_val for modules Message-ID: <20201002064905.GA27115@infradead.org> References: <20200930065617.934638-1-palmerdabbelt@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200930065617.934638-1-palmerdabbelt@google.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Sep 29, 2020 at 11:56:18PM -0700, Palmer Dabbelt wrote: > clint_time_val will soon be used by the RISC-V implementation of > random_get_entropy(), which is a static inline function that may be used by > modules (at least CRYPTO_JITTERENTROPY=m). At very least this needs to be an EXPORT_SYMBOL_GPL. But I really don't think modules have any business using get_cycles, so I'd much rather fix CRYPTO_JITTERENTROPY to be required to be build in. > > Reported-by: kernel test robot > Signed-off-by: Palmer Dabbelt > --- > drivers/clocksource/timer-clint.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/clocksource/timer-clint.c b/drivers/clocksource/timer-clint.c > index d17367dee02c..6cfe2ab73eb0 100644 > --- a/drivers/clocksource/timer-clint.c > +++ b/drivers/clocksource/timer-clint.c > @@ -38,6 +38,7 @@ static unsigned int clint_timer_irq; > > #ifdef CONFIG_RISCV_M_MODE > u64 __iomem *clint_time_val; > +EXPORT_SYMBOL(clint_time_val); > #endif > > static void clint_send_ipi(const struct cpumask *target) > -- > 2.28.0.709.gb0816b6eb0-goog > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv ---end quoted text---