Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6138581iog; Thu, 23 Jun 2022 12:09:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sQA50E6vi8FfEbPOyeHx72O3SKYOACCTMvcKkK01ClCYa7ct3hxSyLjb/bHDRWztJ1Kusu X-Received: by 2002:a17:90a:428f:b0:1ec:888b:f1d3 with SMTP id p15-20020a17090a428f00b001ec888bf1d3mr5459284pjg.201.1656011342198; Thu, 23 Jun 2022 12:09:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011342; cv=none; d=google.com; s=arc-20160816; b=GWCAr4QjOdAc44XFNd+avry7aSjhg+HDWOHBs5asP3SiE8WCiJN9Sqtmk5kEGGrvwe UXFsUEDvNfaUUwN6IHxUxXRp1WLmVphGSFKOKRqSeCgUi6b735uNj8ElVi9ZcmlNFjNd qm9RIpqZP2GbbCCIhnRUQ/niirv70lRRRwTNwsVpIgaWWoPgT7MAvGnMyn1wmql6/UAG RupL8vho29Y52VkSZ7NWp+ZKjO5bHWjNkSHVypL41yP9ObFYdhHg3z9EbFIOS4cR4IU0 5o3nJ//Vofb4QyTfpSkhaasM9Xf9yRjaD+RVH94riyRnyz5Dgkh7/Vs3+eARPjyhFWbu CePA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0puw8LpuOb/x2y2BkZa8wCdr4Gvb9aV4btDxdXL5UbI=; b=Qt2AbdONbVLH0of1TtnpqGunXltdukkRVIcYF+bZ7SaQU7QFoPMlNvF9eE6fpP6f1F EaxEgc7a0c7dI9vYMX03ZuhCkwJM0refb1mN5AxZN/lt+3/eLhT4Bk4adHMwK9Jr08Yf IadcElLi5Hmxu2k58Lg7cg8e7Z7uOMq3EYWGP1PtdVvt4jUe5XJ5DmT0b880CqE+0uGi 8fMorn+Jvl6xlajgbrYuVxHvhZaPRHTT/vdqi2qpICyvnd7jYM/uSa7FMxvL9wlmv+xR Lgqd8ksu93w6X25dTS5vcZRE281cePHnP0ny2Uv2spgwdh11o2Kr7Cz2hKqMABVSmDWt FecQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=r5WwkEll; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf7-20020a17090b0b0700b001eae72b25fdsi222226pjb.77.2022.06.23.12.08.50; Thu, 23 Jun 2022 12:09:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=r5WwkEll; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233481AbiFWQ6h (ORCPT + 99 others); Thu, 23 Jun 2022 12:58:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233397AbiFWQux (ORCPT ); Thu, 23 Jun 2022 12:50:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 744E24F1FD; Thu, 23 Jun 2022 09:48:48 -0700 (PDT) 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 7F2A661FC7; Thu, 23 Jun 2022 16:48:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B4B6C341C4; Thu, 23 Jun 2022 16:48:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656002927; bh=5OCB9WZDVzf64RzH25Gvi4oTWqzDrDM4m6NIaJJb5Pg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r5WwkEll/neEBEzLOz78hdDMIs8D8LJLKlP6b6psLcatq4RrbIeESarYim6K3as2k 5wtE8f7obw7D/vDMTSmMROyBcTbozVfOTJD3C0SNHA0GVejMbtsnDP22n13FJkgK6M g9z+0NZ0jxGOKcL5caT8k9Q9eBFKC+rpf7+80FQM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Richard Henderson , Mark Brown , Theodore Tso , "Jason A. Donenfeld" Subject: [PATCH 4.9 071/264] linux/random.h: Remove arch_has_random, arch_has_random_seed Date: Thu, 23 Jun 2022 18:41:04 +0200 Message-Id: <20220623164346.080963030@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623164344.053938039@linuxfoundation.org> References: <20220623164344.053938039@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Richard Henderson commit 647f50d5d9d933b644b29c54f13ac52af1b1774d upstream. The arm64 version of archrandom.h will need to be able to test for support and read the random number without preemption, so a separate query predicate is not practical. Since this part of the generic interface is unused, remove it. Signed-off-by: Richard Henderson Signed-off-by: Mark Brown Link: https://lore.kernel.org/r/20200110145422.49141-5-broonie@kernel.org Signed-off-by: Theodore Ts'o Signed-off-by: Jason A. Donenfeld Signed-off-by: Greg Kroah-Hartman --- include/linux/random.h | 8 -------- 1 file changed, 8 deletions(-) --- a/include/linux/random.h +++ b/include/linux/random.h @@ -104,10 +104,6 @@ static inline bool arch_get_random_int(u { return 0; } -static inline bool arch_has_random(void) -{ - return 0; -} static inline bool arch_get_random_seed_long(unsigned long *v) { return 0; @@ -116,10 +112,6 @@ static inline bool arch_get_random_seed_ { return 0; } -static inline bool arch_has_random_seed(void) -{ - return 0; -} #endif #endif /* _LINUX_RANDOM_H */