Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3290208rwi; Fri, 28 Oct 2022 19:26:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6OWIKpw+C9ihnUjrvYv66CgZptmV2emu39aGTHTcQ+IMZwhy70kuj1esyyYqbwgCUeFKlC X-Received: by 2002:a17:907:3e95:b0:792:e5b3:5a19 with SMTP id hs21-20020a1709073e9500b00792e5b35a19mr2043208ejc.766.1667010417877; Fri, 28 Oct 2022 19:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667010417; cv=none; d=google.com; s=arc-20160816; b=klQlbw+91M109bNwrHnNiCiK8mlzxllc98LYM8WGWVamezJ1CqB/Of/y4E+I5utbnG 3Khc4jsBgHfs6eccOWmb9/OY+Ezv8bOwOA/X3Pm1fJ3DaRjb/4jvvGwVfyaPdvzWE3vc +kttlICEtVx2R746fSOACQ6CHD/35SXg0wj+PayPM9wT3+EBfz2GLu/9xFOMfnEZcAW6 8jA8QAWp2XCjm7NUMPxwTrtL95EICevnkfnWHyXBm8AhGLkrJE82gYcQL1gMYZ62Z3wy 9LqpRmbWF57KI1+1BXoqsT6xB9xvF3v6XA/eDB+o00mEGdshjUaCLNEx4pGMDRWvvMPZ bL1g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=SxtuEWeYOJFtWLwr3J1ri5ErnHaNd0SKCg1EYxarznQ=; b=znsma/1XI0ZXLtiQGMZRgoGRh1KyMobYvExNEzdREW/Dbx+DpqhC0dk+KRSEAoxlcB /KxJRFtge1IOu/a0XNwPYa3CRJFvPVXq7E2CUN0UP4Q+KTiz7OcpreFkKCF3szKnM5+0 0cEx1dOWeRHUaVrHexmEIBEq7jIVcc5MBWeq5+8dOaEEinzlsn2keo31WFXcXrEufGj4 Z1Gb1RIU7tzl51JiN2bxQsL99Oypo7WChvwL1aZCxUopFdfYaoJZ1NiWDMox+rB0TxbX 2iCDR8Tl4OrcmqFJlUc7v6cuntA+vusdGOuRSvux1arCTdHfwE9HgAQVC3jXwvYnosbh mfmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=kZbxGOQv; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd21-20020a170907629500b0073da0ce043csi470323ejc.619.2022.10.28.19.26.32; Fri, 28 Oct 2022 19:26:57 -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=@zx2c4.com header.s=20210105 header.b=kZbxGOQv; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229597AbiJ2Byg (ORCPT + 99 others); Fri, 28 Oct 2022 21:54:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbiJ2Bye (ORCPT ); Fri, 28 Oct 2022 21:54:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BF5FCDA; Fri, 28 Oct 2022 18:54:28 -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 ams.source.kernel.org (Postfix) with ESMTPS id AFB00B82DD5; Sat, 29 Oct 2022 01:54:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A501FC433C1; Sat, 29 Oct 2022 01:54:24 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="kZbxGOQv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1667008462; 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; bh=SxtuEWeYOJFtWLwr3J1ri5ErnHaNd0SKCg1EYxarznQ=; b=kZbxGOQv3smAq0zOS/NIscB97Oo1xyp6tYHNhM/+YUBW8znCrlcPC3/J9LH5WAhdCpYFdc nPFnyUhP0Iy0ns6vejg9b6ZQq2CNW7MR6uYXT2b7SUCQ8BsWJBrLo/s9iJE9hN/p+VAoR8 AQgQMDWvfF5fL7jRKaQycUwPegc2sU0= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 184a9951 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 29 Oct 2022 01:54:21 +0000 (UTC) From: "Jason A. Donenfeld" To: linux-kernel@vger.kernel.org Cc: "Jason A. Donenfeld" , Michael Ellerman , Heiko Carstens , linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org Subject: [PATCH v2] random: do not include from random.h Date: Sat, 29 Oct 2022 03:08:57 +0200 Message-Id: <20221029010857.161574-1-Jason@zx2c4.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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 The header is a random.c private detail, not something to be called by other code. As such, don't make it automatically available by way of random.h. Cc: Michael Ellerman Cc: Heiko Carstens Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-s390@vger.kernel.org Signed-off-by: Jason A. Donenfeld --- arch/powerpc/kernel/setup-common.c | 1 + arch/s390/kernel/setup.c | 1 + drivers/char/random.c | 1 + include/linux/random.h | 2 -- 4 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index 6d041993a45d..9b10e57040c6 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c @@ -59,6 +59,7 @@ #include #include #include +#include #include #include #include diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index ab19ddb09d65..b53a45735a5d 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -52,6 +52,7 @@ #include #include +#include #include #include #include diff --git a/drivers/char/random.c b/drivers/char/random.c index e3cf4f51ed58..a7afd17db075 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -55,6 +55,7 @@ #include #include #include +#include #include #include #include diff --git a/include/linux/random.h b/include/linux/random.h index 2bdd3add3400..47e7cf126e8f 100644 --- a/include/linux/random.h +++ b/include/linux/random.h @@ -151,8 +151,6 @@ declare_get_random_var_wait(long, unsigned long) */ #include -#include - #ifdef CONFIG_SMP int random_prepare_cpu(unsigned int cpu); int random_online_cpu(unsigned int cpu); -- 2.38.1