From nobody Tue May 14 13:13:10 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1643368546; cv=none; d=zohomail.com; s=zohoarc; b=XmRm1uD0tmgKSqs/n+9SO5uxJYQX0W4wFbrHJRXKvRpPDyoQmWmmSpWWIYJB/LN43bztHPpnR4r9pw/YjlXYATf1kRGmdDS6crLT39+BfpPrdif6qkY1WKUZxSHf7FDpbA5d6HtGwvSKB1Gqq+DAl3mP36f/Xno8OztoPq4JnX8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1643368546; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=805GjbNny3dEAvFA9MSAjulcq3D6If5emLQGkaK/z+Q=; b=UlwQlkTDdUZKrDZB2ejThfFtfVvBO6HQ3mqLrmSWMneHpA8gnsq6EeL71W62qiba0sbvHRCu9Xjz91O/t5/SYF75LYERiHOdql6d/PplrazvBppSumjLv7NhjjWeG/7dACQZscnNcXD/WRd7l+/eJSsWEaGAFQT+QstA+98YzxE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1643368546950457.07187286975784; Fri, 28 Jan 2022 03:15:46 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-275-WgSI-YLYNyuiDRBsSZg-6g-1; Fri, 28 Jan 2022 06:15:42 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E6A0E807925; Fri, 28 Jan 2022 11:15:35 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3DAF37316C; Fri, 28 Jan 2022 11:15:32 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 3C14B4BB7C; Fri, 28 Jan 2022 11:15:29 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 20SBFRYO005314 for ; Fri, 28 Jan 2022 06:15:27 -0500 Received: by smtp.corp.redhat.com (Postfix) id 0CAF87316C; Fri, 28 Jan 2022 11:15:27 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.194.29]) by smtp.corp.redhat.com (Postfix) with ESMTP id 80A9F7316B for ; Fri, 28 Jan 2022 11:15:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643368546; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=805GjbNny3dEAvFA9MSAjulcq3D6If5emLQGkaK/z+Q=; b=OplJUaEN/hoKnBDISzIYOloxFvldni2lBy6HtEDD6ep5etbQ0bA1rSdtD9hiCWLzglmodH R3xcYsS9OuTMjSs2r0Pjw8F0/5p11bwEEw+Xxp+VvPhrTCTnvMZjIwPgk57hqsywiwigSW aygIXVu2e3QmnkXZm7ZYM/P9GunAjpM= X-MC-Unique: WgSI-YLYNyuiDRBsSZg-6g-1 From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH] domain_cgroup: Don't put semicolon at the end of VIR_GET_LIMIT_PARAMETER macro Date: Fri, 28 Jan 2022 12:15:01 +0100 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1643368550091100001 Content-Type: text/plain; charset="utf-8" In domain_cgroup.c there's VIR_GET_LIMIT_PARAMETER macro which has a semicolon at the end of its declaration. Well, remove it so that the places where macro is used have to put the semicolon explicitly. This helps with automatic reformatting (at least in vim). Signed-off-by: Michal Privoznik Reviewed-by: Laine Stump --- src/hypervisor/domain_cgroup.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hypervisor/domain_cgroup.c b/src/hypervisor/domain_cgroup.c index 61b54f071c..aea0817a7f 100644 --- a/src/hypervisor/domain_cgroup.c +++ b/src/hypervisor/domain_cgroup.c @@ -211,11 +211,11 @@ virDomainCgroupSetMemoryLimitParameters(virCgroup *cg= roup, return -1; \ \ if (rc =3D=3D 1) \ - set_ ## VALUE =3D true; + set_ ## VALUE =3D true =20 - VIR_GET_LIMIT_PARAMETER(VIR_DOMAIN_MEMORY_SWAP_HARD_LIMIT, swap_hard_l= imit) - VIR_GET_LIMIT_PARAMETER(VIR_DOMAIN_MEMORY_HARD_LIMIT, hard_limit) - VIR_GET_LIMIT_PARAMETER(VIR_DOMAIN_MEMORY_SOFT_LIMIT, soft_limit) + VIR_GET_LIMIT_PARAMETER(VIR_DOMAIN_MEMORY_SWAP_HARD_LIMIT, swap_hard_l= imit); + VIR_GET_LIMIT_PARAMETER(VIR_DOMAIN_MEMORY_HARD_LIMIT, hard_limit); + VIR_GET_LIMIT_PARAMETER(VIR_DOMAIN_MEMORY_SOFT_LIMIT, soft_limit); =20 #undef VIR_GET_LIMIT_PARAMETER =20 --=20 2.34.1