public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Bumyong Lee <bumyong.lee@samsung.com>,
	Chanho Park <chanho61.park@samsung.com>,
	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 swiotlb tree
Date: Tue, 15 Jun 2021 22:43:16 -0400	[thread overview]
Message-ID: <YMllRMwHdddl8ffl@fedora> (raw)
In-Reply-To: <20210616113835.0f0d4952@canb.auug.org.au>

On Wed, Jun 16, 2021 at 11:38:35AM +1000, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the swiotlb tree, today's linux-next build (powerpc
> ppc64_defconfig and x86_64 allmodconfig) produced this warning:
> 
> In file included from arch/powerpc/include/asm/bug.h:109,
>                  from include/linux/bug.h:5,
>                  from arch/powerpc/include/asm/mmu.h:147,
>                  from arch/powerpc/include/asm/lppaca.h:46,
>                  from arch/powerpc/include/asm/paca.h:17,
>                  from arch/powerpc/include/asm/current.h:13,
>                  from include/linux/sched.h:12,
>                  from include/linux/ratelimit.h:6,
>                  from include/linux/dev_printk.h:16,
>                  from include/linux/device.h:15,
>                  from include/linux/dma-mapping.h:7,
>                  from include/linux/dma-direct.h:9,
>                  from kernel/dma/swiotlb.c:24:
> kernel/dma/swiotlb.c: In function 'swiotlb_bounce':
> include/linux/dev_printk.h:242:23: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
>   242 |  WARN_ONCE(condition, "%s %s: " format, \
>       |                       ^~~~~~~~~
> include/asm-generic/bug.h:97:17: note: in definition of macro '__WARN_printf'
>    97 |   __warn_printk(arg);     \
>       |                 ^~~
> include/asm-generic/bug.h:161:3: note: in expansion of macro 'WARN'
>   161 |   WARN(1, format);    \
>       |   ^~~~
> include/linux/dev_printk.h:242:2: note: in expansion of macro 'WARN_ONCE'
>   242 |  WARN_ONCE(condition, "%s %s: " format, \
>       |  ^~~~~~~~~
> kernel/dma/swiotlb.c:355:3: note: in expansion of macro 'dev_WARN_ONCE'
>   355 |   dev_WARN_ONCE(dev, 1,
>       |   ^~~~~~~~~~~~~
> 
> Introduced by commit
> 
>   17eb5dcf1f15 ("swiotlb: manipulate orig_addr when tlb_addr has offset")

Fixed it up and should be OK in the next run. Thanks!
> 
> -- 
> Cheers,
> Stephen Rothwell



  reply	other threads:[~2021-06-16  2:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-16  1:38 linux-next: build warning after merge of the swiotlb tree Stephen Rothwell
2021-06-16  2:43 ` Konrad Rzeszutek Wilk [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-12-11  2:02 Stephen Rothwell
2020-12-11  2:47 ` Ashish Kalra

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=YMllRMwHdddl8ffl@fedora \
    --to=konrad.wilk@oracle.com \
    --cc=bumyong.lee@samsung.com \
    --cc=chanho61.park@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=sfr@canb.auug.org.au \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox