Re: [PATCH] hv: put parentheses on macros with complex values in hyperv.h

From: kernel test robot
Date: Thu Jul 20 2023 - 00:54:08 EST


Hi,

kernel test robot noticed the following build errors:

[auto build test ERROR on linus/master]
[also build test ERROR on sailus-media-tree/streams v6.5-rc2 next-20230719]
[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#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/sunran001-208suo-com/hv-put-parentheses-on-macros-with-complex-values-in-hyperv-h/20230720-110337
base: linus/master
patch link: https://lore.kernel.org/r/e4b504ab6a1534cd26be777c9cb0bb6a%40208suo.com
patch subject: [PATCH] hv: put parentheses on macros with complex values in hyperv.h
config: x86_64-buildonly-randconfig-r003-20230720 (https://download.01.org/0day-ci/archive/20230720/202307201238.b9lOd1rf-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230720/202307201238.b9lOd1rf-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307201238.b9lOd1rf-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from arch/x86/include/asm/kvm_host.h:27,
from include/linux/kvm_host.h:45,
from arch/x86/kvm/svm/nested.c:18:
>> include/linux/hyperv.h:431:37: error: expected parameter name, found "("
431 | #define VMPACKET_DATA_START_ADDRESS((__packet) \
| ^


vim +431 include/linux/hyperv.h

430
> 431 #define VMPACKET_DATA_START_ADDRESS((__packet) \
432 (void *)(((unsigned char *)__packet) + \
433 ((struct vmpacket_descriptor)__packet)->offset8 * 8))
434

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