Skip to content

Compiler warning in clk-baikal.c #6

@asheplyakov

Description

@asheplyakov
                from ./include/linux/module.h:12,
                 from drivers/clk/baikal/clk-baikal.c:23:
drivers/clk/baikal/clk-baikal.c: In function ‘baikal_clk_recalc_rate’:
drivers/clk/baikal/clk-baikal.c:165:11: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
  pr_debug("[%s, %x:%d:%s] %s, %ld\n",
           ^
./include/linux/printk.h:283:21: note: in definition of macro ‘pr_fmt’
 #define pr_fmt(fmt) fmt
                     ^~~
./include/linux/dynamic_debug.h:143:2: note: in expansion of macro ‘__dynamic_func_call’
  __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/dynamic_debug.h:153:2: note: in expansion of macro ‘_dynamic_func_call’
  _dynamic_func_call(fmt, __dynamic_pr_debug,  \
  ^~~~~~~~~~~~~~~~~~
./include/linux/printk.h:330:2: note: in expansion of macro ‘dynamic_pr_debug’
  dynamic_pr_debug(fmt, ##__VA_ARGS__)
  ^~~~~~~~~~~~~~~~
drivers/clk/baikal/clk-baikal.c:165:2: note: in expansion of macro ‘pr_debug’
  pr_debug("[%s, %x:%d:%s] %s, %ld\n",
  ^~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions