Message ID | 20240212115500.2078463-30-max.kellermann@ionos.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-61490-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp2390430dyd; Mon, 12 Feb 2024 04:21:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUMO01vC5efjjnfw26m8UIEhajx7+K9Xhz02yfYZVvg9rYXy61KEGfTUyMCLXXom29/DExiemZ82wEX2AzjKl2FecmqIw== X-Google-Smtp-Source: AGHT+IEceoIR5OEXHXoYEMbqZt2SIGRdTBboeUHu1wbsWYE1ngIfnCQdNI14FCxhw5I8ygkRb3QY X-Received: by 2002:a05:6a20:9f98:b0:19c:9d37:ec59 with SMTP id mm24-20020a056a209f9800b0019c9d37ec59mr5726802pzb.28.1707740495705; Mon, 12 Feb 2024 04:21:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707740495; cv=pass; d=google.com; s=arc-20160816; b=YjAC4eUduhkfGfvdxKX4CLm1qqZKFsgtA0Zf3s4h2tey+3zxcav7FwFt/TFFgQKi+z FDvN+5Fv2KXQlMVRbaOYOD39heozpN4tMFmQPl0kk08MRSXwalRQISGLkWXaafwcjVbu ruTWkNog6XBdNxZItBNAjHBB6M3tYHQVjXz/DKpurZbLCzw5ouGQ4q3qSJ0u8Gk1cED5 idCVQ/3aotlmmenW91tvAT67DB1EbOQvU5xLL5eSa9yhj6Zj+9QHMpYbrpwuvat4D0pL g9O8/rPdVFnI3BdfCaKSRfC4miGValFy92+3h6CdOcVhd3Nb1CH8/6GVvPQt6gq+pRJm jeIw== 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=nG9Nqz5dWfWXf7VGFaazNUwhGBc+wG6QDFlLIRAAr24=; b=yQ1rvk/hr0vGDgXB/IeYFQpoS6UlcsH6ssWzE33kzcq2eyJhNgi8Mc2b7XB/svkIK7 3iwoF6gJOXXDcdFxoFA6dDzTOxzcnBcy5VfyTFozNB+XjA20EMk2B05XOSAfD1bdL334 4nPqZcaogYXKLfRsZLj6yibrf3pa3V0E1wD2JwNp1Clfgr7YGWW5AHa/XAm8E0d9kQmR Hh2bAfWxnnEhw4HvkYhMdPEVBv+EhXEqf4FDgdHnIgXxcxRHv/MWoXryU5sYaGB23umi OY2JxwGxm1aHGHokt/4SlO103jqvHSmnR56HF0BJc034lkm3heT1yIKfSj4smo4mcNUC 7tdw==; 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61490-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com X-Forwarded-Encrypted: i=2; AJvYcCVxZ60z80uAA2HQvojqs329PRy55jiBgfdKfp8IQckL4nBBoq4wL1ANhGeT27YMVxildZd4Kz+Z6dUbUbsYa7ekgcTJNA== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bx24-20020a056a02051800b005dc49a8cea8si166207pgb.376.2024.02.12.04.21.35 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 04:21:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61490-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61490-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DBD9EB2261B for <ouuuleilei@gmail.com>; Mon, 12 Feb 2024 12:02:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C38B3FB27; Mon, 12 Feb 2024 11:55:55 +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 <linux-kernel@vger.kernel.org>; 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 <linux-kernel@vger.kernel.org>; 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 <max.kellermann@ionos.com> To: linux-kernel@vger.kernel.org Cc: Max Kellermann <max.kellermann@ionos.com> 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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790695698119055974 X-GMAIL-MSGID: 1790695698119055974 |
Series |
Fast kernel headers: reduce header dependencies
|
|
Commit Message
Max Kellermann
Feb. 12, 2024, 11:54 a.m. UTC
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
---
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 <linux/bug.h> -#include <linux/kernel.h> +#include <linux/limits.h> // for U32_MAX +#include <linux/log2.h> // for is_power_of_2() #include <uapi/linux/random.h>