Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D08BC61DA4 for ; Thu, 9 Feb 2023 17:33:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229729AbjBIRdb (ORCPT ); Thu, 9 Feb 2023 12:33:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjBIRda (ORCPT ); Thu, 9 Feb 2023 12:33:30 -0500 Received: from www.kot-begemot.co.uk (ns1.kot-begemot.co.uk [217.160.28.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BE9A4216 for ; Thu, 9 Feb 2023 09:33:29 -0800 (PST) Received: from [192.168.17.6] (helo=jain.kot-begemot.co.uk) by www.kot-begemot.co.uk with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pQAnV-007WF4-HC; Thu, 09 Feb 2023 17:33:25 +0000 Received: from madding.kot-begemot.co.uk ([192.168.3.98]) by jain.kot-begemot.co.uk with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1pQAnT-0070Vl-1C; Thu, 09 Feb 2023 17:33:25 +0000 Message-ID: <874b2d0c-3500-5c1e-07cd-74f9e91d92d6@cambridgegreys.com> Date: Thu, 9 Feb 2023 17:33:22 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH] uml: vector: fix definitios of VECTOR_WRITE and VECTOR_HEADERS Content-Language: en-US To: Carlos Bilbao , richard@nod.at, johannes@sipsolutions.net Cc: linux-um@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230209161916.3729757-1-carlos.bilbao@amd.com> From: Anton Ivanov Organization: Cambridge Greys In-Reply-To: <20230209161916.3729757-1-carlos.bilbao@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Clacks-Overhead: GNU Terry Pratchett Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/02/2023 16:19, Carlos Bilbao wrote: > Fix definitions of VECTOR_WRITE and VECTOR_HEADERS with proper bitwise > operand for bit shift. > > Signed-off-by: Carlos Bilbao > --- > arch/um/drivers/vector_user.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/um/drivers/vector_user.h b/arch/um/drivers/vector_user.h > index 3a73d17a0161..f7d3956f5c15 100644 > --- a/arch/um/drivers/vector_user.h > +++ b/arch/um/drivers/vector_user.h > @@ -68,8 +68,8 @@ struct vector_fds { > }; > > #define VECTOR_READ 1 > -#define VECTOR_WRITE (1 < 1) > -#define VECTOR_HEADERS (1 < 2) > +#define VECTOR_WRITE (1 << 1) > +#define VECTOR_HEADERS (1 << 2) > > extern struct arglist *uml_parse_vector_ifspec(char *arg); > These are no longer used. They were used in some very early versions of the code. They should just be removed instead of redefined correctly. -- Anton R. Ivanov Cambridgegreys Limited. Registered in England. Company Number 10273661 https://www.cambridgegreys.com/