Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1938111rdb; Sun, 11 Feb 2024 04:36:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXisAVvEfCO7DKJD/If/vH24z0Jz3Nxe4rH2OiSNX4uP7K6Dv37nFWP1Io9KzLS1Xd0YbSqJwZTr+I+5G2dEkOJPXUzFo1PWxvl/zRQbA== X-Google-Smtp-Source: AGHT+IEFViJt4LknlK6Cw3vYxaA/0hM2qb3oBSnNDqb7QXIyOIM85sEhQ4Yc47Pz035qRfnM4RXR X-Received: by 2002:ac8:5947:0:b0:42c:39fd:d9b0 with SMTP id 7-20020ac85947000000b0042c39fdd9b0mr5277010qtz.20.1707655014798; Sun, 11 Feb 2024 04:36:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707655014; cv=pass; d=google.com; s=arc-20160816; b=SWWLo3pKDYV/ylS3tG9979isR6H6VEm//tSzwXNGuFt9r9YWEiDOCeoeFlPyp2ays9 zKTDGy/m/ujdXcuWrpOt01BbuzuodKtVBp58Df5yXxVO//5XsF2sQW/P40qwQgu4OqsC Doq++1O6jJwukOvSa7FoB652p3k1HIEZypQBIJ4dlw6ldG3+mD1BP25pHzksodic4x+k 2vNlghhPf+8IX0jj9hoiCjw0pJeH5uIsShcaagxNYdY/EATJYZjLO+WNX+Oa5PUqMX0L 7YFhwZ2VmPCKb0jRACQ6r1SQAiupW7FkbRu/xXnbhxQI+oisUpC65ccW9UIrI6/Ml2+w rAgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=dhd0Wyk/ZgeZM/EU3KZ6LbkcM94I0OFOZkDaLa9LsZQ=; fh=aB2rLv0vho0iXHk3E0iEalcmQsZbRxpzp8JM8p3Qn/g=; b=cJpSBZ+WIEgMpxNXhNYTKwbjxRDZXDDH1m+0GZI4eNmgFF324nzSzzaLgbZRw+qEh2 lWhD3WFu3tUsh2Pl/bvD5OrPfz0CQHgVOFRQOsQYpr8vVyxT7Zf0UalDqxlRlajFHktj h6c4vncCLI3vsMbk43PNYLEAhoXz8OCAQTQgR+rpgIzzjLzkil1PzMKKOtE8dTGRu10c sTpgAbQYqfTJ7HpzNueOHq3DCYCu33yBizM61J1go4+pEjVSypeZkiPeiyVyU6E0KKyB EFvVWHcepVjWJQO8pudKGnzVkNkYpRVg61qMtyo1Ui16u4qBVWJ1qDA0nsbW0Ed6GJXi +BXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=ZhnjJBq9; arc=pass (i=1 spf=pass spfdomain=ionos.com dkim=pass dkdomain=ionos.com dmarc=pass fromdomain=ionos.com); spf=pass (google.com: domain of linux-kernel+bounces-60758-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60758-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com X-Forwarded-Encrypted: i=2; AJvYcCW/bP9UYTYAq5HlbBEV2sSJ+2AWlb1py6KujEBVDfVy40VDFW2z6m8gePVe6ziAOfWYsND72OtbgGXDEafPLpuqtlAADJioiUN7W1Qzww== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c12-20020a37e10c000000b00785cc7a8b56si2439561qkm.298.2024.02.11.04.36.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 04:36:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60758-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=ZhnjJBq9; arc=pass (i=1 spf=pass spfdomain=ionos.com dkim=pass dkdomain=ionos.com dmarc=pass fromdomain=ionos.com); spf=pass (google.com: domain of linux-kernel+bounces-60758-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60758-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D31301C2347D for ; Sun, 11 Feb 2024 12:36:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1789605C9; Sun, 11 Feb 2024 12:30:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b="ZhnjJBq9" Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 633695FF06 for ; Sun, 11 Feb 2024 12:30:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707654649; cv=none; b=qv/iaY53b7TW+QRoeH8LEkv+kcjRB+vfueJ9ZrCZvPjxzy+pqO94d7N4Kx+rnrJCgmJkz9SUovMPi6CpDfo6VgGsJZycfid9zVAterc7hZjWLfKmhOUQKyHt2RIZxTPYZxjZIyivZoyF17Q59bfxN4IGRQxnAgQT/4Cpkq0KVik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707654649; c=relaxed/simple; bh=FaWrvDRhCn6qo66e2LFY1/am/fRiqeQ00xmmtBjY9fQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oxSWNAUuU64xdltxN18pV/EbERjF2gOc8IgFg7ZwucVVUXpWYWwlpvFZJHPvE+h5XJGoTrKXbGp/OWietGq0VYarH8wrXLmMBSSjgQdtFF96R/t/vUXXQP6NHC1PPnhgdLAqYGxIKV2jesMFz51up3N74GB5u2BaD5NqE56IG2I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com; spf=pass smtp.mailfrom=ionos.com; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b=ZhnjJBq9; arc=none smtp.client-ip=209.85.208.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ionos.com Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2d0e2adfeefso18219681fa.2 for ; Sun, 11 Feb 2024 04:30:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1707654644; x=1708259444; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dhd0Wyk/ZgeZM/EU3KZ6LbkcM94I0OFOZkDaLa9LsZQ=; b=ZhnjJBq9UlbZIahyq8LYfJIU3IheyD12vYU0g98Givle61VZQr3I0hefCz5Y16Nm9V 3q78+kZPHIPxA873Qmfe9JNhZH/hv/3zmcnfPvy0V5Ac61oXNAH/tH5oQoJsfvJ5p3hz ydHcDuitgUhtzxTrTrq8OJUBSo8EmU27uE7hxDcN8iXtDk4IOe/mdc5EdCZkmjmLn6qW tSYJziQR9ybARHH9XdOWJVqR6hNmgWzWXcK/1znP2ehlBUIW5bC30aWGfLDxO2cdvXgG 57bp1fFaJxoq7LXx6UTZVHXrjmRzAKZIqZYKSBvsmzSoF0QSBNYqhTfHIUeEcr3bQHdH Bvsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707654644; x=1708259444; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dhd0Wyk/ZgeZM/EU3KZ6LbkcM94I0OFOZkDaLa9LsZQ=; b=AEbZwQ6cdh1mQC1ElTyJ1+HrUxK7PI+kK787hsw90v446C8TZ32/HJS+lbGyTtzIvT BjfPT7talud71KgqHuPgiXDYktjJ42dN3u/rWSb+5rZh0tmf9z7SuuKqzz4inx8Lw4nL BdsPH+Kp8HYyV3TBZm+VNkxexyqhLWzn8bpy5q/yXkiqXOZ8oKhKS+t5ORQet5vuTrYl 8F2kOOuj/r80hHqLc/KL/wvYjURiuBip7JpXc6D+YVTitBBB5x9dsluIFaK/ev0ToT9z 7yjUV5SptEFXsbQKDlcpOEvDZ4RInFYAIaEzIJExeRuQV+3FtYL8y3DSO116vQ0e7vZS TFLQ== X-Gm-Message-State: AOJu0YyD2SuJWKCME7mH+q0pUnrHZkgHORiQgjhKybUgMPEgZk6A2JjM jHDpQUw+jJMOhsRkayNBh7HvjJIWt9+3O3uyWpQYKqY+VhWa75+M1t0znOFgJSLM941wyrgVk20 y X-Received: by 2002:a2e:a498:0:b0:2d0:c322:7638 with SMTP id h24-20020a2ea498000000b002d0c3227638mr2437312lji.39.1707654643909; Sun, 11 Feb 2024 04:30:43 -0800 (PST) Received: from raven.intern.cm-ag (p200300dc6f267100023064fffe740809.dip0.t-ipconnect.de. [2003:dc:6f26:7100:230:64ff:fe74:809]) by smtp.gmail.com with ESMTPSA id fj18-20020a0564022b9200b0056187ca4120sm1024611edb.10.2024.02.11.04.30.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 04:30:42 -0800 (PST) From: Max Kellermann To: linux-kernel@vger.kernel.org Cc: Max Kellermann Subject: [PATCH v3 29/35] linux/random.h: reduce dependencies on linux/kernel.h Date: Sun, 11 Feb 2024 13:29:54 +0100 Message-Id: <20240211123000.3359365-30-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240211123000.3359365-1-max.kellermann@ionos.com> References: <20240211123000.3359365-1-max.kellermann@ionos.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Signed-off-by: Max Kellermann --- include/linux/random.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/random.h b/include/linux/random.h index 70e5250f3bc4..3183025ddda9 100644 --- a/include/linux/random.h +++ b/include/linux/random.h @@ -4,7 +4,8 @@ #define _LINUX_RANDOM_H #include -#include +#include // for U32_MAX +#include // for is_power_of_2() #include -- 2.39.2