Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2173843rdb; Sun, 11 Feb 2024 15:26:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXVQOty2u17qBM869fJxV4hi9+QGxLA8QgnHv4yk7eEsIAK0hZr6+YCrVhXHqAzwvaFTEusL5vGnbmFwnDGfuUD+vNZj4nF2vlO8kKzfA== X-Google-Smtp-Source: AGHT+IH90vxNhl63J1vMAYnyRq7VfwjVVWB8UGcwANuuJ//Yh8YwRL9QTJu1syYhk/zTmw8HvuYw X-Received: by 2002:a05:6402:b34:b0:561:46fe:56e9 with SMTP id bo20-20020a0564020b3400b0056146fe56e9mr4341418edb.10.1707694000300; Sun, 11 Feb 2024 15:26:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707694000; cv=pass; d=google.com; s=arc-20160816; b=Q4rSS4Az4uGLcF+xV4Ma1z1aumXzNGaQVNLXaJ+ooEz1HlGKVuzLWdLcKrn1NGy8Lt sTgkV0b/npH5erfzpE/DtJgeXm7qOKeaHetpbCKjLDPJA/I0/cWJd0VIqKzPZt4Tdcvc vAHzUeWFhfMLsGGtsw5KAPWtsGlZWrwcZpIcQpMrc49fIQ0IHdDxrobutbMG+Pdy01nN hvviSngbB6eUuS3OOOgLPXiILZgErrKIfaVLg7khTW4EVM7TScj2kxcbK9zRNNDzgf/h vcESBAMXpVLZ9pgPc/h03n6IEOimdrGXHS2B+ptYySxCd2bPhX/KOVUf8LlWJEDH85By hLcw== 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=2cPiZTfFXte+Fqn6JRhP4T/b4jYE9sSd7bM+q2p6h9o=; b=jjQs3g3Zf27zCKzSkMhdA5aWvXlajoxmIBA1e8C+rIfKvC/GN5V40KJ1k0HEWySOis WsDN4P9BoYkSHnyndnby2cbgBrrFYGF4SgpRzgdRwgTxgE2hTtsQpOwaV0bKZ+AHBdKm ma5Uhdk0b4szpKqINTRerDKXvwQ9hh/LOatR74iCNjpDnZWbcrE0vejPUjQcRb1ACMJN 6f6q11idBua/xkDylVTukc+cLLFqwpQ2MKApaTjsAAtn8FFNSAGZaHwDXvK9G72HzJYS uWblMaRSqDGmnGwsVG9Q76Ftg7jSfLtE2WwX8t2u243XSx6FdvvbVaKAQ1Yyu9Ps4BtO L8vQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=FurQosrX; 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-61008-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61008-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; AJvYcCVu2P/aJSP4Af861lhzHsKr/0Gje7vG5sqMfs7IOksqiSD+dkj8y4edyseXqgVBFRchau52vxLYjnkCG4dwa/ILnttfNBSF2F9CJA3Odw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u29-20020a50951d000000b0055fe1d40689si2088972eda.52.2024.02.11.15.26.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 15:26:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61008-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=FurQosrX; 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-61008-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61008-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 47A3C1F24210 for ; Sun, 11 Feb 2024 23:20:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9082F39FE5; Sun, 11 Feb 2024 23:16:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b="FurQosrX" Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (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 96EED2D629 for ; Sun, 11 Feb 2024 23:16:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707693365; cv=none; b=IzDOqijWskjDibcr/YEnJScdUS0UGtaES4mE7f65v829UXLMn/m84Yy8t0xVG27TYx0h2JROY95na3fRPEVjOojjixy2zNl5cdv+PvXDid1S7t9PlGCvzzn7X5IWgJQbNaPMfadKLMZ3Oy3FcKAltotQO3g1APihaVJ8dcN+tI0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707693365; c=relaxed/simple; bh=FaWrvDRhCn6qo66e2LFY1/am/fRiqeQ00xmmtBjY9fQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZexRLepavRkoOTOlqnTgCd0onYeHyz7nCpTFw7b8rHIPZdMO/HQS5pGS97qTJ4tG8HkJk3rKda86+frOE7pQgdRHqr0aJVKYQoWS1DSCFcJC5WzjTcA6m3NyC8bIAc9jp+FQ8EMnULqgeiHpQty4c2fudNXL8JwbJDFuFC4uOBE= 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=FurQosrX; arc=none smtp.client-ip=209.85.208.50 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-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-5601eb97b29so4810750a12.0 for ; Sun, 11 Feb 2024 15:16:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1707693360; x=1708298160; 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=FurQosrX8IiRpzZb8PF17QLrh5D2pgkHV2pa90ELq4iot1yY4hGoy/h17srKDPPAD7 /37GdWmKoP+i6moCFUbE5hvcwSvM/keUyoVJW3IwwUSF1DXfdCuqOA/URipfa7c4TDB5 apyqPfVNIIanz53ue32MuU68uSsWw/CVennUmhrqhobY4/GkiOFWWFIqsFbehf1235Yg niyOvFY7yr7f/d6/SiTsuCBmORCWTzaREP4/cgigXXGvRZ+5gPI1TTnnucC7NGwVcRUa yPn/9udyWBgHKJQ7uEkWZT0RfcCscUuLk9h/c+E/9L0FuPyxSFZRQX579rxbKljlBUqq twmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707693360; x=1708298160; 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=hlPRLoQJM+O2PG15WwYCjlgBsHbovIf1Nhr+XqF1Daz76QKyEgt4xEU4ETkcfoAhVf OIA/7M3pN7HI2Dy3sbPQ290xJdx2I4bn1e83cx3yXajbt/MlK4yUVZN8ENlgXJ0ZLDgh K9K8xYbwdMN8OILwbPRr9yy5pY1AV6MC74QI0GzvhKKKxFZAhVDzThtTvflpe9Wzhdck 4BiQBlbM19ASuiK1jfxTkUJUjjZ0IDDjlkqBP+MgIp/ilxVFaFtNIf1VBWwcRQoHnz/m fkqEfHMyGPxHUHDi/ZzoPdG1lP5DaGqssmlxURFwK6tV1waNa7o7TE4TNv1JyfMq3Zdz CnUA== X-Gm-Message-State: AOJu0YyEl44008YDzqmlnWJ1oKX9Dw/zG9hMDwE+hhoE57PuGeEDu6tP n4LVPsFyLq727zsO37JerqgIOLOUPdGHBUjQZCHbstWiBgQSwCZJ8FHlnChH2yAJSoHNB0MQpxt E X-Received: by 2002:a05:6402:911:b0:55f:e2ee:6bba with SMTP id g17-20020a056402091100b0055fe2ee6bbamr7473994edz.5.1707693360667; Sun, 11 Feb 2024 15:16:00 -0800 (PST) Received: from raven.blarg.de (p200300dc6f267100023064fffe740809.dip0.t-ipconnect.de. [2003:dc:6f26:7100:230:64ff:fe74:809]) by smtp.gmail.com with ESMTPSA id et13-20020a056402378d00b0055d19c9daf2sm2170180edb.15.2024.02.11.15.16.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 15:16:00 -0800 (PST) From: Max Kellermann To: linux-kernel@vger.kernel.org Cc: Max Kellermann Subject: [PATCH v4 29/35] linux/random.h: reduce dependencies on linux/kernel.h Date: Mon, 12 Feb 2024 00:15:12 +0100 Message-Id: <20240211231518.349442-30-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240211231518.349442-1-max.kellermann@ionos.com> References: <20240211231518.349442-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