public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
From: Ashish Kalra <ashish.kalra@amd.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
	Borislav Petkov <bp@suse.de>,
	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: Fri, 11 Dec 2020 02:47:24 +0000	[thread overview]
Message-ID: <20201211024724.GA29231@ashkalra_ubuntu_server> (raw)
In-Reply-To: <20201211130208.2cf1e813@canb.auug.org.au>

Posted a fix for this.

Thanks,
Ashish

On Fri, Dec 11, 2020 at 01:02:08PM +1100, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the swiotlb tree, today's linux-next build (arm
> multi_v7_defconfig) produced this warning:
> 
> In file included from arch/arm/mm/init.c:24:
> include/linux/swiotlb.h:108:13: warning: 'swiotlb_adjust_size' defined but not used [-Wunused-function]
>   108 | static void swiotlb_adjust_size(unsigned long new_size)
>       |             ^~~~~~~~~~~~~~~~~~~
> In file included from include/linux/dma-direct.h:13,
>                  from arch/arm/mm/dma-mapping.c:17:
> include/linux/swiotlb.h:108:13: warning: 'swiotlb_adjust_size' defined but not used [-Wunused-function]
>   108 | static void swiotlb_adjust_size(unsigned long new_size)
>       |             ^~~~~~~~~~~~~~~~~~~
> In file included from include/linux/dma-direct.h:13,
>                  from kernel/dma/direct.h:10,
>                  from kernel/dma/mapping.c:17:
> include/linux/swiotlb.h:108:13: warning: 'swiotlb_adjust_size' defined but not used [-Wunused-function]
>   108 | static void swiotlb_adjust_size(unsigned long new_size)
>       |             ^~~~~~~~~~~~~~~~~~~
> In file included from include/linux/dma-direct.h:13,
>                  from kernel/dma/coherent.c:10:
> include/linux/swiotlb.h:108:13: warning: 'swiotlb_adjust_size' defined but not used [-Wunused-function]
>   108 | static void swiotlb_adjust_size(unsigned long new_size)
>       |             ^~~~~~~~~~~~~~~~~~~
> In file included from include/linux/dma-direct.h:13,
>                  from kernel/dma/direct.h:10,
>                  from kernel/dma/direct.c:16:
> include/linux/swiotlb.h:108:13: warning: 'swiotlb_adjust_size' defined but not used [-Wunused-function]
>   108 | static void swiotlb_adjust_size(unsigned long new_size)
>       |             ^~~~~~~~~~~~~~~~~~~
> In file included from include/linux/dma-direct.h:13,
>                  from drivers/of/device.c:8:
> include/linux/swiotlb.h:108:13: warning: 'swiotlb_adjust_size' defined but not used [-Wunused-function]
>   108 | static void swiotlb_adjust_size(unsigned long new_size)
>       |             ^~~~~~~~~~~~~~~~~~~
> In file included from include/linux/dma-direct.h:13,
>                  from drivers/remoteproc/remoteproc_core.c:27:
> include/linux/swiotlb.h:108:13: warning: 'swiotlb_adjust_size' defined but not used [-Wunused-function]
>   108 | static void swiotlb_adjust_size(unsigned long new_size)
>       |             ^~~~~~~~~~~~~~~~~~~
> In file included from include/linux/dma-direct.h:13,
>                  from drivers/of/address.c:16:
> include/linux/swiotlb.h:108:13: warning: 'swiotlb_adjust_size' defined but not used [-Wunused-function]
>   108 | static void swiotlb_adjust_size(unsigned long new_size)
>       |             ^~~~~~~~~~~~~~~~~~~
> In file included from drivers/mmc/host/sdhci.c:23:
> include/linux/swiotlb.h:108:13: warning: 'swiotlb_adjust_size' defined but not used [-Wunused-function]
>   108 | static void swiotlb_adjust_size(unsigned long new_size)
>       |             ^~~~~~~~~~~~~~~~~~~
> In file included from drivers/gpu/drm/nouveau/nouveau_bo.c:31:
> include/linux/swiotlb.h:108:13: warning: 'swiotlb_adjust_size' defined but not used [-Wunused-function]
>   108 | static void swiotlb_adjust_size(unsigned long new_size)
>       |             ^~~~~~~~~~~~~~~~~~~
> 
> Introduced by commit
> 
>   79f748d1bdb6 ("x86,swiotlb: Adjust SWIOTLB bounce buffer size for SEV guests")
> 
> Forgot the "inline" :-(
> -- 
> Cheers,
> Stephen Rothwell



  reply	other threads:[~2020-12-11  2:49 UTC|newest]

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

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=20201211024724.GA29231@ashkalra_ubuntu_server \
    --to=ashish.kalra@amd.com \
    --cc=bp@suse.de \
    --cc=konrad.wilk@oracle.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