Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1080985pxk; Thu, 1 Oct 2020 23:57:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEIE3WIwLwPJ7oFcMHo1Qy3VMjiOgMqi0LS8Te9oRyKPdGldQWDYQYEiNtwOSlxqxbmAx0 X-Received: by 2002:a17:906:2454:: with SMTP id a20mr803470ejb.294.1601621842512; Thu, 01 Oct 2020 23:57:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601621842; cv=none; d=google.com; s=arc-20160816; b=WO9pfm9122a1j8p0We+AuahOmyuhBM4pbc+CFQ11r1QezKZXc7XIoa2hFV7voNPfbJ CtkRA4rLtzRhPD48Y09kNAKgoYdVb9LAIvdTUk1hPCDiUDxJdMhXjPcILgDq0mO8RfJC jpkx4ipzaYJ4snhme/sIsGGotGP3tvyA+3DIkPfD/dQSdmsXMg2mPM7Co6/kVMZK21nt gUDjLqNlGsJhIv24Pqt/mY+3QE0DAzjYXEqkdPinrIvOTHDL24hX4SB+EB/KdYFlWjTK THTFgXZBfZcB8GUNTr4QraII4abd0d53+KNYctX3ez5PtpI/mnEjX71ElH7yQgQHGJSR fvRw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dG3VsnJVeZhSi88eTw1lFhyXDWSG0bJwarleuLQpKFA=; b=xUSh4RGNRn1i9o0WANPGUMMZ/WynRK79oGZyB6oBnQ88NTKOwNoz/Iu2blol6gwn+2 1Jh2gvFKRyjaK929mnBa36JxbQp1yYjGG/KZ3txhoNVCE+fO90XZgT62FybNKjnvf3MD x5lGBfqOAk1Xh0ao/AnuMkJbpiK6Jgm+TOaRvfuT++O5Mb+FHOXSrLfVhBZpw4DsktS7 1plgx1LsPyIyEbmBUGKI8MjWbBd/uCcbsSlfkb704Zx45gY5JGcVyBGqrsbL8tkHDNMY vcF2OD7iwsN+z94Gb/N2+P9gqhS4YtWqLWpQntkGJ4s1jnq9BF8WomcyokWR8IRAL3i7 lUAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chronox.de header.s=strato-dkim-0002 header.b=n6u081Jq; 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 fx12si412848ejb.350.2020.10.01.23.56.59; Thu, 01 Oct 2020 23:57:22 -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=@chronox.de header.s=strato-dkim-0002 header.b=n6u081Jq; 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 S1725993AbgJBGzP (ORCPT + 99 others); Fri, 2 Oct 2020 02:55:15 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.54]:23164 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725948AbgJBGzP (ORCPT ); Fri, 2 Oct 2020 02:55:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1601621713; s=strato-dkim-0002; d=chronox.de; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=dG3VsnJVeZhSi88eTw1lFhyXDWSG0bJwarleuLQpKFA=; b=n6u081JqROnb/24iw8fW+sXZ7jMXAfnCR8IGMvpO1+6RW4MDfPlPWyctAwHrPw9TxW VIZDn/JYhq4gKh2ODHwwGrQJ5AEt0LClbYshHl5plkoETyWensKVaM44MHHMCInoRNHE CVisftjBByjFNAaDifLNF9QqNkXiyn/JCYeO0LSMQHpQrffZx+8EliHs+8dUlMKAu8iD YeQHuo9bEQcG9fXEkMxadVq0eUjdUY7PIVO1TNxyt8X9W7oOLDs4sV1iFhpNTuwLK86N F9sVw9ymlmMXgnO69+17YtMtScNLEVt20D0oXb8gW78v5lK2W+rpF6JD178UDd+KUjDE kq9Q== X-RZG-AUTH: ":P2ERcEykfu11Y98lp/T7+hdri+uKZK8TKWEqNyiHySGSa9k9x2wdNs6neUFoh7cs3k0=" X-RZG-CLASS-ID: mo00 Received: from tauon.chronox.de by smtp.strato.de (RZmta 47.1.9 AUTH) with ESMTPSA id 602bfdw926t79aM (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Fri, 2 Oct 2020 08:55:07 +0200 (CEST) From: Stephan Mueller To: Palmer Dabbelt , Christoph Hellwig Cc: linux-riscv@lists.infradead.org, kernel-team@android.com, kernel test robot , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: get_cycles from modular code in jitterentropy, was Re: [PATCH] clocksource: clint: Export clint_time_val for modules Date: Fri, 02 Oct 2020 08:55:04 +0200 Message-ID: <3059805.eeVPZ7aKPO@tauon.chronox.de> In-Reply-To: <20201002064905.GA27115@infradead.org> References: <20200930065617.934638-1-palmerdabbelt@google.com> <20201002064905.GA27115@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Am Freitag, 2. Oktober 2020, 08:49:05 CEST schrieb Christoph Hellwig: Hi Christoph, > 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. Changing CRYPTO_JITTERENTROPY from tistate to bool should be no problem. I will provide a patch. Ciao Stephan