Return-Path: Received: from ivanoab7.miniserver.com ([37.128.132.42] helo=www.kot-begemot.co.uk) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdAPg-0001cZ-RG for linux-um@lists.infradead.org; Thu, 12 Nov 2020 11:05:13 +0000 Subject: Re: [PATCH v2] um: enable the use of optimized xor routines in UML References: <20201112103337.4862-1-anton.ivanov@cambridgegreys.com> From: Anton Ivanov Message-ID: <2bbc8742-4fdb-321f-f23b-e75a229e44d6@cambridgegreys.com> Date: Thu, 12 Nov 2020 11:05:09 +0000 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-um" Errors-To: linux-um-bounces+geert=linux-m68k.org@lists.infradead.org To: Johannes Berg , linux-um@lists.infradead.org Cc: richard@nod.at On 12/11/2020 11:00, Johannes Berg wrote: > On Thu, 2020-11-12 at 10:33 +0000, anton.ivanov@cambridgegreys.com > wrote: >> +++ b/arch/um/include/asm/xor.h >> @@ -1,7 +1,22 @@ >> /* SPDX-License-Identifier: GPL-2.0 */ >> -#include >> +#ifndef _ASM_UM_XOR_H >> +#define _ASM_UM_XOR_H >> + >> +#ifdef CONFIG_64BIT >> +#undef CONFIG_X86_32 >> +#else >> +#define CONFIG_X86_32 "Y" >> +#endif > I thought you said it was some leftover? :) > >> + for (index = 0; index < MAX_UM_CPU_FEATURES; index++) { >> + if (boot_cpu_data.host_features & (1 << index)) >> + seq_printf(m, " %s", host_cpu_feature_names[index]); > Confused. Now I don't see MAX_UM_CPU_FEATURES or > host_cpu_feature_names[] anywhere now? Ooops... forgot to include a file. Broken patch. > > johannes > > -- Anton R. Ivanov Cambridgegreys Limited. Registered in England. Company Number 10273661 https://www.cambridgegreys.com/ _______________________________________________ linux-um mailing list linux-um@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-um