lkml.org 
[lkml]   [2020]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectlinux-next: build warning after merge of the swiotlb tree
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
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2020-12-11 03:06    [W:0.090 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site