Skip to content

Commit

Permalink
fix compilation on mint
Browse files Browse the repository at this point in the history
+ Apparently some kernel headers are implicitly included on Debian or
  something, and Mint requires explicit #include statements. Weird.
  • Loading branch information
Kimplul committed May 8, 2024
1 parent 70867d3 commit 17d6cad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions hid-tminit.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <linux/hid.h>
#include <linux/module.h>
#include <linux/slab.h>

#include "tminit.h"

Expand Down
3 changes: 2 additions & 1 deletion tminit.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ static void thrustmaster_change_handler(struct urb *urb)

static int thrustmaster_submit_change(struct tm_wheel *tm_wheel, uint16_t switch_value)
{
int ret = 0;
tm_wheel->change_request->wValue = cpu_to_le16(switch_value);
usb_fill_control_urb(
tm_wheel->urb,
Expand All @@ -170,7 +171,7 @@ static int thrustmaster_submit_change(struct tm_wheel *tm_wheel, uint16_t switch
tm_wheel
);

int ret = usb_submit_urb(tm_wheel->urb, GFP_ATOMIC);
ret = usb_submit_urb(tm_wheel->urb, GFP_ATOMIC);
if (ret)
dev_err(&tm_wheel->interface->dev,
"Error %d while submitting the change URB."
Expand Down
1 change: 1 addition & 0 deletions usb-tminit.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <linux/module.h>
#include <linux/slab.h>

#include "tminit.h"

Expand Down

0 comments on commit 17d6cad

Please sign in to comment.