Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6135632iog; Thu, 23 Jun 2022 12:05:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t38StxbbPtzTwow3BmADWyftYiQVWgvX+WV2mJasU0dlfnke3pik5M9i+ofQ4Ll7K6jbwF X-Received: by 2002:a63:d50f:0:b0:408:994a:96d5 with SMTP id c15-20020a63d50f000000b00408994a96d5mr8761869pgg.299.1656011133564; Thu, 23 Jun 2022 12:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011133; cv=none; d=google.com; s=arc-20160816; b=Ckjb7TSeLNtmxJL/LZwKFnn/6XfFCgBc9U8eB3Fm+F5ChMpwTRyOk0HQAQkebXwIhg 0eMOaOn3jFUO0kDCVuwRqY2JKOaxxkTuCL/lUgnOn92Ypr7q22oh/zzlbbaNlIF6QHW8 K9wIRoLXIK/7myg4r0Y+/CEX9q6nvNYEBjzXhmMkoQbZusfyE/wuEAY7nu9AHGMebq9P 92uafj+wTH70nVocW5zpLVEiwIgmpZB7ci7nPDeqR+pw53InHLBwXclBGJZBuWmDF7l0 LZsV373xoTgnN0+61S156XV2tBXcEgT+q/mmX5izm2mAchrcptfnwcEv0WXPTZ9hLZNs VllA== 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=ZdMRKsyNN4aYi5JjFUacQUwonPlbZgu4Y158sAUG9Uk=; b=iwDBcIy/945CJBz1Q3l3q4NpvTW7J7//SMff3OKdiL20XrjZNgXb5m6vR0UH9Ik6UH RcJdZujvlhcQJi7TnaUKsNd95FmepBM1+wyu+NJFEg8T3alBPmvNtmt0D+LKjpigQ13z lCVnDVvXBh7iubMVU1nVLUlwQQPYWBxWoR+CbUkL3UqK3Z3ARWfy3fYJa+okCevV1/Ti rHJKCg4UrABUGsm6fKsfTF2Pxuv/g7SA+IAe3oqkaWrX2eUkuZee4CiS4gGk8KxtOL7f Y8Lc31X0NLAL96lXoXF5HzOqos3hQ9vwPjwvNeYvFW/gxti+9Wqwnw6krKG7nLAH9Tw5 91zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cjsNz3dw; 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 s5-20020a656445000000b0040cd256b7f4si15058643pgv.407.2022.06.23.12.05.20; Thu, 23 Jun 2022 12:05:33 -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=cjsNz3dw; 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 S235442AbiFWR75 (ORCPT + 99 others); Thu, 23 Jun 2022 13:59:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235979AbiFWR6S (ORCPT ); Thu, 23 Jun 2022 13:58:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61BBFB01DF; Thu, 23 Jun 2022 10:15:57 -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 E0D5561DE5; Thu, 23 Jun 2022 17:15:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE761C3411B; Thu, 23 Jun 2022 17:15:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656004556; bh=dI4qzF7w/Q2TNL1Pmo70s4Lwm8qtiWZFZoBlD9iNMLU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cjsNz3dw8FxRYpKPw49yTBXDDwtR5tw9EE21D0fDyPopoTdaJ8DTS3pJS65atlzV8 f6UGo/lMUygRUZBK0y2TtnUE7TWh7KYaqjRUbEdWO0O0X1cRGsio6V9AGiTdpNQTyf 6kNPYvGIUqjEWAzCsVy1EywMVUkCyOSsi7KDZAIM= 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.19 038/234] linux/random.h: Remove arch_has_random, arch_has_random_seed Date: Thu, 23 Jun 2022 18:41:45 +0200 Message-Id: <20220623164344.143378905@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623164343.042598055@linuxfoundation.org> References: <20220623164343.042598055@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 @@ -126,10 +126,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; @@ -138,10 +134,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 */