Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1665172lqm; Fri, 3 May 2024 02:44:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVbiGvMLWICBNci2t1umweKvtKJucjpal8667taGDuT3R4CQiIA/fv3VyW4qra7CBVKtU7BKOvLAXoVidQLd1yjSNmCPIJIZ9HGI7KyKw== X-Google-Smtp-Source: AGHT+IGmXTm0hcWLbt+rcPvpKvPlxsMLaG2L++Sdp+2m3jluV+v6YC/rC103acaD0xlZnzuadReA X-Received: by 2002:a05:620a:e1a:b0:790:fcca:a61a with SMTP id y26-20020a05620a0e1a00b00790fccaa61amr3440716qkm.11.1714729479920; Fri, 03 May 2024 02:44:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714729479; cv=pass; d=google.com; s=arc-20160816; b=xkpFIr9r8lM9i75YJuIIT4Tgm3egCYWyDS5mm9s9D34nF9oWP2eM3J1pnVmYoZ7+2K PByS5dlS2KrRnGrY6kWbewCI3oq6X+h4PuqWXO0LM3OnU0FF2HIa/KEnBJ9NRQ/nvAli sUCJzuPgr8UkD0S1utziRnomQnLOh9sljMfd3OSMiNqbdqdHxiCi6bLDV5hDQT2EHZxI sTDFnmv34WWJAZOmHw0b5fzdrt3rlxnh7aKysNPN6sRt7/lXVlMnEwg6Yy0iz8lEyplT pKEDk7VHKzyTZI1eLQl/mpV5b4oKrkcotk+PlnH0G/RmuG9AKQQXBmoMejUq1h/vaP2K 28qA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=RFwgbCyBMOYmd+EdpsyRf1Q57oQX9LBiXoL3kgQq8WU=; fh=n3NRsikas3jqNPu5lWTQbmfj28AFMR63AQIFFXfSRmM=; b=fY0SQIdMFCDar9ohnmO+r7kCdQnMmXew/llr/wW3h5HEee2qicrvHf54ywxGD5RPx7 yyIO5x1EYctlx7zGE4j+SfEEy6F544xfOuZ8dhaPS4RakjgsWRhIjsdNUOc7bIEOsliE Rgry+B9BtQrQIU12RlwKo1xjbTS/AxrpfSePYiFgwbT7I0Yyh1TsPMr/XVXX5XatHdsy 2OEl6oAXvNAfEsaBezgZ473bTcHYV2e5JVMuBLFs/xxoMNFGVkLYTFqt/b5iNajdmI/E v2wDRA3KoQrZTDVX5zDgj9p0Jm9vme7ZOue/+VjsVcde37kqClsvz+23BTq7yzXV1GFc b2cQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Ii0ghA/Y"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167482-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167482-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t21-20020a05620a451500b007905cec674asi3197105qkp.104.2024.05.03.02.44.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 02:44:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167482-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Ii0ghA/Y"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167482-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167482-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9D5BB1C21AA5 for ; Fri, 3 May 2024 09:44:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB39115098A; Fri, 3 May 2024 09:44:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ii0ghA/Y" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 00F3E14F9CE; Fri, 3 May 2024 09:44:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714729458; cv=none; b=qyq2BGrXvisgE/LBJfk4+EqUfKQxJS6G0KAQa52P4GLrYQVNDZxwAcDg80qrCQ6ve/6J6ENnFdw1C5Eblho2Nv5o3QI/rjlEEc7am9flK92Ph0+6e51LGgCygSEBeW/DMZ5bPjgHDzNEtaiWtPFrPaNtXmqXNwpSqydb0VoQxbI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714729458; c=relaxed/simple; bh=DWh57NqU0/01iRmPDMXy/K+8zd+9eqAkFxqVGj8kOtg=; h=From:To:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=BCGpcz/Dvzf/b8kC2SNdFES4hTyXxdl7y8q5fkVRwrcv+QOy+HgPmRLB0PJ79Pp5yY0vOCMiDWdNdk3HEkIIJ10wOeFYUHXkQESNSb3RpCU2+AzbA2BLPpp7Imka8f3Gz/W/0k3vXtlOO416sKROnisSzpSgO+wGC+t1yvbPHDU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ii0ghA/Y; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97DE5C116B1; Fri, 3 May 2024 09:44:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714729457; bh=DWh57NqU0/01iRmPDMXy/K+8zd+9eqAkFxqVGj8kOtg=; h=From:To:Subject:In-Reply-To:References:Date:From; b=Ii0ghA/YVJREs60D0+Ol82Qa7xqhrfxI3ebnu+ap6H+s/XvbpHlpdyZcjGT9yU1xj 0ouwwgj1ekvfQGDee3NfIQtTuS3YJgBm7e6diV5hBWGkZEp24JjmwuMEqErTDWEpHg R1j6rtZtycwh6UT7gMDURnHQNCYQYs3adtjU6f0HpfIN143LXGTXM+UNurA40g9tH5 2r6/SGQs3dXHRXzyFx7oQ8yTxniTjxPN0asI9OF0vtqPAJPsEXHHUwPKB/uvzCKsvL 7XYqwW8hiJ5H2sMZaRIDEKVDY2jeaFXHiJhp/OB5S0O9QN7wP1/Qxzf5PcNAyIiZy4 yYz3+ALAyP2tQ== From: Puranjay Mohan To: Anshuman Khandual , 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 Subject: Re: [PATCH v2 1/2] arm64/arch_timer: include In-Reply-To: <7008cd0c-5b65-4289-9015-434cbe3d7e21@arm.com> References: <20240502123449.2690-1-puranjay@kernel.org> <7008cd0c-5b65-4289-9015-434cbe3d7e21@arm.com> Date: Fri, 03 May 2024 09:44:14 +0000 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Anshuman Khandual writes: > 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 ? commit 57c82954e77f ("arm64: make cpu number a percpu variable") created this percpu variable and included in Now we are removing the percpu variable cpu_number from smp.h, so there is no need to keep percpu.h in smp.h I feel users of DECLARE_PER_CPU_[...], etc. should include percpu.h and not smp.h as it makes reading the code more easier and can thwart build issues in the future, when headers are changed. Thanks, Puranjay