From 34dd3aeeb4adb22beeabc170cf04e38e099f70ea Mon Sep 17 00:00:00 2001 From: "Leon M. George" Date: Mon, 7 May 2018 17:18:36 +0200 Subject: [PATCH 1/2] add include to avoid compile error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ./arch/x86/include/asm/uaccess.h: In function ‘set_fs’: ./arch/x86/include/asm/uaccess.h:32:9: error: dereferencing pointer to incomplete type ‘struct task_struct’ current->thread.addr_limit = fs; ^~ --- drivers/linux-driver/src/inc/common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/linux-driver/src/inc/common.h b/drivers/linux-driver/src/inc/common.h index 8513eb7..71aa904 100755 --- a/drivers/linux-driver/src/inc/common.h +++ b/drivers/linux-driver/src/inc/common.h @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include From cb32ed2160efab25ab6f808245c41795c0a04358 Mon Sep 17 00:00:00 2001 From: "Leon M. George" Date: Mon, 7 May 2018 17:21:14 +0200 Subject: [PATCH 2/2] fix printf format for size_t size_t required_tickets_count; err("required_tickets_count (%d)>RPUSBDISP_MAX_TRANSFER_TICKETS_COUNT(%d)\n", required_tickets_count, RPUSBDISP_MAX_TRANSFER_TICKETS_COUNT); --- drivers/linux-driver/src/usbhandlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/linux-driver/src/usbhandlers.c b/drivers/linux-driver/src/usbhandlers.c index 116a69d..35c8782 100755 --- a/drivers/linux-driver/src/usbhandlers.c +++ b/drivers/linux-driver/src/usbhandlers.c @@ -494,7 +494,7 @@ static int _bitblt_encoder_init(struct bitblt_encoding_context_t * ctx, struct r if ( required_tickets_count>RPUSBDISP_MAX_TRANSFER_TICKETS_COUNT) { - err("required_tickets_count (%d)>RPUSBDISP_MAX_TRANSFER_TICKETS_COUNT(%d)\n", required_tickets_count, RPUSBDISP_MAX_TRANSFER_TICKETS_COUNT); + err("required_tickets_count (%zu)>RPUSBDISP_MAX_TRANSFER_TICKETS_COUNT(%d)\n", required_tickets_count, RPUSBDISP_MAX_TRANSFER_TICKETS_COUNT); // BUG_ON(1); return 0; }