lkml.org 
[lkml]   [2023]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] uml: vector: fix definitios of VECTOR_WRITE and VECTOR_HEADERS
From
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 <carlos.bilbao@amd.com>
> ---
> 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);
>

I need to have a look at the code how it even worked before. Will ack
after that.
--
Anton R. Ivanov
Cambridgegreys Limited. Registered in England. Company Number 10273661
https://www.cambridgegreys.com/

\
 
 \ /
  Last update: 2023-03-27 00:16    [W:1.639 / U:0.736 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site