staging: vc04_services: Use __func__ instead of function name
Subsystems (2)
PATCH 1/1 staging: vc04_services: Use __func__ instead of function name
Use identifier __func__ instead of the name of the function.
Issue found by checkpatch.pl.
--- .../staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c +6 -4
@@ -420,7 +420,8 @@ create_pagelist(char __user *buf, size_t count, unsigned short type, &dma_addr, GFP_KERNEL); -vchiq_log_trace (vchiq_arm_log_level,"create_pagelist - %pK" , +vchiq_log_trace (vchiq_arm_log_level,"%s - %pK" , + __func__, pagelist);if (!pagelist)return NULL ;
@@ -481,7 +482,8 @@ create_pagelist(char __user *buf, size_t count, unsigned short type,if (actual_pages != num_pages) {vchiq_log_info (vchiq_arm_log_level, -"create_pagelist - only %d/%d pages locked" , +"%s - only %d/%d pages locked" , + __func__, actual_pages, num_pages);
@@ -583,8 +585,8 @@ free_pagelist(struct vchiq_pagelist_info *pagelistinfo,struct page **pages = pagelistinfo->pages;unsigned int num_pages = pagelistinfo->num_pages; -vchiq_log_trace (vchiq_arm_log_level,"free_pagelist - %pK, %d" , - pagelistinfo->pagelist, actual); +vchiq_log_trace (vchiq_arm_log_level,"%s - %pK, %d" , + __func__, pagelistinfo->pagelist, actual);/* * NOTE: dma_unmap_sg must be called before the
Signature · 1 line
2.7.4
Quoted 14 lines · Mihaela Muraru
Use identifier
__func__instead of the name of the function.Issue found by checkpatch.pl.
Signed-off-by Mihaela Muraru <[email protected]>--- .../staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c +0
-0
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c create_pagelist(char __user *buf, size_t count, unsigned short type, · line 425
Quoted 7 lines
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c +2
-1@@ -420,7 +420,8 @@ create_pagelist(char __user *buf, size_t count, unsigned short type, &dma_addr, GFP_KERNEL); -vchiq_log_trace (vchiq_arm_log_level,"create_pagelist - %pK" , +vchiq_log_trace (vchiq_arm_log_level,"%s - %pK" , + __func__, pagelist);
You have plenty of room on the function call line for at least __func__ and perhaps for both arguments.
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c create_pagelist(char __user *buf, size_t count, unsigned short type, · line 488
Quoted 11 lines
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c +2
-1if (!pagelist)return NULL ;@@ -481,7 +482,8 @@ create_pagelist(char __user *buf, size_t count, unsigned short type,if (actual_pages != num_pages) {vchiq_log_info (vchiq_arm_log_level, -"create_pagelist - only %d/%d pages locked" , +"%s - only %d/%d pages locked" , + __func__, actual_pages, num_pages);
Maybe all of the last three arguments could be put on a single line.
julia
Quoted 22 lines
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c +2
-3@@ -583,8 +585,8 @@ free_pagelist(struct vchiq_pagelist_info *pagelistinfo,struct page **pages = pagelistinfo->pages;unsigned int num_pages = pagelistinfo->num_pages; -vchiq_log_trace (vchiq_arm_log_level,"free_pagelist - %pK, %d" , - pagelistinfo->pagelist, actual); +vchiq_log_trace (vchiq_arm_log_level,"%s - %pK, %d" , + __func__, pagelistinfo->pagelist, actual);/* * NOTE: dma_unmap_sg must be called before the -- 2.7.4
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20171014092725.GA6081%40domino-MS-16Y1.
For more options, visit https://groups.google.com/d/optout.