public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Damien Le Moal <damien.lemoal@opensource•wdc.com>
To: Stephen Rothwell <sfr@canb•auug.org.au>
Cc: Sergey Shtylyov <s.shtylyov@omp•ru>,
	Linux Kernel Mailing List <linux-kernel@vger•kernel.org>,
	Linux Next Mailing List <linux-next@vger•kernel.org>
Subject: Re: linux-next: build warning after merge of the libata tree
Date: Mon, 20 Jun 2022 09:43:13 +0900	[thread overview]
Message-ID: <0e293be4-ba99-379e-75dc-0ba5cf7793b7@opensource.wdc.com> (raw)
In-Reply-To: <20220620103400.6b03f8d9@canb.auug.org.au>

On 6/20/22 09:34, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the libata tree, today's linux-next build (powercp
> ppc64_defconfig) produced this warning:

Will fix that.

> 
> In file included from include/linux/device.h:15,
>                  from arch/powerpc/include/asm/io.h:27,
>                  from include/linux/io.h:13,
>                  from include/linux/irq.h:20,
>                  from arch/powerpc/include/asm/hardirq.h:6,
>                  from include/linux/hardirq.h:11,
>                  from include/linux/highmem.h:11,
>                  from include/linux/bvec.h:10,
>                  from include/linux/blk_types.h:10,
>                  from include/linux/blkdev.h:9,
>                  from drivers/ata/pata_macio.c:18:
> drivers/ata/pata_macio.c: In function 'pmac_macio_calc_timing_masks':
> drivers/ata/pata_macio.c:1031:28: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
>  1031 |         dev_dbg(priv->dev, "Supported masks: PIO=%lx, MWDMA=%lx, UDMA=%lx\n",
>       |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/linux/dev_printk.h:129:41: note: in definition of macro 'dev_printk'
>   129 |                 _dev_printk(level, dev, fmt, ##__VA_ARGS__);            \
>       |                                         ^~~
> include/linux/dev_printk.h:163:45: note: in expansion of macro 'dev_fmt'
>   163 |                 dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
>       |                                             ^~~~~~~
> drivers/ata/pata_macio.c:1031:9: note: in expansion of macro 'dev_dbg'
>  1031 |         dev_dbg(priv->dev, "Supported masks: PIO=%lx, MWDMA=%lx, UDMA=%lx\n",
>       |         ^~~~~~~
> drivers/ata/pata_macio.c:1031:52: note: format string is defined here
>  1031 |         dev_dbg(priv->dev, "Supported masks: PIO=%lx, MWDMA=%lx, UDMA=%lx\n",
>       |                                                  ~~^
>       |                                                    |
>       |                                                    long unsigned int
>       |                                                  %x
> In file included from include/linux/device.h:15,
>                  from arch/powerpc/include/asm/io.h:27,
>                  from include/linux/io.h:13,
>                  from include/linux/irq.h:20,
>                  from arch/powerpc/include/asm/hardirq.h:6,
>                  from include/linux/hardirq.h:11,
>                  from include/linux/highmem.h:11,
>                  from include/linux/bvec.h:10,
>                  from include/linux/blk_types.h:10,
>                  from include/linux/blkdev.h:9,
>                  from drivers/ata/pata_macio.c:18:
> drivers/ata/pata_macio.c:1031:28: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=]
>  1031 |         dev_dbg(priv->dev, "Supported masks: PIO=%lx, MWDMA=%lx, UDMA=%lx\n",
>       |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/linux/dev_printk.h:129:41: note: in definition of macro 'dev_printk'
>   129 |                 _dev_printk(level, dev, fmt, ##__VA_ARGS__);            \
>       |                                         ^~~
> include/linux/dev_printk.h:163:45: note: in expansion of macro 'dev_fmt'
>   163 |                 dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
>       |                                             ^~~~~~~
> drivers/ata/pata_macio.c:1031:9: note: in expansion of macro 'dev_dbg'
>  1031 |         dev_dbg(priv->dev, "Supported masks: PIO=%lx, MWDMA=%lx, UDMA=%lx\n",
>       |         ^~~~~~~
> drivers/ata/pata_macio.c:1031:63: note: format string is defined here
>  1031 |         dev_dbg(priv->dev, "Supported masks: PIO=%lx, MWDMA=%lx, UDMA=%lx\n",
>       |                                                             ~~^
>       |                                                               |
>       |                                                               long unsigned int
>       |                                                             %x
> In file included from include/linux/device.h:15,
>                  from arch/powerpc/include/asm/io.h:27,
>                  from include/linux/io.h:13,
>                  from include/linux/irq.h:20,
>                  from arch/powerpc/include/asm/hardirq.h:6,
>                  from include/linux/hardirq.h:11,
>                  from include/linux/highmem.h:11,
>                  from include/linux/bvec.h:10,
>                  from include/linux/blk_types.h:10,
>                  from include/linux/blkdev.h:9,
>                  from drivers/ata/pata_macio.c:18:
> drivers/ata/pata_macio.c:1031:28: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'unsigned int' [-Wformat=]
>  1031 |         dev_dbg(priv->dev, "Supported masks: PIO=%lx, MWDMA=%lx, UDMA=%lx\n",
>       |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/linux/dev_printk.h:129:41: note: in definition of macro 'dev_printk'
>   129 |                 _dev_printk(level, dev, fmt, ##__VA_ARGS__);            \
>       |                                         ^~~
> include/linux/dev_printk.h:163:45: note: in expansion of macro 'dev_fmt'
>   163 |                 dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
>       |                                             ^~~~~~~
> drivers/ata/pata_macio.c:1031:9: note: in expansion of macro 'dev_dbg'
>  1031 |         dev_dbg(priv->dev, "Supported masks: PIO=%lx, MWDMA=%lx, UDMA=%lx\n",
>       |         ^~~~~~~
> drivers/ata/pata_macio.c:1031:73: note: format string is defined here
>  1031 |         dev_dbg(priv->dev, "Supported masks: PIO=%lx, MWDMA=%lx, UDMA=%lx\n",
>       |                                                                       ~~^
>       |                                                                         |
>       |                                                                         long unsigned int
>       |                                                                       %x
> 
> Introduced by commit
> 
>   f0a6d77b351c ("ata: make transfer mode masks *unsigned int*")
> 


-- 
Damien Le Moal
Western Digital Research

  reply	other threads:[~2022-06-20  0:44 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-20  0:34 linux-next: build warning after merge of the libata tree Stephen Rothwell
2022-06-20  0:43 ` Damien Le Moal [this message]
2022-06-20  8:21 ` Stephen Rothwell
2022-06-20  8:53   ` Damien Le Moal
2022-06-20 10:57     ` Sergey Shtylyov
2022-06-20 11:07       ` Damien Le Moal
2022-06-20 20:07         ` Sergey Shtylyov
2022-06-20 20:08         ` Sergey Shtylyov
  -- strict thread matches above, loose matches on Subject: below --
2022-09-19  2:40 Stephen Rothwell
2022-09-19  8:01 ` Damien Le Moal
2022-09-19 23:56 ` Damien Le Moal
2022-09-20 19:25   ` Serge Semin
2018-03-20  4:57 Stephen Rothwell
2018-03-20  4:59 ` Richard Zhu
2018-02-13  3:04 Stephen Rothwell
2018-02-13 14:42 ` Tejun Heo
2018-01-18  4:26 Stephen Rothwell
2017-06-28  5:51 Stephen Rothwell
2017-06-28 18:28 ` Tejun Heo
2012-02-13  5:27 Stephen Rothwell
2012-02-24  3:08 ` Stephen Rothwell
2012-02-24  4:06   ` Jeff Garzik
2012-02-24  4:14     ` Stephen Rothwell
2012-02-24 12:22       ` Stephen Rothwell
2012-02-24 17:01         ` Jeff Garzik

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=0e293be4-ba99-379e-75dc-0ba5cf7793b7@opensource.wdc.com \
    --to=damien.lemoal@opensource$(echo .)wdc.com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=s.shtylyov@omp$(echo .)ru \
    --cc=sfr@canb$(echo .)auug.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox