tree:
git://anongit.freedesktop.org/drm/drm-misc for-linux-next
head: 4dbafbd30aefcc1e56086875c5aa940490c0a9c3
commit: 4dbafbd30aefcc1e56086875c5aa940490c0a9c3 [1/1] drm/nouveu: fix swiotlb include
config: alpha-allmodconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add drm-drm-misc
git://anongit.freedesktop.org/drm/drm-misc
git fetch --no-tags drm-drm-misc for-linux-next
git checkout 4dbafbd30aefcc1e56086875c5aa940490c0a9c3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/nouveau/nouveau_ttm.c:26:
include/linux/swiotlb.h: In function 'swiotlb_max_mapping_size':
> include/linux/swiotlb.h:98:9: error: 'SIZE_MAX'
undeclared (first use in this function)
98 | return SIZE_MAX;
| ^~~~~~~~
include/linux/swiotlb.h:7:1: note: 'SIZE_MAX' is defined in header
'<stdint.h>'; did you forget to '#include <stdint.h>'?
6 | #include <linux/init.h>
+++ |+#include <stdint.h>
7 | #include <linux/types.h>
include/linux/swiotlb.h:98:9: note: each undeclared identifier is reported only once
for each function it appears in
98 | return SIZE_MAX;
| ^~~~~~~~
vim +/SIZE_MAX +98 include/linux/swiotlb.h
55897af63091ebc Christoph Hellwig 2018-12-03 78
55897af63091ebc Christoph Hellwig 2018-12-03 79 void __init swiotlb_exit(void);
7453c549f5f6485 Konrad Rzeszutek Wilk 2016-12-20 80 unsigned int
swiotlb_max_segment(void);
abe420bfae528c9 Joerg Roedel 2019-02-07 81 size_t
swiotlb_max_mapping_size(struct device *dev);
492366f7b423725 Joerg Roedel 2019-02-07 82 bool is_swiotlb_active(void);
5740afdb68abadc FUJITA Tomonori 2009-11-10 83 #else
55897af63091ebc Christoph Hellwig 2018-12-03 84 #define swiotlb_force
SWIOTLB_NO_FORCE
55897af63091ebc Christoph Hellwig 2018-12-03 85 static inline bool
is_swiotlb_buffer(phys_addr_t paddr)
55897af63091ebc Christoph Hellwig 2018-12-03 86 {
55897af63091ebc Christoph Hellwig 2018-12-03 87 return false;
55897af63091ebc Christoph Hellwig 2018-12-03 88 }
55897af63091ebc Christoph Hellwig 2018-12-03 89 static inline void
swiotlb_exit(void)
55897af63091ebc Christoph Hellwig 2018-12-03 90 {
55897af63091ebc Christoph Hellwig 2018-12-03 91 }
55897af63091ebc Christoph Hellwig 2018-12-03 92 static inline unsigned int
swiotlb_max_segment(void)
55897af63091ebc Christoph Hellwig 2018-12-03 93 {
55897af63091ebc Christoph Hellwig 2018-12-03 94 return 0;
55897af63091ebc Christoph Hellwig 2018-12-03 95 }
abe420bfae528c9 Joerg Roedel 2019-02-07 96 static inline size_t
swiotlb_max_mapping_size(struct device *dev)
abe420bfae528c9 Joerg Roedel 2019-02-07 97 {
abe420bfae528c9 Joerg Roedel 2019-02-07 @98 return SIZE_MAX;
abe420bfae528c9 Joerg Roedel 2019-02-07 99 }
492366f7b423725 Joerg Roedel 2019-02-07 100
:::::: The code at line 98 was first introduced by commit
:::::: abe420bfae528c92bd8cc5ecb62dc95672b1fd6f swiotlb: Introduce
swiotlb_max_mapping_size()
:::::: TO: Joerg Roedel <jroedel(a)suse.de>
:::::: CC: Michael S. Tsirkin <mst(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org