All of lore.kernel.org
 help / color / mirror / Atom feed
* [btrfs:pr/1157 91/97] fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
@ 2025-04-24  6:19 kernel test robot
  2025-04-24  6:25 ` David Sterba
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2025-04-24  6:19 UTC (permalink / raw)
  To: David Sterba; +Cc: oe-kbuild-all, Josef Bacik

tree:   https://github.com/btrfs/linux.git pr/1157
head:   10c06ead9f79886df92197deb8d5c7bc37d52971
commit: 3050d7e09e5d7781bd9cfd8a27fc3d942afcd15c [91/97] btrfs: enhance ASSERT() to take optional format string
config: arm-randconfig-001-20250424 (https://download.01.org/0day-ci/archive/20250424/202504241458.DGT7MuTv-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250424/202504241458.DGT7MuTv-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504241458.DGT7MuTv-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from fs/btrfs/ctree.c:11:0:
   fs/btrfs/compression.h: In function 'btrfs_calc_input_length':
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/compression.h:83:2: note: in expansion of macro 'ASSERT'
     ASSERT(folio_pos(folio) <= cur);
     ^~~~~~
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/compression.h:84:2: note: in expansion of macro 'ASSERT'
     ASSERT(cur < folio_end);
     ^~~~~~
   fs/btrfs/extent_io.h: In function 'offset_in_eb_folio':
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/extent_io.h:132:2: note: in expansion of macro 'ASSERT'
     ASSERT(eb->folio_size);
     ^~~~~~
   fs/btrfs/btrfs_inode.h: In function 'btrfs_assert_inode_locked':
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/btrfs_inode.h:515:2: note: in expansion of macro 'ASSERT'
     ASSERT(inode_is_locked(&inode->vfs_inode));
     ^~~~~~
   fs/btrfs/delayed-ref.h: In function 'btrfs_ref_type':
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/delayed-ref.h:441:2: note: in expansion of macro 'ASSERT'
     ASSERT(ref->type == BTRFS_REF_DATA || ref->type == BTRFS_REF_METADATA);
     ^~~~~~
   fs/btrfs/volumes.h: In function 'btrfs_free_chunk_map':
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/volumes.h:634:3: note: in expansion of macro 'ASSERT'
      ASSERT(RB_EMPTY_NODE(&map->rb_node));
      ^~~~~~
   fs/btrfs/volumes.h: In function 'btrfs_chunk_item_size':
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/volumes.h:687:2: note: in expansion of macro 'ASSERT'
     ASSERT(num_stripes);
     ^~~~~~
   fs/btrfs/ctree.c: In function 'btrfs_read_node_slot':
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/ctree.c:824:2: note: in expansion of macro 'ASSERT'
     ASSERT(level);
     ^~~~~~
   fs/btrfs/ctree.c: In function 'balance_level':
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/ctree.c:864:2: note: in expansion of macro 'ASSERT'
     ASSERT(level > 0);
     ^~~~~~
   fs/btrfs/ctree.c: In function 'read_block_for_search':
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/ctree.c:1515:4: note: in expansion of macro 'ASSERT'
       ASSERT(!tmp_locked);
       ^~~~~~
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/ctree.c:1542:3: note: in expansion of macro 'ASSERT'
      ASSERT(ret == -EAGAIN);
      ^~~~~~
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/ctree.c:1569:3: note: in expansion of macro 'ASSERT'
      ASSERT(!tmp_locked);
      ^~~~~~
   fs/btrfs/ctree.c: In function 'btrfs_find_item':
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/ctree.c:1651:2: note: in expansion of macro 'ASSERT'
     ASSERT(path);
     ^~~~~~
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/ctree.c:1652:2: note: in expansion of macro 'ASSERT'
     ASSERT(found_key);
     ^~~~~~
   fs/btrfs/ctree.c: In function 'btrfs_search_slot_get_root':
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/ctree.c:1694:3: note: in expansion of macro 'ASSERT'
      ASSERT(p->skip_locking == 1);
      ^~~~~~
   fs/btrfs/ctree.c: In function 'finish_need_commit_sem_search':
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/ctree.c:1779:2: note: in expansion of macro 'ASSERT'
     ASSERT(path->need_commit_sem);
     ^~~~~~
   fs/btrfs/ctree.c: In function 'search_leaf':
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/ctree.c:1852:4: note: in expansion of macro 'ASSERT'
       ASSERT(btrfs_header_nritems(leaf) > 0);
       ^~~~~~
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/ctree.c:1924:4: note: in expansion of macro 'ASSERT'
       ASSERT(ins_len >= sizeof(struct btrfs_item));
       ^~~~~~
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/ctree.c:1928:3: note: in expansion of macro 'ASSERT'
      ASSERT(leaf_free_space >= 0);
      ^~~~~~
>> fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/ctree.c:1935:4: note: in expansion of macro 'ASSERT'
       ASSERT(err <= 0);
       ^~~~~~
   fs/btrfs/ctree.c: In function 'btrfs_search_slot':
   fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/ctree.c:2010:2: note: in expansion of macro 'ASSERT'
     ASSERT(!p->nowait || !cow);
     ^~~~~~
   fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/ctree.c:2037:3: note: in expansion of macro 'ASSERT'
      ASSERT(p->search_commit_root);
      ^~~~~~
   fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/ctree.c:2122:5: note: in expansion of macro 'ASSERT'
        ASSERT(write_lock_level >= 1);
        ^~~~~~
   fs/btrfs/ctree.c: In function 'btrfs_search_old_slot':
   fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                             ^~~~~~~~~~~~~~~~~
   include/linux/printk.h:550:2: note: in expansion of macro 'printk'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~
   fs/btrfs/messages.h:211:4: note: in expansion of macro 'pr_err'
       pr_err("assertion failed: %s :: %ld, in %s:%d (" __FIRST_ARG(args) ")\n", \
       ^~~~~~
   fs/btrfs/ctree.c:2246:2: note: in expansion of macro 'ASSERT'
     ASSERT(!p->nowait);
     ^~~~~~
   fs/btrfs/ctree.c: In function 'split_node':
   fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__'
    #define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
                                ^
   include/linux/printk.h:479:19: note: in expansion of macro '__REST_ARGS'
      _p_func(_fmt, ##__VA_ARGS__);    \
                      ^~~~~~~~~~~
   include/linux/printk.h:507:26: note: in expansion of macro 'printk_index_wrap'
    #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
..


vim +181 fs/btrfs/messages.h

   177	
   178	/* Take the first token if any. */
   179	#define __FIRST_ARG(_, ...) _
   180	/* Skip the first token and return the rest, if it's empty the comma is dropped. */
 > 181	#define __REST_ARGS(_, ...) __VA_OPT__(,) __VA_ARGS__
   182	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-04-24  6:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-24  6:19 [btrfs:pr/1157 91/97] fs/btrfs/messages.h:181:29: error: expected ')' before '__VA_OPT__' kernel test robot
2025-04-24  6:25 ` David Sterba
2025-04-24  6:40   ` David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.