Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp289970pxv; Thu, 8 Jul 2021 02:37:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrs0hIU0HSzjZI+eyc00lxtoVHlebo7fPczKm4KXe50c4PG1B3Ekg4KutSqDkj5syogB9U X-Received: by 2002:a17:906:9fc1:: with SMTP id hj1mr29282219ejc.103.1625737031694; Thu, 08 Jul 2021 02:37:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625737031; cv=none; d=google.com; s=arc-20160816; b=RFWKHfpEK4Xa/crt7eIpf6AA4WHc3T8bTUehfQuAnH6SF7vnLNM2hJqJ7BC/fQ9wRk 1hrekcZF7ClbjcZXTD2/5CN76/tDPumar1VMoc+9Jppn0ic2nHuHHt4+fLAeQNSoJciO KkLTaamgjW0SpI0UXUYTFQra9VGR0ClOYiXL39WkKKhUnIu6XdfmJ/k7/svApg4wpSuR sqUV/z+n97H3JddHEFQuQ1yKQ7Lkh7f08MFDE03u1JDVgqAL//rv8WN5/lf8jadlShl0 woENTPEaf4v6yYW0696PO5UWrra8ppYlH/MQCgItU5StbkTp3fA2MnQQVR9Mj+ynyNzb nIwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ABF3LF4hVMJBCQxFuxV1c6BLFUaTumVMA7NBs7HLVEY=; b=NnU1T3jlswTtJaF4PI/EmLCJJCi1CQUktbIbYrzpscpWWzOi9YOXPBT9F9rzIgKbGU fO0bgiXbfLbIhJDVExOTGNhR0P5PDR9f3x5z76awTRHu7kHHHrFxc22++IGItt80oZPz F1jPanYcMjlCfddi1iZe9EIZqDL3ApkGbEgeI/ZddQaIP2H/MWk+3IDiTxuc/97gALKD hCORbYKbCibY7Yay3J49A3ySe25eQX1yovfu4v+VU+f4KlZ3YtwYH9VvVZ9YF1RrHMP9 qTP6YdwGXb2SY7mRWDRAIGKD115qH7U1GmrbaGJoEzb+adUJMoopc56RRzUjQH+2A5Ng CmHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l8si2325561edw.470.2021.07.08.02.36.48; Thu, 08 Jul 2021 02:37:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231336AbhGHJg0 (ORCPT + 99 others); Thu, 8 Jul 2021 05:36:26 -0400 Received: from foss.arm.com ([217.140.110.172]:54632 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231281AbhGHJg0 (ORCPT ); Thu, 8 Jul 2021 05:36:26 -0400 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 819DFED1; Thu, 8 Jul 2021 02:33:44 -0700 (PDT) Received: from C02TD0UTHF1T.local (unknown [10.57.4.4]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D573E3F5A1; Thu, 8 Jul 2021 02:33:42 -0700 (PDT) Date: Thu, 8 Jul 2021 10:33:40 +0100 From: Mark Rutland To: Carlos Bilbao Cc: catalin.marinas@arm.com, will@kernel.org, maz@kernel.org, linux-arm-kernel@lits.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: Add missing header in two files Message-ID: <20210708093340.GB24650@C02TD0UTHF1T.local> References: <5726396.lOV4Wx5bFT@iron-maiden> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5726396.lOV4Wx5bFT@iron-maiden> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 07, 2021 at 01:54:13PM -0400, Carlos Bilbao wrote: > Add missing header on include/asm/smp_plat.h, as it calls function > cpu_logical_map(). Also include it on kernel/cpufeature.c since it has calls to > functions cpu_panic_kernel() and cpu_die_early(). > > Both files call functions defined on this header, make the header dependencies > less fragile. > > Signed-off-by: Carlos Bilbao Per our usual rules, we should include a header if we directly use a something defined in that header, so this makes sense to me. I have a couple of minor comments below; with those fixed up: Acked-by: Mark Rutland > --- > arch/arm64/include/asm/smp_plat.h | 1 + > arch/arm64/kernel/cpufeature.c | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/arch/arm64/include/asm/smp_plat.h b/arch/arm64/include/asm/smp_plat.h > index 99ad77df8f52..140c7a03a901 100644 > --- a/arch/arm64/include/asm/smp_plat.h > +++ b/arch/arm64/include/asm/smp_plat.h > @@ -11,6 +11,7 @@ > #include > > #include > +#include We try to keep the includes in alphabetical order; could you please make this: | #include | #include > struct mpidr_hash { > u64 mask; > diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c > index 125d5c9471ac..350d8601ff28 100644 > --- a/arch/arm64/kernel/cpufeature.c > +++ b/arch/arm64/kernel/cpufeature.c > @@ -84,6 +84,7 @@ > #include > #include > #include > +#include Similarly, here: | #include | #include | #include | #include (I checked the file, and immediately before we include ). Thanks, Mark.