mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Gaurav Pathak <gauravpathak129@gmail.com>
Cc: kbuild-all@01.org, gregkh@linuxfoundation.org,
	linux-kernel@vger.kernel.org,
	Gaurav Pathak <gauravpathak129@gmail.com>
Subject: Re: [PATCH] Replaced Function name in debug print with %s..., __func__
Date: Wed, 5 Jul 2017 03:39:52 +0800	[thread overview]
Message-ID: <201707050301.2aB0Eqwj%fengguang.wu@intel.com> (raw)
In-Reply-To: <1499004704-22473-1-git-send-email-gauravpathak129@gmail.com>

[-- 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 --]

  parent reply	other threads:[~2017-07-04 19:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-02 14:11 Gaurav Pathak
2017-07-02 16:13 ` Joe Perches
2017-07-04 19:39 ` kbuild test robot [this message]
2017-07-04 19:47 ` kbuild test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201707050301.2aB0Eqwj%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=gauravpathak129@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®