From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0170F29B778 for ; Mon, 24 Nov 2025 20:41:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764016898; cv=none; b=gFA35Yc2TrU1RIL68Ex1XthOcubTbWmF+Irz2Vn22v+XYjBDCu3bvxB5z5VihuvFn88s6P1SG+pfO39YsOKkoTf46WUlxfy9rqcmAtV/FngApC143SxY9tu/0EmrQgVe7IpPVw2RQ0OXF1rcY2rjGgyu90ZcYT2Qhtm3Wd4ww4c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764016898; c=relaxed/simple; bh=5D0NLZAeR42WRj10/oeFhlhEeH4oJ3sD9KRIISna4FU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HMGfvQp+FANJBg3SWVrKK6R6YC2csnr3s86v30cSdGe5EXn4X9nojfb0NKRhClCqReOFWMhsDQzLq6qT+uaHHqXW6OfeqSuLXcfR105lUpBwiVnUW5OXpAfgsLVfQ2M+EubAQ9/IOPbePKA58+0eqHd+rO27tQSe6UPjOPPYJpA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=mshbVj1h; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mshbVj1h" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1764016896; x=1795552896; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=5D0NLZAeR42WRj10/oeFhlhEeH4oJ3sD9KRIISna4FU=; b=mshbVj1hVJLKfdHxWlW6zxRlvbedZunZct+1A6Mmkk/PdxcdomNWUPXJ bpFqiFm955CyiEVuJmWRIAzsarbEzILtO/tzvCS0FNMGEu449m4KfH/No xpM83X0NCJrw06i1gHlQfbaAa2XlphP1w83KFiTFJBk9TQL0u20UbwJja U/YQi1t1kbn+RCszjoSrPoMGiO2eFHgvjlVzSFALBj7kp4TNbPXaIIBPn TeezWzujDgxFi8VcvnGBIFlCjUQmNKMjTDFhup2b+YxUshbYAlKWftW9o tHBxjsGyXA/S+IdYCnyImCoDxIklXBC9K4xVsopdcC+8NsyzkPehWjfn+ g==; X-CSE-ConnectionGUID: WYS0DEFDTEiYCSj9qKLuSw== X-CSE-MsgGUID: SJBJ6MV0Qn6ZHajjDekEyA== X-IronPort-AV: E=McAfee;i="6800,10657,11623"; a="76354315" X-IronPort-AV: E=Sophos;i="6.20,223,1758610800"; d="scan'208";a="76354315" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2025 12:41:36 -0800 X-CSE-ConnectionGUID: g151JTL+SU2wH2XOERdsjg== X-CSE-MsgGUID: UrBogWy3SH6+tAT89QkXOQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.20,223,1758610800"; d="scan'208";a="191580546" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa006.jf.intel.com with ESMTP; 24 Nov 2025 12:41:33 -0800 Received: by black.igk.intel.com (Postfix, from userid 1003) id E82029F; Mon, 24 Nov 2025 21:41:31 +0100 (CET) From: Andy Shevchenko To: Thomas Huth , "Yury Norov [NVIDIA]" , linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Rasmus Villemoes , Andy Shevchenko Subject: [rft, PATCH v1 1/1] cpumask: Don't use "proxy" headers Date: Mon, 24 Nov 2025 21:39:59 +0100 Message-ID: <20251124204128.1273728-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Update header inclusions to follow IWYU (Include What You Use) principle. Note that kernel.h is discouraged to be included as it's written at the top of that file. Signed-off-by: Andy Shevchenko --- Not fully compile tested, might give some compilation errors arch/x86/include/asm/cpumask.h | 2 ++ include/linux/cpumask.h | 12 +++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/arch/x86/include/asm/cpumask.h b/arch/x86/include/asm/cpumask.h index 70f6b60ad67b..9df9e9cde670 100644 --- a/arch/x86/include/asm/cpumask.h +++ b/arch/x86/include/asm/cpumask.h @@ -2,6 +2,8 @@ #ifndef _ASM_X86_CPUMASK_H #define _ASM_X86_CPUMASK_H #ifndef __ASSEMBLER__ + +#include #include extern void setup_cpu_local_masks(void); diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h index 66694ee8d86e..6abf3d7e9435 100644 --- a/include/linux/cpumask.h +++ b/include/linux/cpumask.h @@ -7,14 +7,16 @@ * set of CPUs in a system, one bit position per CPU number. In general, * only nr_cpu_ids (<= NR_CPUS) bits are valid. */ -#include -#include -#include -#include #include -#include +#include +#include +#include #include #include +#include +#include + +#include /** * cpumask_pr_args - printf args to output a cpumask -- 2.50.1