All of lore.kernel.org
 help / color / mirror / Atom feed
* [dwmw2:vgic-iidr-group-fixes 3/3] include/kvm_util.h:1139:16: warning: passing argument 1 of 'memcpy' discards 'volatile' qualifier from pointer target type
@ 2026-04-08  4:45 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-04-08  4:45 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "low confidence bisect report"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: David Woodhouse <dwmw@amazon.co.uk>

tree:   git://git.infradead.org/users/dwmw2/linux vgic-iidr-group-fixes
head:   89879757040970ab272f17b4ec2fb7d6a7986372
commit: c1ec22a93f919c6d3bee511832ca8422f9e61471 [3/3] KVM: arm64: selftests: Add vgic IIDR revision test
:::::: branch date: 8 hours ago
:::::: commit date: 9 hours ago
config: arm64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260408/202604080614.wKKMYdgW-lkp@intel.com/config)
compiler: aarch64-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260408/202604080614.wKKMYdgW-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202604080614.wKKMYdgW-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from arm64/vgic_group_iidr.c:13:
   arm64/vgic_group_iidr.c: In function 'run_test':
>> include/kvm_util.h:1139:16: warning: passing argument 1 of 'memcpy' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1139 |         memcpy(_p, &(g), sizeof(g));                            \
         |                ^~
   arm64/vgic_group_iidr.c:87:9: note: in expansion of macro 'sync_global_to_guest'
      87 |         sync_global_to_guest(vm, shared_rev);
         |         ^~~~~~~~~~~~~~~~~~~~
   In file included from include/test_util.h:17,
                    from arm64/vgic_group_iidr.c:12:
   /usr/aarch64-linux-gnu/include/string.h:43:39: note: expected 'void * restrict' but argument is of type 'volatile uint64_t *' {aka 'volatile long unsigned int *'}
      43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
         |                      ~~~~~~~~~~~~~~~~~^~~~~~
   include/kvm_util.h:1139:20: warning: passing argument 2 of 'memcpy' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1139 |         memcpy(_p, &(g), sizeof(g));                            \
         |                    ^~~~
   arm64/vgic_group_iidr.c:87:9: note: in expansion of macro 'sync_global_to_guest'
      87 |         sync_global_to_guest(vm, shared_rev);
         |         ^~~~~~~~~~~~~~~~~~~~
   /usr/aarch64-linux-gnu/include/string.h:43:70: note: expected 'const void * restrict' but argument is of type 'volatile uint64_t *' {aka 'volatile long unsigned int *'}
      43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
         |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
>> include/kvm_util.h:1139:16: warning: passing argument 1 of 'memcpy' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1139 |         memcpy(_p, &(g), sizeof(g));                            \
         |                ^~
   arm64/vgic_group_iidr.c:89:9: note: in expansion of macro 'sync_global_to_guest'
      89 |         sync_global_to_guest(vm, shared_rev);
         |         ^~~~~~~~~~~~~~~~~~~~
   /usr/aarch64-linux-gnu/include/string.h:43:39: note: expected 'void * restrict' but argument is of type 'volatile uint64_t *' {aka 'volatile long unsigned int *'}
      43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
         |                      ~~~~~~~~~~~~~~~~~^~~~~~
   include/kvm_util.h:1139:20: warning: passing argument 2 of 'memcpy' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1139 |         memcpy(_p, &(g), sizeof(g));                            \
         |                    ^~~~
   arm64/vgic_group_iidr.c:89:9: note: in expansion of macro 'sync_global_to_guest'
      89 |         sync_global_to_guest(vm, shared_rev);
         |         ^~~~~~~~~~~~~~~~~~~~
   /usr/aarch64-linux-gnu/include/string.h:43:70: note: expected 'const void * restrict' but argument is of type 'volatile uint64_t *' {aka 'volatile long unsigned int *'}
      43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
         |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   At top level:
   cc1: note: unrecognized command-line option '-Wno-gnu-variable-sized-type-not-at-end' may have been intended to silence earlier diagnostics

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [dwmw2:vgic-iidr-group-fixes 3/3] include/kvm_util.h:1139:16: warning: passing argument 1 of 'memcpy' discards 'volatile' qualifier from pointer target type
@ 2026-04-08  6:29 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-04-08  6:29 UTC (permalink / raw)
  To: David Woodhouse; +Cc: oe-kbuild-all

tree:   git://git.infradead.org/users/dwmw2/linux vgic-iidr-group-fixes
head:   89879757040970ab272f17b4ec2fb7d6a7986372
commit: c1ec22a93f919c6d3bee511832ca8422f9e61471 [3/3] KVM: arm64: selftests: Add vgic IIDR revision test
config: arm64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260408/202604080614.wKKMYdgW-lkp@intel.com/config)
compiler: aarch64-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260408/202604080614.wKKMYdgW-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202604080614.wKKMYdgW-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from arm64/vgic_group_iidr.c:13:
   arm64/vgic_group_iidr.c: In function 'run_test':
>> include/kvm_util.h:1139:16: warning: passing argument 1 of 'memcpy' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1139 |         memcpy(_p, &(g), sizeof(g));                            \
         |                ^~
   arm64/vgic_group_iidr.c:87:9: note: in expansion of macro 'sync_global_to_guest'
      87 |         sync_global_to_guest(vm, shared_rev);
         |         ^~~~~~~~~~~~~~~~~~~~
   In file included from include/test_util.h:17,
                    from arm64/vgic_group_iidr.c:12:
   /usr/aarch64-linux-gnu/include/string.h:43:39: note: expected 'void * restrict' but argument is of type 'volatile uint64_t *' {aka 'volatile long unsigned int *'}
      43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
         |                      ~~~~~~~~~~~~~~~~~^~~~~~
   include/kvm_util.h:1139:20: warning: passing argument 2 of 'memcpy' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1139 |         memcpy(_p, &(g), sizeof(g));                            \
         |                    ^~~~
   arm64/vgic_group_iidr.c:87:9: note: in expansion of macro 'sync_global_to_guest'
      87 |         sync_global_to_guest(vm, shared_rev);
         |         ^~~~~~~~~~~~~~~~~~~~
   /usr/aarch64-linux-gnu/include/string.h:43:70: note: expected 'const void * restrict' but argument is of type 'volatile uint64_t *' {aka 'volatile long unsigned int *'}
      43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
         |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
>> include/kvm_util.h:1139:16: warning: passing argument 1 of 'memcpy' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1139 |         memcpy(_p, &(g), sizeof(g));                            \
         |                ^~
   arm64/vgic_group_iidr.c:89:9: note: in expansion of macro 'sync_global_to_guest'
      89 |         sync_global_to_guest(vm, shared_rev);
         |         ^~~~~~~~~~~~~~~~~~~~
   /usr/aarch64-linux-gnu/include/string.h:43:39: note: expected 'void * restrict' but argument is of type 'volatile uint64_t *' {aka 'volatile long unsigned int *'}
      43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
         |                      ~~~~~~~~~~~~~~~~~^~~~~~
   include/kvm_util.h:1139:20: warning: passing argument 2 of 'memcpy' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1139 |         memcpy(_p, &(g), sizeof(g));                            \
         |                    ^~~~
   arm64/vgic_group_iidr.c:89:9: note: in expansion of macro 'sync_global_to_guest'
      89 |         sync_global_to_guest(vm, shared_rev);
         |         ^~~~~~~~~~~~~~~~~~~~
   /usr/aarch64-linux-gnu/include/string.h:43:70: note: expected 'const void * restrict' but argument is of type 'volatile uint64_t *' {aka 'volatile long unsigned int *'}
      43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
         |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   At top level:
   cc1: note: unrecognized command-line option '-Wno-gnu-variable-sized-type-not-at-end' may have been intended to silence earlier diagnostics

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-04-08  6:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-08  4:45 [dwmw2:vgic-iidr-group-fixes 3/3] include/kvm_util.h:1139:16: warning: passing argument 1 of 'memcpy' discards 'volatile' qualifier from pointer target type kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-04-08  6:29 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.