Skip to content

Commit 52afa50

Browse files
esyr-rhdtor
authored andcommitted
Input: avoid BIT() macro usage in the serio.h UAPI header
The commit 19ba1eb ("Input: psmouse - add a custom serio protocol to send extra information") introduced usage of the BIT() macro for SERIO_* flags; this macro is not provided in UAPI headers. Replace if with similarly defined _BITUL() macro defined in <linux/const.h>. Fixes: 19ba1eb ("Input: psmouse - add a custom serio protocol to send extra information") Signed-off-by: Eugene Syromiatnikov <[email protected]> Cc: <[email protected]> # v5.0+ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent e4ad153 commit 52afa50

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/uapi/linux/serio.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#ifndef _UAPI_SERIO_H
1010
#define _UAPI_SERIO_H
1111

12-
12+
#include <linux/const.h>
1313
#include <linux/ioctl.h>
1414

1515
#define SPIOCSTYPE _IOW('q', 0x01, unsigned long)
@@ -18,10 +18,10 @@
1818
/*
1919
* bit masks for use in "interrupt" flags (3rd argument)
2020
*/
21-
#define SERIO_TIMEOUT BIT(0)
22-
#define SERIO_PARITY BIT(1)
23-
#define SERIO_FRAME BIT(2)
24-
#define SERIO_OOB_DATA BIT(3)
21+
#define SERIO_TIMEOUT _BITUL(0)
22+
#define SERIO_PARITY _BITUL(1)
23+
#define SERIO_FRAME _BITUL(2)
24+
#define SERIO_OOB_DATA _BITUL(3)
2525

2626
/*
2727
* Serio types

0 commit comments

Comments
 (0)