Message ID | 20240211231518.349442-30-max.kellermann@ionos.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-61008-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp2143403dyd; Sun, 11 Feb 2024 15:22:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVm30RzTh/rWQkaxGxx/KmfNQDh5NIBsaPyYwzhFvs4Yavm47pLDy3GupOY+AChDffFEX7dm91VTl3sIC+nfIkHeukOuw== X-Google-Smtp-Source: AGHT+IHtNK56qza44gjZ5wZb/cO20If1IH+LY6tazv8WzDLXShIWTyUPWI2832rDLSDlaN9KmWX1 X-Received: by 2002:a17:90a:43a4:b0:296:44c9:2616 with SMTP id r33-20020a17090a43a400b0029644c92616mr2664966pjg.45.1707693733556; Sun, 11 Feb 2024 15:22:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707693733; cv=pass; d=google.com; s=arc-20160816; b=JFVdhklaOW3wdHuf4iwfYzmgmbuVgmyuwJvLjG3ZJS7LW/fit0OhvjSuf+D7s/oDGd g+UMYRx+pH1ZsF0f/eH3D6O2MPO+92bt0VnaTpyarAi6bNK+cIFe1GYZDIR8U3ZqNY5N 52HdbaC2thx6ThcOzKgEu6O+imHlgEBi6sRP2DTN919Z0H8gLW3RFFSyYIdS57+psrhh 8y/sECuyIhTCAK/IPwADSuMtE20psOGs5lONJnhNKf/W4Efi+KxPqWpoEZY9Vvw20csk ajJlqB0QAqgGbDS24Na9+NyUJmtzz+IHQqrzsm4pjfTPypeBeXuXJnDPNerGYJ/8XuNz lxyw== 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=QJ4m8b+bhxMzODVUSAwAX151bPwbNWQs61M6epPT+5A=; b=Qnz0qJWc+UAaK6ZjlAWnsvSFaw6gPwY6f7O6MuDdn1T7RU6cu4s+Pe45CM6qwDxM8R BAcaOV1xVhfGZiXnK9F0JR8rWchn9fCmmfZqCkRDeMRsz9JxX1IukJ7Bbn7NbtHhjBvB 67nh2GyFJMzQilCccwGffCxb3wU8fUuv5VMc2tk8LPpRj/gqDu0UfnDHTSX1de+H24L0 wSc1S/jvvUOovyuFy1+0leKiYLMXmJpMfQw4MZmHlbpahppXY3JxpegpT4mN7pMlbVzQ HCcOdxDnrUS/RS81YrEnDywopc4yT6NyIP0U8p0y1dzBtuWBurd310xFXdyipwmjiPZb foug==; 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-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61008-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com X-Forwarded-Encrypted: i=2; AJvYcCXm/DDR0YKgmbh+coapDxzR7QW9cOjNjEfWvzvOId6xl/B+QUEWiJcLHTBlpRD2VA3E7NvM9TZrI8y5dMRHopjSLI/WOQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x6-20020a17090a6b4600b00290da6bae15si5280242pjl.127.2024.02.11.15.22.13 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 15:22:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61008-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61008-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 46C992812A5 for <ouuuleilei@gmail.com>; Sun, 11 Feb 2024 23:22:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F39AE179A5; Sun, 11 Feb 2024 23:16:16 +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 <linux-kernel@vger.kernel.org>; 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 <linux-kernel@vger.kernel.org>; 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 <max.kellermann@ionos.com> To: linux-kernel@vger.kernel.org Cc: Max Kellermann <max.kellermann@ionos.com> 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: <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: 1790646664170304138 X-GMAIL-MSGID: 1790646664170304138 |
Series |
Fast kernel headers: reduce header dependencies
|
|
Commit Message
Max Kellermann
Feb. 11, 2024, 11:15 p.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>