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 X-Spam-Level: X-Spam-Status: No, score=-14.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5398C433E6 for ; Sat, 29 Aug 2020 05:16:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A4DA620838 for ; Sat, 29 Aug 2020 05:16:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598678204; bh=nxTmT2tJn2Gej6KjtuUDCxoz7ifL2sJHRZRtLRwnc/U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=GIqZ06/iq+ej53ng8gQbYDvV91N/ePUQaPKyoar/+kUpLlDqQdDQfQYUkcweyufh8 K8Q77+jS0XgpDhVKVfGVrFO0FUx9HTDF2HC0yaO8zh9Q5ab193O/YyKAFxwkCrTrvm GPLRjxMtXzymRh6bDoeanUnyMmeutGxQ61RoMNHM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726333AbgH2FQn (ORCPT ); Sat, 29 Aug 2020 01:16:43 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:35177 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726001AbgH2FQm (ORCPT ); Sat, 29 Aug 2020 01:16:42 -0400 Received: from oscar.flets-west.jp (softbank126090211135.bbtec.net [126.90.211.135]) (authenticated) by conuserg-12.nifty.com with ESMTP id 07T5FRB9012582; Sat, 29 Aug 2020 14:15:30 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com 07T5FRB9012582 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1598678130; bh=0XqtnXdF9CBIU4ohxV38tjVOaVgk2FYWRD/pAepS2uU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YQSAq7nIHgy+IR776Vq74wL4lRy3094D58JmmoZNCLF8gz48TeSNFQq698RvzI8wz 18MgFLhbgeFL34IzkzKp1m3csB04ACOMAXwG45KZcOMsORKfja80oTxOpDjQFtR1y/ LhODeCkE7FxruIEoIHkWxOTzizaAohvmDsgGSuSHQ1OX1PZlBMFo4nyiW0SjuSyIgF CucZT1eqDk8emwM89ZQeLeKr1tGWAwGYWeLf0zrw9p0x4lQsCJ53LthZdNYypt2ogC 2MLb2lSa3rEkAhLqhc6LoVpjXKN3+EvklxLvrZd8R1ADzRgnAAjG40L3bCt4qkHtKR r3XHONQiIk6Ag== X-Nifty-SrcIP: [126.90.211.135] From: Masahiro Yamada To: Tony Luck , Fenghua Yu , linux-ia64@vger.kernel.org Cc: Randy Dunlap , linux-kbuild@vger.kernel.org, Masahiro Yamada , Andrew Morton , Ard Biesheuvel , Dmitry Safonov <0x7f454c46@gmail.com>, afzal mohammed , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] ia64: remove unneeded header includes from Date: Sat, 29 Aug 2020 14:15:23 +0900 Message-Id: <20200829051524.706585-3-masahiroy@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200829051524.706585-1-masahiroy@kernel.org> References: <20200829051524.706585-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org includes too many unneeded headers. This commit cuts off a lot of header includes. What we need to include are: - for DECLARE_PER_CPU(u64, ia64_mca_pal_base) - for NR_CPUS - for u8, u64, size_t, etc. - for KERNEL_STACK_SIZE The other header includes are actually unneeded. previously included 436 headers, and now it includes only 138. I confirmed is still self-contained. Signed-off-by: Masahiro Yamada --- arch/ia64/include/asm/mca.h | 9 +++------ arch/ia64/kernel/efi.c | 1 + arch/ia64/kernel/mca.c | 1 + 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/ia64/include/asm/mca.h b/arch/ia64/include/asm/mca.h index c92b9c15962c..05805249296c 100644 --- a/arch/ia64/include/asm/mca.h +++ b/arch/ia64/include/asm/mca.h @@ -14,13 +14,10 @@ #if !defined(__ASSEMBLY__) -#include +#include +#include #include - -#include -#include -#include -#include +#include #define IA64_MCA_RENDEZ_TIMEOUT (20 * 1000) /* value in milliseconds - 20 seconds */ diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c index f932b25fb817..b6bb718ed1ff 100644 --- a/arch/ia64/kernel/efi.c +++ b/arch/ia64/kernel/efi.c @@ -39,6 +39,7 @@ #include #include #include +#include #include #include diff --git a/arch/ia64/kernel/mca.c b/arch/ia64/kernel/mca.c index 17151269d655..3911c561d2bb 100644 --- a/arch/ia64/kernel/mca.c +++ b/arch/ia64/kernel/mca.c @@ -96,6 +96,7 @@ #include #include #include +#include #include #include -- 2.25.1