From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=SaKOE1Uw; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTPS id F25195A026E for ; Thu, 26 Feb 2026 17:25:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1772123119; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yMz8YQVcw1wXx0p+BosMYkycrlZhUfgcb3zKf7xxW+s=; b=SaKOE1UwEZI2Fj8xmnIgnSa/ccCxPrL8WP3yDTvGZOjEaf4NzQTmkDGBBTfqfyO7zwagvE R14z6QhAnlphlI3S4ZHFYu4/Mjw6qt/4KSOj6oQsDmpX1H/r5qXWC0i4w3sVhcW6rFxDiW x/wM0xwpbWSO6jmGwahyqKS7YDU2sBE= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-119-M3S4ZxVONgqzOLbZvuMmpw-1; Thu, 26 Feb 2026 11:25:15 -0500 X-MC-Unique: M3S4ZxVONgqzOLbZvuMmpw-1 X-Mimecast-MFC-AGG-ID: M3S4ZxVONgqzOLbZvuMmpw_1772123115 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 549661954115; Thu, 26 Feb 2026 16:24:54 +0000 (UTC) Received: from lenovo-t14s.redhat.com (unknown [10.45.225.86]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1E38B1956053; Thu, 26 Feb 2026 16:24:52 +0000 (UTC) From: Laurent Vivier To: passt-dev@passt.top Subject: [PATCH trivial] checksum: fix clang-tidy error Date: Thu, 26 Feb 2026 17:24:51 +0100 Message-ID: <20260226162451.1717333-1-lvivier@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: e_lyV95JFPDP09yCiTGqy-3hBZ-rgpPKjNQNSfodGbo_1772123115 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true Message-ID-Hash: 3PTJ3AI3NBOX7QJ6ZCZCDPTTWZRSRLQA X-Message-ID-Hash: 3PTJ3AI3NBOX7QJ6ZCZCDPTTWZRSRLQA X-MailFrom: lvivier@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Laurent Vivier , jfiusdq@proton.me X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Fix the following error reported by clang-tidy $ make clang-tidy ... checksum.c:284:2: error: preprocessor condition can be written more concisely using '#ifdef' [readability-use-concise-preprocessor-directives,-warnings-as-errors] 284 | #if defined(__AVX2__) | ^~ ~~~~~~~~~~~~~~~~~ | ifdef __AVX2__ Fixes: 036fb8770cc2 ("checksum: add VSX fast path for POWER8/POWER9") Cc: jfiusdq@proton.me Signed-off-by: Laurent Vivier --- checksum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checksum.c b/checksum.c index 828f9ecc9c02..bfba6f78b293 100644 --- a/checksum.c +++ b/checksum.c @@ -281,7 +281,7 @@ void csum_icmp6(struct icmp6hdr *icmp6hr, icmp6hr->icmp6_cksum = csum(payload, dlen, psum); } -#if defined(__AVX2__) +#ifdef __AVX2__ #include /** -- 2.53.0