From patchwork Thu Oct 6 13:25:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jason A. Donenfeld" X-Patchwork-Id: 13000322 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D11EC433F5 for ; Thu, 6 Oct 2022 13:26:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C0A468E0005; Thu, 6 Oct 2022 09:26:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B932E8E0001; Thu, 6 Oct 2022 09:26:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9BEFD8E0005; Thu, 6 Oct 2022 09:26:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 83DFE8E0001 for ; Thu, 6 Oct 2022 09:26:20 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 3B246A32CA for ; Thu, 6 Oct 2022 13:26:20 +0000 (UTC) X-FDA: 79990598520.18.424F02A Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf21.hostedemail.com (Postfix) with ESMTP id B7AB81C000F for ; Thu, 6 Oct 2022 13:26:19 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 037DB619AC; Thu, 6 Oct 2022 13:26:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05ABCC433B5; Thu, 6 Oct 2022 13:26:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1665062772; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oFCjWqQv2aesuJpqe1Hhx/O5Y2jwoykcxVrUd1V3HAc=; b=m0HkubMpyr+io0tEyhxQqLoHBA7QUTEVSQeBMkrZtfIGFHX5AJ8sFxZWJtXbZ2bDCoWgJI 01ds+HduDIzsD9+UHRFpOFVDT68S/oFyi5wZ8FcOieW3Smln7GhSJ0+Pbb21scwB88szRh DYoMiljAKGawIA0gEPoYFYgAzYoSn2M= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id d21f0881 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 6 Oct 2022 13:26:12 +0000 (UTC) From: "Jason A. Donenfeld" To: linux-kernel@vger.kernel.org, patches@lists.linux.dev Cc: "Jason A. Donenfeld" , Andreas Noever , Andrew Morton , Andy Shevchenko , Borislav Petkov , =?utf-8?q?Christoph_B=C3=B6hmwalder?= , Christoph Hellwig , Daniel Borkmann , Dave Airlie , Dave Hansen , "David S . Miller" , Eric Dumazet , Florian Westphal , Greg Kroah-Hartman , "H . Peter Anvin" , Herbert Xu , Hugh Dickins , Jakub Kicinski , "James E . J . Bottomley" , Jan Kara , Jason Gunthorpe , Jens Axboe , Johannes Berg , Jonathan Corbet , Jozsef Kadlecsik , KP Singh , Kees Cook , Marco Elver , Mauro Carvalho Chehab , Michael Ellerman , Pablo Neira Ayuso , Paolo Abeni , Theodore Ts'o , Thomas Gleixner , Thomas Graf , Ulf Hansson , Vignesh Raghavendra , Yury Norov , dri-devel@lists.freedesktop.org, kasan-dev@googlegroups.com, kernel-janitors@vger.kernel.org, linux-block@vger.kernel.org, linux-crypto@vger.kernel.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-media@vger.kernel.org, linux-mm@kvack.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, linux-nvme@lists.infradead.org, linux-rdma@vger.kernel.org, linux-usb@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v2 5/5] prandom: remove unused functions Date: Thu, 6 Oct 2022 07:25:10 -0600 Message-Id: <20221006132510.23374-6-Jason@zx2c4.com> In-Reply-To: <20221006132510.23374-1-Jason@zx2c4.com> References: <20221006132510.23374-1-Jason@zx2c4.com> MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1665062780; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=oFCjWqQv2aesuJpqe1Hhx/O5Y2jwoykcxVrUd1V3HAc=; b=D73/l1rXRidElMDmB6JURycSEK77Mzmi4QGt7s5la7z+eODBEVVZlEEzYo49KvgN7aG/Pb sIHvPuSg+y+J78lzyWRv8URiNvagKwYBGjpcNxZQOve93rBX7FBNcgX6LmqEU8ddNdZru5 ZjOiAsQwIuTvkqLmua0JjNF6gx54OZU= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=zx2c4.com header.s=20210105 header.b=m0HkubMp; dmarc=pass (policy=quarantine) header.from=zx2c4.com; spf=pass (imf21.hostedemail.com: domain of "SRS0=tIOp=2H=zx2c4.com=Jason@kernel.org" designates 139.178.84.217 as permitted sender) smtp.mailfrom="SRS0=tIOp=2H=zx2c4.com=Jason@kernel.org" ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1665062780; a=rsa-sha256; cv=none; b=GL9vcBrlZ7pIlrdlDetxtTULl8uw6m6A9AOHf/RnYDraA1Z0MpapTg+8lNFauDwCC809wF 1N5j22ltpFJhhzN9eGNm8uSdCj+ZX4fAqCY/e2zh6NFX0h/5zoLkvUYwSOOIuWlCzxwoIN z1Hlql4ZYhT547LKn9ZlLSx2V6cSU6o= X-Rspamd-Queue-Id: B7AB81C000F Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=zx2c4.com header.s=20210105 header.b=m0HkubMp; dmarc=pass (policy=quarantine) header.from=zx2c4.com; spf=pass (imf21.hostedemail.com: domain of "SRS0=tIOp=2H=zx2c4.com=Jason@kernel.org" designates 139.178.84.217 as permitted sender) smtp.mailfrom="SRS0=tIOp=2H=zx2c4.com=Jason@kernel.org" X-Rspam-User: X-Rspamd-Server: rspam10 X-Stat-Signature: 61r51hku8aj48ixz6mx8esg76ahp3h1f X-HE-Tag: 1665062779-740437 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: With no callers left of prandom_u32() and prandom_bytes(), remove these deprecated wrappers. Reviewed-by: Kees Cook Signed-off-by: Jason A. Donenfeld --- include/linux/prandom.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/linux/prandom.h b/include/linux/prandom.h index 78db003bc290..e0a0759dd09c 100644 --- a/include/linux/prandom.h +++ b/include/linux/prandom.h @@ -12,18 +12,6 @@ #include #include -/* Deprecated: use get_random_u32 instead. */ -static inline u32 prandom_u32(void) -{ - return get_random_u32(); -} - -/* Deprecated: use get_random_bytes instead. */ -static inline void prandom_bytes(void *buf, size_t nbytes) -{ - return get_random_bytes(buf, nbytes); -} - struct rnd_state { __u32 s1, s2, s3, s4; };