lkml.org 
[lkml]   [2017]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Replaced Function name in debug print with %s..., __func__
Hi Gaurav,

[auto build test ERROR on staging/staging-testing]
[also build test ERROR on v4.12 next-20170704]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Gaurav-Pathak/Replaced-Function-name-in-debug-print-with-s-__func__/20170705-023853
config: x86_64-randconfig-x017-201727 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All error/warnings (new ones prefixed by >>):

drivers/staging/rts5208/sd.c: In function 'sd_check_switch_mode':
>> drivers/staging/rts5208/sd.c:1228:26: warning: missing terminating " character
dev_dbg(rtsx_dev(chip), "%s (mode = %d, func_group = %d,
^
In file included from include/linux/genhd.h:64:0,
from include/linux/blkdev.h:10,
from drivers/staging/rts5208/sd.c:23:
>> drivers/staging/rts5208/sd.c:1228:26: error: missing terminating " character
dev_dbg(rtsx_dev(chip), "%s (mode = %d, func_group = %d,
^
include/linux/device.h:1331:31: note: in definition of macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^~~~~~
>> drivers/staging/rts5208/sd.c:1229:20: error: expected expression before '%' token
func_to_switch = %d)\n", __func__, mode, func_group,
^
include/linux/device.h:1331:31: note: in definition of macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^~~~~~
drivers/staging/rts5208/sd.c:1229:23: error: stray '\' in program
func_to_switch = %d)\n", __func__, mode, func_group,
^
>> drivers/staging/rts5208/sd.c:1229:24: error: expected ';' before 'n'
func_to_switch = %d)\n", __func__, mode, func_group,
^
drivers/staging/rts5208/sd.c:1229:25: warning: missing terminating " character
func_to_switch = %d)\n", __func__, mode, func_group,
^
drivers/staging/rts5208/sd.c:1229:25: error: missing terminating " character
func_to_switch = %d)\n", __func__, mode, func_group,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/rts5208/sd.c:1230:18: error: expected statement before ')' token
func_to_switch);
^
drivers/staging/rts5208/sd.c: In function 'sd_execute_write_data':
drivers/staging/rts5208/sd.c:5041:27: warning: missing terminating " character
dev_dbg(rtsx_dev(chip), "sd_lock_state = 0x%x,
^
drivers/staging/rts5208/sd.c:5042:37: warning: missing terminating " character
sd_card->sd_lock_status = 0x%x\n",
^
In file included from include/linux/genhd.h:64:0,
from include/linux/blkdev.h:10,
from drivers/staging/rts5208/sd.c:23:
drivers/staging/rts5208/sd.c:5041:27: error: missing terminating " character
dev_dbg(rtsx_dev(chip), "sd_lock_state = 0x%x,
^
include/linux/device.h:1331:31: note: in definition of macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^~~~~~
>> drivers/staging/rts5208/sd.c:5042:31: error: invalid suffix "x" on integer constant
sd_card->sd_lock_status = 0x%x\n",
^
include/linux/device.h:1331:31: note: in definition of macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^~~~~~
drivers/staging/rts5208/sd.c:5042:35: error: stray '\' in program
sd_card->sd_lock_status = 0x%x\n",
^
include/linux/device.h:1331:31: note: in definition of macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^~~~~~
>> drivers/staging/rts5208/sd.c:5042:34: error: 'x' undeclared (first use in this function)
sd_card->sd_lock_status = 0x%x\n",
^
include/linux/device.h:1331:31: note: in definition of macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^~~~~~
drivers/staging/rts5208/sd.c:5042:34: note: each undeclared identifier is reported only once for each function it appears in
sd_card->sd_lock_status = 0x%x\n",
^
include/linux/device.h:1331:31: note: in definition of macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^~~~~~
>> drivers/staging/rts5208/sd.c:5042:36: error: expected ')' before 'n'
sd_card->sd_lock_status = 0x%x\n",
^
include/linux/device.h:1331:31: note: in definition of macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^~~~~~
drivers/staging/rts5208/sd.c:5042:37: error: missing terminating " character
sd_card->sd_lock_status = 0x%x\n",
^
include/linux/device.h:1331:31: note: in definition of macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^~~~~~
--
drivers/staging/rts5208/xd.c: In function 'xd_finish_write':
>> drivers/staging/rts5208/xd.c:1778:26: warning: missing terminating " character
dev_dbg(rtsx_dev(chip), "%s, old_blk = 0x%x, new_blk = 0x%x,
^
drivers/staging/rts5208/xd.c:1779:20: warning: missing terminating " character
log_blk = 0x%x\n", __func__, old_blk, new_blk, log_blk);
^
>> drivers/staging/rts5208/xd.c:2346:0: error: unterminated argument list invoking macro "dev_dbg"
}

>> drivers/staging/rts5208/xd.c:1778:2: error: 'dev_dbg' undeclared (first use in this function)
dev_dbg(rtsx_dev(chip), "%s, old_blk = 0x%x, new_blk = 0x%x,
^~~~~~~
drivers/staging/rts5208/xd.c:1778:2: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/staging/rts5208/xd.c:1778:2: error: expected ';' at end of input
>> drivers/staging/rts5208/xd.c:1778:2: error: expected declaration or statement at end of input
drivers/staging/rts5208/xd.c:1776:6: warning: unused variable 'log_off' [-Wunused-variable]
u16 log_off;
^~~~~~~
drivers/staging/rts5208/xd.c:1775:14: warning: unused variable 'zone_no' [-Wunused-variable]
int retval, zone_no;
^~~~~~~
drivers/staging/rts5208/xd.c:1775:6: warning: unused variable 'retval' [-Wunused-variable]
int retval, zone_no;
^~~~~~
drivers/staging/rts5208/xd.c:1774:18: warning: unused variable 'xd_card' [-Wunused-variable]
struct xd_info *xd_card = &chip->xd_card;
^~~~~~~
>> drivers/staging/rts5208/xd.c:1778:2: warning: no return statement in function returning non-void [-Wreturn-type]
dev_dbg(rtsx_dev(chip), "%s, old_blk = 0x%x, new_blk = 0x%x,
^~~~~~~
At top level:
drivers/staging/rts5208/xd.c:1771:12: warning: 'xd_finish_write' defined but not used [-Wunused-function]
static int xd_finish_write(struct rtsx_chip *chip,
^~~~~~~~~~~~~~~
drivers/staging/rts5208/xd.c:1639:12: warning: 'xd_read_multiple_pages' defined but not used [-Wunused-function]
static int xd_read_multiple_pages(struct rtsx_chip *chip, u32 phy_blk,
^~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rts5208/xd.c:1618:12: warning: 'xd_send_cmd' defined but not used [-Wunused-function]
static int xd_send_cmd(struct rtsx_chip *chip, u8 cmd)
^~~~~~~~~~~
drivers/staging/rts5208/xd.c:1015:12: warning: 'xd_get_l2p_tbl' defined but not used [-Wunused-function]
static u32 xd_get_l2p_tbl(struct rtsx_chip *chip, int zone_no, u16 log_off)
^~~~~~~~~~~~~~
drivers/staging/rts5208/xd.c:416:12: warning: 'xd_pull_ctl_disable' defined but not used [-Wunused-function]
static int xd_pull_ctl_disable(struct rtsx_chip *chip)
^~~~~~~~~~~~~~~~~~~
drivers/staging/rts5208/xd.c:71:12: warning: 'xd_switch_clock' defined but not used [-Wunused-function]
static int xd_switch_clock(struct rtsx_chip *chip)
^~~~~~~~~~~~~~~
--
drivers/staging/rts5208/spi.c: In function 'spi_set_parameter':
>> drivers/staging/rts5208/spi.c:546:26: warning: missing terminating " character
dev_dbg(rtsx_dev(chip), "%s: spi_clock = %d, clk_div = %d,
^
drivers/staging/rts5208/spi.c:547:19: warning: missing terminating " character
write_en = %d\n", __func__, spi->spi_clock,
^
In file included from include/linux/genhd.h:64:0,
from include/linux/blkdev.h:10,
from drivers/staging/rts5208/spi.c:23:
>> drivers/staging/rts5208/spi.c:546:26: error: missing terminating " character
dev_dbg(rtsx_dev(chip), "%s: spi_clock = %d, clk_div = %d,
^
include/linux/device.h:1331:31: note: in definition of macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^~~~~~
>> drivers/staging/rts5208/spi.c:547:4: error: 'write_en' undeclared (first use in this function)
write_en = %d\n", __func__, spi->spi_clock,
^
include/linux/device.h:1331:31: note: in definition of macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^~~~~~
drivers/staging/rts5208/spi.c:547:4: note: each undeclared identifier is reported only once for each function it appears in
write_en = %d\n", __func__, spi->spi_clock,
^
include/linux/device.h:1331:31: note: in definition of macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^~~~~~
>> drivers/staging/rts5208/spi.c:547:15: error: expected expression before '%' token
write_en = %d\n", __func__, spi->spi_clock,
^
include/linux/device.h:1331:31: note: in definition of macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^~~~~~
drivers/staging/rts5208/spi.c:547:17: error: stray '\' in program
write_en = %d\n", __func__, spi->spi_clock,
^
include/linux/device.h:1331:31: note: in definition of macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^~~~~~
drivers/staging/rts5208/spi.c:547:19: error: missing terminating " character
write_en = %d\n", __func__, spi->spi_clock,
^
include/linux/device.h:1331:31: note: in definition of macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^~~~~~

vim +1228 drivers/staging/rts5208/sd.c

1222 u8 func_to_switch, u8 bus_width)
1223 {
1224 struct sd_info *sd_card = &chip->sd_card;
1225 int retval;
1226 u8 cmd[5], buf[64];
1227
> 1228 dev_dbg(rtsx_dev(chip), "%s (mode = %d, func_group = %d,
> 1229 func_to_switch = %d)\n", __func__, mode, func_group,
> 1230 func_to_switch);
1231
1232 cmd[0] = 0x40 | SWITCH;
1233 cmd[1] = mode;

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2017-07-04 21:41    [W:0.530 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site