From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4BE09C433F5 for ; Thu, 20 Jan 2022 02:08:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D63206B008A; Wed, 19 Jan 2022 21:08:15 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D12E16B008C; Wed, 19 Jan 2022 21:08:15 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C01996B0092; Wed, 19 Jan 2022 21:08:15 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0115.hostedemail.com [216.40.44.115]) by kanga.kvack.org (Postfix) with ESMTP id B00116B008A for ; Wed, 19 Jan 2022 21:08:15 -0500 (EST) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 72A83181CB2CC for ; Thu, 20 Jan 2022 02:08:15 +0000 (UTC) X-FDA: 79049030550.26.4A112FF Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf05.hostedemail.com (Postfix) with ESMTP id 09EAF100007 for ; Thu, 20 Jan 2022 02:08:14 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5DC7A6145A; Thu, 20 Jan 2022 02:08:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 267FEC004E1; Thu, 20 Jan 2022 02:08:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1642644493; bh=g8TVnTSUsOZBBb3jkEzlFb6UiH4V6dyoHBQab2OEtZU=; h=Date:From:To:Subject:In-Reply-To:From; b=jvdalAAamOo0c1fKSBaphZagmWYJAS04jZbUcHH26vlsOK3wABwyUu/b+652F1tSv 7Nt/NhlwG+4biHNR6iz6p2IFWcYeBS9qQ50FlRj/yjXQVCeREEsXU8RIMZM7K/HUCe R8EPoGwn0Tp44msTrNTbxeUWXgUHPRCacSIycfa4= Date: Wed, 19 Jan 2022 18:08:12 -0800 From: Andrew Morton To: akpm@linux-foundation.org, andriy.shevchenko@linux.intel.com, arend.vanspriel@broadcom.com, aspriel@gmail.com, chi-hsien.lin@infineon.com, chung-hsien.hsu@infineon.com, davem@davemloft.net, franky.lin@broadcom.com, hante.meuleman@broadcom.com, heikki.krogerus@linux.intel.com, kuba@kernel.org, kvalo@codeaurora.org, kvalo@kernel.org, linux-mm@kvack.org, mm-commits@vger.kernel.org, torvalds@linux-foundation.org, wright.feng@infineon.com Subject: [patch 10/55] include/linux/unaligned: replace kernel.h with the necessary inclusions Message-ID: <20220120020812.5WZBpxrFt%akpm@linux-foundation.org> In-Reply-To: <20220119180714.9e187ce100e4510de3cd9f7d@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 09EAF100007 X-Stat-Signature: 7oa4uh6ku19fpuyxfouacudx86nnnidy Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=jvdalAAa; spf=pass (imf05.hostedemail.com: domain of akpm@linux-foundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-HE-Tag: 1642644494-121102 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Andy Shevchenko Subject: include/linux/unaligned: replace kernel.h with the necessary inclusions When kernel.h is used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved. Replace kernel.h inclusion with the list of what is really being used. The rest of the changes are induced by the above and may not be split. Link: https://lkml.kernel.org/r/20211209123823.20425-1-andriy.shevchenko@linux.intel.com Signed-off-by: Andy Shevchenko Acked-by: Arend van Spriel [brcmfmac] Acked-by: Kalle Valo Cc: Arend van Spriel Cc: Franky Lin Cc: Hante Meuleman Cc: Chi-hsien Lin Cc: Wright Feng Cc: Chung-hsien Hsu Cc: Kalle Valo Cc: David S. Miller Cc: Jakub Kicinski Cc: Heikki Krogerus Signed-off-by: Andrew Morton --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/xtlv.c | 2 ++ include/linux/unaligned/packed_struct.h | 2 +- lib/lz4/lz4defs.h | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/xtlv.c~include-linux-unaligned-replace-kernelh-with-the-necessary-inclusions +++ a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/xtlv.c @@ -4,6 +4,8 @@ */ #include + +#include #include #include --- a/include/linux/unaligned/packed_struct.h~include-linux-unaligned-replace-kernelh-with-the-necessary-inclusions +++ a/include/linux/unaligned/packed_struct.h @@ -1,7 +1,7 @@ #ifndef _LINUX_UNALIGNED_PACKED_STRUCT_H #define _LINUX_UNALIGNED_PACKED_STRUCT_H -#include +#include struct __una_u16 { u16 x; } __packed; struct __una_u32 { u32 x; } __packed; --- a/lib/lz4/lz4defs.h~include-linux-unaligned-replace-kernelh-with-the-necessary-inclusions +++ a/lib/lz4/lz4defs.h @@ -36,6 +36,8 @@ */ #include + +#include #include /* memset, memcpy */ #define FORCE_INLINE __always_inline _