From patchwork Sat Aug 29 05:15:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 254245 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 03F72C433E2 for ; Sat, 29 Aug 2020 05:22:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CBBA420EDD for ; Sat, 29 Aug 2020 05:22:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598678573; bh=nxTmT2tJn2Gej6KjtuUDCxoz7ifL2sJHRZRtLRwnc/U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=liAFnMAXvhuPIDWf46e+Z7tH2lFH6lvKsgDlS+R3hfmsqJp+AGoKl4/HOu8zoljgx vl1EOn2JjuKEwVHl2OBFczilKGNoWqKZB81FBhRbcqt6kz1x3qpx//nLdTpH63+6vk ewVkA1nFdf7E5Ch/86fWBQ2cpwFNbpeDFHxaXnk0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725942AbgH2FWx (ORCPT ); Sat, 29 Aug 2020 01:22:53 -0400 Received: from condef-06.nifty.com ([202.248.20.71]:20539 "EHLO condef-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbgH2FWx (ORCPT ); Sat, 29 Aug 2020 01:22:53 -0400 Received: from conuserg-12.nifty.com ([10.126.8.75])by condef-06.nifty.com with ESMTP id 07T5GhZf022344; Sat, 29 Aug 2020 14:16:43 +0900 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 Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@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 Reviewed-by: Randy Dunlap Acked-by: Ard Biesheuvel --- 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