Skip to contentSkip to conversation

linux-next: build warning after merge of the driver-core tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Sep 9, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the driver-core tree, today's linux-next build produced this warning:

drivers/mmc/host/davinci_mmc.c: In function 'davinci_mmcsd_probe':
drivers/mmc/host/davinci_mmc.c:1243:4: warning: ignoring return value of 'dev_err_probe' declared with attribute 'warn_unused_result' [-Wunused-result]

 1243 |    dev_err_probe(&pdev->dev, ret,
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1244 |           "could not parse of data\n");
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Introduced by commit

e1f82a0dcf38 ("driver core: Annotate dev_err_probe() with __must_check")

interacting with commit

3a35e7e1bd50 ("mmc: davinci: Simplify with dev_err_probe()")

from the mmc tree.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 14 lines · Stephen Rothwell

Hi all,

After merging the driver-core tree, today's linux-next build produced this warning:

drivers/mmc/host/davinci_mmc.c: In function 'davinci_mmcsd_probe':
drivers/mmc/host/davinci_mmc.c:1243:4: warning: ignoring return value of 'dev_err_probe' declared with attribute 'warn_unused_result' [-Wunused-result]

 1243 |    dev_err_probe(&pdev->dev, ret,
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1244 |           "could not parse of data\n");
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Introduced by commit

Quoted 7 lines

e1f82a0dcf38 ("driver core: Annotate dev_err_probe() with __must_check")

interacting with commit

3a35e7e1bd50 ("mmc: davinci: Simplify with dev_err_probe()")

from the mmc tree.

Offending patch now dropped from the driver-core tree, thanks.

greg k-h