connector: Fix invalid conversion in cn_proc.h
authorMatt Jan <zoo868e@gmail.com>
Tue, 14 May 2024 04:10:46 +0000 (12:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 May 2024 09:36:55 +0000 (10:36 +0100)
commit06e785aeb9ea8a43d0a3967c1ba6e69d758e82d4
tree7335dc1b362161ad0bd0438488ed56b8fabc5032
parent66ad4829ddd0b5540dc0b076ef2818e89c8f720e
connector: Fix invalid conversion in cn_proc.h

The implicit conversion from unsigned int to enum
proc_cn_event is invalid, so explicitly cast it
for compilation in a C++ compiler.
/usr/include/linux/cn_proc.h: In function 'proc_cn_event valid_event(proc_cn_event)':
/usr/include/linux/cn_proc.h:72:17: error: invalid conversion from 'unsigned int' to 'proc_cn_event' [-fpermissive]
   72 |         ev_type &= PROC_EVENT_ALL;
      |                 ^
      |                 |
      |                 unsigned int

Signed-off-by: Matt Jan <zoo868e@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/cn_proc.h