Message ID | e4b504ab6a1534cd26be777c9cb0bb6a@208suo.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers |
Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from <linux-media-owner@vger.kernel.org>) id 1qMJvK-0022ma-R9; Thu, 20 Jul 2023 03:01:51 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229756AbjGTDBr (ORCPT <rfc822;mkrufky@linuxtv.org> + 1 other); Wed, 19 Jul 2023 23:01:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbjGTDBq (ORCPT <rfc822;linux-media@vger.kernel.org>); Wed, 19 Jul 2023 23:01:46 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAF46172A for <linux-media@vger.kernel.org>; Wed, 19 Jul 2023 20:01:44 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R5yBt3cqkzBRDrw for <linux-media@vger.kernel.org>; Thu, 20 Jul 2023 11:01:42 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689822102; x=1692414103; bh=7TaMCUMPT1gwp5Zxmj+joOcKEEc ciuWrPqbP1dQvF8k=; b=A4HtVwIyZaYQbnWRDZHTLuFRFrmZ1S+9GPUGP9d96pp VE5JwAB7OFEQFWpEt0/Ug7rxYyEXtsw5Se1mRJxnC3e6lrmnqogBJ5XyALPE+emq SQliwTJ7NCdPmrRXhcrqWbitbqgsELFQfAw17l6stqwNmbvNo1nOQhcKWSPqpVc7 2IjMZAY/f6SxS4dysQpthh+GNeCsCtGjsMRgxy4gpUiCf84HI0QoBvRnTb/YNCes UHKI/wuksDl3QqINkMm8vkXPQBufXwt/2YlfbTUR3Jals9DHwsdXniQ37guAKv55 XeXqQMol/SEXN0c3xi1Hvrfl1dywEtG2sXdvKTnXeag== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id pwwz7j4U38JC for <linux-media@vger.kernel.org>; Thu, 20 Jul 2023 11:01:42 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R5yBt25TSzBRDrS; Thu, 20 Jul 2023 11:01:42 +0800 (CST) MIME-Version: 1.0 Date: Thu, 20 Jul 2023 11:01:42 +0800 From: sunran001@208suo.com To: mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] hv: put parentheses on macros with complex values in hyperv.h In-Reply-To: <20230720030009.1369-1-xujianghui@cdjrlc.com> References: <20230720030009.1369-1-xujianghui@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: <e4b504ab6a1534cd26be777c9cb0bb6a@208suo.com> X-Sender: sunran001@208suo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_BLOCKED,RDNS_NONE,SPF_HELO_FAIL,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -4.6 (----) X-LSpam-Report: No, score=-4.6 required=5.0 tests=BAYES_00=-1.9,DKIM_SIGNED=0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3,T_DKIM_INVALID=0.01 autolearn=ham autolearn_force=no |
Series |
hv: put parentheses on macros with complex values in hyperv.h
|
|
Commit Message
sunran001@208suo.com
July 20, 2023, 3:01 a.m. UTC
Fix "Macros with complex values should be enclosed in parentheses"
checkpatch error.
Signed-off-by: Ran Sun <sunran001@208suo.com>
---
include/linux/hyperv.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
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@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce: (https://download.01.org/0day-ci/archive/20230720/202307201238.b9lOd1rf-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/oe-kbuild-all/202307201238.b9lOd1rf-lkp@intel.com/ 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
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-20230720] [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: i386-randconfig-i013-20230720 (https://download.01.org/0day-ci/archive/20230720/202307201511.TvSDQJLn-lkp@intel.com/config) compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a) reproduce: (https://download.01.org/0day-ci/archive/20230720/202307201511.TvSDQJLn-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/oe-kbuild-all/202307201511.TvSDQJLn-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/x86/events/intel/core.c:17: In file included from include/linux/kvm_host.h:45: In file included from arch/x86/include/asm/kvm_host.h:27: >> include/linux/hyperv.h:431:37: error: invalid token in macro parameter list #define VMPACKET_DATA_START_ADDRESS((__packet) \ ^ 1 error generated. 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
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index bfbc37ce223b..6f6fdc7cf086 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h @@ -428,9 +428,9 @@ union vmpacket_largest_possible_header { struct vmdata_gpa_direct data_gpa_direct_hdr; }; -#define VMPACKET_DATA_START_ADDRESS(__packet) \ +#define VMPACKET_DATA_START_ADDRESS((__packet) \ (void *)(((unsigned char *)__packet) + \ - ((struct vmpacket_descriptor)__packet)->offset8 * 8) + ((struct vmpacket_descriptor)__packet)->offset8 * 8)) #define VMPACKET_DATA_LENGTH(__packet) \ ((((struct vmpacket_descriptor)__packet)->len8 - \