* Re: [PATCH] Replaced Function name in debug print with %s..., __func__
2017-07-02 14:11 [PATCH] Replaced Function name in debug print with %s..., __func__ Gaurav Pathak
2017-07-02 16:13 ` Joe Perches
@ 2017-07-04 19:39 ` kbuild test robot
2017-07-04 19:47 ` kbuild test robot
2 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2017-07-04 19:39 UTC (permalink / raw)
To: Gaurav Pathak; +Cc: kbuild-all, gregkh, linux-kernel, Gaurav Pathak
[-- Attachment #1: Type: text/plain, Size: 11568 bytes --]
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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31201 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] Replaced Function name in debug print with %s..., __func__
2017-07-02 14:11 [PATCH] Replaced Function name in debug print with %s..., __func__ Gaurav Pathak
2017-07-02 16:13 ` Joe Perches
2017-07-04 19:39 ` kbuild test robot
@ 2017-07-04 19:47 ` kbuild test robot
2 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2017-07-04 19:47 UTC (permalink / raw)
To: Gaurav Pathak; +Cc: kbuild-all, gregkh, linux-kernel, Gaurav Pathak
[-- Attachment #1: Type: text/plain, Size: 20174 bytes --]
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: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa
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/printk.h:329:0,
from include/linux/kernel.h:13,
from include/asm-generic/bug.h:15,
from ./arch/xtensa/include/generated/asm/bug.h:1,
from include/linux/bug.h:4,
from include/linux/thread_info.h:11,
from arch/xtensa/include/asm/current.h:16,
from include/linux/sched.h:11,
from include/linux/blkdev.h:4,
from drivers/staging/rts5208/sd.c:23:
>> include/linux/dynamic_debug.h:74:16: error: missing terminating " character
static struct _ddebug __aligned(8) \
^
include/linux/dynamic_debug.h:110:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, 0, 0)
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1322:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
>> drivers/staging/rts5208/sd.c:1228:2: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "%s (mode = %d, func_group = %d,
^
drivers/staging/rts5208/sd.c:1229:20: error: expected expression before '%' token
func_to_switch = %d)\n", __func__, mode, func_group,
^
include/linux/dynamic_debug.h:79:14: note: in definition of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
.format = (fmt), \
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1322:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
>> drivers/staging/rts5208/sd.c:1228:2: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "%s (mode = %d, func_group = %d,
^
drivers/staging/rts5208/sd.c:1229:20: error: missing terminating " character
func_to_switch = %d)\n", __func__, mode, func_group,
^
include/linux/dynamic_debug.h:79:14: note: in definition of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
.format = (fmt), \
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1322:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
>> drivers/staging/rts5208/sd.c:1228:2: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "%s (mode = %d, func_group = %d,
^
drivers/staging/rts5208/sd.c:1229:20: error: expected expression before '%' token
func_to_switch = %d)\n", __func__, mode, func_group,
^
include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^
>> drivers/staging/rts5208/sd.c:1228:2: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "%s (mode = %d, func_group = %d,
^
drivers/staging/rts5208/sd.c:1229:20: error: stray '\' in program
func_to_switch = %d)\n", __func__, mode, func_group,
^
include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^
>> drivers/staging/rts5208/sd.c:1228:2: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "%s (mode = %d, func_group = %d,
^
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:24: error: missing terminating " character
func_to_switch = %d)\n", __func__, mode, func_group,
^
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/printk.h:329:0,
from include/linux/kernel.h:13,
from include/asm-generic/bug.h:15,
from ./arch/xtensa/include/generated/asm/bug.h:1,
from include/linux/bug.h:4,
from include/linux/thread_info.h:11,
from arch/xtensa/include/asm/current.h:16,
from include/linux/sched.h:11,
from include/linux/blkdev.h:4,
from drivers/staging/rts5208/sd.c:23:
>> include/linux/dynamic_debug.h:74:16: error: missing terminating " character
static struct _ddebug __aligned(8) \
^
include/linux/dynamic_debug.h:110:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, 0, 0)
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1322:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
drivers/staging/rts5208/sd.c:5041:3: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "sd_lock_state = 0x%x,
^
drivers/staging/rts5208/sd.c:5042:31: error: invalid suffix "x" on integer constant
sd_card->sd_lock_status = 0x%x\n",
^
include/linux/dynamic_debug.h:79:14: note: in definition of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
.format = (fmt), \
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1322:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
drivers/staging/rts5208/sd.c:5041:3: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "sd_lock_state = 0x%x,
^
include/linux/dynamic_debug.h:74:16: error: stray '\' in program
static struct _ddebug __aligned(8) \
^
include/linux/dynamic_debug.h:110:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, 0, 0)
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1322:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
drivers/staging/rts5208/sd.c:5041:3: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "sd_lock_state = 0x%x,
^
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/dynamic_debug.h:79:14: note: in definition of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
.format = (fmt), \
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1322:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
drivers/staging/rts5208/sd.c:5041:3: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "sd_lock_state = 0x%x,
^
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/dynamic_debug.h:79:14: note: in definition of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
.format = (fmt), \
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1322:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
drivers/staging/rts5208/sd.c:5041:3: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "sd_lock_state = 0x%x,
^
drivers/staging/rts5208/sd.c:5042:36: error: expected ')' before 'n'
sd_card->sd_lock_status = 0x%x\n",
^
include/linux/dynamic_debug.h:79:14: note: in definition of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
.format = (fmt), \
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1322:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
drivers/staging/rts5208/sd.c:5041:3: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "sd_lock_state = 0x%x,
^
drivers/staging/rts5208/sd.c:5042:36: error: missing terminating " character
sd_card->sd_lock_status = 0x%x\n",
^
include/linux/dynamic_debug.h:79:14: note: in definition of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
.format = (fmt), \
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1322:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
--
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/printk.h:329:0,
from include/linux/kernel.h:13,
from include/asm-generic/bug.h:15,
from ./arch/xtensa/include/generated/asm/bug.h:1,
from include/linux/bug.h:4,
from include/linux/thread_info.h:11,
from arch/xtensa/include/asm/current.h:16,
from include/linux/sched.h:11,
from include/linux/blkdev.h:4,
from drivers/staging/rts5208/spi.c:23:
>> include/linux/dynamic_debug.h:74:16: error: missing terminating " character
static struct _ddebug __aligned(8) \
^
include/linux/dynamic_debug.h:110:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, 0, 0)
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1322:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
>> drivers/staging/rts5208/spi.c:546:2: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "%s: spi_clock = %d, clk_div = %d,
^
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/dynamic_debug.h:79:14: note: in definition of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
.format = (fmt), \
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1322:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
>> drivers/staging/rts5208/spi.c:546:2: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "%s: spi_clock = %d, clk_div = %d,
^
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/dynamic_debug.h:79:14: note: in definition of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
.format = (fmt), \
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1322:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
>> drivers/staging/rts5208/spi.c:546:2: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "%s: spi_clock = %d, clk_div = %d,
^
drivers/staging/rts5208/spi.c:547:15: error: expected expression before '%' token
write_en = %d\n", __func__, spi->spi_clock,
^
include/linux/dynamic_debug.h:79:14: note: in definition of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
.format = (fmt), \
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1322:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
>> drivers/staging/rts5208/spi.c:546:2: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "%s: spi_clock = %d, clk_div = %d,
^
drivers/staging/rts5208/spi.c:547:15: error: stray '\' in program
write_en = %d\n", __func__, spi->spi_clock,
^
include/linux/dynamic_debug.h:79:14: note: in definition of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
.format = (fmt), \
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1322:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
>> drivers/staging/rts5208/spi.c:546:2: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "%s: spi_clock = %d, clk_div = %d,
^
drivers/staging/rts5208/spi.c:547:15: error: missing terminating " character
write_en = %d\n", __func__, spi->spi_clock,
^
include/linux/dynamic_debug.h:79:14: note: in definition of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
.format = (fmt), \
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1322:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
>> drivers/staging/rts5208/spi.c:546:2: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "%s: spi_clock = %d, clk_div = %d,
^
drivers/staging/rts5208/spi.c:547:15: error: missing terminating " character
write_en = %d\n", __func__, spi->spi_clock,
^
include/linux/dynamic_debug.h:79:14: note: in definition of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
.format = (fmt), \
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1322:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
>> drivers/staging/rts5208/spi.c:546:2: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "%s: spi_clock = %d, clk_div = %d,
^
drivers/staging/rts5208/spi.c:547:15: error: expected expression before '%' token
write_en = %d\n", __func__, spi->spi_clock,
^
include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^
>> drivers/staging/rts5208/spi.c:546:2: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "%s: spi_clock = %d, clk_div = %d,
^
drivers/staging/rts5208/spi.c:547:15: error: stray '\' in program
write_en = %d\n", __func__, spi->spi_clock,
^
include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^
>> drivers/staging/rts5208/spi.c:546:2: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "%s: spi_clock = %d, clk_div = %d,
^
drivers/staging/rts5208/spi.c:547:15: error: missing terminating " character
write_en = %d\n", __func__, spi->spi_clock,
^
include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^
>> drivers/staging/rts5208/spi.c:546:2: note: in expansion of macro 'dev_dbg'
dev_dbg(rtsx_dev(chip), "%s: spi_clock = %d, clk_div = %d,
^
..
vim +/dev_dbg +1228 drivers/staging/rts5208/sd.c
1212 if ((buf[DATA_STRUCTURE_VER_OFFSET] == 0x01) &&
1213 ((buf[check_busy_offset] & switch_busy) == switch_busy)) {
1214 rtsx_trace(chip);
1215 return STATUS_FAIL;
1216 }
1217
1218 return STATUS_SUCCESS;
1219 }
1220
1221 static int sd_check_switch_mode(struct rtsx_chip *chip, u8 mode, u8 func_group,
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;
1234
1235 if (func_group == SD_FUNC_GROUP_1) {
1236 cmd[2] = 0xFF;
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 50281 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread