All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Pratyush Kumar Khan <pratyush@sipanda.io>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH 1/4] kParser: Add new kParser KMOD
Date: Wed, 26 Oct 2022 18:59:52 +0800	[thread overview]
Message-ID: <202210261849.CS0CG1eB-lkp@intel.com> (raw)
In-Reply-To: <20221026075054.119069-2-pratyush@sipanda.io>

[-- Attachment #1: Type: text/plain, Size: 29496 bytes --]

Hi Pratyush,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on next-20221026]
[also build test WARNING on v6.1-rc2]
[cannot apply to bpf-next/master bpf/master linus/master v6.1-rc2 v6.1-rc1 v6.0]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Pratyush-Kumar-Khan/kParser-Add-new-kParser-KMOD/20221026-165116
patch link:    https://lore.kernel.org/r/20221026075054.119069-2-pratyush%40sipanda.io
patch subject: [RFC PATCH 1/4] kParser: Add new kParser KMOD
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/intel-lab-lkp/linux/commit/943db3b621ddd36681b3738a6747a9411e075a97
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Pratyush-Kumar-Khan/kParser-Add-new-kParser-KMOD/20221026-165116
        git checkout 943db3b621ddd36681b3738a6747a9411e075a97
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash net/kparser/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from include/asm-generic/bug.h:22,
                    from arch/sh/include/asm/bug.h:112,
                    from include/linux/ktime.h:26,
                    from include/linux/timer.h:6,
                    from include/linux/workqueue.h:9,
                    from include/linux/rhashtable.h:25,
                    from net/kparser/kparser_cmds.c:10:
   net/kparser/kparser_cmds.c: In function 'alloc_first_rsp':
   include/linux/kern_levels.h:5:25: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Wformat=]
       5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
         |                         ^~~~~~
   include/linux/printk.h:429:25: note: in definition of macro 'printk_index_wrap'
     429 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                         ^~~~
   include/linux/printk.h:480:9: note: in expansion of macro 'printk'
     480 |         printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~
   include/linux/kern_levels.h:9:25: note: in expansion of macro 'KERN_SOH'
       9 | #define KERN_ALERT      KERN_SOH "1"    /* action must be taken immediately */
         |                         ^~~~~~~~
   include/linux/printk.h:480:16: note: in expansion of macro 'KERN_ALERT'
     480 |         printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
         |                ^~~~~~~~~~
   net/kparser/kparser_cmds.c:673:17: note: in expansion of macro 'pr_alert'
     673 |                 pr_alert("%s:kzalloc failed for rsp, size:%lu\n", __func__, sizeof(**rsp));
         |                 ^~~~~~~~
   net/kparser/kparser_cmds.c: In function 'kparser_init':
>> net/kparser/kparser_cmds.c:709:26: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
     709 |                 pr_debug("{%s:%d}:bv_len:%lu, total_bytes:%lu, range:[%d:%d]\n",
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/printk.h:347:21: note: in definition of macro 'pr_fmt'
     347 | #define pr_fmt(fmt) fmt
         |                     ^~~
   include/linux/dynamic_debug.h:247:9: note: in expansion of macro '__dynamic_func_call_cls'
     247 |         __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:249:9: note: in expansion of macro '_dynamic_func_call_cls'
     249 |         _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:268:9: note: in expansion of macro '_dynamic_func_call'
     268 |         _dynamic_func_call(fmt, __dynamic_pr_debug,             \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/printk.h:581:9: note: in expansion of macro 'dynamic_pr_debug'
     581 |         dynamic_pr_debug(fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~
   net/kparser/kparser_cmds.c:709:17: note: in expansion of macro 'pr_debug'
     709 |                 pr_debug("{%s:%d}:bv_len:%lu, total_bytes:%lu, range:[%d:%d]\n",
         |                 ^~~~~~~~
   net/kparser/kparser_cmds.c:709:44: note: format string is defined here
     709 |                 pr_debug("{%s:%d}:bv_len:%lu, total_bytes:%lu, range:[%d:%d]\n",
         |                                          ~~^
         |                                            |
         |                                            long unsigned int
         |                                          %u
>> net/kparser/kparser_cmds.c:709:26: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'unsigned int' [-Wformat=]
     709 |                 pr_debug("{%s:%d}:bv_len:%lu, total_bytes:%lu, range:[%d:%d]\n",
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/printk.h:347:21: note: in definition of macro 'pr_fmt'
     347 | #define pr_fmt(fmt) fmt
         |                     ^~~
   include/linux/dynamic_debug.h:247:9: note: in expansion of macro '__dynamic_func_call_cls'
     247 |         __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:249:9: note: in expansion of macro '_dynamic_func_call_cls'
     249 |         _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:268:9: note: in expansion of macro '_dynamic_func_call'
     268 |         _dynamic_func_call(fmt, __dynamic_pr_debug,             \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/printk.h:581:9: note: in expansion of macro 'dynamic_pr_debug'
     581 |         dynamic_pr_debug(fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~
   net/kparser/kparser_cmds.c:709:17: note: in expansion of macro 'pr_debug'
     709 |                 pr_debug("{%s:%d}:bv_len:%lu, total_bytes:%lu, range:[%d:%d]\n",
         |                 ^~~~~~~~
   net/kparser/kparser_cmds.c:709:61: note: format string is defined here
     709 |                 pr_debug("{%s:%d}:bv_len:%lu, total_bytes:%lu, range:[%d:%d]\n",
         |                                                           ~~^
         |                                                             |
         |                                                             long unsigned int
         |                                                           %u
   net/kparser/kparser_cmds.c: In function 'kparser_config_handler_preprocess':
   net/kparser/kparser_cmds.c:786:26: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
     786 |                 pr_debug("{%s:%d}:[%p %lu %p %p %p %lu %d]\n",
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/printk.h:347:21: note: in definition of macro 'pr_fmt'
     347 | #define pr_fmt(fmt) fmt
         |                     ^~~
   include/linux/dynamic_debug.h:247:9: note: in expansion of macro '__dynamic_func_call_cls'
     247 |         __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:249:9: note: in expansion of macro '_dynamic_func_call_cls'
     249 |         _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:268:9: note: in expansion of macro '_dynamic_func_call'
     268 |         _dynamic_func_call(fmt, __dynamic_pr_debug,             \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/printk.h:581:9: note: in expansion of macro 'dynamic_pr_debug'
     581 |         dynamic_pr_debug(fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~
   net/kparser/kparser_cmds.c:786:17: note: in expansion of macro 'pr_debug'
     786 |                 pr_debug("{%s:%d}:[%p %lu %p %p %p %lu %d]\n",
         |                 ^~~~~~~~
   net/kparser/kparser_cmds.c:786:41: note: format string is defined here
     786 |                 pr_debug("{%s:%d}:[%p %lu %p %p %p %lu %d]\n",
         |                                       ~~^
         |                                         |
         |                                         long unsigned int
         |                                       %u
   net/kparser/kparser_cmds.c:786:26: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
     786 |                 pr_debug("{%s:%d}:[%p %lu %p %p %p %lu %d]\n",
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/printk.h:347:21: note: in definition of macro 'pr_fmt'
     347 | #define pr_fmt(fmt) fmt
         |                     ^~~
   include/linux/dynamic_debug.h:247:9: note: in expansion of macro '__dynamic_func_call_cls'
     247 |         __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:249:9: note: in expansion of macro '_dynamic_func_call_cls'
     249 |         _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:268:9: note: in expansion of macro '_dynamic_func_call'
     268 |         _dynamic_func_call(fmt, __dynamic_pr_debug,             \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/printk.h:581:9: note: in expansion of macro 'dynamic_pr_debug'
     581 |         dynamic_pr_debug(fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~
   net/kparser/kparser_cmds.c:786:17: note: in expansion of macro 'pr_debug'
     786 |                 pr_debug("{%s:%d}:[%p %lu %p %p %p %lu %d]\n",
         |                 ^~~~~~~~
   net/kparser/kparser_cmds.c:786:54: note: format string is defined here
     786 |                 pr_debug("{%s:%d}:[%p %lu %p %p %p %lu %d]\n",
         |                                                    ~~^
         |                                                      |
         |                                                      long unsigned int
         |                                                    %u
--
   net/kparser/kparser_cmds_ops.c: In function 'kparser_cmd_create_pre_process':
>> net/kparser/kparser_cmds_ops.c:58:66: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
      58 |                          "%s:Object allocation failed for size:%lu",
         |                                                                ~~^
         |                                                                  |
         |                                                                  long unsigned int
         |                                                                %u
      59 |                          op, kobjsize);
         |                              ~~~~~~~~                             
         |                              |
         |                              size_t {aka unsigned int}
   net/kparser/kparser_cmds_ops.c: In function 'kparser_create_cond_table_ent':
>> net/kparser/kparser_cmds_ops.c:202:63: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'unsigned int' [-Wformat=]
     202 |                          "%s: krealloc() err, ents:%d, size:%lu",
         |                                                             ~~^
         |                                                               |
         |                                                               long unsigned int
         |                                                             %u
     203 |                          __func__, (*proto_table)->table.num_ents,
     204 |                          sizeof(struct kparser_condexpr_expr));
         |                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
         |                          |
         |                          unsigned int
   In file included from include/asm-generic/bug.h:22,
                    from arch/sh/include/asm/bug.h:112,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:13,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/sh/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:56,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:7,
                    from include/linux/slab.h:15,
                    from net/kparser/kparser_cmds_ops.c:9:
   net/kparser/kparser_cmds_ops.c: In function 'kparser_read_cond_table':
   include/linux/kern_levels.h:5:25: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
       5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
         |                         ^~~~~~
   include/linux/printk.h:429:25: note: in definition of macro 'printk_index_wrap'
     429 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                         ^~~~
   include/linux/printk.h:480:9: note: in expansion of macro 'printk'
     480 |         printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~
   include/linux/kern_levels.h:9:25: note: in expansion of macro 'KERN_SOH'
       9 | #define KERN_ALERT      KERN_SOH "1"    /* action must be taken immediately */
         |                         ^~~~~~~~
   include/linux/printk.h:480:16: note: in expansion of macro 'KERN_ALERT'
     480 |         printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
         |                ^~~~~~~~~~
   net/kparser/kparser_cmds_ops.c:307:25: note: in expansion of macro 'pr_alert'
     307 |                         pr_alert("%s:krealloc failed for rsp, len:%lu\n",
         |                         ^~~~~~~~
   net/kparser/kparser_cmds_ops.c: In function 'kparser_create_cond_tables_ent':
   net/kparser/kparser_cmds_ops.c:367:63: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'unsigned int' [-Wformat=]
     367 |                          "%s: krealloc() err, ents:%d, size:%lu",
         |                                                             ~~^
         |                                                               |
         |                                                               long unsigned int
         |                                                             %u
     368 |                          __func__, (*proto_table)->table.num_ents,
     369 |                          sizeof(struct kparser_condexpr_table *));
         |                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                          |
         |                          unsigned int
   net/kparser/kparser_cmds_ops.c: In function 'kparser_read_cond_tables':
   include/linux/kern_levels.h:5:25: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
       5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
         |                         ^~~~~~
   include/linux/printk.h:429:25: note: in definition of macro 'printk_index_wrap'
     429 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                         ^~~~
   include/linux/printk.h:480:9: note: in expansion of macro 'printk'
     480 |         printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~
   include/linux/kern_levels.h:9:25: note: in expansion of macro 'KERN_SOH'
       9 | #define KERN_ALERT      KERN_SOH "1"    /* action must be taken immediately */
         |                         ^~~~~~~~
   include/linux/printk.h:480:16: note: in expansion of macro 'KERN_ALERT'
     480 |         printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
         |                ^~~~~~~~~~
   net/kparser/kparser_cmds_ops.c:467:25: note: in expansion of macro 'pr_alert'
     467 |                         pr_alert("%s:krealloc failed for rsp, len:%lu\n",
         |                         ^~~~~~~~
   net/kparser/kparser_cmds_ops.c: In function 'kparser_read_counter_table':
   include/linux/kern_levels.h:5:25: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
       5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
         |                         ^~~~~~
   include/linux/printk.h:429:25: note: in definition of macro 'printk_index_wrap'
     429 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                         ^~~~
   include/linux/printk.h:480:9: note: in expansion of macro 'printk'
     480 |         printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~
   include/linux/kern_levels.h:9:25: note: in expansion of macro 'KERN_SOH'
       9 | #define KERN_ALERT      KERN_SOH "1"    /* action must be taken immediately */
         |                         ^~~~~~~~
   include/linux/printk.h:480:16: note: in expansion of macro 'KERN_ALERT'
     480 |         printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
         |                ^~~~~~~~~~
   net/kparser/kparser_cmds_ops.c:755:25: note: in expansion of macro 'pr_alert'
     755 |                         pr_alert("%s:krealloc failed for rsp, len:%lu\n", __func__, *rsp_len);
         |                         ^~~~~~~~
   net/kparser/kparser_cmds_ops.c: In function 'kparser_create_metalist':
   net/kparser/kparser_cmds_ops.c:1054:71: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'unsigned int' [-Wformat=]
    1054 |                                  "%s: krealloc() err, ents:%d, size:%lu",
         |                                                                     ~~^
         |                                                                       |
         |                                                                       long unsigned int
         |                                                                     %u
    1055 |                                  op, kmdl->metadata_table.num_ents, sizeof(*kmde));
         |                                                                     ~~~~~~~~~~~~~
--
   In file included from include/asm-generic/bug.h:22,
                    from arch/sh/include/asm/bug.h:112,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:13,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/sh/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:56,
                    from include/linux/kref.h:16,
                    from net/kparser/kparser.h:14,
                    from net/kparser/kparser_cmds_dump_ops.c:9:
   net/kparser/kparser_cmds_dump_ops.c: In function 'kparser_dump_proto_node':
>> net/kparser/kparser_cmds_dump_ops.c:137:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
     137 |         pr_debug("min_len:%lu\n", obj->min_len);
         |                  ^~~~~~~~~~~~~~~
   include/linux/printk.h:347:21: note: in definition of macro 'pr_fmt'
     347 | #define pr_fmt(fmt) fmt
         |                     ^~~
   include/linux/dynamic_debug.h:247:9: note: in expansion of macro '__dynamic_func_call_cls'
     247 |         __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:249:9: note: in expansion of macro '_dynamic_func_call_cls'
     249 |         _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:268:9: note: in expansion of macro '_dynamic_func_call'
     268 |         _dynamic_func_call(fmt, __dynamic_pr_debug,             \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/printk.h:581:9: note: in expansion of macro 'dynamic_pr_debug'
     581 |         dynamic_pr_debug(fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~
   net/kparser/kparser_cmds_dump_ops.c:137:9: note: in expansion of macro 'pr_debug'
     137 |         pr_debug("min_len:%lu\n", obj->min_len);
         |         ^~~~~~~~
   net/kparser/kparser_cmds_dump_ops.c:137:29: note: format string is defined here
     137 |         pr_debug("min_len:%lu\n", obj->min_len);
         |                           ~~^
         |                             |
         |                             long unsigned int
         |                           %u
   net/kparser/kparser_cmds_dump_ops.c: In function 'kparser_dump_tlv_parse_node':
   net/kparser/kparser_cmds_dump_ops.c:191:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
     191 |         pr_debug("proto_tlv_node.min_len: %lu\n", obj->proto_tlv_node.min_len);
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/printk.h:347:21: note: in definition of macro 'pr_fmt'
     347 | #define pr_fmt(fmt) fmt
         |                     ^~~
   include/linux/dynamic_debug.h:247:9: note: in expansion of macro '__dynamic_func_call_cls'
     247 |         __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:249:9: note: in expansion of macro '_dynamic_func_call_cls'
     249 |         _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:268:9: note: in expansion of macro '_dynamic_func_call'
     268 |         _dynamic_func_call(fmt, __dynamic_pr_debug,             \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/printk.h:581:9: note: in expansion of macro 'dynamic_pr_debug'
     581 |         dynamic_pr_debug(fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~
   net/kparser/kparser_cmds_dump_ops.c:191:9: note: in expansion of macro 'pr_debug'
     191 |         pr_debug("proto_tlv_node.min_len: %lu\n", obj->proto_tlv_node.min_len);
         |         ^~~~~~~~
   net/kparser/kparser_cmds_dump_ops.c:191:45: note: format string is defined here
     191 |         pr_debug("proto_tlv_node.min_len: %lu\n", obj->proto_tlv_node.min_len);
         |                                           ~~^
         |                                             |
         |                                             long unsigned int
         |                                           %u
   net/kparser/kparser_cmds_dump_ops.c:192:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
     192 |         pr_debug("proto_tlv_node.max_len: %lu\n", obj->proto_tlv_node.max_len);
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/printk.h:347:21: note: in definition of macro 'pr_fmt'
     347 | #define pr_fmt(fmt) fmt
         |                     ^~~
   include/linux/dynamic_debug.h:247:9: note: in expansion of macro '__dynamic_func_call_cls'
     247 |         __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:249:9: note: in expansion of macro '_dynamic_func_call_cls'
     249 |         _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:268:9: note: in expansion of macro '_dynamic_func_call'
     268 |         _dynamic_func_call(fmt, __dynamic_pr_debug,             \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/printk.h:581:9: note: in expansion of macro 'dynamic_pr_debug'
     581 |         dynamic_pr_debug(fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~
   net/kparser/kparser_cmds_dump_ops.c:192:9: note: in expansion of macro 'pr_debug'
     192 |         pr_debug("proto_tlv_node.max_len: %lu\n", obj->proto_tlv_node.max_len);
         |         ^~~~~~~~
   net/kparser/kparser_cmds_dump_ops.c:192:45: note: format string is defined here
     192 |         pr_debug("proto_tlv_node.max_len: %lu\n", obj->proto_tlv_node.max_len);
         |                                           ~~^
         |                                             |
         |                                             long unsigned int
         |                                           %u
   net/kparser/kparser_cmds_dump_ops.c: In function 'kparser_dump_tlvs_proto_node':
   net/kparser/kparser_cmds_dump_ops.c:252:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
     252 |         pr_debug("start_offset:%lu\n", obj->start_offset);
         |                  ^~~~~~~~~~~~~~~~~~~~
   include/linux/printk.h:347:21: note: in definition of macro 'pr_fmt'
     347 | #define pr_fmt(fmt) fmt
         |                     ^~~
   include/linux/dynamic_debug.h:247:9: note: in expansion of macro '__dynamic_func_call_cls'
     247 |         __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:249:9: note: in expansion of macro '_dynamic_func_call_cls'
     249 |         _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:268:9: note: in expansion of macro '_dynamic_func_call'
     268 |         _dynamic_func_call(fmt, __dynamic_pr_debug,             \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/printk.h:581:9: note: in expansion of macro 'dynamic_pr_debug'
     581 |         dynamic_pr_debug(fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~
..


vim +709 net/kparser/kparser_cmds.c

   682	
   683	/* initialize kParser's name space manager contexts */
   684	int kparser_init(void)
   685	{
   686		int err, i, j;
   687	
   688		pr_debug("IN: %s:%s:%d\n", __FILE__, __func__, __LINE__);
   689	
   690		for (i = 0; i < (sizeof(g_mod_namespaces) /
   691					sizeof(g_mod_namespaces[0])); i++) {
   692			if (!g_mod_namespaces[i])
   693				continue;
   694	
   695			err = rhashtable_init(&g_mod_namespaces[i]->htbl_name.tbl,
   696					      &g_mod_namespaces[i]->htbl_name.tbl_params);
   697			if (err)
   698				goto handle_error;
   699	
   700			err = rhashtable_init(&g_mod_namespaces[i]->htbl_id.tbl,
   701					      &g_mod_namespaces[i]->htbl_id.tbl_params);
   702			if (err)
   703				goto handle_error;
   704	
   705			g_mod_namespaces[i]->bv_len =
   706				((KPARSER_KMOD_ID_MAX - KPARSER_KMOD_ID_MIN) /
   707				 BITS_PER_TYPE(unsigned long)) + 1;
   708	
 > 709			pr_debug("{%s:%d}:bv_len:%lu, total_bytes:%lu, range:[%d:%d]\n",
   710				 __func__, __LINE__,
   711				 g_mod_namespaces[i]->bv_len,
   712				 sizeof(__u32) * g_mod_namespaces[i]->bv_len,
   713				 KPARSER_KMOD_ID_MAX, KPARSER_KMOD_ID_MIN);
   714	
   715			g_mod_namespaces[i]->bv = kcalloc(g_mod_namespaces[i]->bv_len, sizeof(__u32),
   716							  GFP_KERNEL);
   717	
   718			if (!g_mod_namespaces[i]->bv) {
   719				pr_alert("%s: kzalloc() failed\n", __func__);
   720				goto handle_error;
   721			}
   722	
   723			memset(g_mod_namespaces[i]->bv, 0xff, g_mod_namespaces[i]->bv_len * sizeof(__u32));
   724		}
   725	
   726		pr_debug("OUT: %s:%s:%d:err:%d\n", __FILE__, __func__, __LINE__, err);
   727	
   728		return 0;
   729	
   730	handle_error:
   731		for (j = 0; j < i; j++) {
   732			if (!g_mod_namespaces[j])
   733				continue;
   734	
   735			rhashtable_destroy(&g_mod_namespaces[j]->htbl_name.tbl);
   736			rhashtable_destroy(&g_mod_namespaces[j]->htbl_id.tbl);
   737	
   738			kparser_free(g_mod_namespaces[j]->bv);
   739			g_mod_namespaces[j]->bv_len = 0;
   740		}
   741	
   742		pr_debug("OUT: %s() failed, err: %d\n", __func__, err);
   743	
   744		return err;
   745	}
   746	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 58864 bytes --]

  reply	other threads:[~2022-10-26 11:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-26  7:50 [RFC PATCH net-next]net: Add new kParser KMOD in net, integrate kParser with XDP Pratyush Kumar Khan
2022-10-26  7:50 ` [RFC PATCH 1/4] kParser: Add new kParser KMOD Pratyush Kumar Khan
2022-10-26 10:59   ` kernel test robot [this message]
2022-10-26 17:19   ` kernel test robot
2022-10-26  7:50 ` [RFC PATCH 2/4] docs: networking: add doc entry for kParser Pratyush Kumar Khan
2022-10-26  7:50 ` [RFC PATCH 3/4] xdp: Support for kParser as bpf helper function Pratyush Kumar Khan
2022-10-26 14:37   ` kernel test robot
2022-10-26  7:50 ` [RFC PATCH 4/4] xdp: Support for flow_dissector " Pratyush Kumar Khan
2022-10-26 15:38   ` kernel 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=202210261849.CS0CG1eB-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pratyush@sipanda.io \
    /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 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.