Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2951505pxk; Mon, 21 Sep 2020 01:02:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvlnxnXCGRQrdtnsEXSz+1aJnPjbCdGVnOVCM8u0CGCmLjuUalgdlaOWNTHozp63S+U+Sz X-Received: by 2002:a17:906:4bd7:: with SMTP id x23mr46978414ejv.92.1600675320804; Mon, 21 Sep 2020 01:02:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600675320; cv=none; d=google.com; s=arc-20160816; b=qi9i8xOD2ZeksILWakFuuaT/sXby+g/fBI8V+4EX1VcCXgU3WYLEVd6j7f//qP4324 tCrdEUfz0NfZgpSh+JzTjD2F6IT3A/3XyQjwgeHfZW/hCERAnienhfITA7I1KCNVaGwe B18VIwCVdAUMAwr+cUW5UXcd6aHuTtJOhbgWaFkWlAxshT3cmcqzlCZIRt9SuVYOBciQ P7W6JnANWphiyzRTn0hsj9I5G+g+fUszMGleFspb5z+27kck0xZ9kBpQ5Zf6ywcCkGhf S8HhQjWMwfwDeVoTzCb4FwZHC3ZD59NcTY355BluQFJpKYhuLNDHu6spTkgmv+V/gsYy LdEQ== 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; bh=Y7Mzim+/GWfA32tajUs+SjdwCGEbV0IqQQ4cxagAYeg=; b=NeDOfcJl3dXwhj9SkFEAxBGdLn6cHICgnDw33/wkCFgw54LYLdUD4JIUA+IS9q6RWu XsoV8QQPPzIrIKgJXV8WJvP3p+BiVtlYti9BfKK3cTH+kt+x9EZ4+jgX/Vic+qmDjmiu scijuhIvvM5JXkFLIj/0jBW41LX4D1xWET7hxKueAV2F0L4SgVFOJqNFhiPr7ExegtQ1 btB8p+otW3PSmKkFffVJYOgNLdf8jtIjg5p3sp0CWMTltsNo8jgtfh5h/x02MLSxs/rJ qktjRpnfbk6sY32xnTLYArErKGT2nkjc21olz2pe5x9Pmkxknf5JC8PcBsUF+eHWpqCa CWVg== ARC-Authentication-Results: i=1; mx.google.com; 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 f2si7384869ejc.542.2020.09.21.01.01.36; Mon, 21 Sep 2020 01:02:00 -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; 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 S1726506AbgIUIA1 (ORCPT + 99 others); Mon, 21 Sep 2020 04:00:27 -0400 Received: from mx2.suse.de ([195.135.220.15]:56798 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726496AbgIUH7W (ORCPT ); Mon, 21 Sep 2020 03:59:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 3C97DB50F; Mon, 21 Sep 2020 07:59:57 +0000 (UTC) From: Nicolai Stange To: "Theodore Y. Ts'o" Cc: linux-crypto@vger.kernel.org, LKML , Arnd Bergmann , Greg Kroah-Hartman , "Eric W. Biederman" , "Alexander E. Patrakov" , "Ahmed S. Darwish" , Willy Tarreau , Matthew Garrett , Vito Caputo , Andreas Dilger , Jan Kara , Ray Strode , William Jon McCann , zhangjs , Andy Lutomirski , Florian Weimer , Lennart Poettering , Peter Matthias , Marcelo Henrique Cerri , Roman Drahtmueller , Neil Horman , Randy Dunlap , Julia Lawall , Dan Carpenter , Andy Lavr , Eric Biggers , "Jason A. Donenfeld" , =?UTF-8?q?Stephan=20M=C3=BCller?= , Torsten Duwe , Petr Tesarik , Nicolai Stange Subject: [RFC PATCH 14/41] random: drop __credit_entropy_bits_fast() Date: Mon, 21 Sep 2020 09:58:30 +0200 Message-Id: <20200921075857.4424-15-nstange@suse.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200921075857.4424-1-nstange@suse.de> References: <20200921075857.4424-1-nstange@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org All former call sites of __credit_entropy_bits_fast() have been converted to the new __dispatch_queued_entropy_fast() API. Drop the now unused __credit_entropy_bits_fast(). Signed-off-by: Nicolai Stange --- drivers/char/random.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/char/random.c b/drivers/char/random.c index dfbe49fdbcf1..60ce185d7b2d 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -900,20 +900,6 @@ static bool __dispatch_queued_entropy_fast(struct entropy_store *r, return false; } -/* - * Credit the entropy store with n bits of entropy. - * To be used from hot paths when it is either known that nbits is - * smaller than one half of the pool size or losing anything beyond that - * doesn't matter. Must be called with r->lock being held. - */ -static bool __credit_entropy_bits_fast(struct entropy_store *r, int nbits) -{ - struct queued_entropy q = { 0 }; - - __queue_entropy(r, &q, nbits << ENTROPY_SHIFT); - return __dispatch_queued_entropy_fast(r, &q); -} - /* * Credit the pool with previously queued entropy. * -- 2.26.2