tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing head: 1a2fcc93023ea52fd25995d04c83a2b72eb9e46b commit: 1d404f3b886e9b8c7cba7fc848207b0223ec1d51 [1514/1572] Staging: fsl-mc: Replace pr_debug with dev_dbg config: arm64-allyesconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 1d404f3b886e9b8c7cba7fc848207b0223ec1d51 # save the attached .config to linux build tree make.cross ARCH=arm64
All warnings (new ones prefixed by >>):
In file included from include/linux/printk.h:277:0,
from include/linux/kernel.h:13,
from include/asm-generic/bug.h:13,
from arch/arm64/include/asm/bug.h:62,
from include/linux/bug.h:4,
from include/linux/io.h:23,
from drivers/staging/fsl-mc/bus/../include/mc-sys.h:40,
from drivers/staging/fsl-mc/bus/mc-sys.c:35:
drivers/staging/fsl-mc/bus/mc-sys.c: In function
'mc_polling_wait_preemptible':
>> include/linux/dynamic_debug.h:86:3: warning: passing argument 2 of
>> '__dynamic_dev_dbg' from incompatible pointer type
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^
include/linux/device.h:1182:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
>> drivers/staging/fsl-mc/bus/mc-sys.c:331:4: note: in expansion of macro
>> 'dev_dbg'
dev_dbg(&mc_io->dev,
^
include/linux/dynamic_debug.h:53:6: note: expected 'const struct device *'
but argument is of type 'struct device **'
void __dynamic_dev_dbg(struct _ddebug *descriptor, const struct device *dev,
^
drivers/staging/fsl-mc/bus/mc-sys.c: In function 'mc_polling_wait_atomic':
>> include/linux/dynamic_debug.h:86:3: warning: passing argument 2 of
>> '__dynamic_dev_dbg' from incompatible pointer type
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^
include/linux/device.h:1182:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
drivers/staging/fsl-mc/bus/mc-sys.c:373:4: note: in expansion of macro
'dev_dbg'
dev_dbg(&mc_io->dev,
^
include/linux/dynamic_debug.h:53:6: note: expected 'const struct device *'
but argument is of type 'struct device **'
void __dynamic_dev_dbg(struct _ddebug *descriptor, const struct device *dev,
^
drivers/staging/fsl-mc/bus/mc-sys.c: In function 'mc_send_command':
>> include/linux/dynamic_debug.h:86:3: warning: passing argument 2 of
>> '__dynamic_dev_dbg' from incompatible pointer type
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^
include/linux/device.h:1182:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
drivers/staging/fsl-mc/bus/mc-sys.c:429:3: note: in expansion of macro
'dev_dbg'
dev_dbg(&mc_io->dev,
^
include/linux/dynamic_debug.h:53:6: note: expected 'const struct device *'
but argument is of type 'struct device **'
void __dynamic_dev_dbg(struct _ddebug *descriptor, const struct device *dev,
^
--
/kbuild/src/defs/drivers/staging/fsl-mc/bus/mc-bus.c: In function
'get_dprc_icid':
>> /kbuild/src/defs/drivers/staging/fsl-mc/bus/mc-bus.c:263:3: warning: passing
>> argument 1 of 'dev_err' from incompatible pointer type
dev_err(&mc_io->dev, "dprc_open() failed: %d\n", error);
^
In file included from
/kbuild/src/defs/drivers/staging/fsl-mc/bus/../include/../include/mc.h:14:0,
from
/kbuild/src/defs/drivers/staging/fsl-mc/bus/../include/mc-private.h:14,
from
/kbuild/src/defs/drivers/staging/fsl-mc/bus/mc-bus.c:12:
/kbuild/src/defs/include/linux/device.h:1125:6: note: expected 'const struct
device *' but argument is of type 'struct device **'
void dev_err(const struct device *dev, const char *fmt, ...);
^
/kbuild/src/defs/drivers/staging/fsl-mc/bus/mc-bus.c:270:3: warning: passing
argument 1 of 'dev_err' from incompatible pointer type
dev_err(&mc_io->dev, "dprc_get_attributes() failed: %d\n",
^
In file included from
/kbuild/src/defs/drivers/staging/fsl-mc/bus/../include/../include/mc.h:14:0,
from
/kbuild/src/defs/drivers/staging/fsl-mc/bus/../include/mc-private.h:14,
from
/kbuild/src/defs/drivers/staging/fsl-mc/bus/mc-bus.c:12:
/kbuild/src/defs/include/linux/device.h:1125:6: note: expected 'const struct
device *' but argument is of type 'struct device **'
void dev_err(const struct device *dev, const char *fmt, ...);
^
--
In file included from /kbuild/src/defs/include/linux/printk.h:288:0,
from /kbuild/src/defs/include/linux/kernel.h:13,
from /kbuild/src/defs/include/asm-generic/bug.h:13,
from /kbuild/src/defs/arch/arm64/include/asm/bug.h:62,
from /kbuild/src/defs/include/linux/bug.h:4,
from /kbuild/src/defs/include/linux/io.h:23,
from
/kbuild/src/defs/drivers/staging/fsl-mc/bus/../include/mc-sys.h:40,
from
/kbuild/src/defs/drivers/staging/fsl-mc/bus/mc-sys.c:35:
/kbuild/src/defs/drivers/staging/fsl-mc/bus/mc-sys.c: In function
'mc_polling_wait_preemptible':
>> /kbuild/src/defs/include/linux/dynamic_debug.h:86:3: warning: passing
>> argument 2 of '__dynamic_dev_dbg' from incompatible pointer type
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^
/kbuild/src/defs/include/linux/device.h:1187:2: note: in expansion of macro
'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
>> /kbuild/src/defs/drivers/staging/fsl-mc/bus/mc-sys.c:331:4: note: in
>> expansion of macro 'dev_dbg'
dev_dbg(&mc_io->dev,
^
/kbuild/src/defs/include/linux/dynamic_debug.h:53:6: note: expected 'const
struct device *' but argument is of type 'struct device **'
void __dynamic_dev_dbg(struct _ddebug *descriptor, const struct device *dev,
^
/kbuild/src/defs/drivers/staging/fsl-mc/bus/mc-sys.c: In function
'mc_polling_wait_atomic':
>> /kbuild/src/defs/include/linux/dynamic_debug.h:86:3: warning: passing
>> argument 2 of '__dynamic_dev_dbg' from incompatible pointer type
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^
/kbuild/src/defs/include/linux/device.h:1187:2: note: in expansion of macro
'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
/kbuild/src/defs/drivers/staging/fsl-mc/bus/mc-sys.c:373:4: note: in
expansion of macro 'dev_dbg'
dev_dbg(&mc_io->dev,
^
/kbuild/src/defs/include/linux/dynamic_debug.h:53:6: note: expected 'const
struct device *' but argument is of type 'struct device **'
void __dynamic_dev_dbg(struct _ddebug *descriptor, const struct device *dev,
^
/kbuild/src/defs/drivers/staging/fsl-mc/bus/mc-sys.c: In function
'mc_send_command':
>> /kbuild/src/defs/include/linux/dynamic_debug.h:86:3: warning: passing
>> argument 2 of '__dynamic_dev_dbg' from incompatible pointer type
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^
/kbuild/src/defs/include/linux/device.h:1187:2: note: in expansion of macro
'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
/kbuild/src/defs/drivers/staging/fsl-mc/bus/mc-sys.c:429:3: note: in
expansion of macro 'dev_dbg'
dev_dbg(&mc_io->dev,
^
/kbuild/src/defs/include/linux/dynamic_debug.h:53:6: note: expected 'const
struct device *' but argument is of type 'struct device **'
void __dynamic_dev_dbg(struct _ddebug *descriptor, const struct device *dev,
^
vim +/dev_dbg +331 drivers/staging/fsl-mc/bus/mc-sys.c
315 /*
316 * Wait for response from the MC hardware:
317 */
318 for (;;) {
319 status = mc_read_response(mc_io->portal_virt_addr, cmd);
320 if (status != MC_CMD_STATUS_READY)
321 break;
322
323 /*
324 * TODO: When MC command completion interrupts are
supported
325 * call wait function here instead of usleep_range()
326 */
327 usleep_range(MC_CMD_COMPLETION_POLLING_MIN_SLEEP_USECS,
328 MC_CMD_COMPLETION_POLLING_MAX_SLEEP_USECS);
329
330 if (time_after_eq(jiffies, jiffies_until_timeout)) {
> 331 dev_dbg(&mc_io->dev,
332 "MC command timed out (portal: %#llx,
obj handle: %#x, command: %#x)\n",
333 mc_io->portal_phys_addr,
334 (unsigned int)
335
MC_CMD_HDR_READ_TOKEN(cmd->header),
336 (unsigned int)
337
MC_CMD_HDR_READ_CMDID(cmd->header));
338
339 return -ETIMEDOUT;
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: Binary data
_______________________________________________ devel mailing list [email protected] http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
