[lkp-robot] [x86/paravirt] b1e955caea: WARNING:at_kernel/locking/lockdep.c:#trace_hardirqs_off_caller
FYI, we noticed the following commit: commit: b1e955caea7e3ae340ebd5392a7fe4478f64ce1d ("x86/paravirt: Avoid setting IF flag, if not necessary") url: https://github.com/0day-ci/linux/commits/Waiman-Long/x86-paravirt-Avoid-setting-IF-flag-if-not-necessary/20170207-051507 in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-x86_64 -m 320M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): ++++ || 10b9dd5686 | b1e955caea | ++++ | boot_successes | 2 | 4 | | boot_failures | 2 | 4 | | WARNING:at_arch/x86/include/asm/fpu/internal.h:#fpu__restore | 2 | | | WARNING:at_kernel/locking/lockdep.c:#trace_hardirqs_off_caller | 0 | 4 | | calltrace:native_smp_prepare_cpus | 0 | 4 | ++++ [3.528640] WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:2760 trace_hardirqs_off_caller+0x108/0x120 [3.530745] DEBUG_LOCKS_WARN_ON(!irqs_disabled()) [3.532013] Modules linked in: [3.533837] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-rc6-00134-gb1e955c #1 [3.534833] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3-20161025_171302-gandalf 04/01/2014 [3.537411] c900bcc8 8144e9e3 8113d618 c900bd28 [3.539432] c900bd28 c900bd18 810ac222 [3.54] 0ac80001 8c25 [3.54] Call Trace: [3.54] [] dump_stack+0xf1/0x16e [3.54] [] ? trace_hardirqs_off_caller+0x108/0x120 [3.54] [] __warn+0x172/0x1a0 [3.54] [] warn_slowpath_fmt+0x61/0x80 [3.54] [] ? delay_tsc+0x1a0/0x1d0 [3.54] [] trace_hardirqs_off_caller+0x108/0x120 [3.54] [] trace_hardirqs_off+0x1d/0x30 [3.54] [] timer_irq_works+0x9f/0x10f [3.54] [] setup_IO_APIC+0x693/0xee5 [3.54] [] ? _raw_spin_unlock_irqrestore+0x91/0xf0 [3.54] [] ? clear_IO_APIC_pin+0xe3/0x1a0 [3.54] [] apic_bsp_setup+0x105/0x122 [3.54] [] native_smp_prepare_cpus+0x4b3/0x55e [3.54] [] kernel_init_freeable+0x76/0x2c4 [3.54] [] ? rest_init+0x220/0x220 [3.54] [] kernel_init+0x16/0x1d0 [3.54] [] ret_from_fork+0x2a/0x40 [3.543531] ---[ end trace 14a0f48288b7a69f ]--- To reproduce: git clone git://git.kernel.org/pub/scm/linux/kernel/git/wfg/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.9.0-rc6 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ZONE_DMA32=y CONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_X86_64_SMP=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_DEBUG_RODATA=y CONFIG_PGTABLE_LEVELS=4 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set # CONFIG_KERNEL_BZIP2 is not set #
24e700e291 ("Merge branch 'x86-apic-for-linus' of .."): WARNING: kernel stack regs at 979f9f70 in kworker/u4:1:648 has bad 'bp' value (null)
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit 24e700e291d52bd200212487e2b654c0aa3f07a2 Merge: f57091767add2 c6ef89421e236 Author: Linus TorvaldsAuthorDate: Mon Sep 4 17:43:56 2017 -0700 Commit: Linus Torvalds CommitDate: Mon Sep 4 17:43:56 2017 -0700 Merge branch 'x86-apic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip Pull x86 apic updates from Thomas Gleixner: "This update provides: - Cleanup of the IDT management including the removal of the extra tracing IDT. A first step to cleanup the vector management code. - The removal of the paravirt op adjust_exception_frame. This is a XEN specific issue, but merged through this branch to avoid nasty merge collisions - Prevent dmesg spam about the TSC DEADLINE bug, when the CPU has disabled the TSC DEADLINE timer in CPUID. - Adjust a debug message in the ioapic code to print out the information correctly" * 'x86-apic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (51 commits) x86/idt: Fix the X86_TRAP_BP gate x86/xen: Get rid of paravirt op adjust_exception_frame x86/eisa: Add missing include x86/idt: Remove superfluous ALIGNment x86/apic: Silence "FW_BUG TSC_DEADLINE disabled due to Errata" on CPUs without the feature x86/idt: Remove the tracing IDT leftovers x86/idt: Hide set_intr_gate() x86/idt: Simplify alloc_intr_gate() x86/idt: Deinline setup functions x86/idt: Remove unused functions/inlines x86/idt: Move interrupt gate initialization to IDT code x86/idt: Move APIC gate initialization to tables x86/idt: Move regular trap init to tables x86/idt: Move IST stack based traps to table init x86/idt: Move debug stack init to table based x86/idt: Switch early trap init to IDT tables x86/idt: Prepare for table based init x86/idt: Move early IDT setup out of 32-bit asm x86/idt: Move early IDT handler setup to IDT code x86/idt: Consolidate IDT invalidation ... f57091767a Merge branch 'x86-cache-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip c6ef89421e x86/idt: Fix the X86_TRAP_BP gate 24e700e291 Merge branch 'x86-apic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 0f380715e5 Merge tag 'sound-4.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound 1418b85217 Add linux-next specific files for 20170929 +--+++++---+ | | f57091767a | c6ef89421e | 24e700e291 | 0f380715e5 | next-20170929 | +--+++++---+ | boot_successes | 320| 320| 101| 28 | 5 | | boot_failures| 0 | 0 | 15 | 2 | 1 | | WARNING:kernel_stack | 0 | 0 | 15 | 2 | 1 | +--+++++---+ [ 18.114577] init: tty6 main process (334) terminated with status 1 [ 18.115792] init: tty6 main process ended, respawning [init] Using pid_max = 4096 [init] Started watchdog process, PID is 559 [main] Main thread is alive. [ 20.993350] WARNING: kernel stack regs at 979f9f70 in kworker/u4:1:648 has bad 'bp' value (null) [ 20.993353] unwind stack type:0 next_sp: (null) mask:0x2 graph_idx:0 [ 20.993355] 979f9e14: ... [ 20.993359] 979f9e18: 979f9e64 (0x979f9e64) [ 20.993366] 979f9e1c: 9462d75f (__save_stack_trace+0x112/0x11c) [ 20.993369] 979f9e20: 009f9e2c (0x9f9e2c) # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start 045c5205823fc3cd4e5cafdedb2cc7d434424909 v4.13 -- git bisect bad e77d3b0c4a6a973872652601aae35d4ab1785fb4 # 16:56 B 15 3 15 17 Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip git bisect bad 42c8e86c9c3e15ac653c31d57b2f985579c2991d # 17:21 B 36 2 36 38 Merge tag 'trace-v4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace git bisect bad 77d0ab600af4bf5152bc98d0ac1edbc34c1e5fdf # 17:34 B 5 10 0 Merge tag 'gfs2-4.14.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2 git bisect good 93cc1228b4a60584f3dadbd84f19f365bb945acb # 18:22 G106 01 1 Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip git bisect bad bf1d6b2c76eda86159519bf5c427b1fa8f51f733 # 18:34 B 13 4
[fw_cfg] c8bf448ff3: kernel_BUG_at_arch/x86/mm/physaddr.c
FYI, we noticed the following commit (built with gcc-7): commit: c8bf448ff3899860de51fbae61a43619c912ddf2 ("fw_cfg: do DMA read operation") https://git.kernel.org/cgit/linux/kernel/git/mst/vhost.git vhost in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -m 420M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | b4b818b1f7 | c8bf448ff3 | +--+++ | boot_successes | 8 | 0 | | boot_failures| 0 | 8 | | kernel_BUG_at_arch/x86/mm/physaddr.c | 0 | 8 | | invalid_opcode:#[##] | 0 | 8 | | RIP:__phys_addr | 0 | 8 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 8 | +--+++ [ 19.254526] kernel BUG at arch/x86/mm/physaddr.c:27! [ 19.255580] invalid opcode: [#1] [ 19.256147] Modules linked in: [ 19.256561] CPU: 0 PID: 1 Comm: swapper Not tainted 4.15.0-00020-gc8bf448 #1 [ 19.256561] RIP: 0010:__phys_addr+0x4f/0x90 [ 19.256561] RSP: :c900bc50 EFLAGS: 00010287 [ 19.256561] RAX: 7800 RBX: 880017c5ff20 RCX: 880017c5ff20 [ 19.256561] RDX: 8000 RSI: RDI: [ 19.256561] RBP: c900bc50 R08: 8802e750 R09: [ 19.256561] R10: 880017c5ff20 R11: R12: 0400 [ 19.256561] R13: 0004 R14: R15: 0400 [ 19.256561] FS: () GS:82849000() knlGS: [ 19.256561] CS: 0010 DS: ES: CR0: 80050033 [ 19.256561] CR2: CR3: 0281b000 CR4: 06b0 [ 19.256561] Call Trace: [ 19.256561] fw_cfg_dma_transfer+0x5c/0x130 [ 19.256561] fw_cfg_read_blob+0x132/0x250 [ 19.256561] fw_cfg_sysfs_probe+0x43e/0xa40 [ 19.256561] ? mutex_unlock+0x1d/0x30 [ 19.256561] platform_drv_probe+0x5e/0x130 [ 19.256561] driver_probe_device+0x5c2/0x770 [ 19.256561] __driver_attach+0x14c/0x1d0 [ 19.256561] ? driver_probe_device+0x770/0x770 [ 19.256561] bus_for_each_dev+0xa7/0xf0 [ 19.256561] driver_attach+0x21/0x30 [ 19.256561] bus_add_driver+0x318/0x420 [ 19.256561] ? firmware_map_add_early+0x84/0x84 [ 19.256561] driver_register+0xa7/0x190 [ 19.256561] ? firmware_map_add_early+0x84/0x84 [ 19.256561] __platform_driver_register+0x39/0x50 [ 19.256561] fw_cfg_sysfs_init+0x4e/0x8e [ 19.256561] ? firmware_map_add_early+0x84/0x84 [ 19.256561] do_one_initcall+0x53/0x285 [ 19.256561] kernel_init_freeable+0x1dc/0x2d8 [ 19.256561] ? rest_init+0x140/0x140 [ 19.256561] kernel_init+0x11/0x1d0 [ 19.256561] ret_from_fork+0x1f/0x30 [ 19.256561] Code: 01 f8 48 39 c2 72 24 0f b6 0d 9a 17 e3 01 48 89 c2 48 83 05 e3 5e fc 01 01 48 d3 ea 48 85 d2 75 0a 48 83 05 db 5e fc 01 01 5d c3 <0f> 0b 48 83 05 d7 5e fc 01 01 48 8b 05 30 54 7c 01 48 83 05 98 [ 19.256561] RIP: __phys_addr+0x4f/0x90 RSP: c900bc50 [ 19.285532] ---[ end trace 4c809434fb988277 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, lkp # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.15.0 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ZONE_DMA32=y CONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=4 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_BROKEN_ON_SMP=y
[x86/head/64] e5a6f186af: BUG:kernel_hang_in_boot_stage
Greeting, FYI, we noticed the following commit (built with gcc-7): commit: e5a6f186afc353e4462a28b4bf127e872e0716b2 ("[PATCH v3 70/75] x86/head/64: Setup TSS early for secondary CPUs") url: https://github.com/0day-ci/linux/commits/Joerg-Roedel/x86-SEV-ES-Guest-Support/20200429-044743 in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +---+++ | | 8d9d92d58d | e5a6f186af | +---+++ | boot_successes| 4 | 0 | | boot_failures | 0 | 4 | | BUG:kernel_hang_in_boot_stage | 0 | 4 | +---+++ If you fix the issue, kindly add following tag Reported-by: kernel test robot needed_size: 0x0240 trampoline_32bit: 0x0009d000 Decompressing Linux... Parsing ELF... done. Booting the kernel. BUG: kernel hang in boot stage Linux version 5.7.0-rc2-00092-ge5a6f186afc353 #1 Command line: ip=vm-snb-ssd-16::dhcp root=/dev/ram0 user=lkp job=/lkp/jobs/scheduled/vm-snb-ssd-16/boot-1-yocto-x86_64-minimal-20190520.cgz-e5a6f186afc353e4462a28b4bf127e872e0716b2-20200507-6867-rkmir2-3.yaml ARCH=x86_64 kconfig=x86_64-lkp branch=linux-devel/devel-hourly-2020050609 commit=e5a6f186afc353e4462a28b4bf127e872e0716b2 BOOT_IMAGE=/pkg/linux/x86_64-lkp/gcc-7/e5a6f186afc353e4462a28b4bf127e872e0716b2/vmlinuz-5.7.0-rc2-00092-ge5a6f186afc353 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-snb-ssd/yocto-x86_64-minimal-20190520.cgz/x86_64-lkp/gcc-7/e5a6f186afc353e4462a28b4bf127e872e0716b2/3 LKP_SERVER=inn selinux=0 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 drbd.minor_count=8 systemd.log_level=err ignore_loglevel console=tty0 earlyprintk=ttyS0,115200 console=ttyS0,115200 vga=normal rw rcuperf.shutdown=0 watchdog_thresh=60 Elapsed time: 420 To reproduce: # build kernel cd linux cp config-5.7.0-rc2-00092-ge5a6f186afc353 .config make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, lkp # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 5.7.0-rc2 Kernel Configuration # # # Compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 # CONFIG_CC_IS_GCC=y CONFIG_GCC_VERSION=70500 CONFIG_LD_VERSION=23400 CONFIG_CLANG_VERSION=0 CONFIG_CC_CAN_LINK=y CONFIG_CC_HAS_ASM_GOTO=y CONFIG_CC_HAS_ASM_INLINE=y CONFIG_CC_HAS_WARN_MAYBE_UNINITIALIZED=y CONFIG_CC_DISABLE_WARN_MAYBE_UNINITIALIZED=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_TABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_INIT_ENV_ARG_LIMIT=32 # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_BUILD_SALT="" CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y CONFIG_KERNEL_GZIP=y # CONFIG_KERNEL_BZIP2 is not set # CONFIG_KERNEL_LZMA is not set # CONFIG_KERNEL_XZ is not set # CONFIG_KERNEL_LZO is not set # CONFIG_KERNEL_LZ4 is not set CONFIG_DEFAULT_HOSTNAME="(none)" CONFIG_SWAP=y CONFIG_SYSVIPC=y CONFIG_SYSVIPC_SYSCTL=y CONFIG_POSIX_MQUEUE=y CONFIG_POSIX_MQUEUE_SYSCTL=y CONFIG_CROSS_MEMORY_ATTACH=y CONFIG_USELIB=y # CONFIG_AUDIT is not set CONFIG_HAVE_ARCH_AUDITSYSCALL=y # # IRQ subsystem # CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_IRQ_SHOW=y CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y CONFIG_GENERIC_PENDING_IRQ=y CONFIG_GENERIC_IRQ_MIGRATION=y CONFIG_HARDIRQS_SW_RESEND=y CONFIG_IRQ_DOMAIN=y CONFIG_IRQ_SIM=y CONFIG_IRQ_DOMAIN_HIERARCHY=y CONFIG_GENERIC_MSI_IRQ=y CONFIG_GENERIC_MSI_IRQ_DOMAIN=y CONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=y CONFIG_GENERIC_IRQ_RESERVATION_MODE=y CONFIG_IRQ_FORCED_THREADING=y CONFIG_SPARSE_IRQ=y # CONFIG_GENERIC_IRQ_DEBUGFS is not set # end of IRQ subsystem CONFIG_CLOCKSOURCE_WATCHDOG=y CONFIG_ARCH_CLOCKSOURCE_INIT=y CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y CONFIG_GENERIC_TIME_VSYSCALL=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y CONFIG_GENERIC_CMOS_UPDATE=y # # Timers subsystem # CONFIG_TICK_ONESHOT=y CONFIG_NO_HZ_COMMON=y # CONFIG_HZ_PERIODIC is not set CONFIG_NO_HZ_IDLE=y # CONFIG_NO_HZ_FULL is not set CONFIG_NO_HZ=y CONFIG_HIGH_RES_TIMERS=y # end of Timers subsystem # CONFIG_PREEMPT_NONE is not set CONFIG_PREEMPT_VOLUNTARY=y # CONFIG_PREEMPT is not set CONFIG_PREEMPT_COUNT=y # # CPU/Task time and stats a
Re: [PATCH v10 2/2] s390: virtio: PV needs VIRTIO I/O device protection
Hi Pierre, I love your patch! Perhaps something to improve: [auto build test WARNING on linux/master] [cannot apply to s390/features linus/master v5.9-rc3 next-20200828] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Pierre-Morel/s390-virtio-let-arch-validate-VIRTIO-features/20200831-171552 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git bcf876870b95592b52519ed4aafcf9d95999bc9c config: s390-randconfig-r004-20200831 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c10e63677f5d20f18010f8f68c631ddc97546f7d) 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 # install s390 cross compiling tool for clang build # apt-get install binutils-s390x-linux-gnu # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:20:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0xff00UL) << 8) |\ ^ In file included from arch/s390/mm/init.c:20: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: In file included from include/linux/writeback.h:14: In file included from include/linux/blk-cgroup.h:23: In file included from include/linux/blkdev.h:28: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:72: include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr)); ~~ ^ include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0x00ffUL) >> 8) |\ ^ In file included from arch/s390/mm/init.c:20: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: In file included from include/linux/writeback.h:14: In file included from include/linux/blk-cgroup.h:23: In file included from include/linux/blkdev.h:28: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:72: include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr)); ~~ ^ include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0xff00UL) >> 24))) ^ In file included from arch/s390/mm/init.c:20: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: In file included from include/linux/writeback.h:14: In file included from include/linux/blk-cgroup.h:23: In file included from include/linux/blkdev.h:28: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:72: include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
Re: [PATCH v3 3/7] mm/memory_hotplug: prepare passing flags to add_memory() and friends
Hi David, I love your patch! Yet something to improve: [auto build test ERROR on next-20200909] [cannot apply to mmotm/master hnaz-linux-mm/master xen-tip/linux-next powerpc/next linus/master v5.9-rc4 v5.9-rc3 v5.9-rc2 v5.9-rc4] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/David-Hildenbrand/mm-memory_hotplug-selective-merging-of-system-ram-resources/20200910-171630 base:7204eaa2c1f509066486f488c9dcb065d7484494 config: x86_64-randconfig-a016-20200909 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 0a5dc7effb191eff740e0e7ae7bd8e1f6bdb3ad9) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): WARNING: unmet direct dependencies detected for PHY_SAMSUNG_UFS Depends on OF && (ARCH_EXYNOS || COMPILE_TEST Selected by - SCSI_UFS_EXYNOS && SCSI_LOWLEVEL && SCSI && SCSI_UFSHCD_PLATFORM && (ARCH_EXYNOS || COMPILE_TEST In file included from arch/x86/kernel/asm-offsets.c:9: In file included from include/linux/crypto.h:20: In file included from include/linux/slab.h:15: In file included from include/linux/gfp.h:6: In file included from include/linux/mmzone.h:853: >> include/linux/memory_hotplug.h:354:55: error: unknown type name 'mhp_t' extern int __add_memory(int nid, u64 start, u64 size, mhp_t mhp_flags); ^ include/linux/memory_hotplug.h:355:53: error: unknown type name 'mhp_t' extern int add_memory(int nid, u64 start, u64 size, mhp_t mhp_flags); ^ include/linux/memory_hotplug.h:357:11: error: unknown type name 'mhp_t' mhp_t mhp_flags); ^ include/linux/memory_hotplug.h:360:10: error: unknown type name 'mhp_t' mhp_t mhp_flags); ^ 4 errors generated. Makefile Module.symvers System.map arch block certs crypto drivers fs include init ipc kernel lib mm modules.builtin modules.builtin.modinfo modules.order net scripts security sound source tools usr virt vmlinux vmlinux.o vmlinux.symvers [scripts/Makefile.build:117: arch/x86/kernel/asm-offsets.s] Error 1 Target '__build' not remade because of errors. Makefile Module.symvers System.map arch block certs crypto drivers fs include init ipc kernel lib mm modules.builtin modules.builtin.modinfo modules.order net scripts security sound source tools usr virt vmlinux vmlinux.o vmlinux.symvers [Makefile:1196: prepare0] Error 2 Target 'prepare' not remade because of errors. make: Makefile Module.symvers System.map arch block certs crypto drivers fs include init ipc kernel lib mm modules.builtin modules.builtin.modinfo modules.order net scripts security sound source tools usr virt vmlinux vmlinux.o vmlinux.symvers [Makefile:185: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. # https://github.com/0day-ci/linux/commit/d88270d1c0783a7f99f24a85692be90fd2ae0d7d git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review David-Hildenbrand/mm-memory_hotplug-selective-merging-of-system-ram-resources/20200910-171630 git checkout d88270d1c0783a7f99f24a85692be90fd2ae0d7d vim +/mhp_t +354 include/linux/memory_hotplug.h 352 353 extern void __ref free_area_init_core_hotplug(int nid); > 354 extern int __add_memory(int nid, u64 start, u64 size, mhp_t mhp_flags); --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v11 2/2] s390: virtio: PV needs VIRTIO I/O device protection
Hi Pierre, I love your patch! Perhaps something to improve: [auto build test WARNING on s390/features] [also build test WARNING on linus/master v5.9-rc4 next-20200903] [cannot apply to linux/master kvms390/next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Pierre-Morel/s390-virtio-let-arch-validate-VIRTIO-features/20200907-174101 base: https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git features config: s390-randconfig-r006-20200908 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 5f5a0bb0872a9673bad08b38bc0b14c42263902a) 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 # install s390 cross compiling tool for clang build # apt-get install binutils-s390x-linux-gnu # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:20:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0xff00UL) << 8) |\ ^ In file included from arch/s390/mm/init.c:20: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: In file included from include/linux/writeback.h:14: In file included from include/linux/blk-cgroup.h:23: In file included from include/linux/blkdev.h:25: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:72: include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~ ^ include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0x00ffUL) >> 8) |\ ^ In file included from arch/s390/mm/init.c:20: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: In file included from include/linux/writeback.h:14: In file included from include/linux/blk-cgroup.h:23: In file included from include/linux/blkdev.h:25: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:72: include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~ ^ include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0xff00UL) >> 24))) ^ In file included from arch/s390/mm/init.c:20: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: In file included from include/linux/writeback.h:14: In file included from include/linux/blk-cgroup.h:23: In file included from include/linux/blkdev.h:25: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:72: include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((_
Re: [PATCH v3 3/7] mm/memory_hotplug: prepare passing flags to add_memory() and friends
Hi David, I love your patch! Perhaps something to improve: [auto build test WARNING on next-20200909] [cannot apply to mmotm/master hnaz-linux-mm/master xen-tip/linux-next powerpc/next linus/master v5.9-rc4 v5.9-rc3 v5.9-rc2 v5.9-rc4] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/David-Hildenbrand/mm-memory_hotplug-selective-merging-of-system-ram-resources/20200910-171630 base:7204eaa2c1f509066486f488c9dcb065d7484494 :: branch date: 9 hours ago :: commit date: 9 hours ago config: powerpc-randconfig-r011-20200909 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 0a5dc7effb191eff740e0e7ae7bd8e1f6bdb3ad9) 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 # install powerpc cross compiling tool for clang build # apt-get install binutils-powerpc-linux-gnu # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from arch/powerpc/kernel/asm-offsets.c:14: In file included from include/linux/compat.h:17: In file included from include/linux/fs.h:15: In file included from include/linux/radix-tree.h:18: In file included from include/linux/xarray.h:14: In file included from include/linux/gfp.h:6: In file included from include/linux/mmzone.h:853: include/linux/memory_hotplug.h:354:55: error: unknown type name 'mhp_t' extern int __add_memory(int nid, u64 start, u64 size, mhp_t mhp_flags); ^ include/linux/memory_hotplug.h:355:53: error: unknown type name 'mhp_t' extern int add_memory(int nid, u64 start, u64 size, mhp_t mhp_flags); ^ include/linux/memory_hotplug.h:357:11: error: unknown type name 'mhp_t' mhp_t mhp_flags); ^ include/linux/memory_hotplug.h:360:10: error: unknown type name 'mhp_t' mhp_t mhp_flags); ^ In file included from arch/powerpc/kernel/asm-offsets.c:21: >> include/linux/mman.h:137:9: warning: division by zero is undefined >> [-Wdivision-by-zero] _calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED) | ^~~~ include/linux/mman.h:115:21: note: expanded from macro '_calc_vm_trans' : ((x) & (bit1)) / ((bit1) / (bit2 ^ ~ include/linux/mman.h:138:9: warning: division by zero is undefined [-Wdivision-by-zero] _calc_vm_trans(flags, MAP_SYNC, VM_SYNC ); ^~~~ include/linux/mman.h:115:21: note: expanded from macro '_calc_vm_trans' : ((x) & (bit1)) / ((bit1) / (bit2 ^ ~ 2 warnings and 4 errors generated. make[2]: *** [scripts/Makefile.build:117: arch/powerpc/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1196: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:185: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. # https://github.com/0day-ci/linux/commit/d88270d1c0783a7f99f24a85692be90fd2ae0d7d git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review David-Hildenbrand/mm-memory_hotplug-selective-merging-of-system-ram-resources/20200910-171630 git checkout d88270d1c0783a7f99f24a85692be90fd2ae0d7d vim +137 include/linux/mman.h ^1da177e4c3f41 Linus Torvalds 2005-04-16 128 ^1da177e4c3f41 Linus Torvalds 2005-04-16 129 /* ^1da177e4c3f41 Linus Torvalds 2005-04-16 130 * Combine the mmap "flags" argument into "vm_flags" used internally. ^1da177e4c3f41 Linus Torvalds 2005-04-16 131 */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 132 static inline unsigned long ^1da177e4c3f41 Linus Torvalds 2005-04-16 133 calc_vm_flag_bits(unsigned long flags) ^1da177e4c3f41 Linus Torvalds 2005-04-16 134 { ^1da177e4c3f41 Linus Torvalds 2005-04-16 135 return _calc_vm_trans(flags, MAP_GROWSDOWN, VM_GROWSDOWN ) | ^1da177e4c3f41 Linus Torvalds 2005-04-16 136 _calc_vm_trans(flags, MAP_DENYWRITE, VM_DENYWRITE ) | b6fb293f2497a9 Jan Kara2017-11-01 @137
Re: [PATCH v4] i2c: virtio: add a virtio i2c frontend driver
Hi Jie, Thank you for the patch! Yet something to improve: [auto build test ERROR on wsa/i2c/for-next] [also build test ERROR on vhost/linux-next linus/master linux/master v5.9 next-20201009] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Jie-Deng/i2c-virtio-add-a-virtio-i2c-frontend-driver/20201012-095821 base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next config: x86_64-randconfig-a004-20201012 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 9e72d3eaf38f217698f72cb8fdc969a6e72dad3a) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/0day-ci/linux/commit/152ef3f6057acca49f276933274b09df8880243d git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Jie-Deng/i2c-virtio-add-a-virtio-i2c-frontend-driver/20201012-095821 git checkout 152ef3f6057acca49f276933274b09df8880243d # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> error: include/uapi/linux/virtio_i2c.h: missing "WITH Linux-syscall-note" >> for SPDX-License-Identifier make[2]: *** [scripts/Makefile.headersinst:63: usr/include/linux/virtio_i2c.h] Error 1 make[2]: Target '__headers' not remade because of errors. make[1]: *** [Makefile:1286: headers] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:185: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH 04/16] vhost: prep vhost_dev_init users to handle failures
Hi Mike, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on vhost/linux-next] [also build test WARNING on next-20201007] [cannot apply to v5.9-rc8] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Mike-Christie/vhost-fix-scsi-cmd-handling-and-IOPs/20201008-045802 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: x86_64-randconfig-a016-20201008 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 4d1d8ae7100ec3c7e1709addb7b3ec6f9ad0b44f) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/0day-ci/linux/commit/7dc4d1082d406f391238a1897cb030f33c382bc3 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Mike-Christie/vhost-fix-scsi-cmd-handling-and-IOPs/20201008-045802 git checkout 7dc4d1082d406f391238a1897cb030f33c382bc3 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/vhost/vdpa.c:820:6: warning: variable 'r' is used uninitialized >> whenever 'if' condition is true [-Wsometimes-uninitialized] if (vhost_dev_init(dev, vqs, nvqs, 0, 0, 0, false, ^~ drivers/vhost/vdpa.c:844:9: note: uninitialized use occurs here return r; ^ drivers/vhost/vdpa.c:820:2: note: remove the 'if' if its condition is always false if (vhost_dev_init(dev, vqs, nvqs, 0, 0, 0, false, ^~ drivers/vhost/vdpa.c:798:16: note: initialize the variable 'r' to silence this warning int nvqs, i, r, opened; ^ = 0 1 warning generated. vim +820 drivers/vhost/vdpa.c 792 793 static int vhost_vdpa_open(struct inode *inode, struct file *filep) 794 { 795 struct vhost_vdpa *v; 796 struct vhost_dev *dev; 797 struct vhost_virtqueue **vqs; 798 int nvqs, i, r, opened; 799 800 v = container_of(inode->i_cdev, struct vhost_vdpa, cdev); 801 802 opened = atomic_cmpxchg(>opened, 0, 1); 803 if (opened) 804 return -EBUSY; 805 806 nvqs = v->nvqs; 807 vhost_vdpa_reset(v); 808 809 vqs = kmalloc_array(nvqs, sizeof(*vqs), GFP_KERNEL); 810 if (!vqs) { 811 r = -ENOMEM; 812 goto err; 813 } 814 815 dev = >vdev; 816 for (i = 0; i < nvqs; i++) { 817 vqs[i] = >vqs[i]; 818 vqs[i]->handle_kick = handle_vq_kick; 819 } > 820 if (vhost_dev_init(dev, vqs, nvqs, 0, 0, 0, false, 821 vhost_vdpa_process_iotlb_msg)) 822 goto err_dev_init; 823 824 dev->iotlb = vhost_iotlb_alloc(0, 0); 825 if (!dev->iotlb) { 826 r = -ENOMEM; 827 goto err_init_iotlb; 828 } 829 830 r = vhost_vdpa_alloc_domain(v); 831 if (r) 832 goto err_init_iotlb; 833 834 filep->private_data = v; 835 836 return 0; 837 838 err_init_iotlb: 839 vhost_dev_cleanup(>vdev); 840 err_dev_init: 841 kfree(vqs); 842 err: 843 atomic_dec(>opened); 844 return r; 845 } 846 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH 14/16] vhost: poll support support multiple workers
Hi Mike, Thank you for the patch! Yet something to improve: [auto build test ERROR on vhost/linux-next] [also build test ERROR on next-20201007] [cannot apply to v5.9-rc8] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Mike-Christie/vhost-fix-scsi-cmd-handling-and-IOPs/20201008-045802 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: m68k-allyesconfig (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/0day-ci/linux/commit/c9bcafefcac3c32ade0ba533609d7b1ddc343c54 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Mike-Christie/vhost-fix-scsi-cmd-handling-and-IOPs/20201008-045802 git checkout c9bcafefcac3c32ade0ba533609d7b1ddc343c54 # 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 All errors (new ones prefixed by >>): >> m68k-linux-ld: drivers/vhost/scsi.o:(.bss+0x0): multiple definition of `vq'; >> drivers/vhost/net.o:(.bss+0x0): first defined here m68k-linux-ld: drivers/vhost/vsock.o:(.bss+0x0): multiple definition of `vq'; drivers/vhost/net.o:(.bss+0x0): first defined here m68k-linux-ld: drivers/vhost/vdpa.o:(.bss+0x0): multiple definition of `vq'; drivers/vhost/net.o:(.bss+0x0): first defined here m68k-linux-ld: drivers/vhost/vhost.o:(.bss+0x0): multiple definition of `vq'; drivers/vhost/net.o:(.bss+0x0): first defined here --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH V2 3/3] vdpa_sim: implement get_iova_range()
Hi Jason, I love your patch! Perhaps something to improve: [auto build test WARNING on vhost/linux-next] [also build test WARNING on linus/master v5.9-rc1 next-20200821] [cannot apply to linux/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Jason-Wang/vDPA-API-for-reporting-IOVA-range/20200821-173030 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: ia64-allmodconfig (attached as .config) compiler: ia64-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 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/vdpa/vdpa_sim/vdpa_sim.c:577:24: warning: no previous prototype for >> 'vdpasim_get_iova_range' [-Wmissing-prototypes] 577 | struct vdpa_iova_range vdpasim_get_iova_range(struct vdpa_device *vdpa) |^~ # https://github.com/0day-ci/linux/commit/fba5ff6281e9d46144860bcc558068b5516e5e62 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Jason-Wang/vDPA-API-for-reporting-IOVA-range/20200821-173030 git checkout fba5ff6281e9d46144860bcc558068b5516e5e62 vim +/vdpasim_get_iova_range +577 drivers/vdpa/vdpa_sim/vdpa_sim.c 576 > 577 struct vdpa_iova_range vdpasim_get_iova_range(struct vdpa_device *vdpa) 578 { 579 struct vdpa_iova_range range = { 580 .first = 0ULL, 581 .last = ULLONG_MAX, 582 }; 583 584 return range; 585 } 586 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
[RFC PATCH] vdpa_sim: vdpasim_get_iova_range() can be static
Signed-off-by: kernel test robot --- vdpa_sim.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim.c b/drivers/vdpa/vdpa_sim/vdpa_sim.c index 89854e17c3c27b..ff6c9fd8d879bd 100644 --- a/drivers/vdpa/vdpa_sim/vdpa_sim.c +++ b/drivers/vdpa/vdpa_sim/vdpa_sim.c @@ -574,7 +574,7 @@ static u32 vdpasim_get_generation(struct vdpa_device *vdpa) return vdpasim->generation; } -struct vdpa_iova_range vdpasim_get_iova_range(struct vdpa_device *vdpa) +static struct vdpa_iova_range vdpasim_get_iova_range(struct vdpa_device *vdpa) { struct vdpa_iova_range range = { .first = 0ULL, ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH V2 3/3] vdpa_sim: implement get_iova_range()
Hi Jason, I love your patch! Perhaps something to improve: [auto build test WARNING on vhost/linux-next] [also build test WARNING on linus/master v5.9-rc1 next-20200821] [cannot apply to linux/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Jason-Wang/vDPA-API-for-reporting-IOVA-range/20200821-173030 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: x86_64-randconfig-a002-20200820 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b587ca93be114d07ec3bf654add97d7872325281) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/vdpa/vdpa_sim/vdpa_sim.c:577:24: warning: no previous prototype for >> function 'vdpasim_get_iova_range' [-Wmissing-prototypes] struct vdpa_iova_range vdpasim_get_iova_range(struct vdpa_device *vdpa) ^ drivers/vdpa/vdpa_sim/vdpa_sim.c:577:1: note: declare 'static' if the function is not intended to be used outside of this translation unit struct vdpa_iova_range vdpasim_get_iova_range(struct vdpa_device *vdpa) ^ static drivers/vdpa/vdpa_sim/vdpa_sim.c:89:19: warning: unused function 'vdpasim16_to_cpu' [-Wunused-function] static inline u16 vdpasim16_to_cpu(struct vdpasim *vdpasim, __virtio16 val) ^ 2 warnings generated. # https://github.com/0day-ci/linux/commit/fba5ff6281e9d46144860bcc558068b5516e5e62 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Jason-Wang/vDPA-API-for-reporting-IOVA-range/20200821-173030 git checkout fba5ff6281e9d46144860bcc558068b5516e5e62 vim +/vdpasim_get_iova_range +577 drivers/vdpa/vdpa_sim/vdpa_sim.c 576 > 577 struct vdpa_iova_range vdpasim_get_iova_range(struct vdpa_device *vdpa) 578 { 579 struct vdpa_iova_range range = { 580 .first = 0ULL, 581 .last = ULLONG_MAX, 582 }; 583 584 return range; 585 } 586 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH V2 3/3] vdpa_sim: implement get_iova_range()
Hi Jason, I love your patch! Perhaps something to improve: [auto build test WARNING on vhost/linux-next] [also build test WARNING on linus/master v5.9-rc1 next-20200821] [cannot apply to linux/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Jason-Wang/vDPA-API-for-reporting-IOVA-range/20200821-173030 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: arm-randconfig-r026-20200820 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b587ca93be114d07ec3bf654add97d7872325281) 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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/vdpa/vdpa_sim/vdpa_sim.c:577:24: warning: no previous prototype for >> function 'vdpasim_get_iova_range' [-Wmissing-prototypes] struct vdpa_iova_range vdpasim_get_iova_range(struct vdpa_device *vdpa) ^ drivers/vdpa/vdpa_sim/vdpa_sim.c:577:1: note: declare 'static' if the function is not intended to be used outside of this translation unit struct vdpa_iova_range vdpasim_get_iova_range(struct vdpa_device *vdpa) ^ static drivers/vdpa/vdpa_sim/vdpa_sim.c:89:19: warning: unused function 'vdpasim16_to_cpu' [-Wunused-function] static inline u16 vdpasim16_to_cpu(struct vdpasim *vdpasim, __virtio16 val) ^ 2 warnings generated. # https://github.com/0day-ci/linux/commit/fba5ff6281e9d46144860bcc558068b5516e5e62 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Jason-Wang/vDPA-API-for-reporting-IOVA-range/20200821-173030 git checkout fba5ff6281e9d46144860bcc558068b5516e5e62 vim +/vdpasim_get_iova_range +577 drivers/vdpa/vdpa_sim/vdpa_sim.c 576 > 577 struct vdpa_iova_range vdpasim_get_iova_range(struct vdpa_device *vdpa) 578 { 579 struct vdpa_iova_range range = { 580 .first = 0ULL, 581 .last = ULLONG_MAX, 582 }; 583 584 return range; 585 } 586 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH V2 3/3] vdpa_sim: implement get_iova_range()
Hi Jason, I love your patch! Perhaps something to improve: [auto build test WARNING on vhost/linux-next] [also build test WARNING on linus/master v5.9-rc1 next-20200821] [cannot apply to linux/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Jason-Wang/vDPA-API-for-reporting-IOVA-range/20200821-173030 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: i386-randconfig-s001-20200820 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.2-191-g10164920-dirty # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/vdpa/vdpa_sim/vdpa_sim.c:577:24: sparse: sparse: symbol >> 'vdpasim_get_iova_range' was not declared. Should it be static? Please review and possibly fold the followup patch. --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH 3/8] vhost scsi: alloc cmds per vq instead of session
Hi Mike, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on vhost/linux-next] [also build test WARNING on v5.9-rc6 next-20200921] [cannot apply to target/for-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Mike-Christie/vhost-scsi-fixes-and-cleanups/20200922-031251 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: s390-randconfig-r022-20200920 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 4e8c028158b56d9c2142a62464e8e0686bde3584) 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 # install s390 cross compiling tool for clang build # apt-get install binutils-s390x-linux-gnu # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr)); ~~ ^ include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:20:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0xff00UL) << 8) |\ ^ In file included from drivers/vhost/scsi.c:45: In file included from include/uapi/linux/vhost.h:14: In file included from include/uapi/linux/vhost_types.h:16: In file included from include/linux/virtio_config.h:7: In file included from include/linux/virtio.h:7: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:72: include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr)); ~~ ^ include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0x00ffUL) >> 8) |\ ^ In file included from drivers/vhost/scsi.c:45: In file included from include/uapi/linux/vhost.h:14: In file included from include/uapi/linux/vhost_types.h:16: In file included from include/linux/virtio_config.h:7: In file included from include/linux/virtio.h:7: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:72: include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr)); ~~ ^ include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0xff00UL) >> 24))) ^ In file included from drivers/vhost/scsi.c:45: In file included from include/uapi/linux/vhost.h:14: In file included from include/uapi/linux/vhost_types.h:16: In file included from include/linux/virtio_config.h:7: In file included from include/linux/virtio.h:7: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:72: include/asm-generic/io.h
Re: [PATCH 04/17] vhost: prep vhost_dev_init users to handle failures
Hi Mike, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on vhost/linux-next] [also build test WARNING on v5.9 next-20201021] [cannot apply to target/for-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Mike-Christie/vhost-fix-scsi-cmd-handling-and-cgroup-support/20201022-083844 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: x86_64-randconfig-a013-20201021 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ee6abef5323d59b983129bf3514ef6775d1d6cd5) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/0day-ci/linux/commit/6e1629548d318c2c9af7490379a3c9d7e3cba0d5 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Mike-Christie/vhost-fix-scsi-cmd-handling-and-cgroup-support/20201022-083844 git checkout 6e1629548d318c2c9af7490379a3c9d7e3cba0d5 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/vhost/vsock.c:633:6: warning: variable 'ret' is used uninitialized >> whenever 'if' condition is true [-Wsometimes-uninitialized] if (vhost_dev_init(>dev, vqs, ARRAY_SIZE(vsock->vqs), ^~~~ drivers/vhost/vsock.c:648:9: note: uninitialized use occurs here return ret; ^~~ drivers/vhost/vsock.c:633:2: note: remove the 'if' if its condition is always false if (vhost_dev_init(>dev, vqs, ARRAY_SIZE(vsock->vqs), ^~~~ drivers/vhost/vsock.c:609:9: note: initialize the variable 'ret' to silence this warning int ret; ^ = 0 1 warning generated. vim +633 drivers/vhost/vsock.c 604 605 static int vhost_vsock_dev_open(struct inode *inode, struct file *file) 606 { 607 struct vhost_virtqueue **vqs; 608 struct vhost_vsock *vsock; 609 int ret; 610 611 /* This struct is large and allocation could fail, fall back to vmalloc 612 * if there is no other way. 613 */ 614 vsock = kvmalloc(sizeof(*vsock), GFP_KERNEL | __GFP_RETRY_MAYFAIL); 615 if (!vsock) 616 return -ENOMEM; 617 618 vqs = kmalloc_array(ARRAY_SIZE(vsock->vqs), sizeof(*vqs), GFP_KERNEL); 619 if (!vqs) { 620 ret = -ENOMEM; 621 goto out; 622 } 623 624 vsock->guest_cid = 0; /* no CID assigned yet */ 625 626 atomic_set(>queued_replies, 0); 627 628 vqs[VSOCK_VQ_TX] = >vqs[VSOCK_VQ_TX]; 629 vqs[VSOCK_VQ_RX] = >vqs[VSOCK_VQ_RX]; 630 vsock->vqs[VSOCK_VQ_TX].handle_kick = vhost_vsock_handle_tx_kick; 631 vsock->vqs[VSOCK_VQ_RX].handle_kick = vhost_vsock_handle_rx_kick; 632 > 633 if (vhost_dev_init(>dev, vqs, ARRAY_SIZE(vsock->vqs), 634 UIO_MAXIOV, VHOST_VSOCK_PKT_WEIGHT, 635 VHOST_VSOCK_WEIGHT, true, NULL)) 636 goto err_dev_init; 637 638 file->private_data = vsock; 639 spin_lock_init(>send_pkt_list_lock); 640 INIT_LIST_HEAD(>send_pkt_list); 641 vhost_work_init(>send_pkt_work, vhost_transport_send_pkt_work); 642 return 0; 643 644 err_dev_init: 645 kfree(vqs); 646 out: 647 vhost_vsock_free(vsock); 648 return ret; 649 } 650 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [Intel-gfx] [PATCH 5/5] drm/: Constify struct drm_driver
Hi Daniel, I love your patch! Perhaps something to improve: [auto build test WARNING on drm-tip/drm-tip] [cannot apply to drm-intel/for-linux-next drm-exynos/exynos-drm-next linus/master v5.9 next-20201023] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Daniel-Vetter/drm-radeon-Stop-changing-the-drm_driver-struct/20201023-203020 base: git://anongit.freedesktop.org/drm/drm-tip drm-tip config: arm64-randconfig-r011-20201022 (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/0day-ci/linux/commit/9e2fdb03c9047a5d4b24b3e95f0370bcc59eec5e git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Daniel-Vetter/drm-radeon-Stop-changing-the-drm_driver-struct/20201023-203020 git checkout 9e2fdb03c9047a5d4b24b3e95f0370bcc59eec5e # 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 All warnings (new ones prefixed by >>): >> drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c:921:1: warning: 'static' is >> not at beginning of declaration [-Wold-style-declaration] 921 | const static struct drm_driver ade_driver = { | ^ vim +/static +921 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 920 > 921 const static struct drm_driver ade_driver = { 922 .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC, 923 .fops = _fops, 924 DRM_GEM_CMA_DRIVER_OPS, 925 .name = "kirin", 926 .desc = "Hisilicon Kirin620 SoC DRM Driver", 927 .date = "20150718", 928 .major = 1, 929 .minor = 0, 930 }; 931 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH V3 2/3] vhost: vdpa: report iova range
Hi Jason, I love your patch! Perhaps something to improve: [auto build test WARNING on vhost/linux-next] [also build test WARNING on linus/master v5.9 next-20201023] [cannot apply to linux/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Jason-Wang/vDPA-API-for-reporting-IOVA-range/20201023-102708 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: m68k-randconfig-r034-20201022 (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/0day-ci/linux/commit/446e7b97838ebf87f1acd61580137716fdad104a git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Jason-Wang/vDPA-API-for-reporting-IOVA-range/20201023-102708 git checkout 446e7b97838ebf87f1acd61580137716fdad104a # 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 All warnings (new ones prefixed by >>): drivers/vhost/vdpa.c: In function 'vhost_vdpa_setup_vq_irq': drivers/vhost/vdpa.c:94:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 94 | int ret, irq; | ^~~ drivers/vhost/vdpa.c: In function 'vhost_vdpa_unlocked_ioctl': >> drivers/vhost/vdpa.c:483:5: warning: this statement may fall through >> [-Wimplicit-fallthrough=] 483 | r = copy_to_user(featurep, , sizeof(features)); | ~~^ drivers/vhost/vdpa.c:484:2: note: here 484 | case VHOST_VDPA_GET_IOVA_RANGE: | ^~~~ vim +483 drivers/vhost/vdpa.c 4c8cf31885f69e8 Tiwei Bie2020-03-26 426 4c8cf31885f69e8 Tiwei Bie2020-03-26 427 static long vhost_vdpa_unlocked_ioctl(struct file *filep, 4c8cf31885f69e8 Tiwei Bie2020-03-26 428 unsigned int cmd, unsigned long arg) 4c8cf31885f69e8 Tiwei Bie2020-03-26 429 { 4c8cf31885f69e8 Tiwei Bie2020-03-26 430struct vhost_vdpa *v = filep->private_data; 4c8cf31885f69e8 Tiwei Bie2020-03-26 431struct vhost_dev *d = >vdev; 4c8cf31885f69e8 Tiwei Bie2020-03-26 432void __user *argp = (void __user *)arg; a127c5bbb6a8eee Jason Wang 2020-09-07 433u64 __user *featurep = argp; a127c5bbb6a8eee Jason Wang 2020-09-07 434u64 features; 4c8cf31885f69e8 Tiwei Bie2020-03-26 435long r; 4c8cf31885f69e8 Tiwei Bie2020-03-26 436 a127c5bbb6a8eee Jason Wang 2020-09-07 437if (cmd == VHOST_SET_BACKEND_FEATURES) { a127c5bbb6a8eee Jason Wang 2020-09-07 438r = copy_from_user(, featurep, sizeof(features)); a127c5bbb6a8eee Jason Wang 2020-09-07 439if (r) a127c5bbb6a8eee Jason Wang 2020-09-07 440return r; a127c5bbb6a8eee Jason Wang 2020-09-07 441if (features & ~VHOST_VDPA_BACKEND_FEATURES) a127c5bbb6a8eee Jason Wang 2020-09-07 442return -EOPNOTSUPP; a127c5bbb6a8eee Jason Wang 2020-09-07 443 vhost_set_backend_features(>vdev, features); a127c5bbb6a8eee Jason Wang 2020-09-07 444return 0; a127c5bbb6a8eee Jason Wang 2020-09-07 445} a127c5bbb6a8eee Jason Wang 2020-09-07 446 4c8cf31885f69e8 Tiwei Bie2020-03-26 447mutex_lock(>mutex); 4c8cf31885f69e8 Tiwei Bie2020-03-26 448 4c8cf31885f69e8 Tiwei Bie2020-03-26 449switch (cmd) { 4c8cf31885f69e8 Tiwei Bie2020-03-26 450case VHOST_VDPA_GET_DEVICE_ID: 4c8cf31885f69e8 Tiwei Bie2020-03-26 451r = vhost_vdpa_get_device_id(v, argp); 4c8cf31885f69e8 Tiwei Bie2020-03-26 452break; 4c8cf31885f69e8 Tiwei Bie2020-03-26 453case VHOST_VDPA_GET_STATUS: 4c8cf31885f69e8 Tiwei Bie2020-03-26 454r = vhost_vdpa_get_status(v, argp); 4c8cf31885f69e8 Tiwei Bie2020-03-26 455break; 4c8cf31885f69e8 Tiwei Bie2020-03-26 456case VHOST_VDPA_SET_STATUS: 4c8cf31885f69e8 Tiwei Bie2020-03-26 457r = vhost_vdpa_set_status(v, argp); 4c8cf31885f69e8 Tiwei Bie2020-03-26 458break; 4c8cf31885f69e8 Tiwei Bie2020-03-26 459case VHOST_VDPA_GET_CONFIG: 4c8cf31885f69e8 Tiwei Bie2020-03-26 460r = vhost_vdpa_get_config(v, argp); 4c8cf31885f69e8 Tiwei Bie2020-03-26 461break; 4c8cf31885f69e8 Tiwei Bie2020-03-26 462case VHOST_VDPA_SET_CONFIG: 4c8cf31885f69e8 Tiwei Bie2020-03-26 463r = vhost_vdpa_se
Re: [PATCH v9 30/84] KVM: x86: export kvm_vcpu_ioctl_x86_get_xsave()
Hi "Adalbert, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on 3d9fdc252b52023260de1d12399cb3157ed28c07] url: https://github.com/0day-ci/linux/commits/Adalbert-Laz-r/VM-introspection/20200722-052036 base:3d9fdc252b52023260de1d12399cb3157ed28c07 config: mips-allmodconfig (attached as .config) compiler: mips-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 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from arch/mips/kernel/asm-offsets.c:24: >> include/linux/kvm_host.h:887:14: warning: 'struct kvm_xsave' declared inside >> parameter list will not be visible outside of this definition or declaration 887 | struct kvm_xsave *guest_xsave); | ^ arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for 'output_ptreg_defines' [-Wmissing-prototypes] 26 | void output_ptreg_defines(void) | ^~~~ arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for 'output_task_defines' [-Wmissing-prototypes] 78 | void output_task_defines(void) | ^~~ arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for 'output_thread_info_defines' [-Wmissing-prototypes] 93 | void output_thread_info_defines(void) | ^~ arch/mips/kernel/asm-offsets.c:110:6: warning: no previous prototype for 'output_thread_defines' [-Wmissing-prototypes] 110 | void output_thread_defines(void) | ^ arch/mips/kernel/asm-offsets.c:138:6: warning: no previous prototype for 'output_thread_fpu_defines' [-Wmissing-prototypes] 138 | void output_thread_fpu_defines(void) | ^ arch/mips/kernel/asm-offsets.c:181:6: warning: no previous prototype for 'output_mm_defines' [-Wmissing-prototypes] 181 | void output_mm_defines(void) | ^ arch/mips/kernel/asm-offsets.c:220:6: warning: no previous prototype for 'output_sc_defines' [-Wmissing-prototypes] 220 | void output_sc_defines(void) | ^ arch/mips/kernel/asm-offsets.c:255:6: warning: no previous prototype for 'output_signal_defined' [-Wmissing-prototypes] 255 | void output_signal_defined(void) | ^ arch/mips/kernel/asm-offsets.c:322:6: warning: no previous prototype for 'output_pbe_defines' [-Wmissing-prototypes] 322 | void output_pbe_defines(void) | ^~ arch/mips/kernel/asm-offsets.c:334:6: warning: no previous prototype for 'output_pm_defines' [-Wmissing-prototypes] 334 | void output_pm_defines(void) | ^ arch/mips/kernel/asm-offsets.c:348:6: warning: no previous prototype for 'output_kvm_defines' [-Wmissing-prototypes] 348 | void output_kvm_defines(void) | ^~ arch/mips/kernel/asm-offsets.c:392:6: warning: no previous prototype for 'output_cps_defines' [-Wmissing-prototypes] 392 | void output_cps_defines(void) | ^~ -- In file included from arch/mips/kernel/asm-offsets.c:24: >> include/linux/kvm_host.h:887:14: warning: 'struct kvm_xsave' declared inside >> parameter list will not be visible outside of this definition or declaration 887 | struct kvm_xsave *guest_xsave); | ^ arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for 'output_ptreg_defines' [-Wmissing-prototypes] 26 | void output_ptreg_defines(void) | ^~~~ arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for 'output_task_defines' [-Wmissing-prototypes] 78 | void output_task_defines(void) | ^~~ arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for 'output_thread_info_defines' [-Wmissing-prototypes] 93 | void output_thread_info_defines(void) | ^~ arch/mips/kernel/asm-offsets.c:110:6: warning: no previous prototype for 'output_thread_defines' [-Wmissing-prototypes] 110 | void output_thread_defines(void) | ^ arch/mips/kernel/asm-offsets.c:138:6: warning: no previous prototype for 'output_thread_fpu_defines' [-Wmissing-prototypes] 138 | void output_thread_fpu_defines(void) | ^ arch/mips/kernel/asm-offsets.c:18
Re: [PATCH v9 69/84] KVM: introspection: add KVMI_VCPU_GET_XCR
Hi "Adalbert, Thank you for the patch! Yet something to improve: [auto build test ERROR on 3d9fdc252b52023260de1d12399cb3157ed28c07] url: https://github.com/0day-ci/linux/commits/Adalbert-Laz-r/VM-introspection/20200722-052036 base:3d9fdc252b52023260de1d12399cb3157ed28c07 config: x86_64-randconfig-s022-20200719 (attached as .config) compiler: gcc-9 (Debian 9.3.0-14) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.2-49-g707c5017-dirty # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from :32: >> ./usr/include/asm/kvmi.h:99:2: error: unknown type name 'u64' 99 | u64 value; | ^~~ --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
[vhost:vhost 42/49] drivers/rpmsg/virtio_rpmsg_bus.c:28:10: fatal error: 'linux/virtio_rpmsg.h' file not found
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost head: dc7b1c0685d566bdd756b8a8f05ad45d28659c01 commit: bba6f4f52c31af1ce4ebcc063afa08eb063b3d2c [42/49] rpmsg: move common structures and defines to headers config: mips-randconfig-r014-20200803 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 8c39e70679e93da3af9f881d314940c570d5d822) 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 # install mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu git checkout bba6f4f52c31af1ce4ebcc063afa08eb063b3d2c # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/rpmsg/virtio_rpmsg_bus.c:28:10: fatal error: 'linux/virtio_rpmsg.h' >> file not found #include ^~ 1 error generated. vim +28 drivers/rpmsg/virtio_rpmsg_bus.c 13 14 #include 15 #include 16 #include 17 #include 18 #include 19 #include 20 #include 21 #include 22 #include 23 #include 24 #include 25 #include 26 #include 27 #include > 28 #include 29 #include 30 #include 31 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
[vhost:vhost 32/65] drivers/virtio/virtio_input.c:247:3: warning: comparison of distinct pointer types ('typeof (_Generic((virtio_cread_v), __u8: (virtio_cread_v), __le16: (__builtin_constant_p((__u16
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost head: 1a86b377aa2147a7c866b03142e848c18e5f3cb8 commit: b025584098e621d88894d28e80af686958e273af [32/65] virtio_input: convert to LE accessors config: powerpc-randconfig-r031-20200805 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 076b120bebfd727b502208601012a44ab2e1028e) 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 # install powerpc cross compiling tool for clang build # apt-get install binutils-powerpc-linux-gnu git checkout b025584098e621d88894d28e80af686958e273af # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/virtio/virtio_input.c:247:3: warning: comparison of distinct pointer >> types ('typeof (_Generic((virtio_cread_v), __u8: (virtio_cread_v), __le16: >> (__builtin_constant_p((__u16)((__u16)(__le16)(virtio_cread_v))) ? >> ((__u16)__u16)((__u16)(__le16)(virtio_cread_v)) & (__u16)255U) << 8) | >> (((__u16)((__u16)(__le16)(virtio_cread_v)) & (__u16)65280U) >> 8))) : >> __fswab16((__u16)(__le16)(virtio_cread_v))), __le32: >> (__builtin_constant_p((__u32)((__u32)(__le32)(virtio_cread_v))) ? >> ((__u32)__u32)((__u32)(__le32)(virtio_cread_v)) & (__u32)255UL) << 24) | >> (((__u32)((__u32)(__le32)(virtio_cread_v)) & (__u32)65280UL) << 8) | >> (((__u32)((__u32)(__le32)(virtio_cread_v)) & (__u32)16711680UL) >> 8) | >> (((__u32)((__u32)(__le32)(virtio_cread_v)) & (__u32)4278190080UL) >> 24))) : >> __fswab32((__u32)(__le32)(virtio_cread_v))), __le64: >> (__builtin_constant_p((__u64)((__u64)(__le64)(virtio_cread_v))) ? >> ((__u64)__u64)((__u64)(__le64)(virtio_cread_v)) & (__u64)255ULL) << 56) >> | (((__u64)((__u64)(__le64)(virtio_cread_v)) & (__u64)65280ULL) << 40) | >> (((__u64)((__u64)(__le64)(virtio_cread_v)) & (__u64)16711680ULL) << 24) | >> (((__u64)((__u64)(__le64)(virtio_cread_v)) & (__u64)4278190080ULL) << 8) | >> (((__u64)((__u64)(__le64)(virtio_cread_v)) & (__u64)1095216660480ULL) >> 8) >> | (((__u64)((__u64)(__le64)(virtio_cread_v)) & (__u64)280375465082880ULL) >> >> 24) | (((__u64)((__u64)(__le64)(virtio_cread_v)) & >> (__u64)71776119061217280ULL) >> 40) | >> (((__u64)((__u64)(__le64)(virtio_cread_v)) & (__u64)18374686479671623680ULL) >> >> 56))) : __fswab64((__u64)(__le64)(virtio_cread_v) *' (aka 'int *') >> and 'typeof (*(>idev->id.bustype)) *' (aka 'unsigned short *')) >> [-Wcompare-distinct-pointer-types] virtio_cread_le(vi->vdev, struct virtio_input_config, ^ include/linux/virtio_config.h:405:3: note: expanded from macro 'virtio_cread_le' typecheck(typeof(virtio_le_to_cpu(virtio_cread_v)), *(ptr)); \ ^~~ include/linux/typecheck.h:12:18: note: expanded from macro 'typecheck' (void)(&__dummy == &__dummy2); \ ^ ~ drivers/virtio/virtio_input.c:249:3: warning: comparison of distinct pointer types ('typeof (_Generic((virtio_cread_v), __u8: (virtio_cread_v), __le16: (__builtin_constant_p((__u16)((__u16)(__le16)(virtio_cread_v))) ? ((__u16)__u16)((__u16)(__le16)(virtio_cread_v)) & (__u16)255U) << 8) | (((__u16)((__u16)(__le16)(virtio_cread_v)) & (__u16)65280U) >> 8))) : __fswab16((__u16)(__le16)(virtio_cread_v))), __le32: (__builtin_constant_p((__u32)((__u32)(__le32)(virtio_cread_v))) ? ((__u32)__u32)((__u32)(__le32)(virtio_cread_v)) & (__u32)255UL) << 24) | (((__u32)((__u32)(__le32)(virtio_cread_v)) & (__u32)65280UL) << 8) | (((__u32)((__u32)(__le32)(virtio_cread_v)) & (__u32)16711680UL) >> 8) | (((__u32)((__u32)(__le32)(virtio_cread_v)) & (__u32)4278190080UL) >> 24))) : __fswab32((__u32)(__le32)(virtio_cread_v))), __le64: (__builtin_constant_p((__u64)((__u64)(__le64)(virtio_cread_v))) ? ((__u64)__u64)((__u64)(__le64)(virtio_cread_v)) & (__u64)255ULL) << 56) | (((__u64)((__u64)(__le64)(virtio_cread_v)) & (__u64)65280ULL) << 40) | (((__u64)((__u64)(__le64)(virtio_cread_v)) & (__u64)16711680ULL) << 24) | (((__u64)((__u64)(__le64)(virtio_cread_v)) & (__u64)4278190080ULL) << 8) | (((__u
[vhost:vhost 32/52] include/linux/typecheck.h:12:18: warning: comparison of distinct pointer types lacks a cast
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost head: 4c05433bc6fb4ae172270f0279be8ba89a3da64f commit: b025584098e621d88894d28e80af686958e273af [32/52] virtio_input: convert to LE accessors config: parisc-randconfig-r003-20200805 (attached as .config) compiler: hppa-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 checkout b025584098e621d88894d28e80af686958e273af # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/linux/irqflags.h:15, from include/asm-generic/cmpxchg-local.h:6, from arch/parisc/include/asm/cmpxchg.h:89, from arch/parisc/include/asm/atomic.h:10, from include/linux/atomic.h:7, from arch/parisc/include/asm/bitops.h:13, from include/linux/bitops.h:29, from include/linux/kernel.h:12, from include/linux/list.h:9, from include/linux/module.h:12, from drivers/virtio/virtio_input.c:2: drivers/virtio/virtio_input.c: In function 'virtinput_probe': >> include/linux/typecheck.h:12:18: warning: comparison of distinct pointer >> types lacks a cast 12 | (void)(&__dummy == &__dummy2); \ | ^~ include/linux/virtio_config.h:405:3: note: in expansion of macro 'typecheck' 405 | typecheck(typeof(virtio_le_to_cpu(virtio_cread_v)), *(ptr)); \ | ^ drivers/virtio/virtio_input.c:247:3: note: in expansion of macro 'virtio_cread_le' 247 | virtio_cread_le(vi->vdev, struct virtio_input_config, | ^~~ >> include/linux/typecheck.h:12:18: warning: comparison of distinct pointer >> types lacks a cast 12 | (void)(&__dummy == &__dummy2); \ | ^~ include/linux/virtio_config.h:405:3: note: in expansion of macro 'typecheck' 405 | typecheck(typeof(virtio_le_to_cpu(virtio_cread_v)), *(ptr)); \ | ^ drivers/virtio/virtio_input.c:249:3: note: in expansion of macro 'virtio_cread_le' 249 | virtio_cread_le(vi->vdev, struct virtio_input_config, | ^~~ >> include/linux/typecheck.h:12:18: warning: comparison of distinct pointer >> types lacks a cast 12 | (void)(&__dummy == &__dummy2); \ | ^~ include/linux/virtio_config.h:405:3: note: in expansion of macro 'typecheck' 405 | typecheck(typeof(virtio_le_to_cpu(virtio_cread_v)), *(ptr)); \ | ^ drivers/virtio/virtio_input.c:251:3: note: in expansion of macro 'virtio_cread_le' 251 | virtio_cread_le(vi->vdev, struct virtio_input_config, | ^~~ >> include/linux/typecheck.h:12:18: warning: comparison of distinct pointer >> types lacks a cast 12 | (void)(&__dummy == &__dummy2); \ | ^~ include/linux/virtio_config.h:405:3: note: in expansion of macro 'typecheck' 405 | typecheck(typeof(virtio_le_to_cpu(virtio_cread_v)), *(ptr)); \ | ^ drivers/virtio/virtio_input.c:253:3: note: in expansion of macro 'virtio_cread_le' 253 | virtio_cread_le(vi->vdev, struct virtio_input_config, | ^~~ vim +12 include/linux/typecheck.h e0deaff470900a4 Andrew Morton 2008-07-25 4 e0deaff470900a4 Andrew Morton 2008-07-25 5 /* e0deaff470900a4 Andrew Morton 2008-07-25 6 * Check at compile time that something is of a particular type. e0deaff470900a4 Andrew Morton 2008-07-25 7 * Always evaluates to 1 so you may use it easily in comparisons. e0deaff470900a4 Andrew Morton 2008-07-25 8 */ e0deaff470900a4 Andrew Morton 2008-07-25 9 #define typecheck(type,x) \ e0deaff470900a4 Andrew Morton 2008-07-25 10 ({type __dummy; \ e0deaff470900a4 Andrew Morton 2008-07-25 11typeof(x) __dummy2; \ e0deaff470900a4 Andrew Morton 2008-07-25 @12(void)(&__dummy == &__dummy2); \ e0deaff470900a4 Andrew Morton 2008-07-25 131; \ e0deaff470900a4 Andrew Morton 2008-07-25 14 }) e0deaff470900a4 Andrew Morton 2008-07-25 15 :: The code at line 12 was first introduced by commit :: e0deaff470900a4c3222ca7139f6c9639e26a2f5 split the typecheck macros out of include/linux/kernel.h :: TO: Andrew Morton :: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/g
Re: [PATCH 6/8] powerpc/pseries: implement paravirt qspinlocks for SPLPAR
Hi Nicholas, I love your patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on tip/locking/core v5.8-rc3 next-20200702] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Nicholas-Piggin/powerpc-queued-spinlocks-and-rwlocks/20200702-155158 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next config: powerpc-allyesconfig (attached as .config) compiler: powerpc64-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 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): kernel/locking/lock_events.c:61:16: warning: no previous prototype for 'lockevent_read' [-Wmissing-prototypes] 61 | ssize_t __weak lockevent_read(struct file *file, char __user *user_buf, |^~ kernel/locking/lock_events.c: In function 'skip_lockevent': >> kernel/locking/lock_events.c:126:12: error: implicit declaration of function >> 'pv_is_native_spin_unlock' [-Werror=implicit-function-declaration] 126 | pv_on = !pv_is_native_spin_unlock(); |^~~~ cc1: some warnings being treated as errors vim +/pv_is_native_spin_unlock +126 kernel/locking/lock_events.c fb346fd9fc081c Waiman Long 2019-04-04 57 fb346fd9fc081c Waiman Long 2019-04-04 58 /* fb346fd9fc081c Waiman Long 2019-04-04 59 * The lockevent_read() function can be overridden. fb346fd9fc081c Waiman Long 2019-04-04 60 */ fb346fd9fc081c Waiman Long 2019-04-04 @61 ssize_t __weak lockevent_read(struct file *file, char __user *user_buf, fb346fd9fc081c Waiman Long 2019-04-04 62size_t count, loff_t *ppos) fb346fd9fc081c Waiman Long 2019-04-04 63 { fb346fd9fc081c Waiman Long 2019-04-04 64 char buf[64]; fb346fd9fc081c Waiman Long 2019-04-04 65 int cpu, id, len; fb346fd9fc081c Waiman Long 2019-04-04 66 u64 sum = 0; fb346fd9fc081c Waiman Long 2019-04-04 67 fb346fd9fc081c Waiman Long 2019-04-04 68 /* fb346fd9fc081c Waiman Long 2019-04-04 69 * Get the counter ID stored in file->f_inode->i_private fb346fd9fc081c Waiman Long 2019-04-04 70 */ fb346fd9fc081c Waiman Long 2019-04-04 71 id = (long)file_inode(file)->i_private; fb346fd9fc081c Waiman Long 2019-04-04 72 fb346fd9fc081c Waiman Long 2019-04-04 73 if (id >= lockevent_num) fb346fd9fc081c Waiman Long 2019-04-04 74 return -EBADF; fb346fd9fc081c Waiman Long 2019-04-04 75 fb346fd9fc081c Waiman Long 2019-04-04 76 for_each_possible_cpu(cpu) fb346fd9fc081c Waiman Long 2019-04-04 77 sum += per_cpu(lockevents[id], cpu); fb346fd9fc081c Waiman Long 2019-04-04 78 len = snprintf(buf, sizeof(buf) - 1, "%llu\n", sum); fb346fd9fc081c Waiman Long 2019-04-04 79 fb346fd9fc081c Waiman Long 2019-04-04 80 return simple_read_from_buffer(user_buf, count, ppos, buf, len); fb346fd9fc081c Waiman Long 2019-04-04 81 } fb346fd9fc081c Waiman Long 2019-04-04 82 fb346fd9fc081c Waiman Long 2019-04-04 83 /* fb346fd9fc081c Waiman Long 2019-04-04 84 * Function to handle write request fb346fd9fc081c Waiman Long 2019-04-04 85 * fb346fd9fc081c Waiman Long 2019-04-04 86 * When idx = reset_cnts, reset all the counts. fb346fd9fc081c Waiman Long 2019-04-04 87 */ fb346fd9fc081c Waiman Long 2019-04-04 88 static ssize_t lockevent_write(struct file *file, const char __user *user_buf, fb346fd9fc081c Waiman Long 2019-04-04 89 size_t count, loff_t *ppos) fb346fd9fc081c Waiman Long 2019-04-04 90 { fb346fd9fc081c Waiman Long 2019-04-04 91 int cpu; fb346fd9fc081c Waiman Long 2019-04-04 92 fb346fd9fc081c Waiman Long 2019-04-04 93 /* fb346fd9fc081c Waiman Long 2019-04-04 94 * Get the counter ID stored in file->f_inode->i_private fb346fd9fc081c Waiman Long 2019-04-04 95 */ fb346fd9fc081c Waiman Long 2019-04-04 96 if ((long)file_inode(file)->i_private != LOCKEVENT_reset_cnts) fb346fd9fc081c Waiman Long 2019-04-04 97 return count; fb346fd9fc081c Waiman Long 2019-04-04 98 fb346fd9fc081c Waiman Long 2019-04-04 99 for_each_possible_cpu(cpu) { fb346fd9fc081c Waiman Long 2019-04-04 100 int i; fb346fd9fc081c Waiman Long 2019-04-04 101 unsigned long *ptr = per_cpu_ptr(lockevents, cpu); fb346fd9fc081c Waiman Long 2019-04-04
[vhost:config-endian 38/39] drivers/platform/mellanox/mlxbf-tmfifo.c:1241:22: error: expected ')' before ';' token
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git config-endian head: df43c8f58f42ec36e91740f91ea7360f63213004 commit: e1e22056bc3641f340ed27012cfd1b8b05f83a0a [38/39] fixup! virtio_net: correct tags for config space fields 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 git checkout e1e22056bc3641f340ed27012cfd1b8b05f83a0a # 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 All errors (new ones prefixed by >>): drivers/platform/mellanox/mlxbf-tmfifo.c: In function 'mlxbf_tmfifo_probe': drivers/platform/mellanox/mlxbf-tmfifo.c:1237:70: warning: value computed is not used [-Wunused-value] 1237 | #define MLXBF_TMFIFO_LITTLE_ENDIAN (virtio_legacy_is_little_endian() || \ | ~^~~~ 1238 |(MLXBF_TMFIFO_NET_FEATURES & (1ULL << VIRTIO_F_VERSION_1)) |~~ drivers/platform/mellanox/mlxbf-tmfifo.c:1240:37: note: in expansion of macro 'MLXBF_TMFIFO_LITTLE_ENDIAN' 1240 | net_config.mtu = __cpu_to_virtio16(MLXBF_TMFIFO_LITTLE_ENDIAN, | ^~ >> drivers/platform/mellanox/mlxbf-tmfifo.c:1241:22: error: expected ')' before >> ';' token 1241 | ETH_DATA_LEN); | ^ | ) >> drivers/platform/mellanox/mlxbf-tmfifo.c:1240:19: error: too few arguments >> to function '__cpu_to_virtio16' 1240 | net_config.mtu = __cpu_to_virtio16(MLXBF_TMFIFO_LITTLE_ENDIAN, | ^ In file included from include/linux/virtio_config.h:8, from drivers/platform/mellanox/mlxbf-tmfifo.c:18: include/linux/virtio_byteorder.h:24:26: note: declared here 24 | static inline __virtio16 __cpu_to_virtio16(bool little_endian, u16 val) | ^ >> drivers/platform/mellanox/mlxbf-tmfifo.c:1290:1: error: expected declaration >> or statement at end of input 1290 | MODULE_AUTHOR("Mellanox Technologies"); | ^ >> drivers/platform/mellanox/mlxbf-tmfifo.c:1232:3: error: label 'fail' used >> but not defined 1232 | goto fail; | ^~~~ At top level: drivers/platform/mellanox/mlxbf-tmfifo.c:1183:12: warning: 'mlxbf_tmfifo_probe' defined but not used [-Wunused-function] 1183 | static int mlxbf_tmfifo_probe(struct platform_device *pdev) |^~ drivers/platform/mellanox/mlxbf-tmfifo.c:1170:13: warning: 'mlxbf_tmfifo_cleanup' defined but not used [-Wunused-function] 1170 | static void mlxbf_tmfifo_cleanup(struct mlxbf_tmfifo *fifo) | ^~~~ drivers/platform/mellanox/mlxbf-tmfifo.c:1128:13: warning: 'mlxbf_tmfifo_get_cfg_mac' defined but not used [-Wunused-function] 1128 | static void mlxbf_tmfifo_get_cfg_mac(u8 *mac) | ^~~~ vim +1241 drivers/platform/mellanox/mlxbf-tmfifo.c 1181 1182 /* Probe the TMFIFO. */ 1183 static int mlxbf_tmfifo_probe(struct platform_device *pdev) 1184 { 1185 struct virtio_net_config net_config; 1186 struct device *dev = >dev; 1187 struct mlxbf_tmfifo *fifo; 1188 int i, rc; 1189 1190 fifo = devm_kzalloc(dev, sizeof(*fifo), GFP_KERNEL); 1191 if (!fifo) 1192 return -ENOMEM; 1193 1194 spin_lock_init(>spin_lock[0]); 1195 spin_lock_init(>spin_lock[1]); 1196 INIT_WORK(>work, mlxbf_tmfifo_work_handler); 1197 mutex_init(>lock); 1198 1199 /* Get the resource of the Rx FIFO. */ 1200 fifo->rx_base = devm_platform_ioremap_resource(pdev, 0); 1201 if (IS_ERR(fifo->rx_base)) 1202 return PTR_ERR(fifo->rx_base); 1203 1204 /* Get the resource of the Tx FIFO. */ 1205 fifo->tx_base = devm_platform_ioremap_resource(pdev, 1); 1206 if (IS_ERR(fifo->tx_base)) 1207 return PTR_ERR(fifo->tx_base); 1208 1209 platform_set_drvdata(pdev, fifo); 1210 1211 timer_setup(>timer, mlxbf_tmfifo_timer, 0); 1212 1213 for (i = 0; i < MLXBF_TM_MAX_IRQ; i++) { 1214 fifo->irq_info[i].index = i; 1215
[vhost:config-endian 22/36] ./usr/include/linux/virtio_9p.h:39:2: error: unknown type name '__virtio16'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git config-endian head: 6aef2378a564fea8e69c0419d94dc3ad9b4b7a99 commit: 8edd653e47e7e5ef253699fb1d0bb587941434d9 [22/36] virtio_9p: correct tags for config space fields config: x86_64-allyesconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-14) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from :32: >> ./usr/include/linux/virtio_9p.h:39:2: error: unknown type name '__virtio16' 39 | __virtio16 tag_len; | ^~ --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
[vhost:config-endian 38/39] drivers/platform/mellanox/mlxbf-tmfifo.c:1237:2: error: invalid preprocessing directive #defined; did you mean
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git config-endian head: d8ede9b5e734748613d3e3108a4026244aa8e41f commit: 392755e77e260e8a173b228e8ecc17917f97d5eb [38/39] fixup! virtio_net: correct tags for config space fields 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 git checkout 392755e77e260e8a173b228e8ecc17917f97d5eb # 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 All errors (new ones prefixed by >>): drivers/platform/mellanox/mlxbf-tmfifo.c: In function 'mlxbf_tmfifo_probe': >> drivers/platform/mellanox/mlxbf-tmfifo.c:1237:2: error: invalid >> preprocessing directive #defined; did you mean #define? 1237 | #defined MLXBF_TMFIFO_LITTLE_ENDIAN (virtio_legacy_is_little_endian() || | ^~~ | define drivers/platform/mellanox/mlxbf-tmfifo.c:1238:4: warning: statement with no effect [-Wunused-value] 1238 |(MLXBF_TMFIFO_NET_FEATURES & (1ULL << VIRTIO_F_VERSION_1))) |^ >> drivers/platform/mellanox/mlxbf-tmfifo.c:1238:62: error: expected ';' before >> ')' token 1238 |(MLXBF_TMFIFO_NET_FEATURES & (1ULL << VIRTIO_F_VERSION_1))) | ^ | ; >> drivers/platform/mellanox/mlxbf-tmfifo.c:1238:62: error: expected statement >> before ')' token >> drivers/platform/mellanox/mlxbf-tmfifo.c:1240:37: error: >> 'MLXBF_TMFIFO_LITTLE_ENDIAN' undeclared (first use in this function); did >> you mean 'MLXBF_TMFIFO_NET_L2_OVERHEAD'? 1240 | net_config.mtu = __cpu_to_virtio16(MLXBF_TMFIFO_LITTLE_ENDIAN, | ^~ | MLXBF_TMFIFO_NET_L2_OVERHEAD drivers/platform/mellanox/mlxbf-tmfifo.c:1240:37: note: each undeclared identifier is reported only once for each function it appears in vim +1237 drivers/platform/mellanox/mlxbf-tmfifo.c 1181 1182 /* Probe the TMFIFO. */ 1183 static int mlxbf_tmfifo_probe(struct platform_device *pdev) 1184 { 1185 struct virtio_net_config net_config; 1186 struct device *dev = >dev; 1187 struct mlxbf_tmfifo *fifo; 1188 int i, rc; 1189 1190 fifo = devm_kzalloc(dev, sizeof(*fifo), GFP_KERNEL); 1191 if (!fifo) 1192 return -ENOMEM; 1193 1194 spin_lock_init(>spin_lock[0]); 1195 spin_lock_init(>spin_lock[1]); 1196 INIT_WORK(>work, mlxbf_tmfifo_work_handler); 1197 mutex_init(>lock); 1198 1199 /* Get the resource of the Rx FIFO. */ 1200 fifo->rx_base = devm_platform_ioremap_resource(pdev, 0); 1201 if (IS_ERR(fifo->rx_base)) 1202 return PTR_ERR(fifo->rx_base); 1203 1204 /* Get the resource of the Tx FIFO. */ 1205 fifo->tx_base = devm_platform_ioremap_resource(pdev, 1); 1206 if (IS_ERR(fifo->tx_base)) 1207 return PTR_ERR(fifo->tx_base); 1208 1209 platform_set_drvdata(pdev, fifo); 1210 1211 timer_setup(>timer, mlxbf_tmfifo_timer, 0); 1212 1213 for (i = 0; i < MLXBF_TM_MAX_IRQ; i++) { 1214 fifo->irq_info[i].index = i; 1215 fifo->irq_info[i].fifo = fifo; 1216 fifo->irq_info[i].irq = platform_get_irq(pdev, i); 1217 rc = devm_request_irq(dev, fifo->irq_info[i].irq, 1218mlxbf_tmfifo_irq_handler, 0, 1219"tmfifo", >irq_info[i]); 1220 if (rc) { 1221 dev_err(dev, "devm_request_irq failed\n"); 1222 fifo->irq_info[i].irq = 0; 1223 return rc; 1224 } 1225 } 1226 1227 mlxbf_tmfifo_set_threshold(fifo); 1228 1229 /* Create the console vdev. */ 1230 rc = mlxbf_tmfifo_create_vdev(dev, fifo, VIRTIO_ID_CONSOLE, 0, NULL, 0); 1231 if (rc) 1232 goto fail; 1233 1234 /* Create the network vdev. */ 1235 memset(_config, 0, sizeof(net_config)); 1236 > 1237 #defined MLXBF_TMFIFO_LITTLE_ENDIAN (virtio_legacy_is_little_endian() || > 1238
[vhost:config-endian 33/36] drivers/vdpa/vdpa_sim/vdpa_sim.c:335:21: sparse: sparse: incorrect type in assignment (different base types)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git config-endian head: 6aef2378a564fea8e69c0419d94dc3ad9b4b7a99 commit: 0cf222ef876b95893406eebe685e595d88de0950 [33/36] virtio_net: correct tags for config space fields config: parisc-randconfig-s032-20200710 (attached as .config) compiler: hppa-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.2-37-gc9676a3b-dirty git checkout 0cf222ef876b95893406eebe685e595d88de0950 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=parisc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/vdpa/vdpa_sim/vdpa_sim.c:335:21: sparse: sparse: incorrect type in >> assignment (different base types) @@ expected restricted __virtio16 >> [usertype] mtu @@ got int @@ >> drivers/vdpa/vdpa_sim/vdpa_sim.c:335:21: sparse: expected restricted >> __virtio16 [usertype] mtu >> drivers/vdpa/vdpa_sim/vdpa_sim.c:335:21: sparse: got int >> drivers/vdpa/vdpa_sim/vdpa_sim.c:336:24: sparse: sparse: incorrect type in >> assignment (different base types) @@ expected restricted __virtio16 >> [usertype] status @@ got int @@ >> drivers/vdpa/vdpa_sim/vdpa_sim.c:336:24: sparse: expected restricted >> __virtio16 [usertype] status drivers/vdpa/vdpa_sim/vdpa_sim.c:336:24: sparse: got int vim +335 drivers/vdpa/vdpa_sim/vdpa_sim.c 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 306 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 307 static struct vdpasim *vdpasim_create(void) 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 308 { 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 309 struct virtio_net_config *config; 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 310 struct vdpasim *vdpasim; 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 311 struct device *dev; 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 312 int ret = -ENOMEM; 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 313 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 314 vdpasim = vdpa_alloc_device(struct vdpasim, vdpa, NULL, 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 315 _net_config_ops); 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 316 if (!vdpasim) 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 317 goto err_alloc; 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 318 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 319 INIT_WORK(>work, vdpasim_work); 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 320 spin_lock_init(>lock); 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 321 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 322 dev = >vdpa.dev; 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 323 dev->coherent_dma_mask = DMA_BIT_MASK(64); 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 324 set_dma_ops(dev, _dma_ops); 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 325 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 326 vdpasim->iommu = vhost_iotlb_alloc(2048, 0); 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 327 if (!vdpasim->iommu) 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 328 goto err_iommu; 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 329 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 330 vdpasim->buffer = kmalloc(PAGE_SIZE, GFP_KERNEL); 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 331 if (!vdpasim->buffer) 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 332 goto err_iommu; 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 333 2c53d0f64c06f4 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 334 conf
[vhost:vhost 18/52] drivers/virtio/virtio_mem.c:1391:5: warning: Variable 'rc' is reassigned a value before the old one has been used.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost head: f3861bc96a7e130943e1975e571ae62c0319b064 commit: 5f1f79bbc9e26fa9412fa9522f957bb8f030c442 [18/52] virtio-mem: Paravirtualized memory hotplug compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot cppcheck warnings: (new ones prefixed by >>) >> drivers/virtio/virtio_mem.c:1391:5: warning: Variable 'rc' is reassigned a >> value before the old one has been used. [redundantAssignment] rc = virtio_mem_init_vq(vm); ^ drivers/virtio/virtio_mem.c:1375:0: note: Variable 'rc' is reassigned a value before the old one has been used. int rc = -EINVAL; ^ drivers/virtio/virtio_mem.c:1391:5: note: Variable 'rc' is reassigned a value before the old one has been used. rc = virtio_mem_init_vq(vm); ^ >> drivers/virtio/virtio_mem.c:801:22: warning: int result is assigned to long >> variable. If the variable is long to avoid loss of information, then you >> have loss of information. [truncLongCastAssignment] const uint64_t size = count * vm->subblock_size; ^ drivers/virtio/virtio_mem.c:822:22: warning: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] const uint64_t size = count * vm->subblock_size; ^ vim +/rc +1391 drivers/virtio/virtio_mem.c 1371 1372 static int virtio_mem_probe(struct virtio_device *vdev) 1373 { 1374 struct virtio_mem *vm; 1375 int rc = -EINVAL; 1376 1377 vdev->priv = vm = kzalloc(sizeof(*vm), GFP_KERNEL); 1378 if (!vm) 1379 return -ENOMEM; 1380 1381 init_waitqueue_head(>host_resp); 1382 vm->vdev = vdev; 1383 INIT_WORK(>wq, virtio_mem_run_wq); 1384 mutex_init(>hotplug_mutex); 1385 INIT_LIST_HEAD(>next); 1386 spin_lock_init(>removal_lock); 1387 hrtimer_init(>retry_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); 1388 vm->retry_timer.function = virtio_mem_timer_expired; 1389 1390 /* register the virtqueue */ > 1391 rc = virtio_mem_init_vq(vm); 1392 if (rc) 1393 goto out_free_vm; 1394 1395 /* initialize the device by querying the config */ 1396 rc = virtio_mem_init(vm); 1397 if (rc) 1398 goto out_del_vq; 1399 1400 /* register callbacks */ 1401 vm->memory_notifier.notifier_call = virtio_mem_memory_notifier_cb; 1402 rc = register_memory_notifier(>memory_notifier); 1403 if (rc) 1404 goto out_del_vq; 1405 rc = register_virtio_mem_device(vm); 1406 if (rc) 1407 goto out_unreg_mem; 1408 1409 virtio_device_ready(vdev); 1410 1411 /* trigger a config update to start processing the requested_size */ 1412 atomic_set(>config_changed, 1); 1413 queue_work(system_freezable_wq, >wq); 1414 1415 return 0; 1416 out_unreg_mem: 1417 unregister_memory_notifier(>memory_notifier); 1418 out_del_vq: 1419 vdev->config->del_vqs(vdev); 1420 out_free_vm: 1421 kfree(vm); 1422 vdev->priv = NULL; 1423 1424 return rc; 1425 } 1426 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH] virtio_mem: prevent overflow with subblock size
Hi "Michael, I love your patch! Perhaps something to improve: [auto build test WARNING on vhost/vhost] [also build test WARNING on next-20200608] [cannot apply to linus/master linux/master v5.7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Michael-S-Tsirkin/virtio_mem-prevent-overflow-with-subblock-size/20200608-141805 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost config: x86_64-allyesconfig (attached as .config) compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project e429cffd4f228f70c1d9df0e5d77c08590dd9766) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> drivers/virtio/virtio_mem.c:1721:4: warning: format specifies type 'unsigned >> int' but the argument has type 'uint64_t' (aka 'unsigned long long') >> [-Wformat] vm->subblock_size); ^ include/linux/dev_printk.h:110:33: note: expanded from macro 'dev_info' _dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__) ~~~ ^~~ 1 warning generated. vim +1721 drivers/virtio/virtio_mem.c 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1642 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1643 static int virtio_mem_init(struct virtio_mem *vm) 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1644 { 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1645 const uint64_t phys_limit = 1UL << MAX_PHYSMEM_BITS; f2af6d3978d74a David Hildenbrand 2020-05-07 1646 uint16_t node_id; 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1647 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1648 if (!vm->vdev->config->get) { 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1649 dev_err(>vdev->dev, "config access disabled\n"); 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1650 return -EINVAL; 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1651 } 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1652 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1653 /* 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1654 * We don't want to (un)plug or reuse any memory when in kdump. The 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1655 * memory is still accessible (but not mapped). 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1656 */ 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1657 if (is_kdump_kernel()) { 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1658 dev_warn(>vdev->dev, "disabled in kdump kernel\n"); 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1659 return -EBUSY; 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1660 } 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1661 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1662 /* Fetch all properties that can't change. */ 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1663 virtio_cread(vm->vdev, struct virtio_mem_config, plugged_size, 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1664 >plugged_size); 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1665 virtio_cread(vm->vdev, struct virtio_mem_config, block_size, 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1666 >device_block_size); f2af6d3978d74a David Hildenbrand 2020-05-07 1667 virtio_cread(vm->vdev, struct virtio_mem_config, node_id, f2af6d3978d74a David Hildenbrand 2020-05-07 1668 _id); f2af6d3978d74a David Hildenbrand 2020-05-07 1669 vm->nid = virtio_mem_translate_node_id(vm, node_id); 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1670 virtio_cread(vm->vdev, struct virtio_mem_config, addr, >addr); 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1671 virtio_cread(vm->vdev, struct virtio_mem_config, region_size, 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1672 >region_size); 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1673 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1674 /* 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1675 * We always hotplug memory in memory block granularity. This way, 5f1f79bbc9e26f David Hildenbrand 2020-05-07 1676 * we have to wait for exactly one memory block to online. 5f1f79bb
Re: [PATCH V2 4/6] vhost_vdpa: implement IRQ offloading in vhost_vdpa
Hi Zhu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on vhost/linux-next] [also build test WARNING on kvm/linux-next linus/master v5.8-rc5 next-20200716] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Zhu-Lingshan/IRQ-offloading-for-vDPA/20200716-192910 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: openrisc-randconfig-r016-20200717 (attached as .config) compiler: or1k-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 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/vhost/vdpa.c: In function 'vhost_vdpa_setup_vq_irq': >> drivers/vhost/vdpa.c:122:6: warning: variable 'ret' set but not used >> [-Wunused-but-set-variable] 122 | int ret; | ^~~ vim +/ret +122 drivers/vhost/vdpa.c 117 118 static void vhost_vdpa_setup_vq_irq(struct vdpa_device *dev, int qid, int irq) 119 { 120 struct vhost_vdpa *v = vdpa_get_drvdata(dev); 121 struct vhost_virtqueue *vq = >vqs[qid]; > 122 int ret; 123 124 spin_lock(>call_ctx.ctx_lock); 125 if (!vq->call_ctx.ctx) { 126 spin_unlock(>call_ctx.ctx_lock); 127 return; 128 } 129 130 vq->call_ctx.producer.token = vq->call_ctx.ctx; 131 vq->call_ctx.producer.irq = irq; 132 ret = irq_bypass_register_producer(>call_ctx.producer); 133 spin_unlock(>call_ctx.ctx_lock); 134 } 135 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH vhost next 09/10] vdpa/mlx5: Add shared memory registration code
Hi Eli, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on next-20200715] url: https://github.com/0day-ci/linux/commits/Eli-Cohen/VDPA-support-for-Mellanox-ConnectX-devices/20200716-155039 base:ca0e494af5edb59002665bf12871e94b4163a257 config: i386-allyesconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-14) 9.3.0 reproduce (this is a W=1 build): # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): include/linux/mlx5/device.h:56:43: note: in expansion of macro '__mlx5_bit_sz' 56 | #define __mlx5_dw_bit_off(typ, fld) (32 - __mlx5_bit_sz(typ, fld) - (__mlx5_bit_off(typ, fld) & 0x1f)) | ^ include/linux/mlx5/device.h:58:60: note: in expansion of macro '__mlx5_dw_bit_off' 58 | #define __mlx5_dw_mask(typ, fld) (__mlx5_mask(typ, fld) << __mlx5_dw_bit_off(typ, fld)) | ^ include/linux/mlx5/device.h:78:10: note: in expansion of macro '__mlx5_dw_mask' 78 |(~__mlx5_dw_mask(typ, fld))) | (((_v) & __mlx5_mask(typ, fld)) \ | ^~ drivers/vdpa/mlx5/core/mr.c:194:2: note: in expansion of macro 'MLX5_SET' 194 | MLX5_SET(create_mkey_in, in, uid, mvdev->res.uid); | ^~~~ include/linux/compiler_types.h:135:35: error: 'struct mlx5_ifc_create_mkey_in_bits' has no member named 'uid' 135 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b) | ^~ include/uapi/linux/swab.h:115:54: note: in definition of macro '__swab32' 115 | #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x)) | ^ include/linux/byteorder/generic.h:94:21: note: in expansion of macro '__cpu_to_be32' 94 | #define cpu_to_be32 __cpu_to_be32 | ^ include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof' 17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER) |^~~ include/linux/mlx5/device.h:51:35: note: in expansion of macro 'offsetof' 51 | #define __mlx5_bit_off(typ, fld) (offsetof(struct mlx5_ifc_##typ##_bits, fld)) | ^~~~ include/linux/mlx5/device.h:56:70: note: in expansion of macro '__mlx5_bit_off' 56 | #define __mlx5_dw_bit_off(typ, fld) (32 - __mlx5_bit_sz(typ, fld) - (__mlx5_bit_off(typ, fld) & 0x1f)) | ^~ include/linux/mlx5/device.h:58:60: note: in expansion of macro '__mlx5_dw_bit_off' 58 | #define __mlx5_dw_mask(typ, fld) (__mlx5_mask(typ, fld) << __mlx5_dw_bit_off(typ, fld)) | ^ include/linux/mlx5/device.h:78:10: note: in expansion of macro '__mlx5_dw_mask' 78 |(~__mlx5_dw_mask(typ, fld))) | (((_v) & __mlx5_mask(typ, fld)) \ | ^~ drivers/vdpa/mlx5/core/mr.c:194:2: note: in expansion of macro 'MLX5_SET' 194 | MLX5_SET(create_mkey_in, in, uid, mvdev->res.uid); | ^~~~ include/linux/mlx5/device.h:50:57: error: 'struct mlx5_ifc_create_mkey_in_bits' has no member named 'uid' 50 | #define __mlx5_bit_sz(typ, fld) sizeof(__mlx5_nullp(typ)->fld) | ^~ include/uapi/linux/swab.h:115:54: note: in definition of macro '__swab32' 115 | #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x)) | ^ include/linux/byteorder/generic.h:94:21: note: in expansion of macro '__cpu_to_be32' 94 | #define cpu_to_be32 __cpu_to_be32 | ^ include/linux/mlx5/device.h:57:47: note: in expansion of macro '__mlx5_bit_sz' 57 | #define __mlx5_mask(typ, fld) ((u32)((1ull << __mlx5_bit_sz(typ, fld)) - 1)) | ^ include/linux/mlx5/device.h:78:48: note: in expansion of macro '__mlx5_mask' 78 |(~__mlx5_dw_mask(typ, fld))) | (((_v) & __mlx5_mask(typ, fld)) \ |^~~ drivers/vdpa/mlx5/core/mr.c:194:2: note: in expansion of macro 'MLX5_SET' 194 | MLX5_SET(create_mkey_in, in, uid, mvdev->res.uid); | ^~~~ include/linux/mlx5/device.h:50:57: error: 'struct mlx5_ifc_create_mkey_in_bits' has no member named 'uid'
Re: [PATCH vhost next 08/10] vdpa/mlx5: Add support library for mlx5 VDPA implementation
Hi Eli, Thank you for the patch! Yet something to improve: [auto build test ERROR on next-20200715] url: https://github.com/0day-ci/linux/commits/Eli-Cohen/VDPA-support-for-Mellanox-ConnectX-devices/20200716-155039 base:ca0e494af5edb59002665bf12871e94b4163a257 config: mips-allyesconfig (attached as .config) compiler: mips-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 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from include/linux/mlx5/driver.h:52, from drivers/vdpa/mlx5/core/resources.c:4: drivers/vdpa/mlx5/core/resources.c: In function 'create_uctx': >> include/linux/mlx5/device.h:65:36: error: invalid application of 'sizeof' to >> incomplete type 'struct mlx5_ifc_create_uctx_out_bits' 65 | #define MLX5_ST_SZ_DW(typ) (sizeof(struct mlx5_ifc_##typ##_bits) / 32) |^~ drivers/vdpa/mlx5/core/resources.c:52:10: note: in expansion of macro 'MLX5_ST_SZ_DW' 52 | u32 out[MLX5_ST_SZ_DW(create_uctx_out)] = {}; | ^ >> drivers/vdpa/mlx5/core/resources.c:52:44: error: empty scalar initializer 52 | u32 out[MLX5_ST_SZ_DW(create_uctx_out)] = {}; |^ drivers/vdpa/mlx5/core/resources.c:52:44: note: (near initialization for 'out') In file included from include/linux/byteorder/big_endian.h:5, from arch/mips/include/uapi/asm/byteorder.h:13, from arch/mips/include/asm/bitops.h:20, from include/linux/bitops.h:29, from include/linux/kernel.h:12, from include/linux/mlx5/driver.h:36, from drivers/vdpa/mlx5/core/resources.c:4: >> include/linux/compiler_types.h:135:35: error: invalid use of undefined type >> 'struct mlx5_ifc_create_uctx_out_bits' 135 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b) | ^~ include/uapi/linux/byteorder/big_endian.h:40:51: note: in definition of macro '__be32_to_cpu' 40 | #define __be32_to_cpu(x) ((__force __u32)(__be32)(x)) | ^ include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof' 17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER) |^~~ include/linux/mlx5/device.h:51:35: note: in expansion of macro 'offsetof' 51 | #define __mlx5_bit_off(typ, fld) (offsetof(struct mlx5_ifc_##typ##_bits, fld)) | ^~~~ include/linux/mlx5/device.h:53:34: note: in expansion of macro '__mlx5_bit_off' 53 | #define __mlx5_dw_off(typ, fld) (__mlx5_bit_off(typ, fld) / 32) | ^~ include/linux/mlx5/device.h:96:1: note: in expansion of macro '__mlx5_dw_off' 96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \ | ^ drivers/vdpa/mlx5/core/resources.c:72:10: note: in expansion of macro 'MLX5_GET' 72 | *uid = MLX5_GET(create_uctx_out, out, uid); | ^~~~ In file included from include/linux/mlx5/driver.h:52, from drivers/vdpa/mlx5/core/resources.c:4: >> include/linux/mlx5/device.h:50:57: error: dereferencing pointer to >> incomplete type 'struct mlx5_ifc_create_uctx_out_bits' 50 | #define __mlx5_bit_sz(typ, fld) sizeof(__mlx5_nullp(typ)->fld) | ^~ include/linux/mlx5/device.h:56:43: note: in expansion of macro '__mlx5_bit_sz' 56 | #define __mlx5_dw_bit_off(typ, fld) (32 - __mlx5_bit_sz(typ, fld) - (__mlx5_bit_off(typ, fld) & 0x1f)) | ^ include/linux/mlx5/device.h:96:30: note: in expansion of macro '__mlx5_dw_bit_off' 96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \ | ^ drivers/vdpa/mlx5/core/resources.c:72:10: note: in expansion of macro 'MLX5_GET' 72 | *uid = MLX5_GET(create_uctx_out, out, uid); | ^~~~ In file included from : >> include/linux/compiler_types.h:135:35: error: invalid use of undefined type >> 'struct mlx5_ifc_create_uctx_out_bits' 135 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
Re: [PATCH] virtio_ring: use alloc_pages_node for NUMA-aware allocation
Hi Shile, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.8-rc5 next-20200716] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Shile-Zhang/virtio_ring-use-alloc_pages_node-for-NUMA-aware-allocation/20200717-173734 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 8882572675c1bb1cc544f4e229a11661f1fc52e4 config: s390-randconfig-r015-20200717 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ed6b578040a85977026c93bf4188f996148f3218) 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 # install s390 cross compiling tool for clang build # apt-get install binutils-s390x-linux-gnu # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:19:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0x00ffUL) << 24) |\ ^ In file included from drivers/virtio/virtio_ring.c:6: In file included from include/linux/virtio.h:7: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:72: include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr)); ~~ ^ include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:20:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0xff00UL) << 8) |\ ^ In file included from drivers/virtio/virtio_ring.c:6: In file included from include/linux/virtio.h:7: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:72: include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr)); ~~ ^ include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0x00ffUL) >> 8) |\ ^ In file included from drivers/virtio/virtio_ring.c:6: In file included from include/linux/virtio.h:7: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:72: include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr)); ~~ ^ include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0xff00UL) >> 24))) ^ In file included from drivers/virtio/vir
Re: [PATCH] virtio_ring: use alloc_pages_node for NUMA-aware allocation
Hi Shile, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.8-rc5 next-20200716] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Shile-Zhang/virtio_ring-use-alloc_pages_node-for-NUMA-aware-allocation/20200717-173734 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 8882572675c1bb1cc544f4e229a11661f1fc52e4 config: alpha-allyesconfig (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 # 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 All error/warnings (new ones prefixed by >>): drivers/virtio/virtio_ring.c: In function 'vring_alloc_queue': >> drivers/virtio/virtio_ring.c:280:52: error: passing argument 1 of >> 'dev_to_node' from incompatible pointer type >> [-Werror=incompatible-pointer-types] 280 | struct page *page = alloc_pages_node(dev_to_node(>dev.parent), |^ || |struct device ** In file included from include/linux/virtio.h:9, from drivers/virtio/virtio_ring.c:6: include/linux/device.h:668:46: note: expected 'struct device *' but argument is of type 'struct device **' 668 | static inline int dev_to_node(struct device *dev) | ~~~^~~ >> drivers/virtio/virtio_ring.c:284:4: warning: ISO C90 forbids mixed >> declarations and code [-Wdeclaration-after-statement] 284 |phys_addr_t phys_addr = virt_to_phys(queue); |^~~ cc1: some warnings being treated as errors vim +/dev_to_node +280 drivers/virtio/virtio_ring.c 271 272 static void *vring_alloc_queue(struct virtio_device *vdev, size_t size, 273dma_addr_t *dma_handle, gfp_t flag) 274 { 275 if (vring_use_dma_api(vdev)) { 276 return dma_alloc_coherent(vdev->dev.parent, size, 277dma_handle, flag); 278 } else { 279 void *queue = NULL; > 280 struct page *page = > alloc_pages_node(dev_to_node(>dev.parent), 281 flag, get_order(size)); 282 if (page) { 283 queue = page_address(page); > 284 phys_addr_t phys_addr = virt_to_phys(queue); 285 *dma_handle = (dma_addr_t)phys_addr; 286 287 /* 288 * Sanity check: make sure we dind't truncate 289 * the address. The only arches I can find that 290 * have 64-bit phys_addr_t but 32-bit dma_addr_t 291 * are certain non-highmem MIPS and x86 292 * configurations, but these configurations 293 * should never allocate physical pages above 32 294 * bits, so this is fine. Just in case, throw a 295 * warning and abort if we end up with an 296 * unrepresentable address. 297 */ 298 if (WARN_ON_ONCE(*dma_handle != phys_addr)) { 299 free_pages_exact(queue, PAGE_ALIGN(size)); 300 return NULL; 301 } 302 } 303 return queue; 304 } 305 } 306 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH vhost next 09/10] vdpa/mlx5: Add shared memory registration code
Hi Eli, Thank you for the patch! Yet something to improve: [auto build test ERROR on next-20200715] url: https://github.com/0day-ci/linux/commits/Eli-Cohen/VDPA-support-for-Mellanox-ConnectX-devices/20200716-155039 base:ca0e494af5edb59002665bf12871e94b4163a257 config: ia64-allmodconfig (attached as .config) compiler: ia64-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 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): 120 | __fswab32(x)) |^ include/linux/byteorder/generic.h:94:21: note: in expansion of macro '__cpu_to_be32' 94 | #define cpu_to_be32 __cpu_to_be32 | ^ include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof' 17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER) |^~~ include/linux/mlx5/device.h:51:35: note: in expansion of macro 'offsetof' 51 | #define __mlx5_bit_off(typ, fld) (offsetof(struct mlx5_ifc_##typ##_bits, fld)) | ^~~~ include/linux/mlx5/device.h:56:70: note: in expansion of macro '__mlx5_bit_off' 56 | #define __mlx5_dw_bit_off(typ, fld) (32 - __mlx5_bit_sz(typ, fld) - (__mlx5_bit_off(typ, fld) & 0x1f)) | ^~ include/linux/mlx5/device.h:58:60: note: in expansion of macro '__mlx5_dw_bit_off' 58 | #define __mlx5_dw_mask(typ, fld) (__mlx5_mask(typ, fld) << __mlx5_dw_bit_off(typ, fld)) | ^ include/linux/mlx5/device.h:78:10: note: in expansion of macro '__mlx5_dw_mask' 78 |(~__mlx5_dw_mask(typ, fld))) | (((_v) & __mlx5_mask(typ, fld)) \ | ^~ drivers/vdpa/mlx5/core/mr.c:194:2: note: in expansion of macro 'MLX5_SET' 194 | MLX5_SET(create_mkey_in, in, uid, mvdev->res.uid); | ^~~~ include/linux/mlx5/device.h:50:57: error: 'struct mlx5_ifc_create_mkey_in_bits' has no member named 'uid' 50 | #define __mlx5_bit_sz(typ, fld) sizeof(__mlx5_nullp(typ)->fld) | ^~ include/uapi/linux/swab.h:120:12: note: in definition of macro '__swab32' 120 | __fswab32(x)) |^ include/linux/byteorder/generic.h:94:21: note: in expansion of macro '__cpu_to_be32' 94 | #define cpu_to_be32 __cpu_to_be32 | ^ include/linux/mlx5/device.h:57:47: note: in expansion of macro '__mlx5_bit_sz' 57 | #define __mlx5_mask(typ, fld) ((u32)((1ull << __mlx5_bit_sz(typ, fld)) - 1)) | ^ include/linux/mlx5/device.h:78:48: note: in expansion of macro '__mlx5_mask' 78 |(~__mlx5_dw_mask(typ, fld))) | (((_v) & __mlx5_mask(typ, fld)) \ |^~~ drivers/vdpa/mlx5/core/mr.c:194:2: note: in expansion of macro 'MLX5_SET' 194 | MLX5_SET(create_mkey_in, in, uid, mvdev->res.uid); | ^~~~ include/linux/mlx5/device.h:50:57: error: 'struct mlx5_ifc_create_mkey_in_bits' has no member named 'uid' 50 | #define __mlx5_bit_sz(typ, fld) sizeof(__mlx5_nullp(typ)->fld) | ^~ include/uapi/linux/swab.h:120:12: note: in definition of macro '__swab32' 120 | __fswab32(x)) |^ include/linux/byteorder/generic.h:94:21: note: in expansion of macro '__cpu_to_be32' 94 | #define cpu_to_be32 __cpu_to_be32 | ^ include/linux/mlx5/device.h:56:43: note: in expansion of macro '__mlx5_bit_sz' 56 | #define __mlx5_dw_bit_off(typ, fld) (32 - __mlx5_bit_sz(typ, fld) - (__mlx5_bit_off(typ, fld) & 0x1f)) | ^ include/linux/mlx5/device.h:79:11: note: in expansion of macro '__mlx5_dw_bit_off' 79 |<< __mlx5_dw_bit_off(typ, fld))); \ | ^ drivers/vdpa/mlx5/core/mr.c:194:2: note: in expansion of macro 'MLX5_SET' 194 | MLX5_SET(create_mkey_in, in, uid, mvdev->res.uid); | ^~~~ include/linux/compiler_types.h:135:35: error: 'struct mlx5_ifc_create_mkey_in_bits' has no member named 'uid' 135 | #d
Re: [PATCH vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices
Hi Eli, Thank you for the patch! Yet something to improve: [auto build test ERROR on next-20200715] url: https://github.com/0day-ci/linux/commits/Eli-Cohen/VDPA-support-for-Mellanox-ConnectX-devices/20200716-155039 base:ca0e494af5edb59002665bf12871e94b4163a257 config: i386-allyesconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-14) 9.3.0 reproduce (this is a W=1 build): # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): >> drivers/vdpa/mlx5/net/main.c:7:10: fatal error: mlx5_vdpa_ifc.h: No such >> file or directory 7 | #include "mlx5_vdpa_ifc.h" | ^ compilation terminated. -- | ^ include/linux/mlx5/device.h:56:43: note: in expansion of macro '__mlx5_bit_sz' 56 | #define __mlx5_dw_bit_off(typ, fld) (32 - __mlx5_bit_sz(typ, fld) - (__mlx5_bit_off(typ, fld) & 0x1f)) | ^ include/linux/mlx5/device.h:58:60: note: in expansion of macro '__mlx5_dw_bit_off' 58 | #define __mlx5_dw_mask(typ, fld) (__mlx5_mask(typ, fld) << __mlx5_dw_bit_off(typ, fld)) | ^ include/linux/mlx5/device.h:78:10: note: in expansion of macro '__mlx5_dw_mask' 78 |(~__mlx5_dw_mask(typ, fld))) | (((_v) & __mlx5_mask(typ, fld)) \ | ^~ drivers/vdpa/mlx5/net/mlx5_vnet.c:1192:2: note: in expansion of macro 'MLX5_SET' 1192 | MLX5_SET(rqtc, rqtc, list_q_type, MLX5_RQTC_LIST_Q_TYPE_VIRTIO_NET_Q); | ^~~~ include/linux/compiler_types.h:135:35: error: 'struct mlx5_ifc_rqtc_bits' has no member named 'list_q_type' 135 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b) | ^~ include/uapi/linux/swab.h:115:54: note: in definition of macro '__swab32' 115 | #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x)) | ^ include/linux/byteorder/generic.h:94:21: note: in expansion of macro '__cpu_to_be32' 94 | #define cpu_to_be32 __cpu_to_be32 | ^ include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof' 17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER) |^~~ include/linux/mlx5/device.h:51:35: note: in expansion of macro 'offsetof' 51 | #define __mlx5_bit_off(typ, fld) (offsetof(struct mlx5_ifc_##typ##_bits, fld)) | ^~~~ include/linux/mlx5/device.h:56:70: note: in expansion of macro '__mlx5_bit_off' 56 | #define __mlx5_dw_bit_off(typ, fld) (32 - __mlx5_bit_sz(typ, fld) - (__mlx5_bit_off(typ, fld) & 0x1f)) | ^~ include/linux/mlx5/device.h:58:60: note: in expansion of macro '__mlx5_dw_bit_off' 58 | #define __mlx5_dw_mask(typ, fld) (__mlx5_mask(typ, fld) << __mlx5_dw_bit_off(typ, fld)) | ^ include/linux/mlx5/device.h:78:10: note: in expansion of macro '__mlx5_dw_mask' 78 |(~__mlx5_dw_mask(typ, fld))) | (((_v) & __mlx5_mask(typ, fld)) \ | ^~ drivers/vdpa/mlx5/net/mlx5_vnet.c:1192:2: note: in expansion of macro 'MLX5_SET' 1192 | MLX5_SET(rqtc, rqtc, list_q_type, MLX5_RQTC_LIST_Q_TYPE_VIRTIO_NET_Q); | ^~~~ include/linux/mlx5/device.h:50:57: error: 'struct mlx5_ifc_rqtc_bits' has no member named 'list_q_type' 50 | #define __mlx5_bit_sz(typ, fld) sizeof(__mlx5_nullp(typ)->fld) | ^~ include/uapi/linux/swab.h:115:54: note: in definition of macro '__swab32' 115 | #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x)) | ^ include/linux/byteorder/generic.h:94:21: note: in expansion of macro '__cpu_to_be32' 94 | #define cpu_to_be32 __cpu_to_be32 | ^ include/linux/mlx5/device.h:57:47: note: in expansion of macro '__mlx5_bit_sz' 57 | #define __mlx5_mask(typ, fld) ((u32)((1ull << __mlx5_bit_sz(typ, fld)) - 1)) | ^ include/linux/mlx5/device.h:78:48: note: in expansion of macro '__mlx5_mask' 78 |(~__mlx5_dw_mask(typ, fld))) | (((_v) & __mlx5_mask(typ, fld)) \ |
[vhost:vhost 40/45] drivers/virtio/virtio_vdpa.c:301:9: error: void value not ignored as it ought to be
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost head: 84d40e4b4bc64456abf5ef5663871053b40e84ac commit: 03750f7fa49f9384911059fe16f5367b7e86f99d [40/45] virtio_vdpa: legacy features handling config: nds32-randconfig-r003-20200728 (attached as .config) compiler: nds32le-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 checkout 03750f7fa49f9384911059fe16f5367b7e86f99d # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): In file included from drivers/virtio/virtio_vdpa.c:17: include/linux/vdpa.h:43:21: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token 43 | bool features_valid. | ^ include/linux/vdpa.h: In function 'vdpa_reset': include/linux/vdpa.h:276:6: error: 'struct vdpa_device' has no member named 'features_valid' 276 | vdev->features_valid = false; | ^~ include/linux/vdpa.h: In function 'vdpa_set_features': include/linux/vdpa.h:284:6: error: 'struct vdpa_device' has no member named 'features_valid' 284 | vdev->features_valid = true; | ^~ include/linux/vdpa.h: In function 'vdpa_get_config': include/linux/vdpa.h:298:11: error: 'struct vdpa_device' has no member named 'features_valid' 298 | if (!vdev->features_valid) | ^~ drivers/virtio/virtio_vdpa.c: In function 'virtio_vdpa_get': drivers/virtio/virtio_vdpa.c:60:32: warning: unused variable 'ops' [-Wunused-variable] 60 | const struct vdpa_config_ops *ops = vdpa->config; |^~~ drivers/virtio/virtio_vdpa.c: In function 'virtio_vdpa_finalize_features': >> drivers/virtio/virtio_vdpa.c:301:9: error: void value not ignored as it >> ought to be 301 | return vdpa_set_features(vdpa, vdev->features); | ^~~ drivers/virtio/virtio_vdpa.c:296:32: warning: unused variable 'ops' [-Wunused-variable] 296 | const struct vdpa_config_ops *ops = vdpa->config; |^~~ >> drivers/virtio/virtio_vdpa.c:302:1: warning: control reaches end of non-void >> function [-Wreturn-type] 302 | } | ^ vim +301 drivers/virtio/virtio_vdpa.c 292 293 static int virtio_vdpa_finalize_features(struct virtio_device *vdev) 294 { 295 struct vdpa_device *vdpa = vd_get_vdpa(vdev); 296 const struct vdpa_config_ops *ops = vdpa->config; 297 298 /* Give virtio_ring a chance to accept features. */ 299 vring_transport_features(vdev); 300 > 301 return vdpa_set_features(vdpa, vdev->features); > 302 } 303 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
[vhost:vhost 38/45] include/linux/vdpa.h:43:28: sparse: sparse: expected ; at end of declaration
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost head: 84d40e4b4bc64456abf5ef5663871053b40e84ac commit: fee8fe6bd8ccacd27e963b71b4f943be3721779e [38/45] vdpa: make sure set_features in invoked for legacy :: branch date: 5 hours ago :: commit date: 6 hours ago config: x86_64-randconfig-s021-20200727 (attached as .config) compiler: gcc-9 (Debian 9.3.0-14) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.2-94-geb6779f6-dirty git checkout fee8fe6bd8ccacd27e963b71b4f943be3721779e # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) drivers/vdpa/vdpa.c: note: in included file: >> include/linux/vdpa.h:43:28: sparse: sparse: expected ; at end of declaration include/linux/vdpa.h:43:28: sparse: sparse: Expected } at end of struct-union-enum-specifier include/linux/vdpa.h:43:28: sparse: sparse: got . -- drivers/vdpa/ifcvf/ifcvf_main.c: note: in included file (through drivers/vdpa/ifcvf/ifcvf_base.h): >> include/linux/vdpa.h:43:28: sparse: sparse: expected ; at end of declaration include/linux/vdpa.h:43:28: sparse: sparse: Expected } at end of struct-union-enum-specifier include/linux/vdpa.h:43:28: sparse: sparse: got . -- drivers/vdpa/ifcvf/ifcvf_base.c: note: in included file (through drivers/vdpa/ifcvf/ifcvf_base.h): >> include/linux/vdpa.h:43:28: sparse: sparse: expected ; at end of declaration include/linux/vdpa.h:43:28: sparse: sparse: Expected } at end of struct-union-enum-specifier include/linux/vdpa.h:43:28: sparse: sparse: got . # https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git/commit/?id=fee8fe6bd8ccacd27e963b71b4f943be3721779e git remote add vhost https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git git remote update vhost git checkout fee8fe6bd8ccacd27e963b71b4f943be3721779e vim +43 include/linux/vdpa.h c25a26e653a61b Jason Wang 2020-05-29 29 961e9c84077f6c Jason Wang 2020-03-26 30 /** 961e9c84077f6c Jason Wang 2020-03-26 31 * vDPA device - representation of a vDPA device 961e9c84077f6c Jason Wang 2020-03-26 32 * @dev: underlying device 961e9c84077f6c Jason Wang 2020-03-26 33 * @dma_dev: the actual device that is performing DMA 961e9c84077f6c Jason Wang 2020-03-26 34 * @config: the configuration ops for this device. 961e9c84077f6c Jason Wang 2020-03-26 35 * @index: device index fee8fe6bd8ccac Michael S. Tsirkin 2020-07-27 36 * @features_valid: were features initialized? for legacy guests 961e9c84077f6c Jason Wang 2020-03-26 37 */ 961e9c84077f6c Jason Wang 2020-03-26 38 struct vdpa_device { 961e9c84077f6c Jason Wang 2020-03-26 39struct device dev; 961e9c84077f6c Jason Wang 2020-03-26 40struct device *dma_dev; 961e9c84077f6c Jason Wang 2020-03-26 41const struct vdpa_config_ops *config; 961e9c84077f6c Jason Wang 2020-03-26 42unsigned int index; fee8fe6bd8ccac Michael S. Tsirkin 2020-07-27 @43bool features_valid. 961e9c84077f6c Jason Wang 2020-03-26 44 }; 961e9c84077f6c Jason Wang 2020-03-26 45 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH V3 vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices
Hi Eli, Thank you for the patch! Yet something to improve: [auto build test ERROR on next-20200727] url: https://github.com/0day-ci/linux/commits/Eli-Cohen/VDPA-support-for-Mellanox-ConnectX-devices/20200728-140938 base:e9a523ff8f76de0768857f02ea76437d3b39d151 config: mips-allmodconfig (attached as .config) compiler: mips-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 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>, old ones prefixed by <<): ERROR: modpost: "fw_arg3" [drivers/mtd/parsers/bcm63xxpart.ko] undefined! >> ERROR: modpost: "__udivdi3" [drivers/vdpa/mlx5/mlx5_vdpa.ko] undefined! --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
[vhost:vhost 38/45] include/linux/vdpa.h:43:21: error: expected ';' at end of declaration list
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost head: 84d40e4b4bc64456abf5ef5663871053b40e84ac commit: fee8fe6bd8ccacd27e963b71b4f943be3721779e [38/45] vdpa: make sure set_features in invoked for legacy config: x86_64-randconfig-a014-20200727 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 8dc820393219c7ee440b4ec86c9a201301943276) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu git checkout fee8fe6bd8ccacd27e963b71b4f943be3721779e # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from drivers/vdpa/vdpa.c:13: >> include/linux/vdpa.h:43:21: error: expected ';' at end of declaration list bool features_valid. ^ ; 1 error generated. vim +43 include/linux/vdpa.h 29 30 /** 31 * vDPA device - representation of a vDPA device 32 * @dev: underlying device 33 * @dma_dev: the actual device that is performing DMA 34 * @config: the configuration ops for this device. 35 * @index: device index 36 * @features_valid: were features initialized? for legacy guests 37 */ 38 struct vdpa_device { 39 struct device dev; 40 struct device *dma_dev; 41 const struct vdpa_config_ops *config; 42 unsigned int index; > 43 bool features_valid. 44 }; 45 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
[vhost:vhost 38/45] include/linux/vdpa.h:43:21: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost head: 84d40e4b4bc64456abf5ef5663871053b40e84ac commit: fee8fe6bd8ccacd27e963b71b4f943be3721779e [38/45] vdpa: make sure set_features in invoked for legacy config: m68k-randconfig-r022-20200727 (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 git checkout fee8fe6bd8ccacd27e963b71b4f943be3721779e # 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 All errors (new ones prefixed by >>): In file included from include/linux/kernel.h:11, from drivers/vhost/vdpa.c:14: 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 drivers/vhost/vdpa.c:21: include/linux/vdpa.h: At top level: >> include/linux/vdpa.h:43:21: error: expected ':', ',', ';', '}' or >> '__attribute__' before '.' token 43 | bool features_valid. | ^ include/linux/vdpa.h: In function 'vdpa_reset': >> include/linux/vdpa.h:276:6: error: 'struct vdpa_device' has no member named >> 'features_valid' 276 | vdev->features_valid = false; | ^~ include/linux/vdpa.h: In function 'vdpa_set_features': include/linux/vdpa.h:284:6: error: 'struct vdpa_device' has no member named 'features_valid' 284 | vdev->features_valid = true; | ^~ include/linux/vdpa.h: In function 'vdpa_get_config': include/linux/vdpa.h:298:11: error: 'struct vdpa_device' has no member named 'features_valid' 298 | if (!vdev->features_valid) | ^~ 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 include/linux/spinlock.h:51, from include/linux/seqlock.h:36, from include/linux/time.h:6, from include/linux/stat.h:19, from include/linux/module.h:13, from drivers/vhost/vdpa.c:15: 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:144:27: note: in definition of macro 'WARN_ON_ONCE' 144 | 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:352:19: note: in expansion of macro 'pfn_valid' 352 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr | ^ -- In file included from drivers/vdpa/vdpa.c:13: >> include/linux/vdpa.h:43:21: error: expected ':', ',', ';', '}' or >> '__attribute__' before '.' token 43 | bool features_valid. | ^ include/linux/vdpa.h: In function 'vdpa_reset': >> include/linux/vdpa.h:276:6: error: 'struct vdpa_device' has no member named >> 'features_valid' 276 | vdev->features_valid = false; | ^~ include/linux/vdpa.h: In function 'vdpa_set_features': include/linux/vdpa.h:284:6: error: 'struct vdpa_device' has no member named 'features_valid' 284 | vdev->features_valid = true;
Re: [PATCH V2 vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices
Hi Eli, Thank you for the patch! Yet something to improve: [auto build test ERROR on next-20200717] url: https://github.com/0day-ci/linux/commits/Eli-Cohen/VDPA-support-for-Mellanox-ConnectX-devices/20200720-160220 base:aab7ee9f8ff0110bfcd594b33dc33748dc1baf46 config: x86_64-allyesconfig (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cf1105069648446d58adfb7a6cc590013d6886ba) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from drivers/vdpa/mlx5/net/mlx5_vnet.c:12: >> drivers/vdpa/mlx5/net/mlx5_vnet.h:13:10: fatal error: 'mlx5_vdpa.h' file not >> found #include "mlx5_vdpa.h" ^ 1 error generated. vim +13 drivers/vdpa/mlx5/net/mlx5_vnet.h 6 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include > 13 #include "mlx5_vdpa.h" 14 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH V2 vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices
Hi Eli, Thank you for the patch! Yet something to improve: [auto build test ERROR on next-20200717] url: https://github.com/0day-ci/linux/commits/Eli-Cohen/VDPA-support-for-Mellanox-ConnectX-devices/20200720-160220 base:aab7ee9f8ff0110bfcd594b33dc33748dc1baf46 config: arc-allyesconfig (attached as .config) compiler: arc-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 # 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 All errors (new ones prefixed by >>): >> drivers/vdpa/mlx5/net/main.c:7:10: fatal error: mlx5_vdpa_ifc.h: No such >> file or directory 7 | #include "mlx5_vdpa_ifc.h" | ^ compilation terminated. -- In file included from drivers/vdpa/mlx5/net/mlx5_vnet.c:12: >> drivers/vdpa/mlx5/net/mlx5_vnet.h:13:10: fatal error: mlx5_vdpa.h: No such >> file or directory 13 | #include "mlx5_vdpa.h" | ^ compilation terminated. vim +7 drivers/vdpa/mlx5/net/main.c 3 4 #include 5 #include 6 #include > 7 #include "mlx5_vdpa_ifc.h" 8 #include "mlx5_vnet.h" 9 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH] VMCI: Enforce queuepair max size for IOCTL_VMCI_QUEUEPAIR_ALLOC
Hi Jorgen, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linux/master] [also build test WARNING on char-misc/char-misc-testing linus/master v5.11-rc3 next-20210111] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Jorgen-Hansen/VMCI-Enforce-queuepair-max-size-for-IOCTL_VMCI_QUEUEPAIR_ALLOC/20210111-204259 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 09162bc32c880a791c6c0668ce0745cf7958f576 config: i386-randconfig-s001-20210111 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-208-g46a52ca4-dirty # https://github.com/0day-ci/linux/commit/0923aeac7af9635dd6bf0141e8188f4815e573d2 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Jorgen-Hansen/VMCI-Enforce-queuepair-max-size-for-IOCTL_VMCI_QUEUEPAIR_ALLOC/20210111-204259 git checkout 0923aeac7af9635dd6bf0141e8188f4815e573d2 # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot "sparse warnings: (new ones prefixed by >>)" >> drivers/misc/vmw_vmci/vmci_queue_pair.c:533:20: sparse: sparse: incompatible >> types in comparison expression (different type sizes): >> drivers/misc/vmw_vmci/vmci_queue_pair.c:533:20: sparse:unsigned int * >> drivers/misc/vmw_vmci/vmci_queue_pair.c:533:20: sparse:unsigned long * vim +533 drivers/misc/vmw_vmci/vmci_queue_pair.c 519 520 /* 521 * Allocates kernel VA space of specified size plus space for the queue 522 * and kernel interface. This is different from the guest queue allocator, 523 * because we do not allocate our own queue header/data pages here but 524 * share those of the guest. 525 */ 526 static struct vmci_queue *qp_host_alloc_queue(u64 size) 527 { 528 struct vmci_queue *queue; 529 size_t queue_page_size; 530 u64 num_pages; 531 const size_t queue_size = sizeof(*queue) + sizeof(*(queue->kernel_if)); 532 > 533 if (size > min(VMCI_MAX_GUEST_QP_MEMORY, SIZE_MAX - PAGE_SIZE)) 534 return NULL; 535 num_pages = DIV_ROUND_UP(size, PAGE_SIZE) + 1; 536 if (num_pages > (SIZE_MAX - queue_size) / 537 sizeof(*queue->kernel_if->u.h.page)) 538 return NULL; 539 540 queue_page_size = num_pages * sizeof(*queue->kernel_if->u.h.page); 541 542 queue = kzalloc(queue_size + queue_page_size, GFP_KERNEL); 543 if (queue) { 544 queue->q_header = NULL; 545 queue->saved_header = NULL; 546 queue->kernel_if = (struct vmci_queue_kern_if *)(queue + 1); 547 queue->kernel_if->host = true; 548 queue->kernel_if->mutex = NULL; 549 queue->kernel_if->num_pages = num_pages; 550 queue->kernel_if->u.h.header_page = 551 (struct page **)((u8 *)queue + queue_size); 552 queue->kernel_if->u.h.page = 553 >kernel_if->u.h.header_page[1]; 554 } 555 556 return queue; 557 } 558 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v4 15/17] x86/hyperv: implement an MSI domain for root partition
Hi Wei, I love your patch! Perhaps something to improve: [auto build test WARNING on e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62] url: https://github.com/0day-ci/linux/commits/Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20210107-044149 base:e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62 config: i386-randconfig-m021-20210106 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/376aee69c6ab18dc23b0386590bee82d59555be8 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20210107-044149 git checkout 376aee69c6ab18dc23b0386590bee82d59555be8 # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/x86/hyperv/irqdomain.c:317:28: warning: no previous prototype for >> 'hv_create_pci_msi_domain' [-Wmissing-prototypes] 317 | struct irq_domain * __init hv_create_pci_msi_domain(void) |^~~~ vim +/hv_create_pci_msi_domain +317 arch/x86/hyperv/irqdomain.c 316 > 317 struct irq_domain * __init hv_create_pci_msi_domain(void) 318 { 319 struct irq_domain *d = NULL; 320 struct fwnode_handle *fn; 321 322 fn = irq_domain_alloc_named_fwnode("HV-PCI-MSI"); 323 if (fn) 324 d = pci_msi_create_irq_domain(fn, _pci_msi_domain_info, x86_vector_domain); 325 326 /* No point in going further if we can't get an irq domain */ 327 BUG_ON(!d); 328 329 return d; 330 } 331 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH] drivers: gpio: add virtio-gpio guest driver
Hi "Enrico, I love your patch! Yet something to improve: [auto build test ERROR on gpio/for-next] [also build test ERROR on linux/master linus/master v5.10-rc5 next-20201127] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Enrico-Weigelt-metux-IT-consult/drivers-gpio-add-virtio-gpio-guest-driver/20201128-023506 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git for-next config: c6x-randconfig-p002-20201128 (attached as .config) compiler: c6x-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://github.com/0day-ci/linux/commit/a134ec4827b0ffb7edd6a292238bd93fb377f127 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Enrico-Weigelt-metux-IT-consult/drivers-gpio-add-virtio-gpio-guest-driver/20201128-023506 git checkout a134ec4827b0ffb7edd6a292238bd93fb377f127 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=c6x If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> error: include/uapi/linux/virtio_gpio.h: missing "WITH Linux-syscall-note" >> for SPDX-License-Identifier make[2]: *** [scripts/Makefile.headersinst:63: usr/include/linux/virtio_gpio.h] Error 1 make[2]: Target '__headers' not remade because of errors. make[1]: *** [Makefile:1288: headers] Error 2 arch/c6x/kernel/asm-offsets.c:14:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes] 14 | void foo(void) | ^~~ :1511:2: warning: #warning syscall clone3 not implemented [-Wcpp] make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:185: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v10 63/81] KVM: introspection: add KVMI_VCPU_INJECT_EXCEPTION + KVMI_VCPU_EVENT_TRAP
Hi "Adalbert, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on dc924b062488a0376aae41d3e0a27dc99f852a5e] url: https://github.com/0day-ci/linux/commits/Adalbert-Laz-r/VM-introspection/20201125-174530 base:dc924b062488a0376aae41d3e0a27dc99f852a5e config: x86_64-allyesconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/248beb976ebfd430c3535cc442d0ba198f1ab1d6 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Adalbert-Laz-r/VM-introspection/20201125-174530 git checkout 248beb976ebfd430c3535cc442d0ba198f1ab1d6 # 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 All warnings (new ones prefixed by >>): arch/x86/kvm/kvmi_msg.c: In function 'handle_vcpu_inject_exception': >> arch/x86/kvm/kvmi_msg.c:158:38: warning: variable 'arch' set but not used >> [-Wunused-but-set-variable] 158 | struct kvm_vcpu_arch_introspection *arch; | ^~~~ vim +/arch +158 arch/x86/kvm/kvmi_msg.c 152 153 static int handle_vcpu_inject_exception(const struct kvmi_vcpu_msg_job *job, 154 const struct kvmi_msg_hdr *msg, 155 const void *_req) 156 { 157 const struct kvmi_vcpu_inject_exception *req = _req; > 158 struct kvm_vcpu_arch_introspection *arch; 159 struct kvm_vcpu *vcpu = job->vcpu; 160 int ec; 161 162 arch = (vcpu)->arch; 163 164 if (!kvmi_is_event_allowed(KVMI(vcpu->kvm), KVMI_VCPU_EVENT_TRAP)) 165 ec = -KVM_EPERM; 166 else if (req->padding1 || req->padding2) 167 ec = -KVM_EINVAL; 168 else if (VCPUI(vcpu)->arch.exception.pending || 169 VCPUI(vcpu)->arch.exception.send_event) 170 ec = -KVM_EBUSY; 171 else 172 ec = kvmi_arch_cmd_vcpu_inject_exception(vcpu, req); 173 174 return kvmi_msg_vcpu_reply(job, msg, ec, NULL, 0); 175 } 176 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v10 75/81] KVM: introspection: add KVMI_VCPU_EVENT_PF
Hi "Adalbert, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on dc924b062488a0376aae41d3e0a27dc99f852a5e] url: https://github.com/0day-ci/linux/commits/Adalbert-Laz-r/VM-introspection/20201125-174530 base:dc924b062488a0376aae41d3e0a27dc99f852a5e config: x86_64-allyesconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/e2e6aad169a874e4a2c4f4639c252f6b1d816d7b git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Adalbert-Laz-r/VM-introspection/20201125-174530 git checkout e2e6aad169a874e4a2c4f4639c252f6b1d816d7b # 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 All warnings (new ones prefixed by >>): arch/x86/kvm/../../../virt/kvm/introspection/kvmi.c:481:5: warning: no previous prototype for 'kvmi_hook' [-Wmissing-prototypes] 481 | int kvmi_hook(struct kvm *kvm, const struct kvm_introspection_hook *hook) | ^ >> arch/x86/kvm/../../../virt/kvm/introspection/kvmi.c:1076:6: warning: no >> previous prototype for 'kvmi_restricted_page_access' [-Wmissing-prototypes] 1076 | bool kvmi_restricted_page_access(struct kvm_introspection *kvmi, gpa_t gpa, | ^~~ vim +/kvmi_restricted_page_access +1076 arch/x86/kvm/../../../virt/kvm/introspection/kvmi.c 1075 > 1076 bool kvmi_restricted_page_access(struct kvm_introspection *kvmi, gpa_t > gpa, 1077 u8 access) 1078 { 1079 u8 allowed_access; 1080 int err; 1081 1082 err = kvmi_get_gfn_access(kvmi, gpa_to_gfn(gpa), _access); 1083 if (err) 1084 return false; 1085 1086 /* 1087 * We want to be notified only for violations involving access 1088 * bits that we've specifically cleared 1089 */ 1090 if (access & (~allowed_access)) 1091 return true; 1092 1093 return false; 1094 } 1095 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v10 79/81] KVM: introspection: add KVMI_VCPU_TRANSLATE_GVA
Hi "Adalbert, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on dc924b062488a0376aae41d3e0a27dc99f852a5e] url: https://github.com/0day-ci/linux/commits/Adalbert-Laz-r/VM-introspection/20201125-174530 base:dc924b062488a0376aae41d3e0a27dc99f852a5e config: x86_64-allyesconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/7e18b2b2a0317b316591c7fcde367da2f6694550 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Adalbert-Laz-r/VM-introspection/20201125-174530 git checkout 7e18b2b2a0317b316591c7fcde367da2f6694550 # 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 All warnings (new ones prefixed by >>): arch/x86/kvm/kvmi_msg.c: In function 'handle_vcpu_inject_exception': arch/x86/kvm/kvmi_msg.c:158:38: warning: variable 'arch' set but not used [-Wunused-but-set-variable] 158 | struct kvm_vcpu_arch_introspection *arch; | ^~~~ arch/x86/kvm/kvmi_msg.c: In function 'handle_vcpu_get_xsave': arch/x86/kvm/kvmi_msg.c:203:11: warning: variable 'ec' set but not used [-Wunused-but-set-variable] 203 | int err, ec = 0; | ^~ arch/x86/kvm/kvmi_msg.c: At top level: >> arch/x86/kvm/kvmi_msg.c:316:5: warning: no previous prototype for >> 'handle_vcpu_translate_gva' [-Wmissing-prototypes] 316 | int handle_vcpu_translate_gva(const struct kvmi_vcpu_msg_job *job, | ^ vim +/handle_vcpu_translate_gva +316 arch/x86/kvm/kvmi_msg.c 152 153 static int handle_vcpu_inject_exception(const struct kvmi_vcpu_msg_job *job, 154 const struct kvmi_msg_hdr *msg, 155 const void *_req) 156 { 157 const struct kvmi_vcpu_inject_exception *req = _req; > 158 struct kvm_vcpu_arch_introspection *arch; 159 struct kvm_vcpu *vcpu = job->vcpu; 160 int ec; 161 162 arch = (vcpu)->arch; 163 164 if (!kvmi_is_event_allowed(KVMI(vcpu->kvm), KVMI_VCPU_EVENT_TRAP)) 165 ec = -KVM_EPERM; 166 else if (req->padding1 || req->padding2) 167 ec = -KVM_EINVAL; 168 else if (VCPUI(vcpu)->arch.exception.pending || 169 VCPUI(vcpu)->arch.exception.send_event || 170 VCPUI(vcpu)->singlestep.loop) 171 ec = -KVM_EBUSY; 172 else 173 ec = kvmi_arch_cmd_vcpu_inject_exception(vcpu, req); 174 175 return kvmi_msg_vcpu_reply(job, msg, ec, NULL, 0); 176 } 177 178 static int handle_vcpu_get_xcr(const struct kvmi_vcpu_msg_job *job, 179 const struct kvmi_msg_hdr *msg, 180 const void *_req) 181 { 182 const struct kvmi_vcpu_get_xcr *req = _req; 183 struct kvmi_vcpu_get_xcr_reply rpl; 184 int ec = 0; 185 186 memset(, 0, sizeof(rpl)); 187 188 if (non_zero_padding(req->padding, ARRAY_SIZE(req->padding))) 189 ec = -KVM_EINVAL; 190 else if (req->xcr != 0) 191 ec = -KVM_EINVAL; 192 else 193 rpl.value = job->vcpu->arch.xcr0; 194 195 return kvmi_msg_vcpu_reply(job, msg, ec, , sizeof(rpl)); 196 } 197 198 static int handle_vcpu_get_xsave(const struct kvmi_vcpu_msg_job *job, 199 const struct kvmi_msg_hdr *msg, 200 const void *req) 201 { 202 struct kvmi_vcpu_get_xsave_reply *rpl; 203 int err, ec = 0; 204 205 rpl = kvmi_msg_alloc(); 206 if (!rpl) 207 ec = -KVM_ENOMEM; 208 else 209 kvm_vcpu_ioctl_x86_get_xsave(job->vcpu, >xsave); 210 211 err = kvmi_msg_vcpu_reply(job, msg, 0, rpl, sizeof(*rpl)); 212 213 kvmi_msg_free(rpl); 214 return err; 215 } 216 217 static int handle_vcpu_set_xsave(const struct kvmi_vcpu_msg_job *job, 218 const struct kvmi_msg_hdr *msg, 219 const void *req) 220 { 221 size_t req_size, msg_size = msg->size; 222 int ec = 0; 223 224 if (check_sub_overflow(msg_size, sizeof(struct kvmi_vcpu_hdr), 225 _size)) 226
Re: [PATCH v10 33/81] KVM: introspection: add hook/unhook ioctls
Hi "Adalbert, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on dc924b062488a0376aae41d3e0a27dc99f852a5e] url: https://github.com/0day-ci/linux/commits/Adalbert-Laz-r/VM-introspection/20201125-174530 base:dc924b062488a0376aae41d3e0a27dc99f852a5e config: x86_64-allyesconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/fa233c4711c43446c876e84ca6f87b702b0990a8 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Adalbert-Laz-r/VM-introspection/20201125-174530 git checkout fa233c4711c43446c876e84ca6f87b702b0990a8 # 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 All warnings (new ones prefixed by >>): arch/x86/kvm/../../../virt/kvm/introspection/kvmi.c:90:6: warning: no previous prototype for 'kvmi_put' [-Wmissing-prototypes] 90 | void kvmi_put(struct kvm *kvm) | ^~~~ >> arch/x86/kvm/../../../virt/kvm/introspection/kvmi.c:121:5: warning: no >> previous prototype for 'kvmi_hook' [-Wmissing-prototypes] 121 | int kvmi_hook(struct kvm *kvm, const struct kvm_introspection_hook *hook) | ^ vim +/kvmi_hook +121 arch/x86/kvm/../../../virt/kvm/introspection/kvmi.c 120 > 121 int kvmi_hook(struct kvm *kvm, const struct kvm_introspection_hook > *hook) 122 { 123 struct kvm_introspection *kvmi; 124 int err = 0; 125 126 mutex_lock(>kvmi_lock); 127 128 if (kvm->kvmi) { 129 err = -EEXIST; 130 goto out; 131 } 132 133 kvmi = kvmi_alloc(kvm, hook); 134 if (!kvmi) { 135 err = -ENOMEM; 136 goto out; 137 } 138 139 kvm->kvmi = kvmi; 140 141 err = __kvmi_hook(kvm, hook); 142 if (err) 143 goto destroy; 144 145 init_completion(>kvmi_complete); 146 147 refcount_set(>kvmi_ref, 1); 148 149 kvmi->recv = kthread_run(kvmi_recv_thread, kvmi, "kvmi-recv"); 150 if (IS_ERR(kvmi->recv)) { 151 err = -ENOMEM; 152 kvmi_put(kvm); 153 goto unhook; 154 } 155 156 goto out; 157 158 unhook: 159 __kvmi_unhook(kvm); 160 destroy: 161 kvmi_destroy(kvmi); 162 out: 163 mutex_unlock(>kvmi_lock); 164 return err; 165 } 166 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v10 25/81] KVM: x86: export kvm_vcpu_ioctl_x86_get_xsave()
Hi "Adalbert, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on dc924b062488a0376aae41d3e0a27dc99f852a5e] url: https://github.com/0day-ci/linux/commits/Adalbert-Laz-r/VM-introspection/20201125-174530 base:dc924b062488a0376aae41d3e0a27dc99f852a5e config: s390-allyesconfig (attached as .config) compiler: s390-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/0day-ci/linux/commit/311f49fb9bd7c7968a435ccfbf075cd4d1bd8079 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Adalbert-Laz-r/VM-introspection/20201125-174530 git checkout 311f49fb9bd7c7968a435ccfbf075cd4d1bd8079 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from arch/s390/kernel/asm-offsets.c:11: >> include/linux/kvm_host.h:925:14: warning: 'struct kvm_xsave' declared inside >> parameter list will not be visible outside of this definition or declaration 925 | struct kvm_xsave *guest_xsave); | ^ -- In file included from arch/s390/kernel/asm-offsets.c:11: >> include/linux/kvm_host.h:925:14: warning: 'struct kvm_xsave' declared inside >> parameter list will not be visible outside of this definition or declaration 925 | struct kvm_xsave *guest_xsave); | ^ vim +925 include/linux/kvm_host.h 900 901 int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu, 902 struct kvm_translation *tr); 903 904 int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs); 905 void kvm_arch_vcpu_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs); 906 int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs); 907 void kvm_arch_vcpu_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs, 908 bool clear_exception); 909 int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu, 910struct kvm_sregs *sregs); 911 void kvm_arch_vcpu_get_sregs(struct kvm_vcpu *vcpu, 912struct kvm_sregs *sregs); 913 int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, 914struct kvm_sregs *sregs); 915 int kvm_arch_vcpu_ioctl_get_mpstate(struct kvm_vcpu *vcpu, 916 struct kvm_mp_state *mp_state); 917 int kvm_arch_vcpu_ioctl_set_mpstate(struct kvm_vcpu *vcpu, 918 struct kvm_mp_state *mp_state); 919 int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu, 920 struct kvm_guest_debug *dbg); 921 int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu); 922 int kvm_arch_vcpu_set_guest_debug(struct kvm_vcpu *vcpu, 923struct kvm_guest_debug *dbg); 924 void kvm_vcpu_ioctl_x86_get_xsave(struct kvm_vcpu *vcpu, > 925struct kvm_xsave *guest_xsave); 926 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v10 67/81] KVM: introspection: add KVMI_VCPU_GET_XSAVE
Hi "Adalbert, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on dc924b062488a0376aae41d3e0a27dc99f852a5e] url: https://github.com/0day-ci/linux/commits/Adalbert-Laz-r/VM-introspection/20201125-174530 base:dc924b062488a0376aae41d3e0a27dc99f852a5e config: x86_64-allyesconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/c8777a54e026a93f283f7dfac30ed2cb2563fd03 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Adalbert-Laz-r/VM-introspection/20201125-174530 git checkout c8777a54e026a93f283f7dfac30ed2cb2563fd03 # 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 All warnings (new ones prefixed by >>): arch/x86/kvm/kvmi_msg.c: In function 'handle_vcpu_inject_exception': arch/x86/kvm/kvmi_msg.c:158:38: warning: variable 'arch' set but not used [-Wunused-but-set-variable] 158 | struct kvm_vcpu_arch_introspection *arch; | ^~~~ arch/x86/kvm/kvmi_msg.c: In function 'handle_vcpu_get_xsave': >> arch/x86/kvm/kvmi_msg.c:202:11: warning: variable 'ec' set but not used >> [-Wunused-but-set-variable] 202 | int err, ec = 0; | ^~ vim +/ec +202 arch/x86/kvm/kvmi_msg.c 196 197 static int handle_vcpu_get_xsave(const struct kvmi_vcpu_msg_job *job, 198 const struct kvmi_msg_hdr *msg, 199 const void *req) 200 { 201 struct kvmi_vcpu_get_xsave_reply *rpl; > 202 int err, ec = 0; 203 204 rpl = kvmi_msg_alloc(); 205 if (!rpl) 206 ec = -KVM_ENOMEM; 207 else 208 kvm_vcpu_ioctl_x86_get_xsave(job->vcpu, >xsave); 209 210 err = kvmi_msg_vcpu_reply(job, msg, 0, rpl, sizeof(*rpl)); 211 212 kvmi_msg_free(rpl); 213 return err; 214 } 215 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v10 66/81] KVM: introspection: add KVMI_VCPU_GET_XCR
Hi "Adalbert, Thank you for the patch! Yet something to improve: [auto build test ERROR on dc924b062488a0376aae41d3e0a27dc99f852a5e] url: https://github.com/0day-ci/linux/commits/Adalbert-Laz-r/VM-introspection/20201125-174530 base:dc924b062488a0376aae41d3e0a27dc99f852a5e config: x86_64-randconfig-a015-20201125 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/f4ab174ddeb4c60f52bd15cab4263701c7f543c9 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Adalbert-Laz-r/VM-introspection/20201125-174530 git checkout f4ab174ddeb4c60f52bd15cab4263701c7f543c9 # 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 All errors (new ones prefixed by >>): In file included from ./usr/include/linux/kvmi.h:11, from :32: >> ./usr/include/asm/kvmi.h:111:2: error: unknown type name 'u64' 111 | u64 value; | ^~~ --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v10 32/81] KVM: introduce VM introspection
Hi "Adalbert, Thank you for the patch! Yet something to improve: [auto build test ERROR on dc924b062488a0376aae41d3e0a27dc99f852a5e] url: https://github.com/0day-ci/linux/commits/Adalbert-Laz-r/VM-introspection/20201125-174530 base:dc924b062488a0376aae41d3e0a27dc99f852a5e config: s390-randconfig-r005-20201125 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 77e98eaee2e8d4b9b297b66fda5b1e51e2a6) 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 # install s390 cross compiling tool for clang build # apt-get install binutils-s390x-linux-gnu # https://github.com/0day-ci/linux/commit/6ffa5da71155bd0bed0d68c52af248bda256d0f2 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Adalbert-Laz-r/VM-introspection/20201125-174530 git checkout 6ffa5da71155bd0bed0d68c52af248bda256d0f2 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~ ^ include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0x00ffUL) >> 8) |\ ^ In file included from arch/s390/kvm/../../../virt/kvm/kvm_main.c:18: In file included from include/linux/kvm_host.h:32: In file included from include/linux/kvm_para.h:5: In file included from include/uapi/linux/kvm_para.h:40: In file included from arch/s390/include/asm/kvm_para.h:25: In file included from arch/s390/include/asm/diag.h:12: In file included from include/linux/if_ether.h:19: In file included from include/linux/skbuff.h:31: In file included from include/linux/dma-mapping.h:10: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:80: include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~ ^ include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0xff00UL) >> 24))) ^ In file included from arch/s390/kvm/../../../virt/kvm/kvm_main.c:18: In file included from include/linux/kvm_host.h:32: In file included from include/linux/kvm_para.h:5: In file included from include/uapi/linux/kvm_para.h:40: In file included from arch/s390/include/asm/kvm_para.h:25: In file included from arch/s390/include/asm/diag.h:12: In file included from include/linux/if_ether.h:19: In file included from include/linux/skbuff.h:31: In file included from include/linux/dma-mapping.h:10: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:80: include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~ ^ include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:120:12: note: expanded from macro '__swab32' __fswab32(x)) ^ In file included from arch/s390/k
Re: [PATCH v10 25/81] KVM: x86: export kvm_vcpu_ioctl_x86_get_xsave()
Hi "Adalbert, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on dc924b062488a0376aae41d3e0a27dc99f852a5e] url: https://github.com/0day-ci/linux/commits/Adalbert-Laz-r/VM-introspection/20201125-174530 base:dc924b062488a0376aae41d3e0a27dc99f852a5e config: mips-randconfig-r013-20201125 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 77e98eaee2e8d4b9b297b66fda5b1e51e2a6) 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 # install mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://github.com/0day-ci/linux/commit/311f49fb9bd7c7968a435ccfbf075cd4d1bd8079 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Adalbert-Laz-r/VM-introspection/20201125-174530 git checkout 311f49fb9bd7c7968a435ccfbf075cd4d1bd8079 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from arch/mips/kernel/asm-offsets.c:24: >> include/linux/kvm_host.h:925:14: warning: declaration of 'struct kvm_xsave' >> will not be visible outside of this function [-Wvisibility] struct kvm_xsave *guest_xsave); ^ arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for function 'output_ptreg_defines' [-Wmissing-prototypes] void output_ptreg_defines(void) ^ arch/mips/kernel/asm-offsets.c:26:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_ptreg_defines(void) ^ static arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for function 'output_task_defines' [-Wmissing-prototypes] void output_task_defines(void) ^ arch/mips/kernel/asm-offsets.c:78:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_task_defines(void) ^ static arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for function 'output_thread_info_defines' [-Wmissing-prototypes] void output_thread_info_defines(void) ^ arch/mips/kernel/asm-offsets.c:93:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_thread_info_defines(void) ^ static arch/mips/kernel/asm-offsets.c:110:6: warning: no previous prototype for function 'output_thread_defines' [-Wmissing-prototypes] void output_thread_defines(void) ^ arch/mips/kernel/asm-offsets.c:110:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_thread_defines(void) ^ static arch/mips/kernel/asm-offsets.c:138:6: warning: no previous prototype for function 'output_thread_fpu_defines' [-Wmissing-prototypes] void output_thread_fpu_defines(void) ^ arch/mips/kernel/asm-offsets.c:138:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_thread_fpu_defines(void) ^ static arch/mips/kernel/asm-offsets.c:181:6: warning: no previous prototype for function 'output_mm_defines' [-Wmissing-prototypes] void output_mm_defines(void) ^ arch/mips/kernel/asm-offsets.c:181:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_mm_defines(void) ^ static arch/mips/kernel/asm-offsets.c:220:6: warning: no previous prototype for function 'output_sc_defines' [-Wmissing-prototypes] void output_sc_defines(void) ^ arch/mips/kernel/asm-offsets.c:220:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_sc_defines(void) ^ static arch/mips/kernel/asm-offsets.c:255:6: warning: no previous prototype for function 'output_signal_defined' [-Wmissing-prototypes] void output_signal_defined(void) ^ arch/mips/kernel/asm-offsets.c:255:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_signal_defined(void) ^ static arch/mips/kernel/asm-offsets.c:348:6: warning: no previous prototype for function 'output_kvm_defines' [-Wmissing-prototypes] void output_kvm_defines(void) ^ arch/mips/kernel/asm-offsets.c:348:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_kvm_defines(void) ^
Re: [PATCH v10 32/81] KVM: introduce VM introspection
Hi "Adalbert, Thank you for the patch! Yet something to improve: [auto build test ERROR on dc924b062488a0376aae41d3e0a27dc99f852a5e] url: https://github.com/0day-ci/linux/commits/Adalbert-Laz-r/VM-introspection/20201125-174530 base:dc924b062488a0376aae41d3e0a27dc99f852a5e config: powerpc64-randconfig-r006-20201125 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 77e98eaee2e8d4b9b297b66fda5b1e51e2a6) 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 # install powerpc64 cross compiling tool for clang build # apt-get install binutils-powerpc64-linux-gnu # https://github.com/0day-ci/linux/commit/6ffa5da71155bd0bed0d68c52af248bda256d0f2 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Adalbert-Laz-r/VM-introspection/20201125-174530 git checkout 6ffa5da71155bd0bed0d68c52af248bda256d0f2 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from include/linux/hardirq.h:10: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:604: arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c), ^~~ arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~ :45:1: note: expanded from here __do_insw ^ arch/powerpc/include/asm/io.h:542:56: note: expanded from macro '__do_insw' #define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n)) ~^ In file included from arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:18: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:10: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:604: arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c), ^~~ arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~ :47:1: note: expanded from here __do_insl ^ arch/powerpc/include/asm/io.h:543:56: note: expanded from macro '__do_insl' #define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n)) ~^ In file included from arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:18: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:10: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:604: arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c), ^~ arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~ :49:1: note: expanded from here __do_outsb ^ arch/powerpc/include/asm/io.h:544:58: note: expanded from macro '__do_outsb' #define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) ~^ In file included from arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:18: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:10: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from in
Re: [PATCH v10 32/81] KVM: introduce VM introspection
Hi "Adalbert, Thank you for the patch! Yet something to improve: [auto build test ERROR on dc924b062488a0376aae41d3e0a27dc99f852a5e] url: https://github.com/0day-ci/linux/commits/Adalbert-Laz-r/VM-introspection/20201125-174530 base:dc924b062488a0376aae41d3e0a27dc99f852a5e config: mips-malta_kvm_defconfig (attached as .config) compiler: mipsel-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/0day-ci/linux/commit/6ffa5da71155bd0bed0d68c52af248bda256d0f2 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Adalbert-Laz-r/VM-introspection/20201125-174530 git checkout 6ffa5da71155bd0bed0d68c52af248bda256d0f2 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from arch/mips/kvm/../../../virt/kvm/kvm_main.c:18: include/linux/kvm_host.h:925:14: warning: 'struct kvm_xsave' declared inside parameter list will not be visible outside of this definition or declaration 925 | struct kvm_xsave *guest_xsave); | ^ include/linux/kvm_host.h:927:13: warning: 'struct kvm_xsave' declared inside parameter list will not be visible outside of this definition or declaration 927 | struct kvm_xsave *guest_xsave); | ^ arch/mips/kvm/../../../virt/kvm/kvm_main.c: In function 'kvm_create_vm': >> arch/mips/kvm/../../../virt/kvm/kvm_main.c:806:6: error: >> 'enable_introspection' undeclared (first use in this function) 806 | if (enable_introspection) | ^~~~ arch/mips/kvm/../../../virt/kvm/kvm_main.c:806:6: note: each undeclared identifier is reported only once for each function it appears in arch/mips/kvm/../../../virt/kvm/kvm_main.c: In function 'kvm_destroy_vm': arch/mips/kvm/../../../virt/kvm/kvm_main.c:861:6: error: 'enable_introspection' undeclared (first use in this function) 861 | if (enable_introspection) | ^~~~ arch/mips/kvm/../../../virt/kvm/kvm_main.c: In function 'kvm_init': arch/mips/kvm/../../../virt/kvm/kvm_main.c:5012:6: error: 'enable_introspection' undeclared (first use in this function) 5012 | if (enable_introspection) { | ^~~~ vim +/enable_introspection +806 arch/mips/kvm/../../../virt/kvm/kvm_main.c 797 798 r = kvm_init_mmu_notifier(kvm); 799 if (r) 800 goto out_err_no_mmu_notifier; 801 802 r = kvm_arch_post_init_vm(kvm); 803 if (r) 804 goto out_err; 805 > 806 if (enable_introspection) 807 kvmi_create_vm(kvm); 808 809 mutex_lock(_lock); 810 list_add(>vm_list, _list); 811 mutex_unlock(_lock); 812 813 preempt_notifier_inc(); 814 815 return kvm; 816 817 out_err: 818 #if defined(CONFIG_MMU_NOTIFIER) && defined(KVM_ARCH_WANT_MMU_NOTIFIER) 819 if (kvm->mmu_notifier.ops) 820 mmu_notifier_unregister(>mmu_notifier, current->mm); 821 #endif 822 out_err_no_mmu_notifier: 823 hardware_disable_all(); 824 out_err_no_disable: 825 kvm_arch_destroy_vm(kvm); 826 out_err_no_arch_destroy_vm: 827 WARN_ON_ONCE(!refcount_dec_and_test(>users_count)); 828 for (i = 0; i < KVM_NR_BUSES; i++) 829 kfree(kvm_get_bus(kvm, i)); 830 for (i = 0; i < KVM_ADDRESS_SPACE_NUM; i++) 831 kvm_free_memslots(kvm, __kvm_memslots(kvm, i)); 832 cleanup_srcu_struct(>irq_srcu); 833 out_err_no_irq_srcu: 834 cleanup_srcu_struct(>srcu); 835 out_err_no_srcu: 836 kvm_arch_free_vm(kvm); 837 mmdrop(current->mm); 838 return ERR_PTR(r); 839 } 840 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v3] drivers: gpio: add virtio-gpio guest driver
Hi "Enrico, I love your patch! Yet something to improve: [auto build test ERROR on gpio/for-next] [also build test ERROR on linux/master linus/master v5.10-rc7 next-20201207] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Enrico-Weigelt-metux-IT-consult/drivers-gpio-add-virtio-gpio-guest-driver/20201208-045646 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git for-next config: h8300-randconfig-r032-20201207 (attached as .config) compiler: h8300-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/0day-ci/linux/commit/fff1ac3789d850604f11c95b185116bea68e26a9 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Enrico-Weigelt-metux-IT-consult/drivers-gpio-add-virtio-gpio-guest-driver/20201208-045646 git checkout fff1ac3789d850604f11c95b185116bea68e26a9 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/i2c/Kconfig:8:error: recursive dependency detected! drivers/i2c/Kconfig:8: symbol I2C is selected by FB_DDC drivers/video/fbdev/Kconfig:63: symbol FB_DDC depends on FB drivers/video/fbdev/Kconfig:12: symbol FB is selected by DRM_KMS_FB_HELPER drivers/gpu/drm/Kconfig:80: symbol DRM_KMS_FB_HELPER depends on DRM_KMS_HELPER drivers/gpu/drm/Kconfig:74: symbol DRM_KMS_HELPER is selected by DRM_VIRTIO_GPU drivers/gpu/drm/virtio/Kconfig:2: symbol DRM_VIRTIO_GPU depends on VIRTIO drivers/virtio/Kconfig:2: symbol VIRTIO is selected by GPIO_VIRTIO drivers/gpio/Kconfig:1628: symbol GPIO_VIRTIO depends on GPIOLIB drivers/gpio/Kconfig:14: symbol GPIOLIB is selected by I2C_MUX_LTC4306 drivers/i2c/muxes/Kconfig:47: symbol I2C_MUX_LTC4306 depends on I2C For a resolution refer to Documentation/kbuild/kconfig-language.rst subsection "Kconfig recursive dependency limitations" vim +8 drivers/i2c/Kconfig da3c6647ee0871 Lan Tianyu 2014-05-20 7 da3c6647ee0871 Lan Tianyu 2014-05-20 @8 config I2C ^1da177e4c3f41 Linus Torvalds 2005-04-16 9tristate "I2C support" 194684e596af4b Mika Kuoppala 2009-12-06 10select RT_MUTEXES 4d5538f5882a6b Benjamin Tissoires 2016-10-13 11select IRQ_DOMAIN a7f7f6248d9740 Masahiro Yamada2020-06-14 12help 622e040d577dc8 Michael Witten 2011-07-08 13 I2C (pronounce: I-squared-C) is a slow serial bus protocol used in ^1da177e4c3f41 Linus Torvalds 2005-04-16 14 many micro controller applications and developed by Philips. SMBus, ^1da177e4c3f41 Linus Torvalds 2005-04-16 15 or System Management Bus is a subset of the I2C protocol. More ^1da177e4c3f41 Linus Torvalds 2005-04-16 16 information is contained in the directory , ^1da177e4c3f41 Linus Torvalds 2005-04-16 17 especially in the file called "summary" there. ^1da177e4c3f41 Linus Torvalds 2005-04-16 18 ^1da177e4c3f41 Linus Torvalds 2005-04-16 19 Both I2C and SMBus are supported here. You will need this for ^1da177e4c3f41 Linus Torvalds 2005-04-16 20 hardware sensors support, and also for Video For Linux support. ^1da177e4c3f41 Linus Torvalds 2005-04-16 21 ^1da177e4c3f41 Linus Torvalds 2005-04-16 22 If you want I2C support, you should say Y here and also to the ^1da177e4c3f41 Linus Torvalds 2005-04-16 23 specific driver for your bus adapter(s) below. ^1da177e4c3f41 Linus Torvalds 2005-04-16 24 ^1da177e4c3f41 Linus Torvalds 2005-04-16 25 This I2C support can also be built as a module. If so, the module ^1da177e4c3f41 Linus Torvalds 2005-04-16 26 will be called i2c-core. ^1da177e4c3f41 Linus Torvalds 2005-04-16 27 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v3] drivers: gpio: add virtio-gpio guest driver
Hi "Enrico, I love your patch! Yet something to improve: [auto build test ERROR on gpio/for-next] [also build test ERROR on linux/master linus/master v5.10-rc7 next-20201207] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Enrico-Weigelt-metux-IT-consult/drivers-gpio-add-virtio-gpio-guest-driver/20201208-045646 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git for-next config: i386-randconfig-m021-20201207 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/fff1ac3789d850604f11c95b185116bea68e26a9 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Enrico-Weigelt-metux-IT-consult/drivers-gpio-add-virtio-gpio-guest-driver/20201208-045646 git checkout fff1ac3789d850604f11c95b185116bea68e26a9 # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/gpu/drm/Kconfig:74:error: recursive dependency detected! drivers/gpu/drm/Kconfig:74: symbol DRM_KMS_HELPER is selected by DRM_VIRTIO_GPU drivers/gpu/drm/virtio/Kconfig:2: symbol DRM_VIRTIO_GPU depends on VIRTIO drivers/virtio/Kconfig:2: symbol VIRTIO is selected by GPIO_VIRTIO drivers/gpio/Kconfig:1628: symbol GPIO_VIRTIO depends on GPIOLIB drivers/gpio/Kconfig:14: symbol GPIOLIB is selected by I2C_MUX_LTC4306 drivers/i2c/muxes/Kconfig:47: symbol I2C_MUX_LTC4306 depends on I2C drivers/i2c/Kconfig:8: symbol I2C is selected by FB_DDC drivers/video/fbdev/Kconfig:63: symbol FB_DDC depends on FB drivers/video/fbdev/Kconfig:12: symbol FB is selected by DRM_KMS_FB_HELPER drivers/gpu/drm/Kconfig:80: symbol DRM_KMS_FB_HELPER depends on DRM_KMS_HELPER For a resolution refer to Documentation/kbuild/kconfig-language.rst subsection "Kconfig recursive dependency limitations" vim +74 drivers/gpu/drm/Kconfig 6fcefd56f5060c Dave Airlie 2009-09-08 @74 config DRM_KMS_HELPER 13a8195b148615 Dave Airlie 2009-09-07 75 tristate 13a8195b148615 Dave Airlie 2009-09-07 76 depends on DRM 92b6f89f6b85f4 Daniel Vetter 2013-10-08 77 help 92b6f89f6b85f4 Daniel Vetter 2013-10-08 78 CRTC helpers for KMS drivers. 92b6f89f6b85f4 Daniel Vetter 2013-10-08 79 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v3 15/17] x86/hyperv: implement an MSI domain for root partition
Hi Wei, I love your patch! Perhaps something to improve: [auto build test WARNING on tip/x86/core] [also build test WARNING on asm-generic/master iommu/next tip/timers/core pci/next linus/master v5.10-rc5] [cannot apply to next-20201124] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20201125-011026 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 238c91115cd05c71447ea071624a4c9fe661f970 config: i386-randconfig-a015-20201124 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/ae7533bcd9667c0f23b545d941d3c68460f91ea2 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20201125-011026 git checkout ae7533bcd9667c0f23b545d941d3c68460f91ea2 # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): arch/x86/hyperv/irqdomain.c: In function 'hv_irq_compose_msi_msg': arch/x86/hyperv/irqdomain.c:146:8: error: implicit declaration of function 'msi_desc_to_pci_dev'; did you mean 'msi_desc_to_dev'? [-Werror=implicit-function-declaration] 146 | dev = msi_desc_to_pci_dev(msidesc); |^~~ |msi_desc_to_dev >> arch/x86/hyperv/irqdomain.c:146:6: warning: assignment to 'struct pci_dev *' >> from 'int' makes pointer from integer without a cast [-Wint-conversion] 146 | dev = msi_desc_to_pci_dev(msidesc); | ^ arch/x86/hyperv/irqdomain.c: In function 'hv_msi_domain_free_irqs': arch/x86/hyperv/irqdomain.c:277:2: error: implicit declaration of function 'for_each_pci_msi_entry'; did you mean 'for_each_msi_entry'? [-Werror=implicit-function-declaration] 277 | for_each_pci_msi_entry(entry, pdev) { | ^~ | for_each_msi_entry arch/x86/hyperv/irqdomain.c:277:37: error: expected ';' before '{' token 277 | for_each_pci_msi_entry(entry, pdev) { | ^~ | ; arch/x86/hyperv/irqdomain.c:268:6: warning: unused variable 'i' [-Wunused-variable] 268 | int i; | ^ arch/x86/hyperv/irqdomain.c: At top level: arch/x86/hyperv/irqdomain.c:298:22: error: 'msi_domain_set_affinity' undeclared here (not in a function); did you mean 'irq_can_set_affinity'? 298 | .irq_set_affinity = msi_domain_set_affinity, | ^~~ | irq_can_set_affinity arch/x86/hyperv/irqdomain.c:302:15: error: variable 'pci_msi_domain_ops' has initializer but incomplete type 302 | static struct msi_domain_ops pci_msi_domain_ops = { | ^~ arch/x86/hyperv/irqdomain.c:303:3: error: 'struct msi_domain_ops' has no member named 'domain_free_irqs' 303 | .domain_free_irqs = hv_msi_domain_free_irqs, | ^~~~ >> arch/x86/hyperv/irqdomain.c:303:22: warning: excess elements in struct >> initializer 303 | .domain_free_irqs = hv_msi_domain_free_irqs, | ^~~ arch/x86/hyperv/irqdomain.c:303:22: note: (near initialization for 'pci_msi_domain_ops') arch/x86/hyperv/irqdomain.c:304:3: error: 'struct msi_domain_ops' has no member named 'msi_prepare' 304 | .msi_prepare = pci_msi_prepare, | ^~~ arch/x86/hyperv/irqdomain.c:304:18: error: 'pci_msi_prepare' undeclared here (not in a function) 304 | .msi_prepare = pci_msi_prepare, | ^~~ arch/x86/hyperv/irqdomain.c:304:18: warning: excess elements in struct initializer arch/x86/hyperv/irqdomain.c:304:18: note: (near initialization for 'pci_msi_domain_ops') arch/x86/hyperv/irqdomain.c:307:15: error: variable 'hv_pci_msi_domain_info' has initializer but incomplete type 307 | static struct msi_domain_info hv_pci_msi_domain_info = { | ^~~ arch/x86/hyperv/irqdomain.c:308:3: error: 'struct msi_domain_info' has no member named 'flags' 308 | .flags = MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS | | ^ arch/x86/hyperv/irqdomain.c:308:12: error: 'MSI_FLAG_USE_DEF_DOM_OPS' undeclared here (not in a function) 308 | .flags = MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS | |^~~~ arch
Re: [PATCH v3 15/17] x86/hyperv: implement an MSI domain for root partition
Hi Wei, I love your patch! Perhaps something to improve: [auto build test WARNING on tip/x86/core] [also build test WARNING on asm-generic/master iommu/next tip/timers/core pci/next linus/master v5.10-rc5] [cannot apply to next-20201124] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20201125-011026 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 238c91115cd05c71447ea071624a4c9fe661f970 config: x86_64-randconfig-a003-20201125 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 77e98eaee2e8d4b9b297b66fda5b1e51e2a6) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/0day-ci/linux/commit/ae7533bcd9667c0f23b545d941d3c68460f91ea2 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20201125-011026 git checkout ae7533bcd9667c0f23b545d941d3c68460f91ea2 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): arch/x86/hyperv/irqdomain.c:303:3: error: field designator 'domain_free_irqs' does not refer to any field in type 'struct msi_domain_ops' .domain_free_irqs = hv_msi_domain_free_irqs, ^ >> arch/x86/hyperv/irqdomain.c:316:28: warning: no previous prototype for >> function 'hv_create_pci_msi_domain' [-Wmissing-prototypes] struct irq_domain * __init hv_create_pci_msi_domain(void) ^ arch/x86/hyperv/irqdomain.c:316:1: note: declare 'static' if the function is not intended to be used outside of this translation unit struct irq_domain * __init hv_create_pci_msi_domain(void) ^ static 1 warning and 1 error generated. vim +/hv_create_pci_msi_domain +316 arch/x86/hyperv/irqdomain.c 301 302 static struct msi_domain_ops pci_msi_domain_ops = { > 303 .domain_free_irqs = hv_msi_domain_free_irqs, 304 .msi_prepare= pci_msi_prepare, 305 }; 306 307 static struct msi_domain_info hv_pci_msi_domain_info = { 308 .flags = MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS | 309MSI_FLAG_PCI_MSIX, 310 .ops= _msi_domain_ops, 311 .chip = _pci_msi_controller, 312 .handler= handle_edge_irq, 313 .handler_name = "edge", 314 }; 315 > 316 struct irq_domain * __init hv_create_pci_msi_domain(void) 317 { 318 struct irq_domain *d = NULL; 319 struct fwnode_handle *fn; 320 321 fn = irq_domain_alloc_named_fwnode("HV-PCI-MSI"); 322 if (fn) 323 d = pci_msi_create_irq_domain(fn, _pci_msi_domain_info, x86_vector_domain); 324 325 /* No point in going further if we can't get an irq domain */ 326 BUG_ON(!d); 327 328 return d; 329 } 330 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v3 17/17] x86/hyperv: handle IO-APIC when running as root
Hi Wei, I love your patch! Perhaps something to improve: [auto build test WARNING on tip/x86/core] [also build test WARNING on asm-generic/master iommu/next tip/timers/core pci/next linus/master v5.10-rc5] [cannot apply to next-20201124] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20201125-011026 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 238c91115cd05c71447ea071624a4c9fe661f970 config: x86_64-randconfig-a003-20201125 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 77e98eaee2e8d4b9b297b66fda5b1e51e2a6) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/0day-ci/linux/commit/591ad2444b6b7d63ab24ce8f16a4e367085bbb5d git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20201125-011026 git checkout 591ad2444b6b7d63ab24ce8f16a4e367085bbb5d # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): arch/x86/hyperv/irqdomain.c:305:3: error: field designator 'domain_free_irqs' does not refer to any field in type 'struct msi_domain_ops' .domain_free_irqs = hv_msi_domain_free_irqs, ^ arch/x86/hyperv/irqdomain.c:318:28: warning: no previous prototype for function 'hv_create_pci_msi_domain' [-Wmissing-prototypes] struct irq_domain * __init hv_create_pci_msi_domain(void) ^ arch/x86/hyperv/irqdomain.c:318:1: note: declare 'static' if the function is not intended to be used outside of this translation unit struct irq_domain * __init hv_create_pci_msi_domain(void) ^ static >> arch/x86/hyperv/irqdomain.c:499:6: warning: no previous prototype for >> function 'hv_ioapic_ack_level' [-Wmissing-prototypes] void hv_ioapic_ack_level(struct irq_data *irq_data) ^ arch/x86/hyperv/irqdomain.c:499:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void hv_ioapic_ack_level(struct irq_data *irq_data) ^ static >> arch/x86/hyperv/irqdomain.c:526:5: warning: no previous prototype for >> function 'hv_acpi_register_gsi' [-Wmissing-prototypes] int hv_acpi_register_gsi(struct device *dev, u32 gsi, int trigger, int polarity) ^ arch/x86/hyperv/irqdomain.c:526:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int hv_acpi_register_gsi(struct device *dev, u32 gsi, int trigger, int polarity) ^ static >> arch/x86/hyperv/irqdomain.c:550:6: warning: no previous prototype for >> function 'hv_acpi_unregister_gsi' [-Wmissing-prototypes] void hv_acpi_unregister_gsi(u32 gsi) ^ arch/x86/hyperv/irqdomain.c:550:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void hv_acpi_unregister_gsi(u32 gsi) ^ static 4 warnings and 1 error generated. vim +/hv_ioapic_ack_level +499 arch/x86/hyperv/irqdomain.c 498 > 499 void hv_ioapic_ack_level(struct irq_data *irq_data) 500 { 501 /* 502 * Per email exchange with Hyper-V team, all is needed is write to 503 * LAPIC's EOI register. They don't support directed EOI to IO-APIC. 504 * Hyper-V handles it for us. 505 */ 506 apic_ack_irq(irq_data); 507 } 508 509 struct irq_chip hv_ioapic_chip __read_mostly = { 510 .name = "HV-IO-APIC", 511 .irq_startup= hv_ioapic_startup_irq, 512 .irq_mask = hv_ioapic_mask_irq, 513 .irq_unmask = hv_ioapic_unmask_irq, 514 .irq_ack= irq_chip_ack_parent, 515 .irq_eoi= hv_ioapic_ack_level, 516 .irq_set_affinity = hv_ioapic_set_affinity, 517 .irq_retrigger = irq_chip_retrigger_hierarchy, 518 .irq_get_irqchip_state = ioapic_irq_get_chip_state, 519 .flags = IRQCHIP_SKIP_SET_WAKE, 520 }; 521 522 523 int (*native_acpi_register_gsi)(
Re: [PATCH v3 14/15] x86/paravirt: switch functions with custom code to ALTERNATIVE
Hi Juergen, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [cannot apply to xen-tip/linux-next tip/x86/core tip/x86/asm v5.10 next-20201217] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Juergen-Gross/x86-major-paravirt-cleanup/20201217-173646 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git accefff5b547a9a1d959c7e76ad539bf2480e78b config: x86_64-randconfig-a002-20201217 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/bc3cbe0ff1b123a4b7f48c91b32198d7dfe57797 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Juergen-Gross/x86-major-paravirt-cleanup/20201217-173646 git checkout bc3cbe0ff1b123a4b7f48c91b32198d7dfe57797 # 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 All error/warnings (new ones prefixed by >>): arch/x86/entry/entry_64.S: Assembler messages: >> arch/x86/entry/entry_64.S:1092: Error: junk at end of line, first >> unrecognized character is `(' >> arch/x86/entry/entry_64.S:1092: Error: backward ref to unknown label "771:" >> arch/x86/entry/entry_64.S:1092: Error: backward ref to unknown label "771:" >> arch/x86/entry/entry_64.S:1092: Error: junk at end of line, first >> unrecognized character is `,' >> arch/x86/entry/entry_64.S:1092: Warning: missing closing '"' >> arch/x86/entry/entry_64.S:1092: Error: expecting mnemonic; got nothing vim +1092 arch/x86/entry/entry_64.S ddeb8f2149de280 arch/x86/kernel/entry_64.S Alexander van Heukelum 2008-11-24 1089 424c7d0a9a396ba arch/x86/entry/entry_64.S Thomas Gleixner2020-03-26 1090 SYM_CODE_START_LOCAL(error_return) 424c7d0a9a396ba arch/x86/entry/entry_64.S Thomas Gleixner2020-03-26 1091 UNWIND_HINT_REGS 424c7d0a9a396ba arch/x86/entry/entry_64.S Thomas Gleixner2020-03-26 @1092 DEBUG_ENTRY_ASSERT_IRQS_OFF 424c7d0a9a396ba arch/x86/entry/entry_64.S Thomas Gleixner2020-03-26 1093 testb $3, CS(%rsp) 424c7d0a9a396ba arch/x86/entry/entry_64.S Thomas Gleixner2020-03-26 1094 jz restore_regs_and_return_to_kernel 424c7d0a9a396ba arch/x86/entry/entry_64.S Thomas Gleixner2020-03-26 1095 jmp swapgs_restore_regs_and_return_to_usermode 424c7d0a9a396ba arch/x86/entry/entry_64.S Thomas Gleixner2020-03-26 1096 SYM_CODE_END(error_return) 424c7d0a9a396ba arch/x86/entry/entry_64.S Thomas Gleixner2020-03-26 1097 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v3 10/15] x86/paravirt: simplify paravirt macros
Hi Juergen, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.10] [cannot apply to xen-tip/linux-next tip/x86/core tip/x86/asm next-20201217] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Juergen-Gross/x86-major-paravirt-cleanup/20201217-173646 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git accefff5b547a9a1d959c7e76ad539bf2480e78b config: x86_64-randconfig-a016-20201217 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cee1e7d14f4628d6174b33640d502bff3b54ae45) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/0day-ci/linux/commit/0d13a33e925f799d8487bcc597e2dc016d1fdd16 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Juergen-Gross/x86-major-paravirt-cleanup/20201217-173646 git checkout 0d13a33e925f799d8487bcc597e2dc016d1fdd16 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from arch/x86/kernel/asm-offsets.c:13: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: In file included from include/linux/writeback.h:14: In file included from include/linux/blk-cgroup.h:23: In file included from include/linux/blkdev.h:26: In file included from include/linux/scatterlist.h:9: In file included from arch/x86/include/asm/io.h:244: >> arch/x86/include/asm/paravirt.h:44:2: warning: variable '__eax' is >> uninitialized when used within its own initialization [-Wuninitialized] PVOP_VCALL0(mmu.flush_tlb_user); ^~~ arch/x86/include/asm/paravirt_types.h:504:2: note: expanded from macro 'PVOP_VCALL0' __PVOP_VCALL(op) ^~~~ arch/x86/include/asm/paravirt_types.h:492:8: note: expanded from macro '__PVOP_VCALL' (void)PVOP_CALL(long, op, CLBR_ANY, PVOP_VCALL_CLOBBERS,\ ^~~ arch/x86/include/asm/paravirt_types.h:471:3: note: expanded from macro 'PVOP_CALL' PVOP_CALL_ARGS; \ ^~ arch/x86/include/asm/paravirt_types.h:431:41: note: expanded from macro 'PVOP_CALL_ARGS' __edx = __edx, __ecx = __ecx, __eax = __eax; ~ ^ In file included from arch/x86/kernel/asm-offsets.c:13: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: In file included from include/linux/writeback.h:14: In file included from include/linux/blk-cgroup.h:23: In file included from include/linux/blkdev.h:26: In file included from include/linux/scatterlist.h:9: In file included from arch/x86/include/asm/io.h:244: arch/x86/include/asm/paravirt.h:49:2: warning: variable '__eax' is uninitialized when used within its own initialization [-Wuninitialized] PVOP_VCALL0(mmu.flush_tlb_kernel); ^ arch/x86/include/asm/paravirt_types.h:504:2: note: expanded from macro 'PVOP_VCALL0' __PVOP_VCALL(op) ^~~~ arch/x86/include/asm/paravirt_types.h:492:8: note: expanded from macro '__PVOP_VCALL' (void)PVOP_CALL(long, op, CLBR_ANY, PVOP_VCALL_CLOBBERS,\ ^~~ arch/x86/include/asm/paravirt_types.h:471:3: note: expanded from macro 'PVOP_CALL' PVOP_CALL_ARGS; \ ^~ arch/x86/include/asm/paravirt_types.h:431:41: note: expanded from macro 'PVOP_CALL_ARGS' __edx = __edx, __ecx = __ecx, __eax = __eax; ~ ^ In file included from arch/x86/kernel/asm-offsets.c:13: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: In
Re: [PATCH 21/21] vdpasim: control virtqueue support
Hi Jason, I love your patch! Perhaps something to improve: [auto build test WARNING on vhost/linux-next] [also build test WARNING on linus/master v5.10] [cannot apply to next-20201217] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Jason-Wang/Control-VQ-support-in-vDPA/20201216-150025 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: x86_64-randconfig-a014-20201217 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cee1e7d14f4628d6174b33640d502bff3b54ae45) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/0day-ci/linux/commit/157796e1c075942914d2096899f4a9b7cf824373 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Jason-Wang/Control-VQ-support-in-vDPA/20201216-150025 git checkout 157796e1c075942914d2096899f4a9b7cf824373 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/vdpa/vdpa_sim/vdpa_sim.c:204:21: warning: no previous prototype for >> function 'vdpasim_handle_ctrl_mac' [-Wmissing-prototypes] virtio_net_ctrl_ack vdpasim_handle_ctrl_mac(struct vdpasim *vdpasim, ^ drivers/vdpa/vdpa_sim/vdpa_sim.c:204:1: note: declare 'static' if the function is not intended to be used outside of this translation unit virtio_net_ctrl_ack vdpasim_handle_ctrl_mac(struct vdpasim *vdpasim, ^ static >> drivers/vdpa/vdpa_sim/vdpa_sim.c:731:5: warning: no previous prototype for >> function 'vdpasim_set_group_asid' [-Wmissing-prototypes] int vdpasim_set_group_asid(struct vdpa_device *vdpa, unsigned int group, ^ drivers/vdpa/vdpa_sim/vdpa_sim.c:731:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int vdpasim_set_group_asid(struct vdpa_device *vdpa, unsigned int group, ^ static drivers/vdpa/vdpa_sim/vdpa_sim.c:101:19: warning: unused function 'vdpasim16_to_cpu' [-Wunused-function] static inline u16 vdpasim16_to_cpu(struct vdpasim *vdpasim, __virtio16 val) ^ 3 warnings generated. vim +/vdpasim_handle_ctrl_mac +204 drivers/vdpa/vdpa_sim/vdpa_sim.c 203 > 204 virtio_net_ctrl_ack vdpasim_handle_ctrl_mac(struct vdpasim *vdpasim, 205 u8 cmd) 206 { 207 struct vdpasim_virtqueue *cvq = >vqs[2]; 208 virtio_net_ctrl_ack status = VIRTIO_NET_ERR; 209 size_t read; 210 211 switch (cmd) { 212 case VIRTIO_NET_CTRL_MAC_ADDR_SET: 213 read = vringh_iov_pull_iotlb(>vring, >in_iov, 214 (void *)vdpasim->config.mac, 215 ETH_ALEN); 216 if (read == ETH_ALEN) 217 status = VIRTIO_NET_OK; 218 break; 219 default: 220 break; 221 } 222 223 return status; 224 } 225 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v2 12/12] x86/paravirt: have only one paravirt patch function
Hi Juergen, I love your patch! Perhaps something to improve: [auto build test WARNING on v5.10-rc4] [also build test WARNING on next-20201120] [cannot apply to tip/x86/core xen-tip/linux-next tip/x86/asm] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Juergen-Gross/x86-major-paravirt-cleanup/20201120-194934 base:09162bc32c880a791c6c0668ce0745cf7958f576 config: x86_64-randconfig-r014-20201120 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 3ded927cf80ac519f9f9c4664fef08787f7c537d) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/0day-ci/linux/commit/340df5e02c66ec37486a1f31e6497a22dab65059 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Juergen-Gross/x86-major-paravirt-cleanup/20201120-194934 git checkout 340df5e02c66ec37486a1f31e6497a22dab65059 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/x86/kernel/paravirt.c:124:10: warning: no previous prototype for >> function 'paravirt_patch_insns' [-Wmissing-prototypes] unsigned paravirt_patch_insns(void *insn_buff, unsigned len, ^ arch/x86/kernel/paravirt.c:124:1: note: declare 'static' if the function is not intended to be used outside of this translation unit unsigned paravirt_patch_insns(void *insn_buff, unsigned len, ^ static 1 warning generated. vim +/paravirt_patch_insns +124 arch/x86/kernel/paravirt.c 63f70270ccd981c arch/i386/kernel/paravirt.c Jeremy Fitzhardinge 2007-05-02 123 1fc654cf6e04b40 arch/x86/kernel/paravirt.c Ingo Molnar 2019-04-25 @124 unsigned paravirt_patch_insns(void *insn_buff, unsigned len, 63f70270ccd981c arch/i386/kernel/paravirt.c Jeremy Fitzhardinge 2007-05-02 125 const char *start, const char *end) 63f70270ccd981c arch/i386/kernel/paravirt.c Jeremy Fitzhardinge 2007-05-02 126 { 63f70270ccd981c arch/i386/kernel/paravirt.c Jeremy Fitzhardinge 2007-05-02 127 unsigned insn_len = end - start; 63f70270ccd981c arch/i386/kernel/paravirt.c Jeremy Fitzhardinge 2007-05-02 128 2777cae2b19d4a0 arch/x86/kernel/paravirt.c Ingo Molnar 2019-04-25 129 /* Alternative instruction is too large for the patch site and we cannot continue: */ 2777cae2b19d4a0 arch/x86/kernel/paravirt.c Ingo Molnar 2019-04-25 130 BUG_ON(insn_len > len || start == NULL); 2777cae2b19d4a0 arch/x86/kernel/paravirt.c Ingo Molnar 2019-04-25 131 1fc654cf6e04b40 arch/x86/kernel/paravirt.c Ingo Molnar 2019-04-25 132 memcpy(insn_buff, start, insn_len); 139ec7c416248b9 arch/i386/kernel/paravirt.c Rusty Russell 2006-12-07 133 139ec7c416248b9 arch/i386/kernel/paravirt.c Rusty Russell 2006-12-07 134 return insn_len; 139ec7c416248b9 arch/i386/kernel/paravirt.c Rusty Russell 2006-12-07 135 } 139ec7c416248b9 arch/i386/kernel/paravirt.c Rusty Russell 2006-12-07 136 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v2 11/12] x86/paravirt: switch functions with custom code to ALTERNATIVE
Hi Juergen, I love your patch! Perhaps something to improve: [auto build test WARNING on v5.10-rc4] [also build test WARNING on next-20201120] [cannot apply to tip/x86/core xen-tip/linux-next tip/x86/asm] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Juergen-Gross/x86-major-paravirt-cleanup/20201120-194934 base:09162bc32c880a791c6c0668ce0745cf7958f576 config: x86_64-rhel-7.6-kselftests (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/fd8d46a7a2c51313ee14c43af60ff337279384ef git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Juergen-Gross/x86-major-paravirt-cleanup/20201120-194934 git checkout fd8d46a7a2c51313ee14c43af60ff337279384ef # 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 All warnings (new ones prefixed by >>): >> drivers/misc/lkdtm/bugs.o: warning: objtool: .altinstr_replacement+0x0: >> alternative modifies stack --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH 3/3] drm/qxl: Remove fbcon acceleration leftovers
Hi Daniel, I love your patch! Perhaps something to improve: [auto build test WARNING on drm-intel/for-linux-next] [also build test WARNING on drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next linus/master drm/drm-next v5.10-rc1 next-20201028] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Daniel-Vetter/fbcon-Disable-accelerated-scrolling/20201029-181618 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: alpha-randconfig-r003-20201029 (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 # https://github.com/0day-ci/linux/commit/188b22d2b66860695df5d07bf2b7115976790b2c git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Daniel-Vetter/fbcon-Disable-accelerated-scrolling/20201029-181618 git checkout 188b22d2b66860695df5d07bf2b7115976790b2c # 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 All warnings (new ones prefixed by >>): In file included from drivers/gpu/drm/qxl/qxl_drv.c:31: >> drivers/gpu/drm/qxl/qxl_drv.h:178:35: warning: 'struct qxl_device' declared >> inside parameter list will not be visible outside of this definition or >> declaration 178 | int qxl_debugfs_fence_init(struct qxl_device *rdev); | ^~ vim +178 drivers/gpu/drm/qxl/qxl_drv.h f64122c1f6ade30 Dave Airlie 2013-02-25 177 f64122c1f6ade30 Dave Airlie 2013-02-25 @178 int qxl_debugfs_fence_init(struct qxl_device *rdev); f64122c1f6ade30 Dave Airlie 2013-02-25 179 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v2 02/17] x86/hyperv: detect if Linux is the root partition
Hi Wei, I love your patch! Yet something to improve: [auto build test ERROR on tip/x86/core] [also build test ERROR on asm-generic/master iommu/next tip/timers/core pci/next linus/master v5.10-rc2 next-20201105] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20201106-010058 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 238c91115cd05c71447ea071624a4c9fe661f970 config: x86_64-randconfig-m001-20201104 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/3984ce0be67e74b8945288f1751a91615459f75e git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20201106-010058 git checkout 3984ce0be67e74b8945288f1751a91615459f75e # 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 All errors (new ones prefixed by >>): arch/x86/kernel/cpu/mshyperv.c: In function 'ms_hyperv_init_platform': >> arch/x86/kernel/cpu/mshyperv.c:247:3: error: 'hv_root_partition' undeclared >> (first use in this function); did you mean 'blk_drop_partitions'? 247 | hv_root_partition = true; | ^ | blk_drop_partitions arch/x86/kernel/cpu/mshyperv.c:247:3: note: each undeclared identifier is reported only once for each function it appears in vim +247 arch/x86/kernel/cpu/mshyperv.c 218 219 /* 220 * Extract the features and hints 221 */ 222 ms_hyperv.features = cpuid_eax(HYPERV_CPUID_FEATURES); 223 ms_hyperv.misc_features = cpuid_edx(HYPERV_CPUID_FEATURES); 224 ms_hyperv.hints= cpuid_eax(HYPERV_CPUID_ENLIGHTMENT_INFO); 225 226 pr_info("Hyper-V: features 0x%x, hints 0x%x, misc 0x%x\n", 227 ms_hyperv.features, ms_hyperv.hints, ms_hyperv.misc_features); 228 229 ms_hyperv.max_vp_index = cpuid_eax(HYPERV_CPUID_IMPLEMENT_LIMITS); 230 ms_hyperv.max_lp_index = cpuid_ebx(HYPERV_CPUID_IMPLEMENT_LIMITS); 231 232 pr_debug("Hyper-V: max %u virtual processors, %u logical processors\n", 233 ms_hyperv.max_vp_index, ms_hyperv.max_lp_index); 234 235 /* 236 * Check CPU management privilege. 237 * 238 * To mirror what Windows does we should extract CPU management 239 * features and use the ReservedIdentityBit to detect if Linux is the 240 * root partition. But that requires negotiating CPU management 241 * interface (a process to be finalized). 242 * 243 * For now, use the privilege flag as the indicator for running as 244 * root. 245 */ 246 if (cpuid_ebx(HYPERV_CPUID_FEATURES) & HV_CPU_MANAGEMENT) { > 247 hv_root_partition = true; 248 pr_info("Hyper-V: running as root partition\n"); 249 } 250 251 /* 252 * Extract host information. 253 */ 254 if (cpuid_eax(HYPERV_CPUID_VENDOR_AND_MAX_FUNCTIONS) >= 255 HYPERV_CPUID_VERSION) { 256 hv_host_info_eax = cpuid_eax(HYPERV_CPUID_VERSION); 257 hv_host_info_ebx = cpuid_ebx(HYPERV_CPUID_VERSION); 258 hv_host_info_ecx = cpuid_ecx(HYPERV_CPUID_VERSION); 259 hv_host_info_edx = cpuid_edx(HYPERV_CPUID_VERSION); 260 261 pr_info("Hyper-V Host Build:%d-%d.%d-%d-%d.%d\n", 262 hv_host_info_eax, hv_host_info_ebx >> 16, 263 hv_host_info_ebx & 0x, hv_host_info_ecx, 264 hv_host_info_edx >> 24, hv_host_info_edx & 0xFF); 265 } 266 267 if (ms_hyperv.features & HV_X64_ACCESS_FREQUENCY_MSRS && 268 ms_hyperv.misc_features & HV_FEATURE_FREQUENCY_MSRS_AVAILABLE) { 269 x86_platform.calibrate_tsc = hv_get_tsc_khz; 270 x86_platform.calibrate_cpu = hv_get_tsc_khz; 271 } 272 273 if (ms_hyperv.hints & HV_X64_ENLIGHTENED_VMCS_RECOMMENDED) { 274 ms_hyperv.nested_features = 275 cpuid_eax(HYPERV_CPUID_NESTED_FEATURES); 276 }
Re: [PATCH v2 07/17] x86/hyperv: extract partition ID from Microsoft Hypervisor if necessary
Hi Wei, I love your patch! Perhaps something to improve: [auto build test WARNING on tip/x86/core] [also build test WARNING on asm-generic/master iommu/next tip/timers/core pci/next linus/master v5.10-rc2 next-20201105] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20201106-010058 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 238c91115cd05c71447ea071624a4c9fe661f970 config: i386-randconfig-r002-20201104 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/83c03b4e30e729a77688b8c0ffeffa2a555dcce7 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20201106-010058 git checkout 83c03b4e30e729a77688b8c0ffeffa2a555dcce7 # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/x86/hyperv/hv_init.c:341:13: warning: no previous prototype for >> 'hv_get_partition_id' [-Wmissing-prototypes] 341 | void __init hv_get_partition_id(void) | ^~~ vim +/hv_get_partition_id +341 arch/x86/hyperv/hv_init.c 340 > 341 void __init hv_get_partition_id(void) 342 { 343 struct hv_get_partition_id *output_page; 344 u16 status; 345 unsigned long flags; 346 347 local_irq_save(flags); 348 output_page = *this_cpu_ptr(hyperv_pcpu_output_arg); 349 status = hv_do_hypercall(HVCALL_GET_PARTITION_ID, NULL, output_page) & 350 HV_HYPERCALL_RESULT_MASK; 351 if (status != HV_STATUS_SUCCESS) 352 pr_err("Failed to get partition ID: %d\n", status); 353 else 354 hv_current_partition_id = output_page->partition_id; 355 local_irq_restore(flags); 356 357 /* No point in proceeding if this failed */ 358 BUG_ON(status != HV_STATUS_SUCCESS); 359 } 360 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v2 07/17] x86/hyperv: extract partition ID from Microsoft Hypervisor if necessary
Hi Wei, I love your patch! Perhaps something to improve: [auto build test WARNING on tip/x86/core] [also build test WARNING on asm-generic/master iommu/next tip/timers/core pci/next linus/master v5.10-rc2 next-20201105] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20201106-010058 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 238c91115cd05c71447ea071624a4c9fe661f970 config: x86_64-randconfig-s021-20201105 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-76-gf680124b-dirty # https://github.com/0day-ci/linux/commit/83c03b4e30e729a77688b8c0ffeffa2a555dcce7 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20201106-010058 git checkout 83c03b4e30e729a77688b8c0ffeffa2a555dcce7 # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/x86/hyperv/hv_init.c:341:13: warning: no previous prototype for >> 'hv_get_partition_id' [-Wmissing-prototypes] 341 | void __init hv_get_partition_id(void) | ^~~ vim +/hv_get_partition_id +341 arch/x86/hyperv/hv_init.c 340 > 341 void __init hv_get_partition_id(void) 342 { 343 struct hv_get_partition_id *output_page; 344 u16 status; 345 unsigned long flags; 346 347 local_irq_save(flags); 348 output_page = *this_cpu_ptr(hyperv_pcpu_output_arg); 349 status = hv_do_hypercall(HVCALL_GET_PARTITION_ID, NULL, output_page) & 350 HV_HYPERCALL_RESULT_MASK; 351 if (status != HV_STATUS_SUCCESS) 352 pr_err("Failed to get partition ID: %d\n", status); 353 else 354 hv_current_partition_id = output_page->partition_id; 355 local_irq_restore(flags); 356 357 /* No point in proceeding if this failed */ 358 BUG_ON(status != HV_STATUS_SUCCESS); 359 } 360 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v2 02/17] x86/hyperv: detect if Linux is the root partition
Hi Wei, I love your patch! Yet something to improve: [auto build test ERROR on tip/x86/core] [also build test ERROR on asm-generic/master iommu/next tip/timers/core pci/next linus/master v5.10-rc2 next-20201105] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20201106-010058 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 238c91115cd05c71447ea071624a4c9fe661f970 config: x86_64-randconfig-a004-20201104 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 09ec07827b1128504457a93dee80b2ceee1af600) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/0day-ci/linux/commit/3984ce0be67e74b8945288f1751a91615459f75e git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20201106-010058 git checkout 3984ce0be67e74b8945288f1751a91615459f75e # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> arch/x86/kernel/cpu/mshyperv.c:247:3: error: use of undeclared identifier >> 'hv_root_partition' hv_root_partition = true; ^ 1 error generated. vim +/hv_root_partition +247 arch/x86/kernel/cpu/mshyperv.c 218 219 /* 220 * Extract the features and hints 221 */ 222 ms_hyperv.features = cpuid_eax(HYPERV_CPUID_FEATURES); 223 ms_hyperv.misc_features = cpuid_edx(HYPERV_CPUID_FEATURES); 224 ms_hyperv.hints= cpuid_eax(HYPERV_CPUID_ENLIGHTMENT_INFO); 225 226 pr_info("Hyper-V: features 0x%x, hints 0x%x, misc 0x%x\n", 227 ms_hyperv.features, ms_hyperv.hints, ms_hyperv.misc_features); 228 229 ms_hyperv.max_vp_index = cpuid_eax(HYPERV_CPUID_IMPLEMENT_LIMITS); 230 ms_hyperv.max_lp_index = cpuid_ebx(HYPERV_CPUID_IMPLEMENT_LIMITS); 231 232 pr_debug("Hyper-V: max %u virtual processors, %u logical processors\n", 233 ms_hyperv.max_vp_index, ms_hyperv.max_lp_index); 234 235 /* 236 * Check CPU management privilege. 237 * 238 * To mirror what Windows does we should extract CPU management 239 * features and use the ReservedIdentityBit to detect if Linux is the 240 * root partition. But that requires negotiating CPU management 241 * interface (a process to be finalized). 242 * 243 * For now, use the privilege flag as the indicator for running as 244 * root. 245 */ 246 if (cpuid_ebx(HYPERV_CPUID_FEATURES) & HV_CPU_MANAGEMENT) { > 247 hv_root_partition = true; 248 pr_info("Hyper-V: running as root partition\n"); 249 } 250 251 /* 252 * Extract host information. 253 */ 254 if (cpuid_eax(HYPERV_CPUID_VENDOR_AND_MAX_FUNCTIONS) >= 255 HYPERV_CPUID_VERSION) { 256 hv_host_info_eax = cpuid_eax(HYPERV_CPUID_VERSION); 257 hv_host_info_ebx = cpuid_ebx(HYPERV_CPUID_VERSION); 258 hv_host_info_ecx = cpuid_ecx(HYPERV_CPUID_VERSION); 259 hv_host_info_edx = cpuid_edx(HYPERV_CPUID_VERSION); 260 261 pr_info("Hyper-V Host Build:%d-%d.%d-%d-%d.%d\n", 262 hv_host_info_eax, hv_host_info_ebx >> 16, 263 hv_host_info_ebx & 0x, hv_host_info_ecx, 264 hv_host_info_edx >> 24, hv_host_info_edx & 0xFF); 265 } 266 267 if (ms_hyperv.features & HV_X64_ACCESS_FREQUENCY_MSRS && 268 ms_hyperv.misc_features & HV_FEATURE_FREQUENCY_MSRS_AVAILABLE) { 269 x86_platform.calibrate_tsc = hv_get_tsc_khz; 270 x86_platform.calibrate_cpu = hv_get_tsc_khz; 271 } 272 273 if (ms_hyperv.hints & HV_X64_ENLIGHTENED_VMCS_RECOMMENDED) { 274
Re: [PATCH 3/3] drm/qxl: Remove fbcon acceleration leftovers
Hi Daniel, I love your patch! Perhaps something to improve: [auto build test WARNING on drm-intel/for-linux-next] [also build test WARNING on drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next linus/master v5.10-rc1 next-20201029] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Daniel-Vetter/fbcon-Disable-accelerated-scrolling/20201029-181618 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: powerpc-randconfig-r015-20201029 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 772aaa602383cf82795572ebcd86b0e660f3579f) 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 # install powerpc cross compiling tool for clang build # apt-get install binutils-powerpc-linux-gnu # https://github.com/0day-ci/linux/commit/188b22d2b66860695df5d07bf2b7115976790b2c git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Daniel-Vetter/fbcon-Disable-accelerated-scrolling/20201029-181618 git checkout 188b22d2b66860695df5d07bf2b7115976790b2c # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from drivers/gpu/drm/qxl/qxl_drv.c:31: >> drivers/gpu/drm/qxl/qxl_drv.h:178:35: warning: declaration of 'struct >> qxl_device' will not be visible outside of this function [-Wvisibility] int qxl_debugfs_fence_init(struct qxl_device *rdev); ^ 1 warning generated. vim +178 drivers/gpu/drm/qxl/qxl_drv.h f64122c1f6ade30 Dave Airlie 2013-02-25 177 f64122c1f6ade30 Dave Airlie 2013-02-25 @178 int qxl_debugfs_fence_init(struct qxl_device *rdev); f64122c1f6ade30 Dave Airlie 2013-02-25 179 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v5 06/16] x86/hyperv: allocate output arg pages if required
Hi Wei, I love your patch! Perhaps something to improve: [auto build test WARNING on e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62] url: https://github.com/0day-ci/linux/commits/Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20210120-215640 base:e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62 config: x86_64-randconfig-s021-20210120 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-208-g46a52ca4-dirty # https://github.com/0day-ci/linux/commit/f93337fc44e13a1506633f5d308bf74a8311dada git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20210120-215640 git checkout f93337fc44e13a1506633f5d308bf74a8311dada # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot "sparse warnings: (new ones prefixed by >>)" arch/x86/hyperv/hv_init.c:84:30: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got void [noderef] __percpu ** @@ arch/x86/hyperv/hv_init.c:84:30: sparse: expected void const [noderef] __percpu *__vpp_verify arch/x86/hyperv/hv_init.c:84:30: sparse: got void [noderef] __percpu ** arch/x86/hyperv/hv_init.c:89:39: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got void [noderef] __percpu ** @@ arch/x86/hyperv/hv_init.c:89:39: sparse: expected void const [noderef] __percpu *__vpp_verify arch/x86/hyperv/hv_init.c:89:39: sparse: got void [noderef] __percpu ** arch/x86/hyperv/hv_init.c:221:30: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got void [noderef] __percpu ** @@ arch/x86/hyperv/hv_init.c:221:30: sparse: expected void const [noderef] __percpu *__vpp_verify arch/x86/hyperv/hv_init.c:221:30: sparse: got void [noderef] __percpu ** arch/x86/hyperv/hv_init.c:228:39: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got void [noderef] __percpu ** @@ arch/x86/hyperv/hv_init.c:228:39: sparse: expected void const [noderef] __percpu *__vpp_verify arch/x86/hyperv/hv_init.c:228:39: sparse: got void [noderef] __percpu ** arch/x86/hyperv/hv_init.c:364:31: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __percpu **extern [addressable] [toplevel] hyperv_pcpu_input_arg @@ got void *[noderef] __percpu * @@ arch/x86/hyperv/hv_init.c:364:31: sparse: expected void [noderef] __percpu **extern [addressable] [toplevel] hyperv_pcpu_input_arg arch/x86/hyperv/hv_init.c:364:31: sparse: got void *[noderef] __percpu * >> arch/x86/hyperv/hv_init.c:370:40: sparse: sparse: incorrect type in >> assignment (different address spaces) @@ expected void [noderef] >> __percpu **extern [addressable] [toplevel] hyperv_pcpu_output_arg @@ got >> void *[noderef] __percpu * @@ arch/x86/hyperv/hv_init.c:370:40: sparse: expected void [noderef] __percpu **extern [addressable] [toplevel] hyperv_pcpu_output_arg arch/x86/hyperv/hv_init.c:370:40: sparse: got void *[noderef] __percpu * vim +370 arch/x86/hyperv/hv_init.c 211 212 static int hv_cpu_die(unsigned int cpu) 213 { 214 struct hv_reenlightenment_control re_ctrl; 215 unsigned int new_cpu; 216 unsigned long flags; 217 void **input_arg; 218 void *pg; 219 220 local_irq_save(flags); > 221 input_arg = (void **)this_cpu_ptr(hyperv_pcpu_input_arg); 222 pg = *input_arg; 223 *input_arg = NULL; 224 225 if (hv_root_partition) { 226 void **output_arg; 227 228 output_arg = (void **)this_cpu_ptr(hyperv_pcpu_output_arg); 229 *output_arg = NULL; 230 } 231 232 local_irq_restore(flags); 233 234 free_pages((unsigned long)pg, hv_root_partition ? 1 : 0); 235 236 if (hv_vp_assist_page && hv_vp_assist_page[cpu]) 237 wrmsrl(HV_X64_MSR_VP_ASSIST_PAGE, 0); 238 239 if (hv_reenlightenment_cb == NULL) 240 return 0; 241 242 rdmsrl(HV_X64_MSR_REENLIGHTENMENT_CONTROL, *((u64 *)_ctrl)); 243 if (re_ctrl.target_vp == hv_vp_index[cpu]) { 244
Re: [PATCH rfc 2/3] virtio-net: support receive timestamp
Hi Willem, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on ipvs/master] [also build test WARNING on linus/master v5.11-rc6 next-20210125] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Willem-de-Bruijn/virtio-net-add-tx-hash-rx-tstamp-and-tx-tstamp/20201229-002604 base: https://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs.git master config: x86_64-randconfig-s021-20201228 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-215-g0fb77bb6-dirty # https://github.com/0day-ci/linux/commit/d309db6857fa35b0d7a11cc5229436d6d71ab274 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Willem-de-Bruijn/virtio-net-add-tx-hash-rx-tstamp-and-tx-tstamp/20201229-002604 git checkout d309db6857fa35b0d7a11cc5229436d6d71ab274 # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot "sparse warnings: (new ones prefixed by >>)" >> drivers/net/virtio_net.c:1096:80: sparse: sparse: incorrect type in argument >> 1 (different base types) @@ expected unsigned long long [usertype] ns @@ >> got restricted __virtio64 [usertype] tstamp @@ drivers/net/virtio_net.c:1096:80: sparse: expected unsigned long long [usertype] ns drivers/net/virtio_net.c:1096:80: sparse: got restricted __virtio64 [usertype] tstamp drivers/net/virtio_net.c:1580:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] hash_value @@ got restricted __virtio32 @@ drivers/net/virtio_net.c:1580:32: sparse: expected restricted __le32 [usertype] hash_value drivers/net/virtio_net.c:1580:32: sparse: got restricted __virtio32 drivers/net/virtio_net.c:1581:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] hash_report @@ got int @@ drivers/net/virtio_net.c:1581:33: sparse: expected restricted __le16 [usertype] hash_report drivers/net/virtio_net.c:1581:33: sparse: got int vim +1096 drivers/net/virtio_net.c 1048 1049 static void receive_buf(struct virtnet_info *vi, struct receive_queue *rq, 1050 void *buf, unsigned int len, void **ctx, 1051 unsigned int *xdp_xmit, 1052 struct virtnet_rq_stats *stats) 1053 { 1054 struct net_device *dev = vi->dev; 1055 struct sk_buff *skb; 1056 struct virtio_net_hdr_mrg_rxbuf *hdr; 1057 1058 if (unlikely(len < vi->hdr_len + ETH_HLEN)) { 1059 pr_debug("%s: short packet %i\n", dev->name, len); 1060 dev->stats.rx_length_errors++; 1061 if (vi->mergeable_rx_bufs) { 1062 put_page(virt_to_head_page(buf)); 1063 } else if (vi->big_packets) { 1064 give_pages(rq, buf); 1065 } else { 1066 put_page(virt_to_head_page(buf)); 1067 } 1068 return; 1069 } 1070 1071 if (vi->mergeable_rx_bufs) 1072 skb = receive_mergeable(dev, vi, rq, buf, ctx, len, xdp_xmit, 1073 stats); 1074 else if (vi->big_packets) 1075 skb = receive_big(dev, vi, rq, buf, len, stats); 1076 else 1077 skb = receive_small(dev, vi, rq, buf, ctx, len, xdp_xmit, stats); 1078 1079 if (unlikely(!skb)) 1080 return; 1081 1082 hdr = skb_vnet_hdr(skb); 1083 1084 if (hdr->hdr.flags & VIRTIO_NET_HDR_F_DATA_VALID) 1085 skb->ip_summed = CHECKSUM_UNNECESSARY; 1086 1087 if (virtio_net_hdr_to_skb(skb, >hdr, 1088virtio_is_little_endian(vi->vdev))) { 1089 net_warn_ratelimited("%s: bad gso: type: %u, size: %u\n", 1090 dev->name, hdr->hdr.gso_type, 1091 hdr->hdr.gso_size); 1092 goto frame_err; 1093 } 1094 1095 if (vi->has_rx_tstamp) > 1096 skb_hwtstamps(skb)->hwtstamp = > ns_to_ktime(skb_vnet_hdr_12(skb)->tstamp); 1097 1098 skb
Re: [PATCH rfc 3/3] virtio-net: support transmit timestamp
Hi Willem, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on ipvs/master] [also build test WARNING on linus/master v5.11-rc6 next-20210125] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Willem-de-Bruijn/virtio-net-add-tx-hash-rx-tstamp-and-tx-tstamp/20201229-002604 base: https://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs.git master config: x86_64-randconfig-s021-20201228 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-215-g0fb77bb6-dirty # https://github.com/0day-ci/linux/commit/be9cab7692382c7886333b498d1d8adbba1881f7 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Willem-de-Bruijn/virtio-net-add-tx-hash-rx-tstamp-and-tx-tstamp/20201229-002604 git checkout be9cab7692382c7886333b498d1d8adbba1881f7 # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot "sparse warnings: (new ones prefixed by >>)" drivers/net/virtio_net.c:1099:80: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] ns @@ got restricted __virtio64 [usertype] tstamp @@ drivers/net/virtio_net.c:1099:80: sparse: expected unsigned long long [usertype] ns drivers/net/virtio_net.c:1099:80: sparse: got restricted __virtio64 [usertype] tstamp >> drivers/net/virtio_net.c:1583:33: sparse: sparse: incorrect type in >> assignment (different base types) @@ expected restricted __le32 >> [usertype] value @@ got restricted __virtio32 @@ drivers/net/virtio_net.c:1583:33: sparse: expected restricted __le32 [usertype] value drivers/net/virtio_net.c:1583:33: sparse: got restricted __virtio32 >> drivers/net/virtio_net.c:1584:34: sparse: sparse: incorrect type in >> assignment (different base types) @@ expected restricted __le16 >> [usertype] report @@ got int @@ drivers/net/virtio_net.c:1584:34: sparse: expected restricted __le16 [usertype] report drivers/net/virtio_net.c:1584:34: sparse: got int vim +1583 drivers/net/virtio_net.c 1550 1551 static int xmit_skb(struct send_queue *sq, struct sk_buff *skb) 1552 { 1553 struct virtio_net_hdr_mrg_rxbuf *hdr; 1554 const unsigned char *dest = ((struct ethhdr *)skb->data)->h_dest; 1555 struct virtnet_info *vi = sq->vq->vdev->priv; 1556 struct virtio_net_hdr_v12 *h12; 1557 int num_sg; 1558 unsigned hdr_len = vi->hdr_len; 1559 bool can_push; 1560 1561 pr_debug("%s: xmit %p %pM\n", vi->dev->name, skb, dest); 1562 1563 can_push = vi->any_header_sg && 1564 !((unsigned long)skb->data & (__alignof__(*hdr) - 1)) && 1565 !skb_header_cloned(skb) && skb_headroom(skb) >= hdr_len; 1566 /* Even if we can, don't push here yet as this would skew 1567 * csum_start offset below. */ 1568 if (can_push) 1569 hdr = (struct virtio_net_hdr_mrg_rxbuf *)(skb->data - hdr_len); 1570 else 1571 hdr = skb_vnet_hdr(skb); 1572 1573 if (virtio_net_hdr_from_skb(skb, >hdr, 1574 virtio_is_little_endian(vi->vdev), false, 1575 0)) 1576 BUG(); 1577 1578 if (vi->mergeable_rx_bufs) 1579 hdr->num_buffers = 0; 1580 1581 h12 = (void *)hdr; 1582 if (vi->has_tx_hash) { > 1583 h12->hash.value = cpu_to_virtio32(vi->vdev, skb->hash); > 1584 h12->hash.report = skb->l4_hash ? > VIRTIO_NET_HASH_REPORT_L4 : 1585 VIRTIO_NET_HASH_REPORT_OTHER; 1586 h12->hash.flow_state = VIRTIO_NET_HASH_STATE_DEFAULT; 1587 } 1588 if (vi->has_tx_tstamp) 1589 h12->tstamp = cpu_to_virtio64(vi->vdev, skb->tstamp); 1590 1591 sg_init_table(sq->sg, skb_shinfo(skb)->nr_frags + (can_push ? 1 : 2)); 1592 if (can_push) { 1593 __skb_push(skb, hdr_len); 1594 num_sg = skb_to_sgvec(skb, sq->sg, 0, skb->len); 1595 if (unlikely(num_sg < 0)) 1596
Re: [PATCH v5 6/6] drm/qxl: simplify qxl_fence_wait
Hi Gerd, I love your patch! Perhaps something to improve: [auto build test WARNING on drm-intel/for-linux-next] [also build test WARNING on drm-tip/drm-tip drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next linus/master v5.11-rc6 next-20210125] [cannot apply to drm/drm-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Gerd-Hoffmann/drm-qxl-fix-driver-shutdown-issues/20210203-211739 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: i386-randconfig-a013-20210202 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/0b11c8d52de8c79900ab632aa3527f19c442efc6 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Gerd-Hoffmann/drm-qxl-fix-driver-shutdown-issues/20210203-211739 git checkout 0b11c8d52de8c79900ab632aa3527f19c442efc6 # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/gpu/drm/qxl/qxl_release.c: In function 'qxl_fence_wait': >> drivers/gpu/drm/qxl/qxl_release.c:61:22: warning: variable 'release' set but >> not used [-Wunused-but-set-variable] 61 | struct qxl_release *release; | ^~~ vim +/release +61 drivers/gpu/drm/qxl/qxl_release.c 2f453ed4038526 Maarten Lankhorst 2014-04-02 56 f54d1867005c33 Chris Wilson 2016-10-25 57 static long qxl_fence_wait(struct dma_fence *fence, bool intr, f54d1867005c33 Chris Wilson 2016-10-25 58 signed long timeout) 2f453ed4038526 Maarten Lankhorst 2014-04-02 59 { 2f453ed4038526 Maarten Lankhorst 2014-04-02 60 struct qxl_device *qdev; 2f453ed4038526 Maarten Lankhorst 2014-04-02 @61 struct qxl_release *release; 2f453ed4038526 Maarten Lankhorst 2014-04-02 62 unsigned long cur, end = jiffies + timeout; 2f453ed4038526 Maarten Lankhorst 2014-04-02 63 2f453ed4038526 Maarten Lankhorst 2014-04-02 64 qdev = container_of(fence->lock, struct qxl_device, release_lock); 2f453ed4038526 Maarten Lankhorst 2014-04-02 65 release = container_of(fence, struct qxl_release, base); 2f453ed4038526 Maarten Lankhorst 2014-04-02 66 f54d1867005c33 Chris Wilson 2016-10-25 67 if (dma_fence_is_signaled(fence)) 2f453ed4038526 Maarten Lankhorst 2014-04-02 68 goto signaled; 2f453ed4038526 Maarten Lankhorst 2014-04-02 69 2f453ed4038526 Maarten Lankhorst 2014-04-02 70 qxl_io_notify_oom(qdev); 0b11c8d52de8c7 Gerd Hoffmann 2021-02-03 71 if (!wait_event_timeout(qdev->release_event, 0b11c8d52de8c7 Gerd Hoffmann 2021-02-03 72 dma_fence_is_signaled(fence), 0b11c8d52de8c7 Gerd Hoffmann 2021-02-03 73 timeout)) 2f453ed4038526 Maarten Lankhorst 2014-04-02 74 return 0; 2f453ed4038526 Maarten Lankhorst 2014-04-02 75 2f453ed4038526 Maarten Lankhorst 2014-04-02 76 signaled: 2f453ed4038526 Maarten Lankhorst 2014-04-02 77 cur = jiffies; 2f453ed4038526 Maarten Lankhorst 2014-04-02 78 if (time_after(cur, end)) 2f453ed4038526 Maarten Lankhorst 2014-04-02 79 return 0; 2f453ed4038526 Maarten Lankhorst 2014-04-02 80 return end - cur; 2f453ed4038526 Maarten Lankhorst 2014-04-02 81 } 2f453ed4038526 Maarten Lankhorst 2014-04-02 82 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH] virtiofs: Enable multiple request queues
Hi Connor, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on fuse/for-next] [also build test WARNING on linux/master linus/master v5.12 next-20210507] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Connor-Kuehl/virtiofs-Enable-multiple-request-queues/20210508-061611 base: https://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git for-next config: microblaze-randconfig-r001-20210507 (attached as .config) compiler: microblaze-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/0day-ci/linux/commit/6ffd4543401bc990353404b556d91cce34b017fc git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Connor-Kuehl/virtiofs-Enable-multiple-request-queues/20210508-061611 git checkout 6ffd4543401bc990353404b556d91cce34b017fc # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=microblaze If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): fs/fuse/virtio_fs.c: In function 'virtio_fs_wake_pending_and_unlock': >> fs/fuse/virtio_fs.c:1246:20: warning: variable 'fs' set but not used >> [-Wunused-but-set-variable] 1246 | struct virtio_fs *fs; |^~ vim +/fs +1246 fs/fuse/virtio_fs.c a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1242 a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1243 static void virtio_fs_wake_pending_and_unlock(struct fuse_iqueue *fiq) a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1244 __releases(fiq->lock) a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1245 { a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 @1246 struct virtio_fs *fs; a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1247 struct fuse_req *req; 51fecdd2555b3e Vivek Goyal 2019-10-15 1248 struct virtio_fs_vq *fsvq; a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1249 int ret; a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1250 a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1251 WARN_ON(list_empty(>pending)); a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1252 req = list_last_entry(>pending, struct fuse_req, list); a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1253 clear_bit(FR_PENDING, >flags); a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1254 list_del_init(>list); a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1255 WARN_ON(!list_empty(>pending)); a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1256 spin_unlock(>lock); a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1257 a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1258 fs = fiq->priv; a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1259 a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1260 pr_debug("%s: opcode %u unique %#llx nodeid %#llx in.len %u out.len %u\n", a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1261 __func__, req->in.h.opcode, req->in.h.unique, a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1262 req->in.h.nodeid, req->in.h.len, a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1263 fuse_len_args(req->args->out_numargs, req->args->out_args)); a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1264 6ffd4543401bc9 Connor Kuehl2021-05-07 1265 fsvq = this_cpu_read(this_cpu_fsvq); 6ffd4543401bc9 Connor Kuehl2021-05-07 1266 a9bfd9dd341756 Vivek Goyal 2019-10-15 1267 ret = virtio_fs_enqueue_req(fsvq, req, false); a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1268 if (ret < 0) { a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 1269 if (ret == -ENOMEM || ret == -ENOSPC) { a9bfd9dd341756 Vivek Goyal 2019-10-15 1270 /* a9bfd9dd341756 Vivek Goyal 2019-10-15 1271 * Virtqueue full. Retry submission from worker a9bfd9dd341756 Vivek Goyal 2019-10-15 1272 * context as we might be holding fc->bg_lock. a9bfd9dd341756 Vivek Goyal 2019-10-15 1273 */ a9bfd9dd341756 Vivek Goyal 2019-10-15 1274 spin_lock(>lock); a9bfd9dd341756 Vivek Goyal 2019-10-15 1275 list_add_tail(>list, >queued_reqs); a9bfd9dd341756 Vivek Goyal 2019-10-15 1276 inc_in_flight_req(fsvq); a9bfd9dd341756 Vivek Goyal 2019-10-15 1277 schedule_delayed_work(>dispatch_work, a9bfd9dd341756 Vivek Goyal 2019-10-
Re: [PATCH] virtio-net: Add validation for used length
Hi Xie, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.13-rc3 next-20210525] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Xie-Yongji/virtio-net-Add-validation-for-used-length/20210525-130449 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git a050a6d2b7e80ca52b2f4141eaf3420d201b72b3 config: x86_64-randconfig-a005-20210525 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 99155e913e9bad5f7f8a247f8bb3a3ff3da74af1) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/0day-ci/linux/commit/9cacb0e306acf93325699401dcae01f77505f017 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Xie-Yongji/virtio-net-Add-validation-for-used-length/20210525-130449 git checkout 9cacb0e306acf93325699401dcae01f77505f017 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/net/virtio_net.c:740:22: warning: format specifies type 'unsigned >> long' but the argument has type 'int' [-Wformat] dev->name, len, GOOD_PACKET_LEN); ^~~ include/linux/printk.h:424:26: note: expanded from macro 'pr_debug' dynamic_pr_debug(fmt, ##__VA_ARGS__) ~~~^~~ include/linux/dynamic_debug.h:163:22: note: expanded from macro 'dynamic_pr_debug' pr_fmt(fmt), ##__VA_ARGS__) ~~~ ^~~ include/linux/dynamic_debug.h:152:56: note: expanded from macro '_dynamic_func_call' __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__) ^~~ include/linux/dynamic_debug.h:134:15: note: expanded from macro '__dynamic_func_call' func(, ##__VA_ARGS__); \ ^~~ drivers/net/virtio_net.c:35:25: note: expanded from macro 'GOOD_PACKET_LEN' #define GOOD_PACKET_LEN (ETH_HLEN + VLAN_HLEN + ETH_DATA_LEN) ^ drivers/net/virtio_net.c:820:21: warning: format specifies type 'unsigned long' but the argument has type 'int' [-Wformat] dev->name, len, GOOD_PACKET_LEN); ^~~ include/linux/printk.h:424:26: note: expanded from macro 'pr_debug' dynamic_pr_debug(fmt, ##__VA_ARGS__) ~~~^~~ include/linux/dynamic_debug.h:163:22: note: expanded from macro 'dynamic_pr_debug' pr_fmt(fmt), ##__VA_ARGS__) ~~~ ^~~ include/linux/dynamic_debug.h:152:56: note: expanded from macro '_dynamic_func_call' __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__) ^~~ include/linux/dynamic_debug.h:134:15: note: expanded from macro '__dynamic_func_call' func(, ##__VA_ARGS__); \ ^~~ drivers/net/virtio_net.c:35:25: note: expanded from macro 'GOOD_PACKET_LEN' #define GOOD_PACKET_LEN (ETH_HLEN + VLAN_HLEN + ETH_DATA_LEN) ^ 2 warnings generated. vim +740 drivers/net/virtio_net.c 704 705 static struct sk_buff *receive_small(struct net_device *dev, 706 struct virtnet_info *vi, 707 struct receive_queue *rq, 708 void *buf, void *ctx, 709 unsigned int len, 710 unsigned int *xdp_xmit, 711 struct virtnet_rq_stats *stats) 712 { 713 struct sk_buff *skb; 714 struct bpf_prog *xdp_prog; 715 unsigned int xdp_headroom = (unsigned long)ctx; 716 unsigned int header_offset = VIRTNET_RX_PA
Re: [PATCH] virtio_console: Assure used length from device is limited
Hi Xie, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on char-misc/char-misc-testing] [also build test WARNING on v5.13-rc3 next-20210525] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Xie-Yongji/virtio_console-Assure-used-length-from-device-is-limited/20210525-125848 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git 281e468446994a7672733af2bf941f4110d4a895 config: x86_64-randconfig-a001-20210525 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 99155e913e9bad5f7f8a247f8bb3a3ff3da74af1) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/0day-ci/linux/commit/edaca17a036c98c3e0f6953318976caff7168a6e git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Xie-Yongji/virtio_console-Assure-used-length-from-device-is-limited/20210525-125848 git checkout edaca17a036c98c3e0f6953318976caff7168a6e # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/char/virtio_console.c:478:14: warning: comparison of distinct >> pointer types ('typeof (len) *' (aka 'unsigned int *') and 'typeof >> (buf->size) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] buf->len = min(len, buf->size); ^~~ include/linux/minmax.h:51:19: note: expanded from macro 'min' #define min(x, y) __careful_cmp(x, y, <) ^~ include/linux/minmax.h:42:24: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~ include/linux/minmax.h:32:4: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ include/linux/minmax.h:18:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ~~ ^ ~~ drivers/char/virtio_console.c:1712:14: warning: comparison of distinct pointer types ('typeof (len) *' (aka 'unsigned int *') and 'typeof (buf->size) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] buf->len = min(len, buf->size); ^~~ include/linux/minmax.h:51:19: note: expanded from macro 'min' #define min(x, y) __careful_cmp(x, y, <) ^~ include/linux/minmax.h:42:24: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~ include/linux/minmax.h:32:4: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ include/linux/minmax.h:18:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ~~ ^ ~~ 2 warnings generated. vim +478 drivers/char/virtio_console.c 466 467 /* Callers should take appropriate locks */ 468 static struct port_buffer *get_inbuf(struct port *port) 469 { 470 struct port_buffer *buf; 471 unsigned int len; 472 473 if (port->inbuf) 474 return port->inbuf; 475 476 buf = virtqueue_get_buf(port->in_vq, ); 477 if (buf) { > 478 buf->len = min(len, buf->size); 479 buf->offset = 0; 480 port->stats.bytes_received += len; 481 } 482 return buf; 483 } 484 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH] virtio_console: Assure used length from device is limited
Hi Xie, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on char-misc/char-misc-testing] [also build test WARNING on v5.13-rc3 next-20210525] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Xie-Yongji/virtio_console-Assure-used-length-from-device-is-limited/20210525-125848 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git 281e468446994a7672733af2bf941f4110d4a895 config: x86_64-randconfig-s022-20210525 (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/0day-ci/linux/commit/edaca17a036c98c3e0f6953318976caff7168a6e git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Xie-Yongji/virtio_console-Assure-used-length-from-device-is-limited/20210525-125848 git checkout edaca17a036c98c3e0f6953318976caff7168a6e # 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 sparse warnings: (new ones prefixed by >>) >> drivers/char/virtio_console.c:478:28: sparse: sparse: incompatible types in >> comparison expression (different type sizes): >> drivers/char/virtio_console.c:478:28: sparse:unsigned int * >> drivers/char/virtio_console.c:478:28: sparse:unsigned long * drivers/char/virtio_console.c:1712:28: sparse: sparse: incompatible types in comparison expression (different type sizes): drivers/char/virtio_console.c:1712:28: sparse:unsigned int * drivers/char/virtio_console.c:1712:28: sparse:unsigned long * vim +478 drivers/char/virtio_console.c 466 467 /* Callers should take appropriate locks */ 468 static struct port_buffer *get_inbuf(struct port *port) 469 { 470 struct port_buffer *buf; 471 unsigned int len; 472 473 if (port->inbuf) 474 return port->inbuf; 475 476 buf = virtqueue_get_buf(port->in_vq, ); 477 if (buf) { > 478 buf->len = min(len, buf->size); 479 buf->offset = 0; 480 port->stats.bytes_received += len; 481 } 482 return buf; 483 } 484 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH 10/19] drivers/hv: get and set vcpu registers ioctls
Hi Nuno, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on asm-generic/master] [also build test WARNING on tip/master linux/master linus/master v5.13-rc3] [cannot apply to tip/x86/core] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Nuno-Das-Neves/Microsoft-Hypervisor-root-partition-ioctl-interface/20210529-064549 base: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git master config: x86_64-randconfig-a016-20210528 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project bc6799f2f79f0ae87e9f1ebf9d25ba799fbd25a9) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/0day-ci/linux/commit/a5aa61354fa03cbfdeac16d3f06e4a51a7119076 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Nuno-Das-Neves/Microsoft-Hypervisor-root-partition-ioctl-interface/20210529-064549 git checkout a5aa61354fa03cbfdeac16d3f06e4a51a7119076 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> usr/include/asm-generic/hyperv-tlfs.h:25: found __[us]{8,16,32,64} type >> without #include --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH 1/4] vdpa: support packed virtqueue for set/get_vq_state()
Hi Jason, I love your patch! Yet something to improve: [auto build test ERROR on vhost/linux-next] [also build test ERROR on linus/master v5.13-rc4 next-20210601] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Jason-Wang/Packed-virtqueue-state-support-for-vDPA/20210601-164715 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: alpha-allyesconfig (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 # https://github.com/0day-ci/linux/commit/eccc56e52d8c89dd93da5df0362931151417eb6a git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Jason-Wang/Packed-virtqueue-state-support-for-vDPA/20210601-164715 git checkout eccc56e52d8c89dd93da5df0362931151417eb6a # 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 All errors (new ones prefixed by >>): drivers/vdpa/mlx5/net/mlx5_vnet.c: In function 'mlx5_vdpa_set_vq_state': >> drivers/vdpa/mlx5/net/mlx5_vnet.c:1430:23: error: 'const struct >> vdpa_vq_state' has no member named 'avail_index' 1430 | mvq->used_idx = state->avail_index; | ^~ drivers/vdpa/mlx5/net/mlx5_vnet.c:1431:24: error: 'const struct vdpa_vq_state' has no member named 'avail_index' 1431 | mvq->avail_idx = state->avail_index; |^~ drivers/vdpa/mlx5/net/mlx5_vnet.c: In function 'mlx5_vdpa_get_vq_state': >> drivers/vdpa/mlx5/net/mlx5_vnet.c:1452:8: error: 'struct vdpa_vq_state' has >> no member named 'avail_index' 1452 | state->avail_index = mvq->used_idx; |^~ drivers/vdpa/mlx5/net/mlx5_vnet.c:1461:7: error: 'struct vdpa_vq_state' has no member named 'avail_index' 1461 | state->avail_index = attr.used_index; | ^~ vim +1430 drivers/vdpa/mlx5/net/mlx5_vnet.c 1a86b377aa2147 Eli Cohen 2020-08-04 1417 1a86b377aa2147 Eli Cohen 2020-08-04 1418 static int mlx5_vdpa_set_vq_state(struct vdpa_device *vdev, u16 idx, 1a86b377aa2147 Eli Cohen 2020-08-04 1419const struct vdpa_vq_state *state) 1a86b377aa2147 Eli Cohen 2020-08-04 1420 { 1a86b377aa2147 Eli Cohen 2020-08-04 1421 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); 1a86b377aa2147 Eli Cohen 2020-08-04 1422 struct mlx5_vdpa_net *ndev = to_mlx5_vdpa_ndev(mvdev); 1a86b377aa2147 Eli Cohen 2020-08-04 1423 struct mlx5_vdpa_virtqueue *mvq = >vqs[idx]; 1a86b377aa2147 Eli Cohen 2020-08-04 1424 1a86b377aa2147 Eli Cohen 2020-08-04 1425 if (mvq->fw_state == MLX5_VIRTIO_NET_Q_OBJECT_STATE_RDY) { 1a86b377aa2147 Eli Cohen 2020-08-04 1426 mlx5_vdpa_warn(mvdev, "can't modify available index\n"); 1a86b377aa2147 Eli Cohen 2020-08-04 1427 return -EINVAL; 1a86b377aa2147 Eli Cohen 2020-08-04 1428 } 1a86b377aa2147 Eli Cohen 2020-08-04 1429 bc04d93ea30a0a Eli Cohen 2021-04-08 @1430 mvq->used_idx = state->avail_index; 1a86b377aa2147 Eli Cohen 2020-08-04 1431 mvq->avail_idx = state->avail_index; 1a86b377aa2147 Eli Cohen 2020-08-04 1432 return 0; 1a86b377aa2147 Eli Cohen 2020-08-04 1433 } 1a86b377aa2147 Eli Cohen 2020-08-04 1434 1a86b377aa2147 Eli Cohen 2020-08-04 1435 static int mlx5_vdpa_get_vq_state(struct vdpa_device *vdev, u16 idx, struct vdpa_vq_state *state) 1a86b377aa2147 Eli Cohen 2020-08-04 1436 { 1a86b377aa2147 Eli Cohen 2020-08-04 1437 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); 1a86b377aa2147 Eli Cohen 2020-08-04 1438 struct mlx5_vdpa_net *ndev = to_mlx5_vdpa_ndev(mvdev); 1a86b377aa2147 Eli Cohen 2020-08-04 1439 struct mlx5_vdpa_virtqueue *mvq = >vqs[idx]; 1a86b377aa2147 Eli Cohen 2020-08-04 1440 struct mlx5_virtq_attr attr; 1a86b377aa2147 Eli Cohen 2020-08-04 1441 int err; 1a86b377aa2147 Eli Cohen 2020-08-04 1442 3176e974a750d6 Si-Wei Liu 2020-10-01 1443 /* If the virtq object was destroyed, use the value saved at 3176e974a750d6 Si-Wei Liu 2020-10-01 1444 * the last minute of suspend_vq. This caters for userspace 3176e974a750d6 Si-Wei Liu 2020-10-01 1445 * that cares about emulating the index after vq is stopped. 3176e974a750d6 Si-Wei Liu 2020-10-01 1446 */ 3176e974a750d6 Si-Wei Liu 2020-10-01 1447 if (!mvq->initialized) { bc04d93ea30a0a Eli Cohen 2021-04-08 1448
Re: [PATCH v1] vdpa/mlx5: Add support for running with virtio_vdpa
Hi Eli, Thank you for the patch! Yet something to improve: [auto build test ERROR on v5.13-rc3] [cannot apply to linus/master v5.13-rc4 next-20210528] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Eli-Cohen/vdpa-mlx5-Add-support-for-running-with-virtio_vdpa/20210601-010404 base:c4681547bcce777daf576925a966ffa824edd09d config: arc-allyesconfig (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://github.com/0day-ci/linux/commit/6f3930e43ca375bc3d3325f02350db3226b891cf git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Eli-Cohen/vdpa-mlx5-Add-support-for-running-with-virtio_vdpa/20210601-010404 git checkout 6f3930e43ca375bc3d3325f02350db3226b891cf # 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 All errors (new ones prefixed by >>): In file included from include/linux/byteorder/big_endian.h:5, from arch/arc/include/uapi/asm/byteorder.h:14, from include/asm-generic/bitops/le.h:7, from arch/arc/include/asm/bitops.h:373, from include/linux/bitops.h:32, from include/linux/kernel.h:12, from include/linux/list.h:9, from include/linux/module.h:12, from drivers/vdpa/mlx5/net/mlx5_vnet.c:4: drivers/vdpa/mlx5/net/mlx5_vnet.c: In function 'mlx5_vdpa_set_status': >> include/linux/compiler_types.h:140:35: error: 'struct >> mlx5_ifc_cmd_hca_cap_bits' has no member named 'umem_uid_0' 140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b) | ^~ include/uapi/linux/byteorder/big_endian.h:40:51: note: in definition of macro '__be32_to_cpu' 40 | #define __be32_to_cpu(x) ((__force __u32)(__be32)(x)) | ^ include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof' 17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER) |^~~ include/linux/mlx5/device.h:51:35: note: in expansion of macro 'offsetof' 51 | #define __mlx5_bit_off(typ, fld) (offsetof(struct mlx5_ifc_##typ##_bits, fld)) | ^~~~ include/linux/mlx5/device.h:53:34: note: in expansion of macro '__mlx5_bit_off' 53 | #define __mlx5_dw_off(typ, fld) (__mlx5_bit_off(typ, fld) / 32) | ^~ include/linux/mlx5/device.h:96:1: note: in expansion of macro '__mlx5_dw_off' 96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \ | ^ include/linux/mlx5/device.h:1215:2: note: in expansion of macro 'MLX5_GET' 1215 | MLX5_GET(cmd_hca_cap, mdev->caps.hca_cur[MLX5_CAP_GENERAL], cap) | ^~~~ drivers/vdpa/mlx5/net/mlx5_vnet.c:1788:7: note: in expansion of macro 'MLX5_CAP_GEN' 1788 | if (MLX5_CAP_GEN(mvdev->mdev, umem_uid_0)) { | ^~~~ In file included from include/linux/mlx5/driver.h:53, from include/linux/mlx5/cq.h:36, from drivers/vdpa/mlx5/net/mlx5_vnet.c:11: >> include/linux/mlx5/device.h:50:57: error: 'struct mlx5_ifc_cmd_hca_cap_bits' >> has no member named 'umem_uid_0' 50 | #define __mlx5_bit_sz(typ, fld) sizeof(__mlx5_nullp(typ)->fld) | ^~ include/linux/mlx5/device.h:56:43: note: in expansion of macro '__mlx5_bit_sz' 56 | #define __mlx5_dw_bit_off(typ, fld) (32 - __mlx5_bit_sz(typ, fld) - (__mlx5_bit_off(typ, fld) & 0x1f)) | ^ include/linux/mlx5/device.h:96:30: note: in expansion of macro '__mlx5_dw_bit_off' 96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \ | ^ include/linux/mlx5/device.h:1215:2: note: in expansion of macro 'MLX5_GET' 1215 | MLX5_GET(cmd_hca_cap, mdev->caps.hca_cur[MLX5_CAP_GENERAL], cap) | ^~~~ drivers/vdpa/mlx5/net/mlx5_vnet.c:1788:7: note: in expansion of macro 'MLX5_CAP_GEN' 1788 | if (MLX5_CAP_GEN(mvdev->mdev, umem_uid_0)) { | ^~~
Re: [PATCH v4 2/5] fuse: Call vfs_get_tree() for submounts
Hi Greg, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on fuse/for-next] [also build test WARNING on linux/master linus/master v5.13-rc2 next-20210521] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Greg-Kurz/virtiofs-propagate-sync-to-file-server/20210522-210652 base: https://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git for-next config: sparc64-randconfig-p002-20210522 (attached as .config) compiler: sparc64-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/0day-ci/linux/commit/ee3cc45c5a2311efc82021bd5463271507bef828 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Greg-Kurz/virtiofs-propagate-sync-to-file-server/20210522-210652 git checkout ee3cc45c5a2311efc82021bd5463271507bef828 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): fs/fuse/dir.c: In function 'fuse_dentry_automount': >> fs/fuse/dir.c:312:21: warning: variable 'fm' set but not used >> [-Wunused-but-set-variable] 312 | struct fuse_mount *fm; | ^~ Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for FRAME_POINTER Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS || MCOUNT Selected by - LOCKDEP && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && !MIPS && !PPC && !ARM && !S390 && !MICROBLAZE && !ARC && !X86 vim +/fm +312 fs/fuse/dir.c 8fab010644363f Miklos Szeredi 2018-08-15 303 bf109c64040f5b Max Reitz 2020-04-21 304 /* bf109c64040f5b Max Reitz 2020-04-21 305 * Create a fuse_mount object with a new superblock (with path->dentry bf109c64040f5b Max Reitz 2020-04-21 306 * as the root), and return that mount so it can be auto-mounted on bf109c64040f5b Max Reitz 2020-04-21 307 * @path. bf109c64040f5b Max Reitz 2020-04-21 308 */ bf109c64040f5b Max Reitz 2020-04-21 309 static struct vfsmount *fuse_dentry_automount(struct path *path) bf109c64040f5b Max Reitz 2020-04-21 310 { bf109c64040f5b Max Reitz 2020-04-21 311 struct fs_context *fsc; bf109c64040f5b Max Reitz 2020-04-21 @312 struct fuse_mount *fm; bf109c64040f5b Max Reitz 2020-04-21 313 struct vfsmount *mnt; bf109c64040f5b Max Reitz 2020-04-21 314 struct fuse_inode *mp_fi = get_fuse_inode(d_inode(path->dentry)); bf109c64040f5b Max Reitz 2020-04-21 315 int err; bf109c64040f5b Max Reitz 2020-04-21 316 bf109c64040f5b Max Reitz 2020-04-21 317 fsc = fs_context_for_submount(path->mnt->mnt_sb->s_type, path->dentry); bf109c64040f5b Max Reitz 2020-04-21 318 if (IS_ERR(fsc)) { bf109c64040f5b Max Reitz 2020-04-21 319 err = PTR_ERR(fsc); bf109c64040f5b Max Reitz 2020-04-21 320 goto out; bf109c64040f5b Max Reitz 2020-04-21 321 } bf109c64040f5b Max Reitz 2020-04-21 322 ee3cc45c5a2311 Greg Kurz 2021-05-20 323 /* ee3cc45c5a2311 Greg Kurz 2021-05-20 324* Hijack fsc->fs_private to pass the mount point inode to ee3cc45c5a2311 Greg Kurz 2021-05-20 325* fuse_get_tree_submount(). It *must* be NULLified afterwards ee3cc45c5a2311 Greg Kurz 2021-05-20 326* to avoid the inode pointer to be passed to kfree() when ee3cc45c5a2311 Greg Kurz 2021-05-20 327* the context gets freed. ee3cc45c5a2311 Greg Kurz 2021-05-20 328*/ ee3cc45c5a2311 Greg Kurz 2021-05-20 329 fsc->fs_private = mp_fi; ee3cc45c5a2311 Greg Kurz 2021-05-20 330 err = vfs_get_tree(fsc); ee3cc45c5a2311 Greg Kurz 2021-05-20 331 fsc->fs_private = NULL; ee3cc45c5a2311 Greg Kurz 2021-05-20 332 if (err) bf109c64040f5b Max Reitz 2020-04-21 333 goto out_put_fsc; bf109c64040f5b Max Reitz 2020-04-21 334 ee3cc45c5a2311 Greg Kurz 2021-05-20 335 fm = get_fuse_mount_super(fsc->root->d_sb); bf109c64040f5b Max Reitz 2020-04-21 336 bf109c64040f5b Max Reitz 2020-04-21 337 /* Create the submount */ bf109c64040f5b Max Reitz 2020-04-21 338 mnt = vfs_create_mount(fsc); bf109c64040f5b Max Reitz 2020-04-21 339 if (IS_ERR(mnt)) { bf109c64040f5b Max Reitz 2020-04-21 340 err = PTR_ERR(mnt); bf109c64040f5b Ma
Re: [PATCH 11/19] drivers/hv: set up synic pages for intercept messages
Hi Nuno, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on asm-generic/master] [also build test WARNING on tip/master linux/master linus/master v5.13-rc3 next-20210528] [cannot apply to tip/x86/core] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Nuno-Das-Neves/Microsoft-Hypervisor-root-partition-ioctl-interface/20210529-064549 base: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git master config: x86_64-randconfig-b001-20210528 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project bc6799f2f79f0ae87e9f1ebf9d25ba799fbd25a9) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/0day-ci/linux/commit/2761f56915a9f31c98287f68fd2b286b7ec16d41 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Nuno-Das-Neves/Microsoft-Hypervisor-root-partition-ioctl-interface/20210529-064549 git checkout 2761f56915a9f31c98287f68fd2b286b7ec16d41 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from :1: In file included from ./usr/include/linux/mshv.h:12: >> ./usr/include/asm/hyperv-tlfs.h:751:14: warning: // comments are not allowed >> in this language [-Wcomment] __u8 cr8:4; // only set for exo partitions ^ 1 warning generated. --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v4 2/5] fuse: Call vfs_get_tree() for submounts
Hi Greg, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on fuse/for-next] [also build test WARNING on linux/master linus/master v5.13-rc2 next-20210521] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Greg-Kurz/virtiofs-propagate-sync-to-file-server/20210522-210652 base: https://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git for-next config: nds32-randconfig-r011-20210522 (attached as .config) compiler: nds32le-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/0day-ci/linux/commit/ee3cc45c5a2311efc82021bd5463271507bef828 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Greg-Kurz/virtiofs-propagate-sync-to-file-server/20210522-210652 git checkout ee3cc45c5a2311efc82021bd5463271507bef828 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): fs/fuse/dir.c: In function 'fuse_dentry_automount': >> fs/fuse/dir.c:312:21: warning: variable 'fm' set but not used >> [-Wunused-but-set-variable] 312 | struct fuse_mount *fm; | ^~ vim +/fm +312 fs/fuse/dir.c 8fab010644363f Miklos Szeredi 2018-08-15 303 bf109c64040f5b Max Reitz 2020-04-21 304 /* bf109c64040f5b Max Reitz 2020-04-21 305 * Create a fuse_mount object with a new superblock (with path->dentry bf109c64040f5b Max Reitz 2020-04-21 306 * as the root), and return that mount so it can be auto-mounted on bf109c64040f5b Max Reitz 2020-04-21 307 * @path. bf109c64040f5b Max Reitz 2020-04-21 308 */ bf109c64040f5b Max Reitz 2020-04-21 309 static struct vfsmount *fuse_dentry_automount(struct path *path) bf109c64040f5b Max Reitz 2020-04-21 310 { bf109c64040f5b Max Reitz 2020-04-21 311 struct fs_context *fsc; bf109c64040f5b Max Reitz 2020-04-21 @312 struct fuse_mount *fm; bf109c64040f5b Max Reitz 2020-04-21 313 struct vfsmount *mnt; bf109c64040f5b Max Reitz 2020-04-21 314 struct fuse_inode *mp_fi = get_fuse_inode(d_inode(path->dentry)); bf109c64040f5b Max Reitz 2020-04-21 315 int err; bf109c64040f5b Max Reitz 2020-04-21 316 bf109c64040f5b Max Reitz 2020-04-21 317 fsc = fs_context_for_submount(path->mnt->mnt_sb->s_type, path->dentry); bf109c64040f5b Max Reitz 2020-04-21 318 if (IS_ERR(fsc)) { bf109c64040f5b Max Reitz 2020-04-21 319 err = PTR_ERR(fsc); bf109c64040f5b Max Reitz 2020-04-21 320 goto out; bf109c64040f5b Max Reitz 2020-04-21 321 } bf109c64040f5b Max Reitz 2020-04-21 322 ee3cc45c5a2311 Greg Kurz 2021-05-20 323 /* ee3cc45c5a2311 Greg Kurz 2021-05-20 324* Hijack fsc->fs_private to pass the mount point inode to ee3cc45c5a2311 Greg Kurz 2021-05-20 325* fuse_get_tree_submount(). It *must* be NULLified afterwards ee3cc45c5a2311 Greg Kurz 2021-05-20 326* to avoid the inode pointer to be passed to kfree() when ee3cc45c5a2311 Greg Kurz 2021-05-20 327* the context gets freed. ee3cc45c5a2311 Greg Kurz 2021-05-20 328*/ ee3cc45c5a2311 Greg Kurz 2021-05-20 329 fsc->fs_private = mp_fi; ee3cc45c5a2311 Greg Kurz 2021-05-20 330 err = vfs_get_tree(fsc); ee3cc45c5a2311 Greg Kurz 2021-05-20 331 fsc->fs_private = NULL; ee3cc45c5a2311 Greg Kurz 2021-05-20 332 if (err) bf109c64040f5b Max Reitz 2020-04-21 333 goto out_put_fsc; bf109c64040f5b Max Reitz 2020-04-21 334 ee3cc45c5a2311 Greg Kurz 2021-05-20 335 fm = get_fuse_mount_super(fsc->root->d_sb); bf109c64040f5b Max Reitz 2020-04-21 336 bf109c64040f5b Max Reitz 2020-04-21 337 /* Create the submount */ bf109c64040f5b Max Reitz 2020-04-21 338 mnt = vfs_create_mount(fsc); bf109c64040f5b Max Reitz 2020-04-21 339 if (IS_ERR(mnt)) { bf109c64040f5b Max Reitz 2020-04-21 340 err = PTR_ERR(mnt); bf109c64040f5b Max Reitz 2020-04-21 341 goto out_put_fsc; bf109c64040f5b Max Reitz 2020-04-21 342 } bf109c64040f5b Max Reitz 2020-04-21 343 mntget(mnt); bf109c64040f5b Max Reitz 2020-04-21 344 put_fs_context(fsc); bf109c64040f5b Max Reitz 2020-04-21 345 return mnt; bf109c64040f5b Max Reitz 2020-04-21 346 bf109c64040f5b Max Reitz 2020-04-21 347 out_put_fsc: bf109c64040
[vhost:vhost 29/31] drivers/crypto/virtio/virtio_crypto_core.c:516:25: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost head: 168a32fcc18a6f4afb7ea9d4760bf82becc67a43 commit: e397242b72e20f12139d895e4f10da736b2ae0a4 [29/31] virtio: allow passing config data from validate callback config: openrisc-randconfig-r025-20210707 (attached as .config) compiler: or1k-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/mst/vhost.git/commit/?id=e397242b72e20f12139d895e4f10da736b2ae0a4 git remote add vhost https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git git fetch --no-tags vhost vhost git checkout e397242b72e20f12139d895e4f10da736b2ae0a4 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/crypto/virtio/virtio_crypto_core.c:516:25: error: initialization of >> 'int (*)(struct virtio_device *, void *)' from incompatible pointer type >> 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types] 516 | .probe = virtcrypto_probe, | ^~~~ drivers/crypto/virtio/virtio_crypto_core.c:516:25: note: (near initialization for 'virtio_crypto_driver.probe') cc1: some warnings being treated as errors vim +516 drivers/crypto/virtio/virtio_crypto_core.c dbaf0624ffa57a Gonglei 2016-12-15 509 dbaf0624ffa57a Gonglei 2016-12-15 510 static struct virtio_driver virtio_crypto_driver = { dbaf0624ffa57a Gonglei 2016-12-15 511 .driver.name = KBUILD_MODNAME, dbaf0624ffa57a Gonglei 2016-12-15 512 .driver.owner= THIS_MODULE, dbaf0624ffa57a Gonglei 2016-12-15 513 .feature_table = features, dbaf0624ffa57a Gonglei 2016-12-15 514 .feature_table_size = ARRAY_SIZE(features), dbaf0624ffa57a Gonglei 2016-12-15 515 .id_table= id_table, dbaf0624ffa57a Gonglei 2016-12-15 @516 .probe = virtcrypto_probe, dbaf0624ffa57a Gonglei 2016-12-15 517 .remove = virtcrypto_remove, dbaf0624ffa57a Gonglei 2016-12-15 518 .config_changed = virtcrypto_config_changed, dbaf0624ffa57a Gonglei 2016-12-15 519 #ifdef CONFIG_PM_SLEEP dbaf0624ffa57a Gonglei 2016-12-15 520 .freeze = virtcrypto_freeze, dbaf0624ffa57a Gonglei 2016-12-15 521 .restore = virtcrypto_restore, dbaf0624ffa57a Gonglei 2016-12-15 522 #endif dbaf0624ffa57a Gonglei 2016-12-15 523 }; dbaf0624ffa57a Gonglei 2016-12-15 524 :: The code at line 516 was first introduced by commit :: dbaf0624ffa57ae6e7d87a823185ccd9a7852d3c crypto: add virtio-crypto driver :: TO: Gonglei :: CC: Michael S. Tsirkin --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
[vhost:vhost 29/31] fs/fuse/virtio_fs.c:967:13: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost head: 168a32fcc18a6f4afb7ea9d4760bf82becc67a43 commit: e397242b72e20f12139d895e4f10da736b2ae0a4 [29/31] virtio: allow passing config data from validate callback config: microblaze-randconfig-r023-20210707 (attached as .config) compiler: microblaze-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/mst/vhost.git/commit/?id=e397242b72e20f12139d895e4f10da736b2ae0a4 git remote add vhost https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git git fetch --no-tags vhost vhost git checkout e397242b72e20f12139d895e4f10da736b2ae0a4 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> fs/fuse/virtio_fs.c:967:13: error: initialization of 'int (*)(struct >> virtio_device *, void *)' from incompatible pointer type 'int (*)(struct >> virtio_device *)' [-Werror=incompatible-pointer-types] 967 | .probe = virtio_fs_probe, | ^~~ fs/fuse/virtio_fs.c:967:13: note: (near initialization for 'virtio_fs_driver.probe') cc1: some warnings being treated as errors -- >> drivers/rpmsg/virtio_rpmsg_bus.c:1049:12: error: initialization of 'int >> (*)(struct virtio_device *, void *)' from incompatible pointer type 'int >> (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types] 1049 | .probe = rpmsg_probe, |^~~ drivers/rpmsg/virtio_rpmsg_bus.c:1049:12: note: (near initialization for 'virtio_ipc_driver.probe') cc1: some warnings being treated as errors -- >> drivers/virtio/virtio_input.c:401:25: error: initialization of 'int >> (*)(struct virtio_device *, void *)' from incompatible pointer type 'int >> (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types] 401 | .probe = virtinput_probe, | ^~~ drivers/virtio/virtio_input.c:401:25: note: (near initialization for 'virtio_input_driver.probe') cc1: some warnings being treated as errors -- >> drivers/gpu/drm/virtio/virtgpu_drv.c:182:11: error: initialization of 'int >> (*)(struct virtio_device *, void *)' from incompatible pointer type 'int >> (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types] 182 | .probe = virtio_gpu_probe, | ^~~~ drivers/gpu/drm/virtio/virtgpu_drv.c:182:11: note: (near initialization for 'virtio_gpu_driver.probe') cc1: some warnings being treated as errors vim +967 fs/fuse/virtio_fs.c a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 960 a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 961 static struct virtio_driver virtio_fs_driver = { a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 962 .driver.name = KBUILD_MODNAME, a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 963 .driver.owner = THIS_MODULE, a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 964 .id_table = id_table, a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 965 .feature_table = feature_table, a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 966 .feature_table_size = ARRAY_SIZE(feature_table), a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 @967 .probe = virtio_fs_probe, a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 968 .remove = virtio_fs_remove, a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 969 #ifdef CONFIG_PM_SLEEP a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 970 .freeze = virtio_fs_freeze, a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 971 .restore = virtio_fs_restore, a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 972 #endif a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 973 }; a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 974 :: The code at line 967 was first introduced by commit :: a62a8ef9d97da23762a588592c8b8eb50a8deb6a virtio-fs: add virtiofs filesystem :: TO: Stefan Hajnoczi :: CC: Miklos Szeredi --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH 3/3] vhost: pass kthread user to check RLIMIT_NPROC
Hi Mike, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on vhost/linux-next] [also build test WARNING on linux/master linus/master v5.13-rc7] [cannot apply to next-20210623] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Mike-Christie/kthread-pass-in-user-and-check-RLIMIT_NPROC/20210624-110925 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: riscv-randconfig-s032-20210622 (attached as .config) compiler: riscv64-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3-341-g8af24329-dirty # https://github.com/0day-ci/linux/commit/daae0f4bb5ef7264d67cab20da37192754f885b8 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Mike-Christie/kthread-pass-in-user-and-check-RLIMIT_NPROC/20210624-110925 git checkout daae0f4bb5ef7264d67cab20da37192754f885b8 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=riscv If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/vhost/vhost.c:599:57: sparse: sparse: dereference of noderef >> expression vim +599 drivers/vhost/vhost.c 581 582 /* Caller should have device mutex */ 583 long vhost_dev_set_owner(struct vhost_dev *dev) 584 { 585 struct task_struct *worker; 586 int err; 587 588 /* Is there an owner already? */ 589 if (vhost_dev_has_owner(dev)) { 590 err = -EBUSY; 591 goto err_mm; 592 } 593 594 vhost_attach_mm(dev); 595 596 dev->kcov_handle = kcov_common_handle(); 597 if (dev->use_worker) { 598 worker = kthread_create_for_user(vhost_worker, dev, > 599 > current->real_cred->user, 600 "vhost-%d", current->pid); 601 if (IS_ERR(worker)) { 602 err = PTR_ERR(worker); 603 goto err_worker; 604 } 605 606 dev->worker = worker; 607 wake_up_process(worker); /* avoid contributing to loadavg */ 608 609 err = vhost_attach_cgroups(dev); 610 if (err) 611 goto err_cgroup; 612 } 613 614 err = vhost_dev_alloc_iovecs(dev); 615 if (err) 616 goto err_cgroup; 617 618 return 0; 619 err_cgroup: 620 if (dev->worker) { 621 kthread_stop(dev->worker); 622 dev->worker = NULL; 623 } 624 err_worker: 625 vhost_detach_mm(dev); 626 dev->kcov_handle = 0; 627 err_mm: 628 return err; 629 } 630 EXPORT_SYMBOL_GPL(vhost_dev_set_owner); 631 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH 1/3] kthread: allow caller to pass in user_struct
Hi Mike, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on vhost/linux-next] [also build test WARNING on linux/master linus/master v5.13-rc7] [cannot apply to next-20210623] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Mike-Christie/kthread-pass-in-user-and-check-RLIMIT_NPROC/20210624-110925 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: um-x86_64_defconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/9b4a744e588ed25e06eed415174977e7533b24dc git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Mike-Christie/kthread-pass-in-user-and-check-RLIMIT_NPROC/20210624-110925 git checkout 9b4a744e588ed25e06eed415174977e7533b24dc # save the attached .config to linux build tree make W=1 ARCH=um SUBARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs] kernel/kthread.c: In function 'kthread_create_for_user': >> kernel/kthread.c:466:6: warning: function 'kthread_create_for_user' might be >> a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 466 | namefmt, args); | ^~~ vim +466 kernel/kthread.c 443 444 /** 445 * kthread_create_for_user - create a kthread and check @user's RLIMIT_NPROC 446 * @threadfn: the function to run until signal_pending(current). 447 * @data: data ptr for @threadfn. 448 * @user: user_struct that will have its RLIMIT_NPROC checked 449 * @namefmt: printf-style name for the thread. 450 * 451 * This will create a kthread on the current node, leaving it in the stopped 452 * state. This is just a helper for kthread_create_on_node() that will check 453 * @user's process count against its RLIMIT_NPROC. See the 454 * kthread_create_on_node() documentation for more details. 455 */ 456 struct task_struct *kthread_create_for_user(int (*threadfn)(void *data), 457 void *data, 458 struct user_struct *user, 459 const char namefmt[], ...) 460 { 461 struct task_struct *task; 462 va_list args; 463 464 va_start(args, namefmt); 465 task = __kthread_create_on_node(threadfn, data, NUMA_NO_NODE, user, > 466 namefmt, args); 467 va_end(args); 468 469 return task; 470 } 471 EXPORT_SYMBOL(kthread_create_for_user); 472 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH 1/3] drm/bochs: Move to tiny/
Hi Thomas, I love your patch! Perhaps something to improve: [auto build test WARNING on next-20210630] [cannot apply to linus/master v5.13 v5.13-rc7 v5.13-rc6 v5.13] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Thomas-Zimmermann/drm-bochs-Move-to-tiny-and-simplify/20210630-220827 base:2e0046650f0f192a84a1793f0dc2f0991ed9a3e4 config: i386-randconfig-s001-20210630 (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/0day-ci/linux/commit/b6c460f7ad814dab0a55db296162fecc5828bc87 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Thomas-Zimmermann/drm-bochs-Move-to-tiny-and-simplify/20210630-220827 git checkout b6c460f7ad814dab0a55db296162fecc5828bc87 # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/tiny/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/gpu/drm/tiny/bochs.c:542:36: sparse: sparse: symbol >> 'bochs_mode_funcs' was not declared. Should it be static? Please review and possibly fold the followup patch. --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
[RFC PATCH] drm/bochs: bochs_mode_funcs can be static
drivers/gpu/drm/tiny/bochs.c:542:36: warning: symbol 'bochs_mode_funcs' was not declared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- bochs.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tiny/bochs.c b/drivers/gpu/drm/tiny/bochs.c index edcd31db5b9ce..067e043de437d 100644 --- a/drivers/gpu/drm/tiny/bochs.c +++ b/drivers/gpu/drm/tiny/bochs.c @@ -539,7 +539,7 @@ bochs_gem_fb_create(struct drm_device *dev, struct drm_file *file, return drm_gem_fb_create(dev, file, mode_cmd); } -const struct drm_mode_config_funcs bochs_mode_funcs = { +static const struct drm_mode_config_funcs bochs_mode_funcs = { .fb_create = bochs_gem_fb_create, .mode_valid = drm_vram_helper_mode_valid, .atomic_check = drm_atomic_helper_check, ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v11] i2c: virtio: add a virtio i2c frontend driver
Hi Jie, Thank you for the patch! Yet something to improve: [auto build test ERROR on wsa/i2c/for-next] [also build test ERROR on linux/master linus/master v5.13 next-20210630] [cannot apply to vhost/linux-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Jie-Deng/i2c-virtio-add-a-virtio-i2c-frontend-driver/20210701-112619 base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next config: i386-randconfig-c021-20210630 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/e8dedd2a8577148d7655d0affe35adf34efbbf15 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Jie-Deng/i2c-virtio-add-a-virtio-i2c-frontend-driver/20210701-112619 git checkout e8dedd2a8577148d7655d0affe35adf34efbbf15 # save the attached .config to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from :32: >> ./usr/include/linux/virtio_i2c.h:12:10: fatal error: linux/bits.h: No such >> file or directory 12 | #include | ^~ compilation terminated. --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH v11] i2c: virtio: add a virtio i2c frontend driver
Hi Jie, Thank you for the patch! Yet something to improve: [auto build test ERROR on wsa/i2c/for-next] [also build test ERROR on linux/master linus/master v5.13 next-20210630] [cannot apply to vhost/linux-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Jie-Deng/i2c-virtio-add-a-virtio-i2c-frontend-driver/20210701-112619 base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next config: x86_64-randconfig-r012-20210630 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project e7e71e9454ed76c1b3d8140170b5333c28bef1be) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/0day-ci/linux/commit/e8dedd2a8577148d7655d0affe35adf34efbbf15 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Jie-Deng/i2c-virtio-add-a-virtio-i2c-frontend-driver/20210701-112619 git checkout e8dedd2a8577148d7655d0affe35adf34efbbf15 # save the attached .config to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from :1: >> ./usr/include/linux/virtio_i2c.h:12:10: fatal error: 'linux/bits.h' file not >> found #include ^~ 1 error generated. --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH 2/3] vDPA/ifcvf: implement management netlink framework for ifcvf
Hi Zhu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.13 next-20210630] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Zhu-Lingshan/vDPA-ifcvf-implement-management-netlink-framework/20210630-162940 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 007b350a58754a93ca9fe50c498cc27780171153 config: x86_64-randconfig-a015-20210630 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d21d5472501460933e78aead04cf59579025ba4) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/0day-ci/linux/commit/7ea782fbd896e1a5b3c01b29f4929773748a525f git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Zhu-Lingshan/vDPA-ifcvf-implement-management-netlink-framework/20210630-162940 git checkout 7ea782fbd896e1a5b3c01b29f4929773748a525f # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/vdpa/ifcvf/ifcvf_main.c:612:14: warning: variable 'adapter' is >> uninitialized when used here [-Wuninitialized] put_device(>vdpa.dev); ^~~ drivers/vdpa/ifcvf/ifcvf_main.c:546:31: note: initialize the variable 'adapter' to silence this warning struct ifcvf_adapter *adapter; ^ = NULL 1 warning generated. vim +/adapter +612 drivers/vdpa/ifcvf/ifcvf_main.c 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 541 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 542 static int ifcvf_probe(struct pci_dev *pdev, const struct pci_device_id *id) 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 543 { 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 544 struct ifcvf_vdpa_mgmt_dev *ifcvf_mgmt_dev; 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 545 struct device *dev = >dev; 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 546 struct ifcvf_adapter *adapter; 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 547 u32 dev_type; 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 548 int ret; 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 549 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 550 ifcvf_mgmt_dev = kzalloc(sizeof(struct ifcvf_vdpa_mgmt_dev), GFP_KERNEL); 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 551 if (!ifcvf_mgmt_dev) { 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 552 IFCVF_ERR(pdev, "Failed to alloc memory for the vDPA management device\n"); 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 553 return -ENOMEM; 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 554 } 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 555 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 556 dev_type = get_dev_type(pdev); 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 557 switch (dev_type) { 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 558 case VIRTIO_ID_NET: 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 559 ifcvf_mgmt_dev->mdev.id_table = id_table_net; 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 560 break; 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 561 case VIRTIO_ID_BLOCK: 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 562 ifcvf_mgmt_dev->mdev.id_table = id_table_blk; 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 563 break; 7ea782fbd896e1 drivers/vdpa/ifcvf/ifcvf_main.cZhu Lingshan 2021-06-30 564 default: 7ea782
Re: [PATCH 1/2] vDPA/ifcvf: record virtio notify base
Hi Zhu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.12 next-20210428] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Zhu-Lingshan/vDPA-ifcvf-implement-doorbell-mapping-feature/20210428-162843 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git acd3d28594536e9096c1ea76c5867d8a68babef6 config: x86_64-randconfig-s022-20210428 (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/0day-ci/linux/commit/79474dca6dd202684180ad6ea88b5f73fc4a87c2 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Zhu-Lingshan/vDPA-ifcvf-implement-doorbell-mapping-feature/20210428-162843 git checkout 79474dca6dd202684180ad6ea88b5f73fc4a87c2 # 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 sparse warnings: (new ones prefixed by >>) >> drivers/vdpa/ifcvf/ifcvf_base.c:136:80: sparse: sparse: restricted __le32 >> degrades to integer vim +136 drivers/vdpa/ifcvf/ifcvf_base.c 98 99 int ifcvf_init_hw(struct ifcvf_hw *hw, struct pci_dev *pdev) 100 { 101 struct virtio_pci_cap cap; 102 u16 notify_off; 103 int ret; 104 u8 pos; 105 u32 i; 106 107 ret = pci_read_config_byte(pdev, PCI_CAPABILITY_LIST, ); 108 if (ret < 0) { 109 IFCVF_ERR(pdev, "Failed to read PCI capability list\n"); 110 return -EIO; 111 } 112 113 while (pos) { 114 ret = ifcvf_read_config_range(pdev, (u32 *), 115sizeof(cap), pos); 116 if (ret < 0) { 117 IFCVF_ERR(pdev, 118"Failed to get PCI capability at %x\n", pos); 119 break; 120 } 121 122 if (cap.cap_vndr != PCI_CAP_ID_VNDR) 123 goto next; 124 125 switch (cap.cfg_type) { 126 case VIRTIO_PCI_CAP_COMMON_CFG: 127 hw->common_cfg = get_cap_addr(hw, ); 128 IFCVF_DBG(pdev, "hw->common_cfg = %p\n", 129hw->common_cfg); 130 break; 131 case VIRTIO_PCI_CAP_NOTIFY_CFG: 132 pci_read_config_dword(pdev, pos + sizeof(cap), 133 >notify_off_multiplier); 134 hw->notify_bar = cap.bar; 135 hw->notify_base = get_cap_addr(hw, ); > 136 hw->notify_pa = pci_resource_start(pdev, > cap.bar) + cap.offset; 137 IFCVF_DBG(pdev, "hw->notify_base = %p\n", 138hw->notify_base); 139 break; 140 case VIRTIO_PCI_CAP_ISR_CFG: 141 hw->isr = get_cap_addr(hw, ); 142 IFCVF_DBG(pdev, "hw->isr = %p\n", hw->isr); 143 break; 144 case VIRTIO_PCI_CAP_DEVICE_CFG: 145 hw->net_cfg = get_cap_addr(hw, ); 146 IFCVF_DBG(pdev, "hw->net_cfg = %p\n", hw->net_cfg); 147 break; 148 } 149 150 next: 151 pos = cap.cap_next; 152 } 153 154 if (hw->common_cfg == NULL || hw->notify_base == NULL || 155 hw->isr == NULL || hw->net_cfg == NULL) { 156 IFCVF_ERR(pdev, "Incomplete PCI capabilities\n"); 157 return -EIO; 158 } 159 160 for (i = 0; i < IFCVF_MAX_QUEUE_PAIRS * 2; i++) { 161 ifc_iowrite16(i, >common_cfg->queue_select); 162 notify_off = ifc_ioread16(>common_cfg->queue_notify_off); 163 hw->vring[i].notify_addr = hw->notify_base + 164 notify_off * hw->notify_off_multiplier; 165 } 166 167 hw->lm_c