Skip to contentSkip to conversation

staging: gasket: gasket_ioctl: Remove unnecessary line-breaks in funtion signature

PATCH In review Valery Ivanov 3 participants 4 messages Nov 6, 2019 – Nov 7, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: gasket: gasket_ioctl: Remove unnecessary line-breaks in funtion signature

This patch fix the function signature for trace_gasket_ioctl_page_table_data to avoid the checkpatch.pl warning:

CHECK: Lines should not end with a '('

---
 drivers/staging/gasket/gasket_ioctl.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/staging/gasket/gasket_ioctl.c +4 -3
index 240f9bb..55cb6b1 100644
@@ -54,9 +54,10 @@ static int gasket_read_page_table_size(struct gasket_dev *gasket_dev,
 	ibuf.size = gasket_page_table_num_entries(
 		gasket_dev->page_table[ibuf.page_table_index]);
 
-	trace_gasket_ioctl_page_table_data(
-		ibuf.page_table_index, ibuf.size, ibuf.host_address,
-		ibuf.device_address);
+	trace_gasket_ioctl_page_table_data(ibuf.page_table_index,
+					   ibuf.size,
+					   ibuf.host_address,
+					   ibuf.device_address);
 
 	if (copy_to_user(argp, &ibuf, sizeof(ibuf)))
 		return -EFAULT;
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 6 lines · Valery Ivanov

This patch fix the function signature for trace_gasket_ioctl_page_table_data to avoid the checkpatch.pl warning:

CHECK: Lines should not end with a '('

All of this stuff is no-op and could just as easily be removed completely as GASKET_KERNEL_TRACE_SUPPORT is not #defined anywhere.

Is the actual trace #include file supposed to be available somewhere?

#ifdef GASKET_KERNEL_TRACE_SUPPORT
#define CREATE_TRACE_POINTS
#include <trace/events/gasket_ioctl.h>
#else
#define trace_gasket_ioctl_entry(x, ...)
#define trace_gasket_ioctl_exit(x)
#define trace_gasket_ioctl_integer_data(x)
#define trace_gasket_ioctl_eventfd_data(x, ...) #define trace_gasket_ioctl_page_table_data(x, ...) #define trace_gasket_ioctl_config_coherent_allocator(x, ...) #endif

trace file not found...

Quoted 22 lines
---
 drivers/staging/gasket/gasket_ioctl.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/staging/gasket/gasket_ioctl.c +4 -3
index 240f9bb..55cb6b1 100644
@@ -54,9 +54,10 @@ static int gasket_read_page_table_size(struct gasket_dev *gasket_dev,
 	ibuf.size = gasket_page_table_num_entries(
 		gasket_dev->page_table[ibuf.page_table_index]);
 
-	trace_gasket_ioctl_page_table_data(
-		ibuf.page_table_index, ibuf.size, ibuf.host_address,
-		ibuf.device_address);
+	trace_gasket_ioctl_page_table_data(ibuf.page_table_index,
+					   ibuf.size,
+					   ibuf.host_address,
+					   ibuf.device_address);
 
 	if (copy_to_user(argp, &ibuf, sizeof(ibuf)))
 		return -EFAULT;
maintainer
#2 lore raw
Quoted 25 lines · Joe Perches
Quoted 6 lines · Valery Ivanov

This patch fix the function signature for trace_gasket_ioctl_page_table_data to avoid the checkpatch.pl warning:

CHECK: Lines should not end with a '('

All of this stuff is no-op and could just as easily be removed completely as GASKET_KERNEL_TRACE_SUPPORT is not #defined anywhere.

Is the actual trace #include file supposed to be available somewhere?

#ifdef GASKET_KERNEL_TRACE_SUPPORT
#define CREATE_TRACE_POINTS
#include <trace/events/gasket_ioctl.h>
#else
#define trace_gasket_ioctl_entry(x, ...)
#define trace_gasket_ioctl_exit(x)
#define trace_gasket_ioctl_integer_data(x)
#define trace_gasket_ioctl_eventfd_data(x, ...) #define trace_gasket_ioctl_page_table_data(x, ...) #define trace_gasket_ioctl_config_coherent_allocator(x, ...) #endif

Quoted 1 line

trace file not found...

I'm thinking the whole gasket driver should be deleted as there has not been any effort done to fix it up and get it out of staging. I'll give it until 5.5 before I drop it...

thanks,

greg k-h

maintainer
#3 lore raw
In reply to Valery Ivanov
Quoted 4 lines · Valery Ivanov

This patch fix the function signature for trace_gasket_ioctl_page_table_data to avoid the checkpatch.pl warning:

CHECK: Lines should not end with a '('

Why the huge indentation?

THat's not ok, please fix up.

thanks,

greg k-h