Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2403443rdb; Mon, 12 Feb 2024 04:00:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXlAMSUtKvm1eDuBG7hoGVos++qRR4jU3C8pCN6OgZE4Z4oKX5wlKtG7hBjJHSnNbo8uKTVIemzOTUZwMwGpQss0nZYm+zd1ZkYgiXLBg== X-Google-Smtp-Source: AGHT+IE/YeoOBC6phdiABOxjpNBdIxYhyK7zeIMPA8h1R1kt64+dqZTZzKpz8juNvNWOxAJNxQXF X-Received: by 2002:a05:6a20:9f98:b0:19c:9d37:ec59 with SMTP id mm24-20020a056a209f9800b0019c9d37ec59mr5655567pzb.28.1707739238292; Mon, 12 Feb 2024 04:00:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707739238; cv=pass; d=google.com; s=arc-20160816; b=hQaW/scIF/XGtly8wztsRRwCxRAF6fpw7geGPtI7095i2Yt7BHFWy3ogE5fDkwTApn kpFE5ZffAg3mKpt65E6iHsFIaCrlXYwfUEMbnsf2LY5/zaCUt7uOf/E19Sk9E1JFf7ty I10Wxpk1NUnBMRfqkJ2kFRX8F7AKbRXVV1+M79Lfyxs15XzhUe5Tv3VgtXaewLbtcUdP HmOQKUMiu7nCbxY9+VVAzTY2CLXzHlhppS5eK2E+p3VtEyMsI0DXhmyVpSIorQXieDYM e64FbYYnBpVdcf/Bvc3wrSw2JwR5lSn/p6RkrFWqyJhl3hPMoMpFBJu3dpER6FFtW+TX YeWw== 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=5V8Ei6FS10ev4L0mOCHLHTr3gACzdxj+9cULzCfn48w=; b=IQq0pgNmXUNMZcUKaP6hV+ak/V/EH7gjDE1TsVcV8D+mUUW5AHTEAha0fAUFvweHLA jJFxt676FSmaTTGYQtet6WmGM01pnIT9k++90x0MFx/Ub6N0dtwk/p1mTZku00doTYRL 4Q0vPC1XxwZjXXJbSV/qiqzYAVVHt5ehkB1Ywaa/1n6GsK6prqnbXyQ5QMsrltQHHvGx vtbtd4RY2iM5CsCnUswlnvXr+ifHCRI79pPA0AT6Rd06f4xdloeN2yfcPH0e78omv+Ak cwcaziUB+XMRBZSJ4mQIJwES7PujZ70OCgU+huFkJ2leb7UbEVwQmjYWeRXa1iqhQtux da4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=eIycTmV2; 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-61490-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61490-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; AJvYcCUvuhFYR4sfnbs/EmemBiUlcU2Qzf/KsHAvG/33XJqnk5SM7Kbek77KiVtXFCg2hVmrS/wxZ18VbchGFrEykNCEF00ExgA5J++OzAxHeQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ot2-20020a17090b3b4200b00296a6ace54csi175516pjb.174.2024.02.12.04.00.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 04:00:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61490-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=eIycTmV2; 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-61490-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61490-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A6FDA283935 for ; Mon, 12 Feb 2024 12:00:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0DF63D996; Mon, 12 Feb 2024 11:55:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b="eIycTmV2" Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (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 907163CF42 for ; Mon, 12 Feb 2024 11:55:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707738947; cv=none; b=HwDyh4HuTeOTbq1A7V0dNUDWt/rFtmu11yqb6L6k4pF6iXOiA6MQJ1lG+ZhiCam7oGiI/pREtQGi4HF9SmhzaYfKyZO0mjNAM4mFhJguA3ppWqBclDByK8Z6tE8508J9N+7Ig0SLBQhBBB3X3wvn0CAH4QmHEn8GOa2FxaCWFNQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707738947; c=relaxed/simple; bh=FaWrvDRhCn6qo66e2LFY1/am/fRiqeQ00xmmtBjY9fQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qVR5pkhZj4S5LGNOfNZRCkk1crvK51pY3t97DXLFdXBFOQDTffBL0PnhxjV8YL3JaYn1qfN1alWKC+sOoRdHnjDvKd6G9Myv7Mfsmuv/AO0g5AgIpkuHZBbopcgJC0VIvR9hYYRPbolBXYDLuU+aLWXoVcPt0To/JU16Sqxv90g= 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=eIycTmV2; arc=none smtp.client-ip=209.85.208.52 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-f52.google.com with SMTP id 4fb4d7f45d1cf-5610b9855a8so6980414a12.0 for ; Mon, 12 Feb 2024 03:55:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1707738942; x=1708343742; 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=eIycTmV2JrToWcqablESKF35/cgEu/gFA6Wwmy0knNwV5mQUahf/CNfITqsIMsRF/D wWMDFTocGyUOgrAQDlXvz603U2bkcOKJXTyU1SLlinZiVWPFDxjDqxX49QJ6bvNAktu0 Dq2VDBGYg/Y4/u5ngrhuJ/Xk+NOfQwMijU0J3Sfl1lDNjEt4JaHH01zUq06Yd/IWUeo3 yQt3IJYH+Y+iozsKVtqVVYEJoeJAaQiQZjStfJrhDw66EQGK/34yGyNYfOrssdRSaE0V e8mcbn1kFIKqJKiNkZj2PfuMi747Zl0fBliNNmcHYEV0zImIq+4b14k/H96ITemKJmmi mk3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707738942; x=1708343742; 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=VBYi4mop9+k2sC2v+1WZRsaoosi9upjyfLoE93FKdgwNwJyXKwBUlUGW3lO0y4feSH 49l266d/cd5VIoeNOL5ExDIkM065nEkdVKIRzio9cWA4M+SnCrBc4p54peO5rx9XV568 EDsCAs7pRn8+vGtJqxNQJwKljws602XYf1RsO1MeGV8MX9qO78b3mNS1qzmyEyTEu3+h IziaVd0b5SLBotMHFgopSV2KmnFqCzX2EG3ZkaS5n9qqhZZEfx1aKD0PSMiDkmkygbj5 gsWzLjJ85wZQsnervupV8zXzQPe3FPHqVHPfMiMVDj1ojFH9n2j1pkrggbvqdOXcIczi y0cA== X-Gm-Message-State: AOJu0Yy5fv1O3t7EPhRh5eQYNAKYwxbhqJ3arY3NmKCkGtJOpCtCJArc YTVxebPS2+CmmEjPKSMS+XCXQl1tI8opdmPzWut1aV5iOu7XtJfxWtREJ60CCgC2tp6F/wobOef Y X-Received: by 2002:a17:906:d293:b0:a35:e5bf:b585 with SMTP id ay19-20020a170906d29300b00a35e5bfb585mr5021249ejb.35.1707738942622; Mon, 12 Feb 2024 03:55:42 -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 m1-20020a17090607c100b00a36c3e2e52dsm139203ejc.61.2024.02.12.03.55.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 03:55:41 -0800 (PST) From: Max Kellermann To: linux-kernel@vger.kernel.org Cc: Max Kellermann Subject: [PATCH v5 29/35] linux/random.h: reduce dependencies on linux/kernel.h Date: Mon, 12 Feb 2024 12:54:54 +0100 Message-Id: <20240212115500.2078463-30-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240212115500.2078463-1-max.kellermann@ionos.com> References: <20240212115500.2078463-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