From: Marc Zyngier Subject: Re: [PATCH v6 10/15] arm64/sve: Move sve_pffr() to fpsimd.h and make inline Date: Wed, 9 May 2018 09:46:05 +0100 Message-ID: References: <1525797900-5548-1-git-send-email-Dave.Martin@arm.com> <1525797900-5548-11-git-send-email-Dave.Martin@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1525797900-5548-11-git-send-email-Dave.Martin@arm.com> Content-Language: en-GB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Dave Martin , kvmarm@lists.cs.columbia.edu Cc: Catalin Marinas , Christoffer Dall , linux-arm-kernel@lists.infradead.org, Ard Biesheuvel List-Id: kvmarm@lists.cs.columbia.edu On 08/05/18 17:44, Dave Martin wrote: > In order to make sve_save_state()/sve_load_state() more easily > reusable and to get rid of a potential branch on context switch > critical paths, this patch makes sve_pffr() inline and moves it to > fpsimd.h. > > must be included in fpsimd.h in order to make > this work, and this creates an #include cycle that is tricky to > avoid without modifying core code, due to the way the PR_SVE_*() > prctl helpers are included in the core prctl implementation. > > Instead of breaking the cycle, this patch defers inclusion of > in until the point where it is > actually needed: i.e., immediately before the prctl definitions. > > No functional change. > > Signed-off-by: Dave Martin > Acked-by: Catalin Marinas Acked-by: Marc Zyngier M. -- Jazz is not dead. It just smells funny...