lkml.org 
[lkml]   [2016]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] hid-led.c: remove unneccessary underscores
On Mon 2016-10-03 10:16:26, Pavel Machek wrote:
>
> u8 (and friends) can be used directly in kernel sources (not kernel
> headers).
>
> Signed-off-by: Pavel Machek <pavel@ucw.cz>

Zero day bot warned me that this is not quiet correct.

This would be needed on top. Is there interest in fixed patch?

diff --git a/drivers/hid/hid-led.c b/drivers/hid/hid-led.c
index cd208ca..be659ca 100644
--- a/drivers/hid/hid-led.c
+++ b/drivers/hid/hid-led.c
@@ -57,8 +57,8 @@ union delcom_packet {
u8 cmd;
} rx;
struct {
- le16 family_code;
- le16 security_code;
+ __le16 family_code;
+ __le16 security_code;
u8 fw_version;
} fw;
};

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2016-10-03 11:45    [W:0.054 / U:1.964 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site