From patchwork Sun Dec 4 11:39:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 29413 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1759037wrr; Sun, 4 Dec 2022 04:08:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf7k6HABGeUE58ClrFiAJ9WF53mbDOmzjLZhGPSj/279KysSpJVYrRUNAwby7agObbkwp6E9 X-Received: by 2002:a17:90b:4016:b0:219:4f54:34e6 with SMTP id ie22-20020a17090b401600b002194f5434e6mr28346681pjb.208.1670155703027; Sun, 04 Dec 2022 04:08:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670155703; cv=none; d=google.com; s=arc-20160816; b=VEcZrB9bXmoOpODOG8mkrPYuM++faoWfsmhhMjZd9/dX3VPTjEO4LOJ0eSm8W1+x9u WSkjUcfPx2m17Nmu4H7HjdP+YVxkX5mLbPbrjAFhUX9sSrcf6cCVc1Vgd7NHPweTjGdH T1+6MV/EgtpdoKyR2sbsT+ATgQoBh8kgjNHHQo6Cv12QoUX++50GDE1uUxKejdwYNnjI f5+hXjI82Qfq5ymzyemKlb6bvE8kZ48OIdIapumR0QpARlizOgx+CE8GuDxwN2CHADkC SjtOgZFcm8ykug1U23PWHYvlJT4dHHvliOHnkJLjqw1MVDTWOpVMauDJju+ezcVtGKfN fVEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=t+a53L2arVwwko/tlQvhz6oFJh+e2ROeLOkFmKSamn0=; b=frihWi8JNZCFNIxGaGAqssIeDy/jjmCOH2y9aib+p5wfNa8kt6lkU9Mgd4GJBn9W1U z+qkoNMNdVWG6uI7a95vrze1pSvfA+yb0m35NtqHqYCuk+8WU1zzd+vu4rtrTHl86Chd pbWUAasyXItKpJLqUAy/BEOZx0lsfd7D2d/e5jtxa6YG6MM/N4NHkau4OJv614bzeH0l Ub2d624BspBAHXDziEgR3jqNl2WOvGmBJr1tLzl/GXRjgjL1zN1m/d5k1922r9LQUqWz 1qjpumBm5xZX2pwz/wTQHOta8/nbi/kvIeHsASnvM2S8/Mhqiy6XEb+J5oDlrRa6sCny hZPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c13-20020a170903234d00b0017a0a6b5b11si13547982plh.145.2022.12.04.04.07.50; Sun, 04 Dec 2022 04:08:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229995AbiLDLls (ORCPT + 99 others); Sun, 4 Dec 2022 06:41:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229928AbiLDLlH (ORCPT ); Sun, 4 Dec 2022 06:41:07 -0500 Received: from smtp.smtpout.orange.fr (smtp-12.smtpout.orange.fr [80.12.242.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FA1C186C5 for ; Sun, 4 Dec 2022 03:39:51 -0800 (PST) Received: from pop-os.home ([86.243.100.34]) by smtp.orange.fr with ESMTPA id 1nLYpvyXGap0Y1nLYp173T; Sun, 04 Dec 2022 12:39:49 +0100 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 04 Dec 2022 12:39:49 +0100 X-ME-IP: 86.243.100.34 From: Christophe JAILLET To: paulmck@kernel.org, elver@google.com, mark.rutland@arm.com Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] init_task: Include in the right file Date: Sun, 4 Dec 2022 12:39:47 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751285186516407720?= X-GMAIL-MSGID: =?utf-8?q?1751285186516407720?= There is no need to include in init_task.h. Move it to the right place, in kernel/cred.c which uses RB_ROOT_CACHED. This is a follow-up of commit 4e7e3adbba52 ("Expand various INIT_* macros and remove") which moved things from init_task.h to init_task.c Signed-off-by: Christophe JAILLET --- Let see if build-bots agree with me! This patch depends on [1] and [2]. All these patches are related to init_task.h simplification. They are unrelated and can be applied separately, but as they modify more or less the same place in the same file, there may be some merge conflict. [1]: https://lore.kernel.org/all/1a3d5bd51b7807471a913f8fa621e5a4ecd08e6a.1670100520.git.christophe.jaillet@wanadoo.fr/ [2]: https://lore.kernel.org/all/94c8f2123a8833b61d84a662ec35f9c070cdf4dd.1670147823.git.christophe.jaillet@wanadoo.fr/ --- include/linux/init_task.h | 1 - init/init_task.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 6d2c4ea4c97a..e18a6c6f6fd9 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include diff --git a/init/init_task.c b/init/init_task.c index ff6c4b9bfe6b..2392c0a67fb7 100644 --- a/init/init_task.c +++ b/init/init_task.c @@ -2,6 +2,7 @@ #include #include #include +#include #include #include #include