arch/m68k/68000/dragen2.c:73:16: error: 'screen_bits' undeclared
by kernel test robot
Hi Arnd,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f09eacca59d27efc15001795c33dbc78ca070732
commit: a734bbf694270dca8594a5c33375867dc31503f5 m68k: m68328: move platform code to separate files
date: 6 months ago
config: m68k-randconfig-r006-20210610 (attached as .config)
compiler: m68k-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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout a734bbf694270dca8594a5c33375867dc31503f5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
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 >>):
arch/m68k/68000/dragen2.c:38:13: warning: no previous prototype for 'init_dragen2' [-Wmissing-prototypes]
38 | void __init init_dragen2(char *command, int size)
| ^~~~~~~~~~~~
arch/m68k/68000/dragen2.c: In function 'init_dragen2':
>> arch/m68k/68000/dragen2.c:73:16: error: 'screen_bits' undeclared (first use in this function)
73 | LSSA = (long) screen_bits;
| ^~~~~~~~~~~
arch/m68k/68000/dragen2.c:73:16: note: each undeclared identifier is reported only once for each function it appears in
vim +/screen_bits +73 arch/m68k/68000/dragen2.c
45
46 /* CSGB Init */
47 CSGBB = 0x4000;
48 CSB = 0x1a1;
49
50 /* CS8900 init */
51 /* PK3: hardware sleep function pin, active low */
52 PKSEL |= PK(3); /* select pin as I/O */
53 PKDIR |= PK(3); /* select pin as output */
54 PKDATA |= PK(3); /* set pin high */
55
56 /* PF5: hardware reset function pin, active high */
57 PFSEL |= PF(5); /* select pin as I/O */
58 PFDIR |= PF(5); /* select pin as output */
59 PFDATA &= ~PF(5); /* set pin low */
60
61 /* cs8900 hardware reset */
62 PFDATA |= PF(5);
63 { int i; for (i = 0; i < 32000; ++i); }
64 PFDATA &= ~PF(5);
65
66 /* INT1 enable (cs8900 IRQ) */
67 PDPOL &= ~PD(1); /* active high signal */
68 PDIQEG &= ~PD(1);
69 PDIRQEN |= PD(1); /* IRQ enabled */
70
71 #ifdef CONFIG_INIT_LCD
72 /* initialize LCD controller */
> 73 LSSA = (long) screen_bits;
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[intel-linux-intel-lts:5.4/yocto 415/1142] drivers/misc/xlink-usb/local_host/mxlk_interface.c:110:20: warning: passing argument 1 of 'vpu_close1' makes integer from pointer without a cast
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 5e9e6d86fe729cf81e8a0df5c53d326b9f2ec791 [415/1142] xlink-usb: XLink USB Remote and Local Host driver
config: m68k-allmodconfig (attached as .config)
compiler: m68k-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
# https://github.com/intel/linux-intel-lts/commit/5e9e6d86fe729cf81e8a0df5c...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 5e9e6d86fe729cf81e8a0df5c53d326b9f2ec791
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/m68k/include/asm/io_mm.h:25,
from arch/m68k/include/asm/io.h:8,
from include/linux/scatterlist.h:9,
from include/linux/usb/gadget.h:24,
from include/linux/usb/composite.h:41,
from drivers/misc/xlink-usb/local_host/u_xlink.h:12,
from drivers/misc/xlink-usb/local_host/mxlk_interface.c:13:
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsb':
arch/m68k/include/asm/raw_io.h:83:7: warning: variable '__w' set but not used [-Wunused-but-set-variable]
83 | ({u8 __w, __v = (b); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:430:3: note: in expansion of macro 'rom_out_8'
430 | rom_out_8(port, *buf++);
| ^~~~~~~~~
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw':
arch/m68k/include/asm/raw_io.h:86:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
86 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:448:3: note: in expansion of macro 'rom_out_be16'
448 | rom_out_be16(port, *buf++);
| ^~~~~~~~~~~~
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw_swapw':
arch/m68k/include/asm/raw_io.h:90:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
90 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:466:3: note: in expansion of macro 'rom_out_le16'
466 | rom_out_le16(port, *buf++);
| ^~~~~~~~~~~~
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:9,
from drivers/misc/xlink-usb/local_host/mxlk_interface.c:11:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
drivers/misc/xlink-usb/local_host/mxlk_interface.c: In function 'xlink_usb_write':
>> drivers/misc/xlink-usb/local_host/mxlk_interface.c:110:20: warning: passing argument 1 of 'vpu_close1' makes integer from pointer without a cast [-Wint-conversion]
110 | return vpu_close1(data);
| ^~~~
| |
| void *
In file included from drivers/misc/xlink-usb/local_host/mxlk_interface.c:13:
drivers/misc/xlink-usb/local_host/u_xlink.h:75:20: note: expected 'int' but argument is of type 'void *'
75 | int vpu_close1(int size);
| ~~~~^~~~
--
In file included from arch/m68k/include/asm/io_mm.h:25,
from arch/m68k/include/asm/io.h:8,
from include/linux/scatterlist.h:9,
from include/linux/kfifo.h:42,
from drivers/misc/xlink-usb/local_host/u_xlink.c:32:
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsb':
arch/m68k/include/asm/raw_io.h:83:7: warning: variable '__w' set but not used [-Wunused-but-set-variable]
83 | ({u8 __w, __v = (b); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:430:3: note: in expansion of macro 'rom_out_8'
430 | rom_out_8(port, *buf++);
| ^~~~~~~~~
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw':
arch/m68k/include/asm/raw_io.h:86:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
86 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:448:3: note: in expansion of macro 'rom_out_be16'
448 | rom_out_be16(port, *buf++);
| ^~~~~~~~~~~~
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw_swapw':
arch/m68k/include/asm/raw_io.h:90:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
90 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:466:3: note: in expansion of macro 'rom_out_le16'
466 | rom_out_le16(port, *buf++);
| ^~~~~~~~~~~~
In file included from include/linux/kernel.h:11,
from drivers/misc/xlink-usb/local_host/u_xlink.c:20:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
drivers/misc/xlink-usb/local_host/u_xlink.c: In function 'vpu_rx_push':
>> drivers/misc/xlink-usb/local_host/u_xlink.c:297:9: warning: variable 'disconnect' set but not used [-Wunused-but-set-variable]
297 | bool disconnect = false;
| ^~~~~~~~~~
In file included from drivers/misc/xlink-usb/local_host/u_xlink.c:32:
drivers/misc/xlink-usb/local_host/u_xlink.c: In function 'vpu_write1':
include/linux/kfifo.h:181:47: warning: statement with no effect [-Wunused-value]
181 | #define kfifo_initialized(fifo) ((fifo)->kfifo.mask)
| ~~~~~~~~~~~~~~^~~~~~
drivers/misc/xlink-usb/local_host/u_xlink.c:791:2: note: in expansion of macro 'kfifo_initialized'
791 | kfifo_initialized(&port->port_write_buf);
| ^~~~~~~~~~~~~~~~~
>> drivers/misc/xlink-usb/local_host/u_xlink.c:820:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
820 | unsigned long flags;
| ^~~~~~~~
drivers/misc/xlink-usb/local_host/u_xlink.c:823:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
823 | int room = 0;
| ^~~
drivers/misc/xlink-usb/local_host/u_xlink.c:836:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
836 | struct list_head *pool = &port->write_pool;
| ^~~~~~
drivers/misc/xlink-usb/local_host/u_xlink.c:840:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
840 | bool do_tty_wake = false;
| ^~~~
>> drivers/misc/xlink-usb/local_host/u_xlink.c:840:9: warning: variable 'do_tty_wake' set but not used [-Wunused-but-set-variable]
840 | bool do_tty_wake = false;
| ^~~~~~~~~~~
>> drivers/misc/xlink-usb/local_host/u_xlink.c:823:7: warning: variable 'room' set but not used [-Wunused-but-set-variable]
823 | int room = 0;
| ^~~~
drivers/misc/xlink-usb/local_host/u_xlink.c: In function 'vpu_read':
drivers/misc/xlink-usb/local_host/u_xlink.c:970:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
970 | struct list_head *pool = &port->read_pool;
| ^~~~~~
drivers/misc/xlink-usb/local_host/u_xlink.c:976:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
976 | size_t bcopy;
| ^~~~~~
drivers/misc/xlink-usb/local_host/u_xlink.c: In function 'vpu_read_swid':
drivers/misc/xlink-usb/local_host/u_xlink.c:992:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
992 | struct list_head *pool = &port->read_pool;
| ^~~~~~
--
In file included from arch/m68k/include/asm/io_mm.h:25,
from arch/m68k/include/asm/io.h:8,
from include/linux/scatterlist.h:9,
from include/linux/usb/gadget.h:24,
from include/linux/usb/composite.h:41,
from drivers/misc/xlink-usb/local_host/u_xlink.h:12,
from drivers/misc/xlink-usb/local_host/f_vpuusb.c:25:
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsb':
arch/m68k/include/asm/raw_io.h:83:7: warning: variable '__w' set but not used [-Wunused-but-set-variable]
83 | ({u8 __w, __v = (b); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:430:3: note: in expansion of macro 'rom_out_8'
430 | rom_out_8(port, *buf++);
| ^~~~~~~~~
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw':
arch/m68k/include/asm/raw_io.h:86:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
86 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:448:3: note: in expansion of macro 'rom_out_be16'
448 | rom_out_be16(port, *buf++);
| ^~~~~~~~~~~~
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw_swapw':
arch/m68k/include/asm/raw_io.h:90:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
90 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:466:3: note: in expansion of macro 'rom_out_le16'
466 | rom_out_le16(port, *buf++);
| ^~~~~~~~~~~~
In file included from include/asm-generic/bug.h:5,
from arch/m68k/include/asm/bug.h:32,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from drivers/misc/xlink-usb/local_host/f_vpuusb.c:20:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
drivers/misc/xlink-usb/local_host/f_vpuusb.c: At top level:
>> drivers/misc/xlink-usb/local_host/f_vpuusb.c:349:5: warning: no previous prototype for 'mxlk_trigger_reset' [-Wmissing-prototypes]
349 | int mxlk_trigger_reset(void *arg)
| ^~~~~~~~~~~~~~~~~~
>> drivers/misc/xlink-usb/local_host/f_vpuusb.c:377:5: warning: no previous prototype for 'vpu_setup' [-Wmissing-prototypes]
377 | int vpu_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl)
| ^~~~~~~~~
>> drivers/misc/xlink-usb/local_host/f_vpuusb.c:525:5: warning: no previous prototype for 'vpu_cdc_notify' [-Wmissing-prototypes]
525 | int vpu_cdc_notify(struct f_acm *acm, u8 type, u16 value,
| ^~~~~~~~~~~~~~
>> drivers/misc/xlink-usb/local_host/f_vpuusb.c:562:5: warning: no previous prototype for 'vpu_notify_serial_state' [-Wmissing-prototypes]
562 | int vpu_notify_serial_state(struct f_acm *acm)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/xlink-usb/local_host/f_vpuusb.c: In function 'keembay_usb_irq_handler':
>> drivers/misc/xlink-usb/local_host/f_vpuusb.c:358:14: warning: 'data' is used uninitialized in this function [-Wuninitialized]
358 | int *data = vpu_read_swid(data);
| ^~~~~~~~~~~~~~~~~~~
--
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c: In function 'usb_get_device_status_by_id':
>> drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:615:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
615 | u32 num = 0;
| ^~~
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c: At top level:
>> drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:631:5: warning: no previous prototype for 'usb_interrupt' [-Wmissing-prototypes]
631 | int usb_interrupt(struct usb_device *usb_dev, unsigned int pipe,
| ^~~~~~~~~~~~~
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c: In function 'usb_interrupt':
>> drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:635:28: warning: variable 'ep' set but not used [-Wunused-but-set-variable]
635 | struct usb_host_endpoint *ep;
| ^~
>> drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:634:14: warning: variable 'urb' set but not used [-Wunused-but-set-variable]
634 | struct urb *urb;
| ^~~
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c: In function 'usb_device_reset':
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:662:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
662 | struct usb_interface *data_interface = acm->data;
| ^~~~~~
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:658:28: warning: variable 'ep' set but not used [-Wunused-but-set-variable]
658 | struct usb_host_endpoint *ep;
| ^~
>> drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:653:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
653 | int ret;
| ^~~
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c: In function 'vpu_write_host':
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:749:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
749 | int val = ACM_CTRL_DTR | ACM_CTRL_RTS;
| ^~~
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:754:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
754 | int count = len;
| ^~~
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c: In function 'vpu_write_reset_host':
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:848:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
848 | const char *buf = 0;
| ^~~~~
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c: At top level:
>> drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:884:6: warning: no previous prototype for 'vpu_write_swid' [-Wmissing-prototypes]
884 | void vpu_write_swid(struct acm *acm, int *buf, int len)
| ^~~~~~~~~~~~~~
>> drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:1013:6: warning: no previous prototype for 'vpu_close_swid' [-Wmissing-prototypes]
1013 | void vpu_close_swid(struct acm *acm, int len)
| ^~~~~~~~~~~~~~
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c: In function 'vpu_read_host':
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:1066:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
1066 | struct urb *urb;
| ^~~~~~
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:1096:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
1096 | int val = ACM_CTRL_DTR | ACM_CTRL_RTS;
| ^~~
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c: In function 'vpu_acm_probe':
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:1365:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
1365 | struct usb_device *udev = interface_to_usbdev(intf);
| ^~~~~~
>> drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:1532:22: warning: passing argument 2 of 'vpu_write_swid' makes pointer from integer without a cast [-Wint-conversion]
1532 | vpu_write_swid(acm, devnum, size);
| ^~~~~~
| |
| int
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:884:43: note: expected 'int *' but argument is of type 'int'
884 | void vpu_write_swid(struct acm *acm, int *buf, int len)
| ~~~~~^~~
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:1534:22: warning: passing argument 2 of 'vpu_write_swid' makes pointer from integer without a cast [-Wint-conversion]
1534 | vpu_write_swid(acm, busnum, size);
| ^~~~~~
| |
| int
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:884:43: note: expected 'int *' but argument is of type 'int'
884 | void vpu_write_swid(struct acm *acm, int *buf, int len)
| ~~~~~^~~
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c: In function 'vpu_acm_init':
>> drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:1727:6: warning: variable 'retval' set but not used [-Wunused-but-set-variable]
1727 | int retval;
| ^~~~~~
At top level:
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.c:595:20: warning: 'usb_get_device_by_name' defined but not used [-Wunused-function]
595 | static struct acm *usb_get_device_by_name(const char *name)
| ^~~~~~~~~~~~~~~~~~~~~~
--
drivers/misc/xlink-usb/remote_host/mxlk_interface_host.c: In function 'xlink_usb_write':
>> drivers/misc/xlink-usb/remote_host/mxlk_interface_host.c:40:38: warning: passing argument 2 of 'vpu_close_host' makes integer from pointer without a cast [-Wint-conversion]
40 | return vpu_close_host(sw_device_id, size);
| ^~~~
| |
| size_t * const {aka unsigned int * const}
In file included from drivers/misc/xlink-usb/remote_host/mxlk_interface_host.c:22:
drivers/misc/xlink-usb/remote_host/vpu-cdc-acm.h:59:32: note: expected 'int' but argument is of type 'size_t * const' {aka 'unsigned int * const'}
59 | int vpu_close_host(u32 id, int len);
| ~~~~^~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for NEED_MULTIPLE_NODES
Depends on DISCONTIGMEM || NUMA
Selected by
- SINGLE_MEMORY_CHUNK && MMU
vim +/vpu_close1 +110 drivers/misc/xlink-usb/local_host/mxlk_interface.c
97
98 int xlink_usb_write(uint32_t sw_device_id, void *data, size_t *const size,
99 uint32_t timeout)
100 {
101 int mxlk;
102 int rc;
103
104 mxlk = usb_get_by_id(sw_device_id);
105 if (!mxlk)
106 return -ENODEV;
107 rc = vpu_write1(data, size, timeout);
108 if (rc < 0)
109 return rc;
> 110 return vpu_close1(data);
111 }
112 EXPORT_SYMBOL(xlink_usb_write);
113
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[kvm:queue 155/222] arch/x86/kvm/svm/svm_onhyperv.h:49:34: error: 'hv_remote_flush_tlb' undeclared; did you mean 'svm_flush_tlb'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head: c1dc20e254b421a2463da7f053b37d822788224a
commit: 1fb7f06d81d209b3ad57a9720808ccaf1c9d55f6 [155/222] KVM: SVM: hyper-v: Remote TLB flush for SVM
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/virt/kvm/kvm.git/commit/?id=1fb7f06d81d209...
git remote add kvm https://git.kernel.org/pub/scm/virt/kvm/kvm.git
git fetch --no-tags kvm queue
git checkout 1fb7f06d81d209b3ad57a9720808ccaf1c9d55f6
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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 arch/x86/kvm/svm/svm.c:47:
arch/x86/kvm/svm/svm_onhyperv.h: In function 'svm_hv_hardware_setup':
>> arch/x86/kvm/svm/svm_onhyperv.h:49:34: error: 'hv_remote_flush_tlb' undeclared (first use in this function); did you mean 'svm_flush_tlb'?
49 | svm_x86_ops.tlb_remote_flush = hv_remote_flush_tlb;
| ^~~~~~~~~~~~~~~~~~~
| svm_flush_tlb
arch/x86/kvm/svm/svm_onhyperv.h:49:34: note: each undeclared identifier is reported only once for each function it appears in
>> arch/x86/kvm/svm/svm_onhyperv.h:51:5: error: 'hv_remote_flush_tlb_with_range' undeclared (first use in this function)
51 | hv_remote_flush_tlb_with_range;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +49 arch/x86/kvm/svm/svm_onhyperv.h
43
44 static inline void svm_hv_hardware_setup(void)
45 {
46 if (npt_enabled &&
47 ms_hyperv.nested_features & HV_X64_NESTED_ENLIGHTENED_TLB) {
48 pr_info("kvm: Hyper-V enlightened NPT TLB flush enabled\n");
> 49 svm_x86_ops.tlb_remote_flush = hv_remote_flush_tlb;
50 svm_x86_ops.tlb_remote_flush_with_range =
> 51 hv_remote_flush_tlb_with_range;
52 }
53 }
54
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[intel-linux-intel-lts:5.4/yocto 82/1142] drivers/gpu/drm/kmb/kmb_dsi.c:1698:6: warning: no previous prototype for 'connect_lcd_to_mipi'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 00dead639798facd88b7e8c26614a49ec2e15cd9 [82/1142] drm/kmb: Changes for LCD to Mipi
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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
# https://github.com/intel/linux-intel-lts/commit/00dead639798facd88b7e8c26...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 00dead639798facd88b7e8c26614a49ec2e15cd9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/kmb/kmb_dsi.c:427:5: warning: no previous prototype for 'mipi_get_datatype_params' [-Wmissing-prototypes]
427 | u32 mipi_get_datatype_params(u32 data_type, u32 data_mode,
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/kmb/kmb_dsi.c:930:5: warning: no previous prototype for 'dphy_read_testcode' [-Wmissing-prototypes]
930 | int dphy_read_testcode(struct kmb_drm_private *dev_p, int dphy_sel,
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/kmb/kmb_dsi.c: In function 'wait_init_done':
drivers/gpu/drm/kmb/kmb_dsi.c:1563:13: warning: variable 'val' set but not used [-Wunused-but-set-variable]
1563 | int i = 0, val;
| ^~~
drivers/gpu/drm/kmb/kmb_dsi.c: At top level:
>> drivers/gpu/drm/kmb/kmb_dsi.c:1698:6: warning: no previous prototype for 'connect_lcd_to_mipi' [-Wmissing-prototypes]
1698 | void connect_lcd_to_mipi(struct kmb_drm_private *dev_p)
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/kmb/kmb_dsi.c:1721:5: warning: no previous prototype for 'kmb_kernel_read' [-Wmissing-prototypes]
1721 | int kmb_kernel_read(struct file *file, loff_t offset,
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/kmb/kmb_dsi.c: In function 'kmb_dsi_init':
drivers/gpu/drm/kmb/kmb_dsi.c:1771:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
1771 | int ret = 0;
| ^~~
vim +/connect_lcd_to_mipi +1698 drivers/gpu/drm/kmb/kmb_dsi.c
1697
> 1698 void connect_lcd_to_mipi(struct kmb_drm_private *dev_p)
1699 {
1700 #ifdef LCD_TEST
1701 /*connect lcd to mipi */
1702 /*DISABLE MIPI->CIF CONNECTION*/
1703 kmb_write_msscam(dev_p, MSS_MIPI_CIF_CFG, 0);
1704 /*ENABLE LCD->MIPI CONNECTION */
1705 kmb_write_msscam(dev_p, MSS_LCD_MIPI_CFG, 1);
1706 /*DISABLE LCD->CIF LOOPBACK */
1707 kmb_write_msscam(dev_p, MSS_LOOPBACK_CFG, 0);
1708 #endif
1709 }
1710
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[linux-next:master 8465/8758] arch/arc/kernel/signal.c:101:21: error: 'struct pt_regs' has no member named 'r30'; did you mean 'r10'?
by kernel test robot
Hi Vineet,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 50a1180e6cf12462bbbf3f2ebc5b93094ed9abee
commit: 98ec2edf58c820ef953fbdfcf98d706aa804b822 [8465/8758] ARCv2: save ABI registers across signal handling
config: arc-randconfig-r001-20210610 (attached as .config)
compiler: arceb-elf-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
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 98ec2edf58c820ef953fbdfcf98d706aa804b822
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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 >>):
arch/arc/kernel/signal.c: In function 'stash_usr_regs':
>> arch/arc/kernel/signal.c:101:21: error: 'struct pt_regs' has no member named 'r30'; did you mean 'r10'?
101 | v2abi.r30 = regs->r30;
| ^~~
| r10
arch/arc/kernel/signal.c: In function 'restore_usr_regs':
arch/arc/kernel/signal.c:134:9: error: 'struct pt_regs' has no member named 'r30'; did you mean 'r10'?
134 | regs->r30 = v2abi.r30;
| ^~~
| r10
arch/arc/kernel/signal.c: At top level:
arch/arc/kernel/signal.c:387:6: warning: no previous prototype for 'do_signal' [-Wmissing-prototypes]
387 | void do_signal(struct pt_regs *regs)
| ^~~~~~~~~
arch/arc/kernel/signal.c:420:6: warning: no previous prototype for 'do_notify_resume' [-Wmissing-prototypes]
420 | void do_notify_resume(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~
vim +101 arch/arc/kernel/signal.c
63
64 static int
65 stash_usr_regs(struct rt_sigframe __user *sf, struct pt_regs *regs,
66 sigset_t *set)
67 {
68 int err;
69 struct user_regs_struct uregs;
70
71 uregs.scratch.bta = regs->bta;
72 uregs.scratch.lp_start = regs->lp_start;
73 uregs.scratch.lp_end = regs->lp_end;
74 uregs.scratch.lp_count = regs->lp_count;
75 uregs.scratch.status32 = regs->status32;
76 uregs.scratch.ret = regs->ret;
77 uregs.scratch.blink = regs->blink;
78 uregs.scratch.fp = regs->fp;
79 uregs.scratch.gp = regs->r26;
80 uregs.scratch.r12 = regs->r12;
81 uregs.scratch.r11 = regs->r11;
82 uregs.scratch.r10 = regs->r10;
83 uregs.scratch.r9 = regs->r9;
84 uregs.scratch.r8 = regs->r8;
85 uregs.scratch.r7 = regs->r7;
86 uregs.scratch.r6 = regs->r6;
87 uregs.scratch.r5 = regs->r5;
88 uregs.scratch.r4 = regs->r4;
89 uregs.scratch.r3 = regs->r3;
90 uregs.scratch.r2 = regs->r2;
91 uregs.scratch.r1 = regs->r1;
92 uregs.scratch.r0 = regs->r0;
93 uregs.scratch.sp = regs->sp;
94
95 err = __copy_to_user(&(sf->uc.uc_mcontext.regs.scratch), &uregs.scratch,
96 sizeof(sf->uc.uc_mcontext.regs.scratch));
97
98 if (is_isa_arcv2()) {
99 struct user_regs_arcv2 v2abi;
100
> 101 v2abi.r30 = regs->r30;
102 #ifdef CONFIG_ARC_HAS_ACCL_REGS
103 v2abi.r58 = regs->r58;
104 v2abi.r59 = regs->r59;
105 #else
106 v2abi.r58 = v2abi.r59 = 0;
107 #endif
108 err |= __copy_to_user(&(sf->uc.uc_mcontext.v2abi), &v2abi,
109 sizeof(sf->uc.uc_mcontext.v2abi));
110 }
111
112 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(sigset_t));
113
114 return err ? -EFAULT : 0;
115 }
116
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[kvm:queue 153/222] arch/x86/kvm/vmx/vmx.c:7751:34: error: 'hv_remote_flush_tlb' undeclared
by kernel test robot
tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head: c1dc20e254b421a2463da7f053b37d822788224a
commit: 6054a0c61054aca43fcaba98e2e3f4f6c83dc78e [153/222] KVM: x86: hyper-v: Move the remote TLB flush logic out of vmx
config: x86_64-rhel-8.3 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/virt/kvm/kvm.git/commit/?id=6054a0c61054ac...
git remote add kvm https://git.kernel.org/pub/scm/virt/kvm/kvm.git
git fetch --no-tags kvm queue
git checkout 6054a0c61054aca43fcaba98e2e3f4f6c83dc78e
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
>> arch/x86/kvm/kvm_onhyperv.c:31:5: warning: no previous prototype for 'hv_remote_flush_tlb_with_range' [-Wmissing-prototypes]
31 | int hv_remote_flush_tlb_with_range(struct kvm *kvm,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/x86/kvm/kvm_onhyperv.c:89:5: warning: no previous prototype for 'hv_remote_flush_tlb' [-Wmissing-prototypes]
89 | int hv_remote_flush_tlb(struct kvm *kvm)
| ^~~~~~~~~~~~~~~~~~~
--
arch/x86/kvm/vmx/vmx.c: In function 'hardware_setup':
>> arch/x86/kvm/vmx/vmx.c:7751:34: error: 'hv_remote_flush_tlb' undeclared (first use in this function)
7751 | vmx_x86_ops.tlb_remote_flush = hv_remote_flush_tlb;
| ^~~~~~~~~~~~~~~~~~~
arch/x86/kvm/vmx/vmx.c:7751:34: note: each undeclared identifier is reported only once for each function it appears in
>> arch/x86/kvm/vmx/vmx.c:7753:5: error: 'hv_remote_flush_tlb_with_range' undeclared (first use in this function)
7753 | hv_remote_flush_tlb_with_range;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/hv_remote_flush_tlb +7751 arch/x86/kvm/vmx/vmx.c
b6194b94a2ca4a Sean Christopherson 2021-05-04 7688
a3203381ca95dc Sean Christopherson 2018-12-03 7689 static __init int hardware_setup(void)
a3203381ca95dc Sean Christopherson 2018-12-03 7690 {
a3203381ca95dc Sean Christopherson 2018-12-03 7691 unsigned long host_bndcfgs;
2342080cd6752f Sean Christopherson 2019-04-19 7692 struct desc_ptr dt;
b6194b94a2ca4a Sean Christopherson 2021-05-04 7693 int r, ept_lpage_level;
a3203381ca95dc Sean Christopherson 2018-12-03 7694
2342080cd6752f Sean Christopherson 2019-04-19 7695 store_idt(&dt);
2342080cd6752f Sean Christopherson 2019-04-19 7696 host_idt_base = dt.address;
2342080cd6752f Sean Christopherson 2019-04-19 7697
b6194b94a2ca4a Sean Christopherson 2021-05-04 7698 vmx_setup_user_return_msrs();
a3203381ca95dc Sean Christopherson 2018-12-03 7699
a3203381ca95dc Sean Christopherson 2018-12-03 7700 if (setup_vmcs_config(&vmcs_config, &vmx_capability) < 0)
a3203381ca95dc Sean Christopherson 2018-12-03 7701 return -EIO;
a3203381ca95dc Sean Christopherson 2018-12-03 7702
a3203381ca95dc Sean Christopherson 2018-12-03 7703 if (boot_cpu_has(X86_FEATURE_NX))
a3203381ca95dc Sean Christopherson 2018-12-03 7704 kvm_enable_efer_bits(EFER_NX);
a3203381ca95dc Sean Christopherson 2018-12-03 7705
a3203381ca95dc Sean Christopherson 2018-12-03 7706 if (boot_cpu_has(X86_FEATURE_MPX)) {
a3203381ca95dc Sean Christopherson 2018-12-03 7707 rdmsrl(MSR_IA32_BNDCFGS, host_bndcfgs);
a3203381ca95dc Sean Christopherson 2018-12-03 7708 WARN_ONCE(host_bndcfgs, "KVM: BNDCFGS in host will be lost");
a3203381ca95dc Sean Christopherson 2018-12-03 7709 }
a3203381ca95dc Sean Christopherson 2018-12-03 7710
7f5581f5929849 Sean Christopherson 2020-03-02 7711 if (!cpu_has_vmx_mpx())
cfc481810c903a Sean Christopherson 2020-03-02 7712 supported_xcr0 &= ~(XFEATURE_MASK_BNDREGS |
cfc481810c903a Sean Christopherson 2020-03-02 7713 XFEATURE_MASK_BNDCSR);
cfc481810c903a Sean Christopherson 2020-03-02 7714
a3203381ca95dc Sean Christopherson 2018-12-03 7715 if (!cpu_has_vmx_vpid() || !cpu_has_vmx_invvpid() ||
a3203381ca95dc Sean Christopherson 2018-12-03 7716 !(cpu_has_vmx_invvpid_single() || cpu_has_vmx_invvpid_global()))
a3203381ca95dc Sean Christopherson 2018-12-03 7717 enable_vpid = 0;
a3203381ca95dc Sean Christopherson 2018-12-03 7718
a3203381ca95dc Sean Christopherson 2018-12-03 7719 if (!cpu_has_vmx_ept() ||
a3203381ca95dc Sean Christopherson 2018-12-03 7720 !cpu_has_vmx_ept_4levels() ||
a3203381ca95dc Sean Christopherson 2018-12-03 7721 !cpu_has_vmx_ept_mt_wb() ||
a3203381ca95dc Sean Christopherson 2018-12-03 7722 !cpu_has_vmx_invept_global())
a3203381ca95dc Sean Christopherson 2018-12-03 7723 enable_ept = 0;
a3203381ca95dc Sean Christopherson 2018-12-03 7724
a3203381ca95dc Sean Christopherson 2018-12-03 7725 if (!cpu_has_vmx_ept_ad_bits() || !enable_ept)
a3203381ca95dc Sean Christopherson 2018-12-03 7726 enable_ept_ad_bits = 0;
a3203381ca95dc Sean Christopherson 2018-12-03 7727
a3203381ca95dc Sean Christopherson 2018-12-03 7728 if (!cpu_has_vmx_unrestricted_guest() || !enable_ept)
a3203381ca95dc Sean Christopherson 2018-12-03 7729 enable_unrestricted_guest = 0;
a3203381ca95dc Sean Christopherson 2018-12-03 7730
a3203381ca95dc Sean Christopherson 2018-12-03 7731 if (!cpu_has_vmx_flexpriority())
a3203381ca95dc Sean Christopherson 2018-12-03 7732 flexpriority_enabled = 0;
a3203381ca95dc Sean Christopherson 2018-12-03 7733
a3203381ca95dc Sean Christopherson 2018-12-03 7734 if (!cpu_has_virtual_nmis())
a3203381ca95dc Sean Christopherson 2018-12-03 7735 enable_vnmi = 0;
a3203381ca95dc Sean Christopherson 2018-12-03 7736
a3203381ca95dc Sean Christopherson 2018-12-03 7737 /*
a3203381ca95dc Sean Christopherson 2018-12-03 7738 * set_apic_access_page_addr() is used to reload apic access
a3203381ca95dc Sean Christopherson 2018-12-03 7739 * page upon invalidation. No need to do anything if not
a3203381ca95dc Sean Christopherson 2018-12-03 7740 * using the APIC_ACCESS_ADDR VMCS field.
a3203381ca95dc Sean Christopherson 2018-12-03 7741 */
a3203381ca95dc Sean Christopherson 2018-12-03 7742 if (!flexpriority_enabled)
72b0eaa946076c Sean Christopherson 2020-03-21 7743 vmx_x86_ops.set_apic_access_page_addr = NULL;
a3203381ca95dc Sean Christopherson 2018-12-03 7744
a3203381ca95dc Sean Christopherson 2018-12-03 7745 if (!cpu_has_vmx_tpr_shadow())
72b0eaa946076c Sean Christopherson 2020-03-21 7746 vmx_x86_ops.update_cr8_intercept = NULL;
a3203381ca95dc Sean Christopherson 2018-12-03 7747
a3203381ca95dc Sean Christopherson 2018-12-03 7748 #if IS_ENABLED(CONFIG_HYPERV)
a3203381ca95dc Sean Christopherson 2018-12-03 7749 if (ms_hyperv.nested_features & HV_X64_NESTED_GUEST_MAPPING_FLUSH
1f3a3e46cc49e8 Lan Tianyu 2018-12-06 7750 && enable_ept) {
72b0eaa946076c Sean Christopherson 2020-03-21 @7751 vmx_x86_ops.tlb_remote_flush = hv_remote_flush_tlb;
72b0eaa946076c Sean Christopherson 2020-03-21 7752 vmx_x86_ops.tlb_remote_flush_with_range =
1f3a3e46cc49e8 Lan Tianyu 2018-12-06 @7753 hv_remote_flush_tlb_with_range;
1f3a3e46cc49e8 Lan Tianyu 2018-12-06 7754 }
a3203381ca95dc Sean Christopherson 2018-12-03 7755 #endif
a3203381ca95dc Sean Christopherson 2018-12-03 7756
a3203381ca95dc Sean Christopherson 2018-12-03 7757 if (!cpu_has_vmx_ple()) {
a3203381ca95dc Sean Christopherson 2018-12-03 7758 ple_gap = 0;
a3203381ca95dc Sean Christopherson 2018-12-03 7759 ple_window = 0;
a3203381ca95dc Sean Christopherson 2018-12-03 7760 ple_window_grow = 0;
a3203381ca95dc Sean Christopherson 2018-12-03 7761 ple_window_max = 0;
a3203381ca95dc Sean Christopherson 2018-12-03 7762 ple_window_shrink = 0;
a3203381ca95dc Sean Christopherson 2018-12-03 7763 }
a3203381ca95dc Sean Christopherson 2018-12-03 7764
a3203381ca95dc Sean Christopherson 2018-12-03 7765 if (!cpu_has_vmx_apicv()) {
a3203381ca95dc Sean Christopherson 2018-12-03 7766 enable_apicv = 0;
72b0eaa946076c Sean Christopherson 2020-03-21 7767 vmx_x86_ops.sync_pir_to_irr = NULL;
a3203381ca95dc Sean Christopherson 2018-12-03 7768 }
a3203381ca95dc Sean Christopherson 2018-12-03 7769
a3203381ca95dc Sean Christopherson 2018-12-03 7770 if (cpu_has_vmx_tsc_scaling()) {
a3203381ca95dc Sean Christopherson 2018-12-03 7771 kvm_has_tsc_control = true;
a3203381ca95dc Sean Christopherson 2018-12-03 7772 kvm_max_tsc_scaling_ratio = KVM_VMX_TSC_MULTIPLIER_MAX;
a3203381ca95dc Sean Christopherson 2018-12-03 7773 kvm_tsc_scaling_ratio_frac_bits = 48;
a3203381ca95dc Sean Christopherson 2018-12-03 7774 }
a3203381ca95dc Sean Christopherson 2018-12-03 7775
fe6b6bc802b400 Chenyi Qiang 2020-11-06 7776 kvm_has_bus_lock_exit = cpu_has_vmx_bus_lock_detection();
fe6b6bc802b400 Chenyi Qiang 2020-11-06 7777
a3203381ca95dc Sean Christopherson 2018-12-03 7778 set_bit(0, vmx_vpid_bitmap); /* 0 is reserved for host */
a3203381ca95dc Sean Christopherson 2018-12-03 7779
a3203381ca95dc Sean Christopherson 2018-12-03 7780 if (enable_ept)
e7b7bdea77f327 Sean Christopherson 2021-02-25 7781 kvm_mmu_set_ept_masks(enable_ept_ad_bits,
e7b7bdea77f327 Sean Christopherson 2021-02-25 7782 cpu_has_vmx_ept_execute_only());
703c335d069344 Sean Christopherson 2020-03-02 7783
703c335d069344 Sean Christopherson 2020-03-02 7784 if (!enable_ept)
703c335d069344 Sean Christopherson 2020-03-02 7785 ept_lpage_level = 0;
703c335d069344 Sean Christopherson 2020-03-02 7786 else if (cpu_has_vmx_ept_1g_page())
3bae0459bcd559 Sean Christopherson 2020-04-27 7787 ept_lpage_level = PG_LEVEL_1G;
703c335d069344 Sean Christopherson 2020-03-02 7788 else if (cpu_has_vmx_ept_2m_page())
3bae0459bcd559 Sean Christopherson 2020-04-27 7789 ept_lpage_level = PG_LEVEL_2M;
a3203381ca95dc Sean Christopherson 2018-12-03 7790 else
3bae0459bcd559 Sean Christopherson 2020-04-27 7791 ept_lpage_level = PG_LEVEL_4K;
83013059bdc548 Sean Christopherson 2020-07-15 7792 kvm_configure_mmu(enable_ept, vmx_get_max_tdp_level(), ept_lpage_level);
a3203381ca95dc Sean Christopherson 2018-12-03 7793
a3203381ca95dc Sean Christopherson 2018-12-03 7794 /*
a3203381ca95dc Sean Christopherson 2018-12-03 7795 * Only enable PML when hardware supports PML feature, and both EPT
a3203381ca95dc Sean Christopherson 2018-12-03 7796 * and EPT A/D bit features are enabled -- PML depends on them to work.
a3203381ca95dc Sean Christopherson 2018-12-03 7797 */
a3203381ca95dc Sean Christopherson 2018-12-03 7798 if (!enable_ept || !enable_ept_ad_bits || !cpu_has_vmx_pml())
a3203381ca95dc Sean Christopherson 2018-12-03 7799 enable_pml = 0;
a3203381ca95dc Sean Christopherson 2018-12-03 7800
a018eba53870aa Sean Christopherson 2021-02-12 7801 if (!enable_pml)
6dd03800b1afe4 Sean Christopherson 2021-02-12 7802 vmx_x86_ops.cpu_dirty_log_size = 0;
a3203381ca95dc Sean Christopherson 2018-12-03 7803
a3203381ca95dc Sean Christopherson 2018-12-03 7804 if (!cpu_has_vmx_preemption_timer())
804939ea200d42 Sean Christopherson 2019-05-07 7805 enable_preemption_timer = false;
a3203381ca95dc Sean Christopherson 2018-12-03 7806
804939ea200d42 Sean Christopherson 2019-05-07 7807 if (enable_preemption_timer) {
804939ea200d42 Sean Christopherson 2019-05-07 7808 u64 use_timer_freq = 5000ULL * 1000 * 1000;
a3203381ca95dc Sean Christopherson 2018-12-03 7809 u64 vmx_msr;
a3203381ca95dc Sean Christopherson 2018-12-03 7810
a3203381ca95dc Sean Christopherson 2018-12-03 7811 rdmsrl(MSR_IA32_VMX_MISC, vmx_msr);
a3203381ca95dc Sean Christopherson 2018-12-03 7812 cpu_preemption_timer_multi =
a3203381ca95dc Sean Christopherson 2018-12-03 7813 vmx_msr & VMX_MISC_PREEMPTION_TIMER_RATE_MASK;
804939ea200d42 Sean Christopherson 2019-05-07 7814
804939ea200d42 Sean Christopherson 2019-05-07 7815 if (tsc_khz)
804939ea200d42 Sean Christopherson 2019-05-07 7816 use_timer_freq = (u64)tsc_khz * 1000;
804939ea200d42 Sean Christopherson 2019-05-07 7817 use_timer_freq >>= cpu_preemption_timer_multi;
804939ea200d42 Sean Christopherson 2019-05-07 7818
804939ea200d42 Sean Christopherson 2019-05-07 7819 /*
804939ea200d42 Sean Christopherson 2019-05-07 7820 * KVM "disables" the preemption timer by setting it to its max
804939ea200d42 Sean Christopherson 2019-05-07 7821 * value. Don't use the timer if it might cause spurious exits
804939ea200d42 Sean Christopherson 2019-05-07 7822 * at a rate faster than 0.1 Hz (of uninterrupted guest time).
804939ea200d42 Sean Christopherson 2019-05-07 7823 */
804939ea200d42 Sean Christopherson 2019-05-07 7824 if (use_timer_freq > 0xffffffffu / 10)
804939ea200d42 Sean Christopherson 2019-05-07 7825 enable_preemption_timer = false;
804939ea200d42 Sean Christopherson 2019-05-07 7826 }
804939ea200d42 Sean Christopherson 2019-05-07 7827
804939ea200d42 Sean Christopherson 2019-05-07 7828 if (!enable_preemption_timer) {
72b0eaa946076c Sean Christopherson 2020-03-21 7829 vmx_x86_ops.set_hv_timer = NULL;
72b0eaa946076c Sean Christopherson 2020-03-21 7830 vmx_x86_ops.cancel_hv_timer = NULL;
72b0eaa946076c Sean Christopherson 2020-03-21 7831 vmx_x86_ops.request_immediate_exit = __kvm_request_immediate_exit;
a3203381ca95dc Sean Christopherson 2018-12-03 7832 }
a3203381ca95dc Sean Christopherson 2018-12-03 7833
8888cdd0996c2d Xiaoyao Li 2020-09-23 7834 kvm_set_posted_intr_wakeup_handler(pi_wakeup_handler);
a3203381ca95dc Sean Christopherson 2018-12-03 7835
a3203381ca95dc Sean Christopherson 2018-12-03 7836 kvm_mce_cap_supported |= MCG_LMCE_P;
a3203381ca95dc Sean Christopherson 2018-12-03 7837
f99e3daf94ff35 Chao Peng 2018-10-24 7838 if (pt_mode != PT_MODE_SYSTEM && pt_mode != PT_MODE_HOST_GUEST)
f99e3daf94ff35 Chao Peng 2018-10-24 7839 return -EINVAL;
f99e3daf94ff35 Chao Peng 2018-10-24 7840 if (!enable_ept || !cpu_has_vmx_intel_pt())
f99e3daf94ff35 Chao Peng 2018-10-24 7841 pt_mode = PT_MODE_SYSTEM;
f99e3daf94ff35 Chao Peng 2018-10-24 7842
8f102445d40453 Sean Christopherson 2021-04-12 7843 setup_default_sgx_lepubkeyhash();
8f102445d40453 Sean Christopherson 2021-04-12 7844
a3203381ca95dc Sean Christopherson 2018-12-03 7845 if (nested) {
3e8eacccae9d99 Sean Christopherson 2018-12-03 7846 nested_vmx_setup_ctls_msrs(&vmcs_config.nested,
a4443267800af2 Vitaly Kuznetsov 2020-02-20 7847 vmx_capability.ept);
3e8eacccae9d99 Sean Christopherson 2018-12-03 7848
6c1c6e58356b87 Sean Christopherson 2020-05-06 7849 r = nested_vmx_hardware_setup(kvm_vmx_exit_handlers);
a3203381ca95dc Sean Christopherson 2018-12-03 7850 if (r)
a3203381ca95dc Sean Christopherson 2018-12-03 7851 return r;
a3203381ca95dc Sean Christopherson 2018-12-03 7852 }
a3203381ca95dc Sean Christopherson 2018-12-03 7853
3ec6fd8cf0ba6b Sean Christopherson 2020-03-02 7854 vmx_set_cpu_caps();
66a6950f99950c Sean Christopherson 2020-03-02 7855
a3203381ca95dc Sean Christopherson 2018-12-03 7856 r = alloc_kvm_area();
a3203381ca95dc Sean Christopherson 2018-12-03 7857 if (r)
a3203381ca95dc Sean Christopherson 2018-12-03 7858 nested_vmx_hardware_unsetup();
a3203381ca95dc Sean Christopherson 2018-12-03 7859 return r;
a3203381ca95dc Sean Christopherson 2018-12-03 7860 }
a3203381ca95dc Sean Christopherson 2018-12-03 7861
:::::: The code at line 7751 was first introduced by commit
:::::: 72b0eaa946076cba3bc315c88199db7704b5538c KVM: VMX: Configure runtime hooks using vmx_x86_ops
:::::: TO: Sean Christopherson <sean.j.christopherson(a)intel.com>
:::::: CC: Paolo Bonzini <pbonzini(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[intel-linux-intel-lts:5.4/yocto 120/1142] drivers/misc/vpusmm/vpusmm_driver.c:406:6: warning: no previous prototype for 'vpusmm_dmabuf_release'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 2c4a98833ded50c324a6c5e7c949f93cca137acf [120/1142] misc: vpusmm: add alloc/import DMABuf for VPU
config: m68k-allmodconfig (attached as .config)
compiler: m68k-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
# https://github.com/intel/linux-intel-lts/commit/2c4a98833ded50c324a6c5e7c...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 2c4a98833ded50c324a6c5e7c949f93cca137acf
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/m68k/include/asm/io_mm.h:25,
from arch/m68k/include/asm/io.h:8,
from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:11,
from drivers/misc/vpusmm/vpusmm_driver.c:23:
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsb':
arch/m68k/include/asm/raw_io.h:83:7: warning: variable '__w' set but not used [-Wunused-but-set-variable]
83 | ({u8 __w, __v = (b); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:430:3: note: in expansion of macro 'rom_out_8'
430 | rom_out_8(port, *buf++);
| ^~~~~~~~~
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw':
arch/m68k/include/asm/raw_io.h:86:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
86 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:448:3: note: in expansion of macro 'rom_out_be16'
448 | rom_out_be16(port, *buf++);
| ^~~~~~~~~~~~
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw_swapw':
arch/m68k/include/asm/raw_io.h:90:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
90 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:466:3: note: in expansion of macro 'rom_out_le16'
466 | rom_out_le16(port, *buf++);
| ^~~~~~~~~~~~
In file included from arch/m68k/include/asm/page_mm.h:7,
from arch/m68k/include/asm/page.h:47,
from drivers/misc/vpusmm/vpusmm_driver.c:6:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from arch/m68k/include/asm/bug.h:32,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/preempt.h:5,
from ./arch/m68k/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from arch/m68k/include/asm/irqflags.h:6,
from include/linux/irqflags.h:16,
from arch/m68k/include/asm/atomic.h:6,
from include/linux/atomic.h:7,
from include/linux/rcupdate.h:25,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/uaccess.h:5,
from drivers/misc/vpusmm/vpusmm_driver.c:7:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
include/asm-generic/bug.h:139:27: note: in definition of macro 'WARN_ON_ONCE'
139 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
arch/m68k/include/asm/page_mm.h:170:25: note: in expansion of macro 'virt_addr_valid'
170 | #define pfn_valid(pfn) virt_addr_valid(pfn_to_virt(pfn))
| ^~~~~~~~~~~~~~~
include/linux/dma-mapping.h:355:19: note: in expansion of macro 'pfn_valid'
355 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
| ^~~~~~~~~
drivers/misc/vpusmm/vpusmm_driver.c: At top level:
>> drivers/misc/vpusmm/vpusmm_driver.c:406:6: warning: no previous prototype for 'vpusmm_dmabuf_release' [-Wmissing-prototypes]
406 | void vpusmm_dmabuf_release(struct dma_buf *dmabuf)
| ^~~~~~~~~~~~~~~~~~~~~
In file included from arch/m68k/include/asm/page.h:47,
from drivers/misc/vpusmm/vpusmm_driver.c:6:
drivers/misc/vpusmm/vpusmm_driver.c: In function 'vpusmm_device_vma_fault':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
arch/m68k/include/asm/page_mm.h:170:25: note: in expansion of macro 'virt_addr_valid'
170 | #define pfn_valid(pfn) virt_addr_valid(pfn_to_virt(pfn))
| ^~~~~~~~~~~~~~~
drivers/misc/vpusmm/vpusmm_driver.c:441:7: note: in expansion of macro 'pfn_valid'
441 | if (!pfn_valid(page_frame_num))
| ^~~~~~~~~
In file included from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/linux/rculist.h:10,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/uaccess.h:5,
from drivers/misc/vpusmm/vpusmm_driver.c:7:
drivers/misc/vpusmm/vpusmm_driver.c: In function 'vpusmm_session_alloc':
>> drivers/misc/vpusmm/vpusmm_driver.c:616:11: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=]
616 | pr_debug("%s: dma_addr=%llx, phys_addr=%llx allocated from %s\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:283:21: note: in definition of macro 'pr_fmt'
283 | #define pr_fmt(fmt) fmt
| ^~~
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
143 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:153:2: note: in expansion of macro '_dynamic_func_call'
153 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:331:2: note: in expansion of macro 'dynamic_pr_debug'
331 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
drivers/misc/vpusmm/vpusmm_driver.c:616:2: note: in expansion of macro 'pr_debug'
616 | pr_debug("%s: dma_addr=%llx, phys_addr=%llx allocated from %s\n",
| ^~~~~~~~
drivers/misc/vpusmm/vpusmm_driver.c:616:28: note: format string is defined here
616 | pr_debug("%s: dma_addr=%llx, phys_addr=%llx allocated from %s\n",
| ~~~^
| |
| long long unsigned int
| %x
In file included from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/linux/rculist.h:10,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/uaccess.h:5,
from drivers/misc/vpusmm/vpusmm_driver.c:7:
>> drivers/misc/vpusmm/vpusmm_driver.c:616:11: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'phys_addr_t' {aka 'unsigned int'} [-Wformat=]
616 | pr_debug("%s: dma_addr=%llx, phys_addr=%llx allocated from %s\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:283:21: note: in definition of macro 'pr_fmt'
283 | #define pr_fmt(fmt) fmt
| ^~~
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
143 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:153:2: note: in expansion of macro '_dynamic_func_call'
153 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:331:2: note: in expansion of macro 'dynamic_pr_debug'
331 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
drivers/misc/vpusmm/vpusmm_driver.c:616:2: note: in expansion of macro 'pr_debug'
616 | pr_debug("%s: dma_addr=%llx, phys_addr=%llx allocated from %s\n",
| ^~~~~~~~
drivers/misc/vpusmm/vpusmm_driver.c:616:44: note: format string is defined here
616 | pr_debug("%s: dma_addr=%llx, phys_addr=%llx allocated from %s\n",
| ~~~^
| |
| long long unsigned int
| %x
In file included from include/linux/cdev.h:8,
from drivers/misc/vpusmm/vpusmm_driver.c:12:
drivers/misc/vpusmm/vpusmm_driver.c: In function 'vpusmm_probe':
>> drivers/misc/vpusmm/vpusmm_driver.c:935:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
935 | dev_info(dev, " %s %zuMB %llx~%llx\n", dev_name(mem_dev), mem_size/(1024*1024),
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/device.h:1658:22: note: in definition of macro 'dev_fmt'
1658 | #define dev_fmt(fmt) fmt
| ^~~
drivers/misc/vpusmm/vpusmm_driver.c:935:4: note: in expansion of macro 'dev_info'
935 | dev_info(dev, " %s %zuMB %llx~%llx\n", dev_name(mem_dev), mem_size/(1024*1024),
| ^~~~~~~~
drivers/misc/vpusmm/vpusmm_driver.c:935:32: note: format string is defined here
935 | dev_info(dev, " %s %zuMB %llx~%llx\n", dev_name(mem_dev), mem_size/(1024*1024),
| ~~~^
| |
| long long unsigned int
| %x
In file included from include/linux/cdev.h:8,
from drivers/misc/vpusmm/vpusmm_driver.c:12:
drivers/misc/vpusmm/vpusmm_driver.c:935:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
935 | dev_info(dev, " %s %zuMB %llx~%llx\n", dev_name(mem_dev), mem_size/(1024*1024),
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/device.h:1658:22: note: in definition of macro 'dev_fmt'
1658 | #define dev_fmt(fmt) fmt
| ^~~
drivers/misc/vpusmm/vpusmm_driver.c:935:4: note: in expansion of macro 'dev_info'
935 | dev_info(dev, " %s %zuMB %llx~%llx\n", dev_name(mem_dev), mem_size/(1024*1024),
| ^~~~~~~~
drivers/misc/vpusmm/vpusmm_driver.c:935:37: note: format string is defined here
935 | dev_info(dev, " %s %zuMB %llx~%llx\n", dev_name(mem_dev), mem_size/(1024*1024),
| ~~~^
| |
| long long unsigned int
| %x
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for NEED_MULTIPLE_NODES
Depends on DISCONTIGMEM || NUMA
Selected by
- SINGLE_MEMORY_CHUNK && MMU
vim +/vpusmm_dmabuf_release +406 drivers/misc/vpusmm/vpusmm_driver.c
405
> 406 void vpusmm_dmabuf_release(struct dma_buf *dmabuf)
407 {
408 // this buffer is only referencec by dmabuf
409 struct vpusmm_buffer *buff = dmabuf->priv;
410
411 if (buff) {
412 if (buff->cookie) {
413 dma_free_attrs(buff->dev, buff->size, buff->cookie, buff->dma_addr, buff->dma_attrs);
414 buff->cookie = NULL;
415 }
416 kfree(buff);
417 }
418 }
419
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[hverkuil-media:for-v5.14j 4/9] drivers/media/i2c/mt9v111.c:803:11: error: 'cfg' undeclared
by kernel test robot
tree: git://linuxtv.org/hverkuil/media_tree.git for-v5.14j
head: bddff7e40c01e2f4e32e24f9ea37ce09b0ffc71e
commit: 5253e85d5fac07a883136fd2fccf8a101a4f49b5 [4/9] media: i2c: changes for subdev-wide state struct
config: i386-randconfig-s032-20210610 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
git remote add hverkuil-media git://linuxtv.org/hverkuil/media_tree.git
git fetch --no-tags hverkuil-media for-v5.14j
git checkout 5253e85d5fac07a883136fd2fccf8a101a4f49b5
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=i386
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 >>):
drivers/media/i2c/mt9v111.c: In function '__mt9v111_get_pad_format':
>> drivers/media/i2c/mt9v111.c:803:11: error: 'cfg' undeclared (first use in this function)
803 | return &cfg->try_fmt;
| ^~~
drivers/media/i2c/mt9v111.c:803:11: note: each undeclared identifier is reported only once for each function it appears in
vim +/cfg +803 drivers/media/i2c/mt9v111.c
aab7ed1c392703 Jacopo Mondi 2018-07-25 791
aab7ed1c392703 Jacopo Mondi 2018-07-25 792 static struct v4l2_mbus_framefmt *__mt9v111_get_pad_format(
aab7ed1c392703 Jacopo Mondi 2018-07-25 793 struct mt9v111_dev *mt9v111,
5253e85d5fac07 Tomi Valkeinen 2021-06-10 794 struct v4l2_subdev_state *sd_state,
aab7ed1c392703 Jacopo Mondi 2018-07-25 795 unsigned int pad,
aab7ed1c392703 Jacopo Mondi 2018-07-25 796 enum v4l2_subdev_format_whence which)
aab7ed1c392703 Jacopo Mondi 2018-07-25 797 {
aab7ed1c392703 Jacopo Mondi 2018-07-25 798 switch (which) {
aab7ed1c392703 Jacopo Mondi 2018-07-25 799 case V4L2_SUBDEV_FORMAT_TRY:
484f9b372dd8da Jacopo Mondi 2018-08-07 800 #if IS_ENABLED(CONFIG_VIDEO_V4L2_SUBDEV_API)
5253e85d5fac07 Tomi Valkeinen 2021-06-10 801 return v4l2_subdev_get_try_format(&mt9v111->sd, sd_state, pad);
aab7ed1c392703 Jacopo Mondi 2018-07-25 802 #else
aab7ed1c392703 Jacopo Mondi 2018-07-25 @803 return &cfg->try_fmt;
aab7ed1c392703 Jacopo Mondi 2018-07-25 804 #endif
aab7ed1c392703 Jacopo Mondi 2018-07-25 805 case V4L2_SUBDEV_FORMAT_ACTIVE:
aab7ed1c392703 Jacopo Mondi 2018-07-25 806 return &mt9v111->fmt;
aab7ed1c392703 Jacopo Mondi 2018-07-25 807 default:
aab7ed1c392703 Jacopo Mondi 2018-07-25 808 return NULL;
aab7ed1c392703 Jacopo Mondi 2018-07-25 809 }
aab7ed1c392703 Jacopo Mondi 2018-07-25 810 }
aab7ed1c392703 Jacopo Mondi 2018-07-25 811
:::::: The code at line 803 was first introduced by commit
:::::: aab7ed1c392703604fbdc5bd5005dfb61a0b32f9 media: i2c: Add driver for Aptina MT9V111
:::::: TO: Jacopo Mondi <jacopo+renesas(a)jmondi.org>
:::::: CC: Mauro Carvalho Chehab <mchehab+samsung(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[intel-linux-intel-lts:5.4/yocto 79/1142] drivers/gpu/drm/kmb/kmb_drv.c:67:5: warning: no previous prototype for 'kmb_display_clk_enable'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 0289630c4e708652f21372eaa22ef03b3234091c [79/1142] drm/kmb: Mipi DPHY initialization changes
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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
# https://github.com/intel/linux-intel-lts/commit/0289630c4e708652f21372eaa...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 0289630c4e708652f21372eaa22ef03b3234091c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/kmb/kmb_drv.c:67:5: warning: no previous prototype for 'kmb_display_clk_enable' [-Wmissing-prototypes]
67 | int kmb_display_clk_enable(void)
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/kmb/kmb_drv.c:375:5: warning: no previous prototype for 'kmb_atomic_helper_check' [-Wmissing-prototypes]
375 | int kmb_atomic_helper_check(struct drm_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/kmb_display_clk_enable +67 drivers/gpu/drm/kmb/kmb_drv.c
66
> 67 int kmb_display_clk_enable(void)
68 {
69 int ret = 0;
70 #ifdef LCD_TEST
71 ret = clk_prepare_enable(clk_lcd);
72 if (ret) {
73 DRM_ERROR("Failed to enable LCD clock: %d\n", ret);
74 return ret;
75 }
76 #endif
77 ret = clk_prepare_enable(clk_mipi);
78 if (ret) {
79 DRM_ERROR("Failed to enable MIPI clock: %d\n", ret);
80 return ret;
81 }
82 /* ret = clk_prepare_enable(clk_msscam);
83 if (ret) {
84 DRM_ERROR("Failed to enable MSSCAM clock: %d\n", ret);
85 return ret;
86 }
87 */
88
89 ret = clk_prepare_enable(clk_mipi_ecfg);
90 if (ret) {
91 DRM_ERROR("Failed to enable MIPI_ECFG clock: %d\n", ret);
92 return ret;
93 }
94
95 ret = clk_prepare_enable(clk_mipi_cfg);
96 if (ret) {
97 DRM_ERROR("Failed to enable MIPI_CFG clock: %d\n", ret);
98 return ret;
99 }
100 DRM_INFO("SUCCESS : enabled LCD MIPI clocks\n");
101 return 0;
102 }
103
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[intel-linux-intel-lts:5.4/yocto 5/5] drivers/gpu/drm/drm_edid.c:5539:54: sparse: sparse: incorrect type in argument 2 (different modifiers)
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: 8e2b1510d279aecb1f89907553283c79c1b2b226
commit: 8e2b1510d279aecb1f89907553283c79c1b2b226 [5/5] drm/edid: Fix DispID tile parsing for override EDID
config: x86_64-randconfig-s021-20210610 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/intel/linux-intel-lts/commit/8e2b1510d279aecb1f8990755...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 8e2b1510d279aecb1f89907553283c79c1b2b226
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/drm_edid.c:5539:54: sparse: sparse: incorrect type in argument 2 (different modifiers) @@ expected char *topology @@ got unsigned char const * @@
drivers/gpu/drm/drm_edid.c:5539:54: sparse: expected char *topology
drivers/gpu/drm/drm_edid.c:5539:54: sparse: got unsigned char const *
drivers/gpu/drm/drm_edid.c:5541:65: sparse: sparse: incorrect type in argument 2 (different modifiers) @@ expected char *topology @@ got unsigned char const * @@
drivers/gpu/drm/drm_edid.c:5541:65: sparse: expected char *topology
drivers/gpu/drm/drm_edid.c:5541:65: sparse: got unsigned char const *
vim +5539 drivers/gpu/drm/drm_edid.c
40d9b043a89e23 Dave Airlie 2014-10-20 5504
5e546cd5b3bc76 Dave Airlie 2016-05-03 5505 static int drm_parse_tiled_block(struct drm_connector *connector,
8e2b1510d279ae Ville Syrjälä 2020-03-13 5506 const struct displayid_block *block)
40d9b043a89e23 Dave Airlie 2014-10-20 5507 {
8e2b1510d279ae Ville Syrjälä 2020-03-13 5508 const struct displayid_tiled_block *tile = (struct displayid_tiled_block *)block;
40d9b043a89e23 Dave Airlie 2014-10-20 5509 u16 w, h;
40d9b043a89e23 Dave Airlie 2014-10-20 5510 u8 tile_v_loc, tile_h_loc;
40d9b043a89e23 Dave Airlie 2014-10-20 5511 u8 num_v_tile, num_h_tile;
40d9b043a89e23 Dave Airlie 2014-10-20 5512 struct drm_tile_group *tg;
40d9b043a89e23 Dave Airlie 2014-10-20 5513
40d9b043a89e23 Dave Airlie 2014-10-20 5514 w = tile->tile_size[0] | tile->tile_size[1] << 8;
40d9b043a89e23 Dave Airlie 2014-10-20 5515 h = tile->tile_size[2] | tile->tile_size[3] << 8;
40d9b043a89e23 Dave Airlie 2014-10-20 5516
40d9b043a89e23 Dave Airlie 2014-10-20 5517 num_v_tile = (tile->topo[0] & 0xf) | (tile->topo[2] & 0x30);
40d9b043a89e23 Dave Airlie 2014-10-20 5518 num_h_tile = (tile->topo[0] >> 4) | ((tile->topo[2] >> 2) & 0x30);
40d9b043a89e23 Dave Airlie 2014-10-20 5519 tile_v_loc = (tile->topo[1] & 0xf) | ((tile->topo[2] & 0x3) << 4);
40d9b043a89e23 Dave Airlie 2014-10-20 5520 tile_h_loc = (tile->topo[1] >> 4) | (((tile->topo[2] >> 2) & 0x3) << 4);
40d9b043a89e23 Dave Airlie 2014-10-20 5521
40d9b043a89e23 Dave Airlie 2014-10-20 5522 connector->has_tile = true;
40d9b043a89e23 Dave Airlie 2014-10-20 5523 if (tile->tile_cap & 0x80)
40d9b043a89e23 Dave Airlie 2014-10-20 5524 connector->tile_is_single_monitor = true;
40d9b043a89e23 Dave Airlie 2014-10-20 5525
40d9b043a89e23 Dave Airlie 2014-10-20 5526 connector->num_h_tile = num_h_tile + 1;
40d9b043a89e23 Dave Airlie 2014-10-20 5527 connector->num_v_tile = num_v_tile + 1;
40d9b043a89e23 Dave Airlie 2014-10-20 5528 connector->tile_h_loc = tile_h_loc;
40d9b043a89e23 Dave Airlie 2014-10-20 5529 connector->tile_v_loc = tile_v_loc;
40d9b043a89e23 Dave Airlie 2014-10-20 5530 connector->tile_h_size = w + 1;
40d9b043a89e23 Dave Airlie 2014-10-20 5531 connector->tile_v_size = h + 1;
40d9b043a89e23 Dave Airlie 2014-10-20 5532
40d9b043a89e23 Dave Airlie 2014-10-20 5533 DRM_DEBUG_KMS("tile cap 0x%x\n", tile->tile_cap);
40d9b043a89e23 Dave Airlie 2014-10-20 5534 DRM_DEBUG_KMS("tile_size %d x %d\n", w + 1, h + 1);
40d9b043a89e23 Dave Airlie 2014-10-20 5535 DRM_DEBUG_KMS("topo num tiles %dx%d, location %dx%d\n",
40d9b043a89e23 Dave Airlie 2014-10-20 5536 num_h_tile + 1, num_v_tile + 1, tile_h_loc, tile_v_loc);
40d9b043a89e23 Dave Airlie 2014-10-20 5537 DRM_DEBUG_KMS("vend %c%c%c\n", tile->topology_id[0], tile->topology_id[1], tile->topology_id[2]);
40d9b043a89e23 Dave Airlie 2014-10-20 5538
40d9b043a89e23 Dave Airlie 2014-10-20 @5539 tg = drm_mode_get_tile_group(connector->dev, tile->topology_id);
40d9b043a89e23 Dave Airlie 2014-10-20 5540 if (!tg) {
40d9b043a89e23 Dave Airlie 2014-10-20 5541 tg = drm_mode_create_tile_group(connector->dev, tile->topology_id);
40d9b043a89e23 Dave Airlie 2014-10-20 5542 }
40d9b043a89e23 Dave Airlie 2014-10-20 5543 if (!tg)
40d9b043a89e23 Dave Airlie 2014-10-20 5544 return -ENOMEM;
40d9b043a89e23 Dave Airlie 2014-10-20 5545
40d9b043a89e23 Dave Airlie 2014-10-20 5546 if (connector->tile_group != tg) {
40d9b043a89e23 Dave Airlie 2014-10-20 5547 /* if we haven't got a pointer,
40d9b043a89e23 Dave Airlie 2014-10-20 5548 take the reference, drop ref to old tile group */
40d9b043a89e23 Dave Airlie 2014-10-20 5549 if (connector->tile_group) {
40d9b043a89e23 Dave Airlie 2014-10-20 5550 drm_mode_put_tile_group(connector->dev, connector->tile_group);
40d9b043a89e23 Dave Airlie 2014-10-20 5551 }
40d9b043a89e23 Dave Airlie 2014-10-20 5552 connector->tile_group = tg;
40d9b043a89e23 Dave Airlie 2014-10-20 5553 } else
40d9b043a89e23 Dave Airlie 2014-10-20 5554 /* if same tile group, then release the ref we just took. */
40d9b043a89e23 Dave Airlie 2014-10-20 5555 drm_mode_put_tile_group(connector->dev, tg);
5e546cd5b3bc76 Dave Airlie 2016-05-03 5556 return 0;
5e546cd5b3bc76 Dave Airlie 2016-05-03 5557 }
5e546cd5b3bc76 Dave Airlie 2016-05-03 5558
:::::: The code at line 5539 was first introduced by commit
:::::: 40d9b043a89e2301e1f97ade055a73ecc28e9afe drm/connector: store tile information from displayid (v3)
:::::: TO: Dave Airlie <airlied(a)redhat.com>
:::::: CC: Dave Airlie <airlied(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months