Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2678630rwb; Fri, 2 Dec 2022 13:21:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf6DcmuKG81Dr1Un0ZlPODWUgvnGCCjdmMxvJK4cykc2WQsvSeH52ugr2Y0kHOyeXyp7Pu+Z X-Received: by 2002:a17:907:a505:b0:7bb:129e:8a4c with SMTP id vr5-20020a170907a50500b007bb129e8a4cmr27524642ejc.300.1670016087347; Fri, 02 Dec 2022 13:21:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670016087; cv=none; d=google.com; s=arc-20160816; b=jfbNRVOxe0o0n1MerE+8ZmwUahJ7dZNwDfBxUp3+uJ0EeyTDv4kCpGyMiOJj5Hjlkr mnKxQV+1HVRzuAZ/fGH5P1rmJtSv7xNMq+ECTx42ubkinXHpoLjYq/ZagwgYWLkIrH3v C5HdwG8B7IxgaoKoilMkcVOdDpse6NUOTmpZDXOqVDgQlbirkQBLHOFRWvwpfllS8qM7 FAFiQEkHxWoU+OfEIes3wgQEbkBek3qWDx8pFT+99RsEMPAlomwz30sgo5NYC/+u4aUr r1lkjqVTLiqv3dctRGqhwqO2uxlu2YioX+J/wQ0LhH4eLM6Qcz7wX12o4RFp5CtBMcLY jsyA== 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; bh=8IgX9uRAa6v6jxaCOQ9tSIIhjVYisn9SfCFshShQU/A=; b=BcIk6Zzg7H5AsCkqQJdUzk8bnHxSBSoEZSgnoyxK3XgMfC5gcf2NyjMrnJAGNMS2lY +mE3s73x7X5de/pAybKRbbiTCLX9OJjpyKGaNvzel0kPl5g3aXRP4DiplWH/XEOyb5MO L1d6NKCzujU8Y/1nxvMM0X9ms4/tAH5bQZD00cxkY8W0DHABRmOtLq8SHQU0FvgrXDag qyPmwroXde81tL3/djwZm0hztPkRyDQOJUBGAwlIbWasL9xuNYMkklwaoBM2wq1ZC99d GPAFzkpU8TAM5QimPaQsNARvrDAyLUssn5aGWesewBk3pByaLTS52yrbM1IF6cxSh4Kg M0uw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg11-20020a170907a40b00b0078df3bd80b9si7396089ejc.46.2022.12.02.13.21.07; Fri, 02 Dec 2022 13:21:27 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229527AbiLBVNq (ORCPT + 83 others); Fri, 2 Dec 2022 16:13:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234097AbiLBVNn (ORCPT ); Fri, 2 Dec 2022 16:13:43 -0500 Received: from smtp.smtpout.orange.fr (smtp-12.smtpout.orange.fr [80.12.242.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD34DB1E9 for ; Fri, 2 Dec 2022 13:13:41 -0800 (PST) Received: from pop-os.home ([86.243.100.34]) by smtp.orange.fr with ESMTPA id 1DLlpPcSnM75k1DLlp2pVY; Fri, 02 Dec 2022 22:13:39 +0100 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Fri, 02 Dec 2022 22:13:39 +0100 X-ME-IP: 86.243.100.34 From: Christophe JAILLET To: Jason@zx2c4.com, kuba@kernel.org, tytso@mit.edu, elver@google.com, yury.norov@gmail.com, linux@dominikbrodowski.net, gregkh@linuxfoundation.org, pmladek@suse.com, keescook@chromium.org Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] random: Include in the right header Date: Fri, 2 Dec 2022 22:13:36 +0100 Message-Id: <212adb212cb0234a7d395daf31b2578b9409d492.1670015476.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 uses DO_ONCE(). So it should include directly. On the contrary, doesn't use functionalities from , so it should be removed. All this is true since commit c0842fbc1b18 ("random32: move the pseudo-random 32-bit definitions to prandom.h") Move the #include in the right file. Signed-off-by: Christophe JAILLET --- Let see if build-bots agree with me! --- include/linux/prandom.h | 1 + include/linux/random.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/prandom.h b/include/linux/prandom.h index 1f4a0de7b019..c94c02ba065c 100644 --- a/include/linux/prandom.h +++ b/include/linux/prandom.h @@ -9,6 +9,7 @@ #define _LINUX_PRANDOM_H #include +#include #include #include diff --git a/include/linux/random.h b/include/linux/random.h index b1a34181eed6..4a2a1de423cd 100644 --- a/include/linux/random.h +++ b/include/linux/random.h @@ -6,7 +6,6 @@ #include #include #include -#include #include -- 2.34.1