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 B2A49C433EF for ; Thu, 20 Jan 2022 02:08:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 463116B0092; Wed, 19 Jan 2022 21:08:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 412036B0093; Wed, 19 Jan 2022 21:08:21 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 300B96B0095; Wed, 19 Jan 2022 21:08:21 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay036.a.hostedemail.com [64.99.140.36]) by kanga.kvack.org (Postfix) with ESMTP id 1E3AE6B0092 for ; Wed, 19 Jan 2022 21:08:21 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id C281080416 for ; Thu, 20 Jan 2022 02:08:20 +0000 (UTC) X-FDA: 79049030760.01.E9F6E89 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf14.hostedemail.com (Postfix) with ESMTP id 08F3B10002E for ; Thu, 20 Jan 2022 02:08:18 +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 ams.source.kernel.org (Postfix) with ESMTPS id E0C88B81B3B; Thu, 20 Jan 2022 02:08:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 865F1C004E1; Thu, 20 Jan 2022 02:08:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1642644496; bh=AA2akp7VY/A5iM30FL1WrqAncyGJ13k2KORgfT4bhOg=; h=Date:From:To:Subject:In-Reply-To:From; b=zHKMl9oce1rwDnBEikL8DFzyF1gdUhMsGFRSyq/7JxrpNyo0kMQAZGpI27/AkwrIb AiakqORe6h4Tgx1BI79a5VETugzyW7jtv8glif4/UMV5/fLMH7Z+mMlOCvIYX7aVUU 0KW7hfZNn7jmN4ei0VEp7bQXYQmIPDh84W//vlcM= Date: Wed, 19 Jan 2022 18:08:16 -0800 From: Andrew Morton To: akpm@linux-foundation.org, andriy.shevchenko@linux.intel.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, torvalds@linux-foundation.org Subject: [patch 11/55] kernel.h: include a note to discourage people from including it in headers Message-ID: <20220120020816.2JA9JCn3x%akpm@linux-foundation.org> In-Reply-To: <20220119180714.9e187ce100e4510de3cd9f7d@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Rspamd-Queue-Id: 08F3B10002E X-Stat-Signature: wtjqyx7fffqjdzgjmgnexned1woyqdpq Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=zHKMl9oc; dmarc=none; spf=pass (imf14.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-Rspamd-Server: rspam02 X-HE-Tag: 1642644498-68040 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: kernel.h: include a note to discourage people from including it in headers Include a note at the top to discourage people from including it in headers. Link: https://lkml.kernel.org/r/20211209150803.4473-1-andriy.shevchenko@linux.intel.com Signed-off-by: Andy Shevchenko Signed-off-by: Andrew Morton --- include/linux/kernel.h | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/include/linux/kernel.h~kernelh-include-a-note-to-discourage-people-from-including-it-in-headers +++ a/include/linux/kernel.h @@ -1,4 +1,13 @@ /* SPDX-License-Identifier: GPL-2.0 */ +/* + * NOTE: + * + * This header has combined a lot of unrelated to each other stuff. + * The process of splitting its content is in progress while keeping + * backward compatibility. That's why it's highly recommended NOT to + * include this header inside another header file, especially under + * generic or architectural include/ directory. + */ #ifndef _LINUX_KERNEL_H #define _LINUX_KERNEL_H _