From nobody Thu May 2 11:13:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1659703514; cv=none; d=zohomail.com; s=zohoarc; b=DVumSio8O4jhRgU68EiiuG6Ot8BW6Q32OskLv5Rl8P9UifIAtk3VWUY0GtKIGBldOgCi4b06gEP6lMLic4SBJ+m4jdCt2seaAVQesLP5JJiwB67OrPcr5nHd0PwfuOMuGLElIJd30e5KuZ2Y1nsBXoSoyo6cDGUyVycdcirugBQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1659703514; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=SDGt6RJ+ZB5pXGejCuARpIpNfU/+FrEqf6LGth7Ds0I=; b=lYDcaB6AoAuGLCXg19hjRQQLJhLW0kY/0mhMx5ZKeDW+nFdxyXhIxxfI18aIDncxMEKBBZIn3dfo3g0MPRf6AWkdEjb88xz4RYmKT4127yTn6BIhY9v9RGehtYwSnzmqDvOfRtHeAsnuPyRDCQn/FP096vB8lFz/ipsdqC21Qc0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 165970351446344.57347316883795; Fri, 5 Aug 2022 05:45:14 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.381156.615719 (Exim 4.92) (envelope-from ) id 1oJwhA-00059n-88; Fri, 05 Aug 2022 12:44:52 +0000 Received: by outflank-mailman (output) from mailman id 381156.615719; Fri, 05 Aug 2022 12:44:52 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oJwhA-00059d-4L; Fri, 05 Aug 2022 12:44:52 +0000 Received: by outflank-mailman (input) for mailman id 381156; Fri, 05 Aug 2022 12:44:50 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oJwh7-0004jk-VN for xen-devel@lists.xenproject.org; Fri, 05 Aug 2022 12:44:50 +0000 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [2a00:1450:4864:20::329]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 64840cc9-14bc-11ed-bd2e-47488cf2e6aa; Fri, 05 Aug 2022 14:44:49 +0200 (CEST) Received: by mail-wm1-x329.google.com with SMTP id j4-20020a05600c1c0400b003a4f287418bso1228333wms.5 for ; Fri, 05 Aug 2022 05:44:49 -0700 (PDT) Received: from uni.. ([2a02:587:ac1d:6c00:cdd9:ab5d:6d5c:1538]) by smtp.googlemail.com with ESMTPSA id g11-20020a5d698b000000b0021eff2ecb31sm3993185wru.95.2022.08.05.05.44.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 05:44:48 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 64840cc9-14bc-11ed-bd2e-47488cf2e6aa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=SDGt6RJ+ZB5pXGejCuARpIpNfU/+FrEqf6LGth7Ds0I=; b=adpcAg1igBCUfHUwrjCwgQ4nk6jPzMyEPxErkQ66X5lexek8Rdn0EFnsEUKK3VEJL6 SOP71pHwaBwMka2blqPfZHAfwR2SMnW3LuJA0w2sSuYb+kCyfczyVAvyBe8EfuY03fG5 oEOAKPVwuRip8+l5kRrVb335RPoEdjNfzqXVU92E7vXnN9dJHApK2JNc3N26+yJVGQB0 XqNqIqIx5+KPvO8Yx821SxZt7bbyJa2y++Lrh1hNCFq/GzK3feDywGsY6w+crRl1hMCX 6GWBx4NB6VZazYH+StlbRRCyerh3H3DK7ESv+pSE0J/kcdYAl7HPdtFz6WxJD9Vr8uii uyYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=SDGt6RJ+ZB5pXGejCuARpIpNfU/+FrEqf6LGth7Ds0I=; b=WnfLeoYe7MjcU8hhbBKP66dSK03Sbtnezr0gx+RJOA1D5JSGWxiAz9V2eYxFSfUehU evYdpAlsO9TVkby5F4ceRnNJedE7SiNpSDpRXZMFxJk8fQdM3erDRNMAqIJaWprwXGn0 n8ux6wE3NhqqJIHomRgaJ0tNbzlzISjJrt8TvZGyGaP17uvJZ4hUL9L4EX9A4YaVxIy0 wpzbVQ4lZtzguNmxLVnORmgfjdPSYnfhFiTPpxWyYsEYslVu20eQyRI4emzBafkGplle MJMYHHxzmOfrsN/PZxORHI16QehvIN8jVUBp4O6WHLgDi1f4+xboWNqqXkofPCZ4Bv3c tPPg== X-Gm-Message-State: ACgBeo2hXIuCMXjuc4cfROg2nyF2UuT29eLsKeoxZiR3uUP3BtpM75d8 TqGrlUqmn6pUfRbeof1OIwI7YUk8Yrk= X-Google-Smtp-Source: AA6agR55ntopDM59sXTkYdsI3FM/121Wo2KC1XRYR50IhyYiTtwTYDm3Pp++I/uF5Fo8S2I9gINSMA== X-Received: by 2002:a05:600c:2d02:b0:3a5:e61:d876 with SMTP id x2-20020a05600c2d0200b003a50e61d876mr4578664wmf.132.1659703488663; Fri, 05 Aug 2022 05:44:48 -0700 (PDT) From: Xenia Ragiadakou To: xen-devel@lists.xenproject.org Cc: Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH v2 1/3] xen/cpu: Fix MISRA C 2012 Rule 20.7 violation Date: Fri, 5 Aug 2022 15:44:40 +0300 Message-Id: <20220805124442.1857692-2-burzalodowa@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220805124442.1857692-1-burzalodowa@gmail.com> References: <20220805124442.1857692-1-burzalodowa@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1659703515420100001 Content-Type: text/plain; charset="utf-8" In MASK_DECLARE_ macros, the macro parameter 'x' is used as expression and therefore it is good to be enclosed in parentheses to prevent against unintended expansions. Signed-off-by: Xenia Ragiadakou Acked-by: Jan Beulich Reviewed-by: Bertrand Marquis --- Changes in v2: - fix MISRA C 2012 Rule 20.7 violation in all MASK_DECLARE_ macros xen/common/cpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xen/common/cpu.c b/xen/common/cpu.c index b0b63cdb36..feb2a6634e 100644 --- a/xen/common/cpu.c +++ b/xen/common/cpu.c @@ -25,10 +25,10 @@ const cpumask_t cpumask_all =3D { */ =20 /* cpu_bit_bitmap[0] is empty - so we can back into it */ -#define MASK_DECLARE_1(x) [x+1][0] =3D 1UL << (x) -#define MASK_DECLARE_2(x) MASK_DECLARE_1(x), MASK_DECLARE_1(x+1) -#define MASK_DECLARE_4(x) MASK_DECLARE_2(x), MASK_DECLARE_2(x+2) -#define MASK_DECLARE_8(x) MASK_DECLARE_4(x), MASK_DECLARE_4(x+4) +#define MASK_DECLARE_1(x) [(x)+1][0] =3D 1UL << (x) +#define MASK_DECLARE_2(x) MASK_DECLARE_1(x), MASK_DECLARE_1((x)+1) +#define MASK_DECLARE_4(x) MASK_DECLARE_2(x), MASK_DECLARE_2((x)+2) +#define MASK_DECLARE_8(x) MASK_DECLARE_4(x), MASK_DECLARE_4((x)+4) =20 const unsigned long cpu_bit_bitmap[BITS_PER_LONG+1][BITS_TO_LONGS(NR_CPUS)= ] =3D { =20 --=20 2.34.1 From nobody Thu May 2 11:13:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1659703509; cv=none; d=zohomail.com; s=zohoarc; b=JE47STpqGgfBa8WaxxrNg60Vq1B4EiyRiIHyANCkak+GnwuR1QLZcAhkgmTxBtsw+05aas+Qupbti8lZ7ZuhASpKTFV9e0ZL4xrU9hEkmaInrHnbZsuh6SQnVRAg9oV+b4DBwUiBczhw1VQy7CtkUMVzpS8OoQb6o7uO60ihhx0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1659703509; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=VhNWeIBhD0ahO/HsUZnkkDtHhV0EasH/pgWjfOxpRkc=; b=NlTW0uAe1AMymZnPh1gyDuNnOHFzmqs/HOasV84YeqtBllJeb+THrFnERhRcRaHFXIG4l7NPnAAvSTNjijwcM2ZWM/bsFnoxTsyR7bYHCXwETLrgWlApNb76OqlQk+dgpqzVEhWXgDXjW5Ere+nDZMVgvZHYCcMmSZC3j140jE8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1659703509473310.1441369812437; Fri, 5 Aug 2022 05:45:09 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.381157.615724 (Exim 4.92) (envelope-from ) id 1oJwhA-0005Cn-LH; Fri, 05 Aug 2022 12:44:52 +0000 Received: by outflank-mailman (output) from mailman id 381157.615724; Fri, 05 Aug 2022 12:44:52 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oJwhA-0005Bc-DK; Fri, 05 Aug 2022 12:44:52 +0000 Received: by outflank-mailman (input) for mailman id 381157; Fri, 05 Aug 2022 12:44:51 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oJwh9-0004qq-5V for xen-devel@lists.xenproject.org; Fri, 05 Aug 2022 12:44:51 +0000 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [2a00:1450:4864:20::42a]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 65302a48-14bc-11ed-924f-1f966e50362f; Fri, 05 Aug 2022 14:44:50 +0200 (CEST) Received: by mail-wr1-x42a.google.com with SMTP id l4so3094541wrm.13 for ; Fri, 05 Aug 2022 05:44:50 -0700 (PDT) Received: from uni.. ([2a02:587:ac1d:6c00:cdd9:ab5d:6d5c:1538]) by smtp.googlemail.com with ESMTPSA id g11-20020a5d698b000000b0021eff2ecb31sm3993185wru.95.2022.08.05.05.44.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 05:44:49 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 65302a48-14bc-11ed-924f-1f966e50362f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=VhNWeIBhD0ahO/HsUZnkkDtHhV0EasH/pgWjfOxpRkc=; b=bkb1rXYyFU5hNcge0JinQrDqZngqcTakb6MnA5dReBB5kkIlceSLCJ6PM+i4sH7eMT Ys5t9YizLNIrBHenG4zKoBaDKYr664HjUK35Cd6NjkW1+hx8fFhAh0s7LWIq+M6JzYCp DKIQzFMFDFns/vm8Nm6960cH8eZh3n5JYuXFFSc5u320z8BwYxcEkjKYw0uepOmmoT5k gNoJsx+W8wpQbFYjpe7rMXsV3DrMGTblRGz0NcoLBmAoBqzF5CEMvvz223te6qd+RAHo c3TFI33XkFEWJxt1wPnU5YDfCLQSjkuzAgPaQ/YzFspeXnnPW4pen85PDpR38lY86LDM AMVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=VhNWeIBhD0ahO/HsUZnkkDtHhV0EasH/pgWjfOxpRkc=; b=iLQVq23CCxv9ff6zY3zxIcUg1LkdTj+F4Un+7AepwlgEtQYNqWkcUQdXgib7gfWahA SPhyHLqjvdEmPXxnUWNDT4aUGKj9ayJ+pEqVkGgJgNmtdLqH/AI+JF6zQU9Tndv3ROET L2OSqhFiJe2t6SnRgp4r6vnBeDsK9Wi3mJlWThhV8A9c9RWJwDqxfAu5ZgRfKHp8Jsga vTlI160BtcV7jtfBdQc7K6rgL+VZ8Tn2RrFMvpbJIpsgxeaWSWu+Ku2ll+Er4MhsUzY+ JetGHwVMWQXiLpdVi9k9brLtYOjSuAuEUvoC6G2oSQJqpeKOg/OEPr1RO5ru6P6T3ClV uB+Q== X-Gm-Message-State: ACgBeo3FlWKZBbWkLvr3wz5pXoezC9+hlbNyGXFFpntbuMSR6wrLavzG 9PLCXDlCBhv7YFA3BTqaDx6iHxTVtCM= X-Google-Smtp-Source: AA6agR7dqhpV+NLotH9pCvm+py5M3jygWpuBvRUzcBFCO8zEZA3m+7jqUVFbB5J26A59y5xQlXV3+Q== X-Received: by 2002:a5d:584d:0:b0:220:6cca:706d with SMTP id i13-20020a5d584d000000b002206cca706dmr3964610wrf.363.1659703489781; Fri, 05 Aug 2022 05:44:49 -0700 (PDT) From: Xenia Ragiadakou To: xen-devel@lists.xenproject.org Cc: Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH v2 2/3] xen/cpu: Add missing white space around arithmetic operators Date: Fri, 5 Aug 2022 15:44:41 +0300 Message-Id: <20220805124442.1857692-3-burzalodowa@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220805124442.1857692-1-burzalodowa@gmail.com> References: <20220805124442.1857692-1-burzalodowa@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1659703511500100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Xenia Ragiadakou Acked-by: Jan Beulich Reviewed-by: Bertrand Marquis --- Changes in v2: - new patch xen/common/cpu.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xen/common/cpu.c b/xen/common/cpu.c index feb2a6634e..c48a1cabd2 100644 --- a/xen/common/cpu.c +++ b/xen/common/cpu.c @@ -25,12 +25,12 @@ const cpumask_t cpumask_all =3D { */ =20 /* cpu_bit_bitmap[0] is empty - so we can back into it */ -#define MASK_DECLARE_1(x) [(x)+1][0] =3D 1UL << (x) -#define MASK_DECLARE_2(x) MASK_DECLARE_1(x), MASK_DECLARE_1((x)+1) -#define MASK_DECLARE_4(x) MASK_DECLARE_2(x), MASK_DECLARE_2((x)+2) -#define MASK_DECLARE_8(x) MASK_DECLARE_4(x), MASK_DECLARE_4((x)+4) +#define MASK_DECLARE_1(x) [(x) + 1][0] =3D 1UL << (x) +#define MASK_DECLARE_2(x) MASK_DECLARE_1(x), MASK_DECLARE_1((x) + 1) +#define MASK_DECLARE_4(x) MASK_DECLARE_2(x), MASK_DECLARE_2((x) + 2) +#define MASK_DECLARE_8(x) MASK_DECLARE_4(x), MASK_DECLARE_4((x) + 4) =20 -const unsigned long cpu_bit_bitmap[BITS_PER_LONG+1][BITS_TO_LONGS(NR_CPUS)= ] =3D { +const unsigned long cpu_bit_bitmap[BITS_PER_LONG + 1][BITS_TO_LONGS(NR_CPU= S)] =3D { =20 MASK_DECLARE_8(0), MASK_DECLARE_8(8), MASK_DECLARE_8(16), MASK_DECLARE_8(24), --=20 2.34.1 From nobody Thu May 2 11:13:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1659703510; cv=none; d=zohomail.com; s=zohoarc; b=SudqBkVqVYTnRFhsxQMTNc85xbd9RKkKyuBfZWGUJCcO46gUmBYfTYaLUiJSCD8skQzfLbfMxuMg7dsvuEEgah2ddeEbqDGl4M/WP8u2E1F0VdaNPYPrtE5AJ0qQ6dSb8dLZpkbfo5KsES9mkbeXS59TYFHchXKxJNAV4iWtKIQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1659703510; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=sFXoKruA65y914muDfqfb3heuhx2eDlNA1LbdaLcdJE=; b=SqQWmt72EC68w9PmZRe3aFhuZOHUWJNewcaGNmtH5Y3188niT/fRObJ6sl2VWPQo//W38bADmVbTJUWo4byFrUwdWu57u2SxP3JEf/eFQ/a+GnzhZgcSnOtfAP/LCrHkOeOjxuFdkqLcVmZ24pvXRxPtVBrQC+vh7rU901+S6pE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1659703510064154.43237619505578; Fri, 5 Aug 2022 05:45:10 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.381159.615740 (Exim 4.92) (envelope-from ) id 1oJwhB-0005d7-QZ; Fri, 05 Aug 2022 12:44:53 +0000 Received: by outflank-mailman (output) from mailman id 381159.615740; Fri, 05 Aug 2022 12:44:53 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oJwhB-0005cZ-M5; Fri, 05 Aug 2022 12:44:53 +0000 Received: by outflank-mailman (input) for mailman id 381159; Fri, 05 Aug 2022 12:44:52 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oJwhA-0004qq-HF for xen-devel@lists.xenproject.org; Fri, 05 Aug 2022 12:44:52 +0000 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [2a00:1450:4864:20::331]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 66048627-14bc-11ed-924f-1f966e50362f; Fri, 05 Aug 2022 14:44:51 +0200 (CEST) Received: by mail-wm1-x331.google.com with SMTP id v131-20020a1cac89000000b003a4bb3f786bso3944704wme.0 for ; Fri, 05 Aug 2022 05:44:51 -0700 (PDT) Received: from uni.. ([2a02:587:ac1d:6c00:cdd9:ab5d:6d5c:1538]) by smtp.googlemail.com with ESMTPSA id g11-20020a5d698b000000b0021eff2ecb31sm3993185wru.95.2022.08.05.05.44.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 05:44:50 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 66048627-14bc-11ed-924f-1f966e50362f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=sFXoKruA65y914muDfqfb3heuhx2eDlNA1LbdaLcdJE=; b=lPVT10fSpCIuzfs8LUh1lG9iCx7udlSPhGPgZa03oWZKMQK/r1bZYXcybS8Wkf3sOg T/TfOSqnMyv39tnWcfcca0ZxxMzm8i4ZXxfehDsX6dYk9OIxoLP7DSFMJ0rkgrjwwnXZ q2X2kkQ2efpG7FBj7NSQpNs5buXz1TMkYdXKiVsDqPGXVK+nZM7Z1OpXCe9Tn7FQXv3X i9wc0TIxEJz2tZCk+NhNcF7hl5zVHmbrP3fG3cO8pd0IUGwp5iG+kJd7e8bqtHezxRev 0iGupSKB6A6pL2dZOIZTNRJMy67X1IGx42gWIY1L6yUBYq29DZHmxCdm6JEtZI2ZAaTt tN+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=sFXoKruA65y914muDfqfb3heuhx2eDlNA1LbdaLcdJE=; b=uDxwyg+Ph12ANMzX6nNR9M8Yw9678hIXsSVb+HliBpk0Yh4p0WxqlpHsy+/HzkUs56 vngCmhzWSL9IdDqDpERgaj8WBGCMmc5xLoEUUax1Aq1QMpRNsLPFycMz4upPo2ohHd+u LcfRYUgtZRAhwR+MY5REKphGlBydjbCz695pS6Q33RkcMxwy4JMvwf/fCavfiC20RR3c +BGq525XSd7koTU9RxyEbZVc+lTeYsQ2izhZxb7Jgohi9+91Hgo8s7f/RpwpPrDRdlqB RFX/PliQIojfZf4ozWw6b1l5xmSxp/I/AwWcGt5R6EJ871z9U4ECi1HbrpFTlFN7OVFx Om6A== X-Gm-Message-State: ACgBeo38+LI++haYE0N7Ttjsg36J13Ka6Worjc9ernYZAINYNU10DW6o 8LW8ZhEXxumZDKZodD439xyKE78sRZM= X-Google-Smtp-Source: AA6agR4aM79ulC1RIe13/8lQtz+dLQx8WfHLKipHeO5aB8ysY9YI+nYbW7UsnLsj27HbUtBVQwbGzQ== X-Received: by 2002:a05:600c:34d6:b0:3a3:31cc:e150 with SMTP id d22-20020a05600c34d600b003a331cce150mr9323512wmq.94.1659703491137; Fri, 05 Aug 2022 05:44:51 -0700 (PDT) From: Xenia Ragiadakou To: xen-devel@lists.xenproject.org Cc: Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH v2 3/3] xen/cpu: Undefine MASK_DECLARE_ macros after their usage Date: Fri, 5 Aug 2022 15:44:42 +0300 Message-Id: <20220805124442.1857692-4-burzalodowa@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220805124442.1857692-1-burzalodowa@gmail.com> References: <20220805124442.1857692-1-burzalodowa@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1659703511535100002 Content-Type: text/plain; charset="utf-8" MASK_DECLARE_ macros have only a limited scope. Remove their definitions immediately after their usage. Signed-off-by: Xenia Ragiadakou Acked-by: Jan Beulich Reviewed-by: Bertrand Marquis --- Changes in v2: - new patch xen/common/cpu.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xen/common/cpu.c b/xen/common/cpu.c index c48a1cabd2..4a048caa49 100644 --- a/xen/common/cpu.c +++ b/xen/common/cpu.c @@ -40,6 +40,11 @@ const unsigned long cpu_bit_bitmap[BITS_PER_LONG + 1][BI= TS_TO_LONGS(NR_CPUS)] =3D #endif }; =20 +#undef MASK_DECLARE_8 +#undef MASK_DECLARE_4 +#undef MASK_DECLARE_2 +#undef MASK_DECLARE_1 + static DEFINE_RWLOCK(cpu_add_remove_lock); =20 bool get_cpu_maps(void) --=20 2.34.1