oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [atishp04:kvm_perf_snapshot_rfc 6/7] include/linux/kvm_types.h:43:25: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295'
@ 2023-05-09  0:45 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-09  0:45 UTC (permalink / raw)
  To: Atish Patra; +Cc: oe-kbuild-all, Atish Patra

tree:   https://github.com/atishp04/linux kvm_perf_snapshot_rfc
head:   5ae7188de04f861c3f4026005a0ace2cf2575bde
commit: 98be44e0e5eedf9af70491d6faf0536e02945d6e [6/7] KVM: RISC-V: Implement SBI PMU Snapshot feature
config: riscv-rv32_defconfig (https://download.01.org/0day-ci/archive/20230509/202305090828.ujO6KTt1-lkp@intel.com/config)
compiler: riscv32-linux-gcc (GCC) 12.1.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/atishp04/linux/commit/98be44e0e5eedf9af70491d6faf0536e02945d6e
        git remote add atishp04 https://github.com/atishp04/linux
        git fetch --no-tags atishp04 kvm_perf_snapshot_rfc
        git checkout 98be44e0e5eedf9af70491d6faf0536e02945d6e
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/kvm/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305090828.ujO6KTt1-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/kvm_host.h:43,
                    from arch/riscv/kvm/vcpu_pmu.c:12:
   arch/riscv/kvm/vcpu_pmu.c: In function 'kvm_riscv_vcpu_pmu_enable_snapshot':
>> include/linux/kvm_types.h:43:25: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Woverflow]
      43 | #define INVALID_GPA     (~(gpa_t)0)
         |                         ^
   arch/riscv/kvm/vcpu_pmu.c:358:40: note: in expansion of macro 'INVALID_GPA'
     358 |                 kvpmu->snapshot_addr = INVALID_GPA;
         |                                        ^~~~~~~~~~~
   arch/riscv/kvm/vcpu_pmu.c: In function 'kvm_riscv_vcpu_pmu_init':
>> include/linux/kvm_types.h:43:25: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Woverflow]
      43 | #define INVALID_GPA     (~(gpa_t)0)
         |                         ^
   arch/riscv/kvm/vcpu_pmu.c:654:32: note: in expansion of macro 'INVALID_GPA'
     654 |         kvpmu->snapshot_addr = INVALID_GPA;
         |                                ^~~~~~~~~~~
   arch/riscv/kvm/vcpu_pmu.c: In function 'kvm_riscv_vcpu_pmu_deinit':
>> include/linux/kvm_types.h:43:25: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Woverflow]
      43 | #define INVALID_GPA     (~(gpa_t)0)
         |                         ^
   arch/riscv/kvm/vcpu_pmu.c:714:32: note: in expansion of macro 'INVALID_GPA'
     714 |         kvpmu->snapshot_addr = INVALID_GPA;
         |                                ^~~~~~~~~~~


vim +43 include/linux/kvm_types.h

d77a39d982431e drivers/kvm/types.h       Hollis Blanchard 2007-12-03  42  
cecafc0a830f7e include/linux/kvm_types.h Yu Zhang         2023-01-05 @43  #define INVALID_GPA	(~(gpa_t)0)
8564d6372a7d8a include/linux/kvm_types.h Steven Price     2019-10-21  44  

:::::: The code at line 43 was first introduced by commit
:::::: cecafc0a830f7ea89bc11c644e2841f603fcc4e6 KVM: MMU: Make the definition of 'INVALID_GPA' common

:::::: TO: Yu Zhang <yu.c.zhang@linux.intel.com>
:::::: CC: Oliver Upton <oliver.upton@linux.dev>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-09  0:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-09  0:45 [atishp04:kvm_perf_snapshot_rfc 6/7] include/linux/kvm_types.h:43:25: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).