Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1650281lqm; Fri, 3 May 2024 02:08:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUVKqomEroYHzs3JsTCjY06RFsyH3nqi6rmD17LopNXAXR+d4GT/68mMsPvKiiDPyVXG3HPgiyho6xpObq5cbtgXOg4fuLGpIDb3mEG5w== X-Google-Smtp-Source: AGHT+IEDaR35nT3K6652ON2iaSYgoyOGReBWwViGLRayLjcVTJSi8o54Ssvg/eQDpD64UfpIKUvu X-Received: by 2002:a17:906:7fcb:b0:a58:bb3e:937b with SMTP id r11-20020a1709067fcb00b00a58bb3e937bmr1360760ejs.63.1714727299201; Fri, 03 May 2024 02:08:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714727299; cv=pass; d=google.com; s=arc-20160816; b=rrc45RL1jvTxMha+rN/Zny/Fgldc+oTCtdzl3f58Ggechqbu7BHWWEhpR/sjFUz/fp ODVyCxfigfoxrOThrEqU/4Hs1opSsOd12OyuyhTHhL+gMuNktk+OAxc1Amib6KSnkdtY zNTGR4tpoVXGDiHONGqSm1v9dMiDW6Bs/wTQ+lDepm2jWffV3Zmrpf4cGK8+xJ/MOQde I//5efXOqsEGbl1E8bBZoRgI9ygosonsuJkymBJTN5nHvwZ3W0kGBXynLOJ7AOzJKsH5 yIkiNLtyNsXNnSage/f0pz0i9bV6A0eK6t6Ub4lfxOjwUlJ0rS/01k+dWYM1LOv5ug/I uR+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=JEbUsPy2ss3M/Sfa3SpHacpirZxbb2pj52Abq7M7zz4=; fh=Oy7xJL+qGy2/kBwQ10RdeLpEEqoQJQm5fxAglSJ5cIQ=; b=ureKAif0i6ieh8IxRrQaed9+yDrtueTubiDoxc/IdXQz4O2Voof7GGP9XR7iSi1WWb 7+1pn2LfA1YSBj25NDZaoFRWx9PDZeDLmZ3wuUA/rq9TRSfgBtQBFCbunmvkhWy8ssPJ V+vn8DhTzuvctCrfDacHaMlKzf/7e3vjEcnSiXDmSPj6ZSCsi0jL1Hxf2HlhKO46fCMt wkevQi/J9UH7DOrnV2fKRHFiYzKmIoNVdL2uvTWlV/Fw066jIhI0gL7/ig/1GhhaO8oL 2U4wo/AnSfk62zPApj/hSuKQx/JFAc1uTCXbmLYXZ9K/IqZdZvxprs1q0BvUHH1jh2/Y TV0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-167427-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167427-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i26-20020a1709064eda00b00a5875e21975si1297255ejv.185.2024.05.03.02.08.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 02:08:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167427-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-167427-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167427-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B3ACB1F226A7 for ; Fri, 3 May 2024 09:08:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9130B14F13C; Fri, 3 May 2024 09:07:57 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C65E21367; Fri, 3 May 2024 09:07:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714727277; cv=none; b=aOEAtjXR3csMtbZlj3puMgzATf2VEHC+woDtdaXadw9l8mGA162lkVYZ+HgywZZn7/P/y9rwqlz2jLJ9e7cc0DaF2uqnEflxvVmyc4MHL3+D67RT9ebD3zqdwrnNJTdqrqhsypT5KkbFNpMz9QpYGR61uRzoSibYyj13Mw1bwvY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714727277; c=relaxed/simple; bh=aNTy8TcgZ7Y19kzJ7boBqVizsW7L2J+7kUNs4xjDNXU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=mdHPJLdS0Yk6z6iD1ho7m5x1gpwpstng1urlbde+UpgBtGbABo4+JvHO9xjEhtNV5UZR2jqldowsKmfCpvT0R/k6yW/K3aWAMiPPR7lnyD1W0XSNriU+TQXoeDihL3tRKTNBGvRmTEfWfA/OJZPbZCtdxlJiD8CHrGEuvFIamO8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2200D2F4; Fri, 3 May 2024 02:08:19 -0700 (PDT) Received: from [10.163.34.188] (unknown [10.163.34.188]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9EE153F73F; Fri, 3 May 2024 02:07:48 -0700 (PDT) Message-ID: <7008cd0c-5b65-4289-9015-434cbe3d7e21@arm.com> Date: Fri, 3 May 2024 14:37:45 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/2] arm64/arch_timer: include Content-Language: en-US To: Puranjay Mohan , Catalin Marinas , Will Deacon , Sumit Garg , Stephen Boyd , Douglas Anderson , "Peter Zijlstra (Intel)" , Thomas Gleixner , Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Cc: puranjay12@gmail.com References: <20240502123449.2690-1-puranjay@kernel.org> From: Anshuman Khandual In-Reply-To: <20240502123449.2690-1-puranjay@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/2/24 18:04, Puranjay Mohan wrote: > arch_timer.h includes linux/smp.h to use DEFINE_PER_CPU() and it works > because smp.h includes percpu.h. The next commit will remove percpu.h > from smp.h and it will break this usage. > > Explicitly include percpu.h and remove smp.h But this particular change does not seem to be necessary for changing raw_smp_processor_id() as current_thread_info()->cpu being done in the later patch ? You might still leave header inclusion in arch/arm64/include/asm/smp.h while dropping the per cpu cpu_number ? > > Signed-off-by: Puranjay Mohan > --- > arch/arm64/include/asm/arch_timer.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/include/asm/arch_timer.h b/arch/arm64/include/asm/arch_timer.h > index 934c658ee947..f5794d50f51d 100644 > --- a/arch/arm64/include/asm/arch_timer.h > +++ b/arch/arm64/include/asm/arch_timer.h > @@ -15,7 +15,7 @@ > #include > #include > #include > -#include > +#include > #include > > #include