From patchwork Tue Sep 25 20:46:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flavio Leitner X-Patchwork-Id: 974734 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sysclose.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sysclose.org header.i=fbl@sysclose.org header.b="m0WSZiYy"; dkim-atps=neutral Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42KY5Z64xKz9s3C for ; Wed, 26 Sep 2018 06:46:42 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 6675E10AE; Tue, 25 Sep 2018 20:46:39 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 1943510AA for ; Tue, 25 Sep 2018 20:46:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sender-of-o51.zoho.com (sender-of-o51.zoho.com [135.84.80.216]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id BD444756 for ; Tue, 25 Sep 2018 20:46:35 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1537908390; cv=none; d=zoho.com; s=zohoarc; b=Tw1isSUJmMRvE/jmBtt8W7gbZ4xahg4ELkEAv/bBVkn9t29pQYk/XPLnx95qdbvCP2YA43TrGTE6sWCKJxgRjxcQsAninIDl0HEIjnBsFvlxW3PX/ir0gTk/oNJKaiEY2r0kjC3wug4rdTx6dQXR8CtH7bQtJ2G7bMW4ErhyhyI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1537908390; h=Cc:Date:From:Message-ID:Subject:To:ARC-Authentication-Results; bh=ecBzRkhSKXMC6KhEU1opy+pzqQrq+5TLsejW3BzQK7U=; b=UKpL/Myy4sWwXIGD7M3GSAG8/S5nhV1YLMwO8eUxeiXDwimmzfm+SbdInLQ7MoTIYwtp4iHFqu4ilqVvULVhOp7fqS2Ol9+0UiOX+2dAa3Wl2Cs9ynlp0fTVVnrk6yOdJyhFUM7DH/Pchj2LmV1EF4mpTgiGHbj6W5l+ZogSa9A= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=sysclose.org; spf=pass smtp.mailfrom=fbl@sysclose.org; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1537908390; s=zoho; d=sysclose.org; i=fbl@sysclose.org; h=From:To:Cc:Subject:Date:Message-Id; l=1457; bh=ecBzRkhSKXMC6KhEU1opy+pzqQrq+5TLsejW3BzQK7U=; b=m0WSZiYywDqv6apW9gGGSFkp0ZbVCG3yDIAo/uEH2+oAnzbbYPAXF9SIdXcH9uzn C5M0cp7h2LIv6zHKnrfnEy4QzsRgNlYMXBSw4P0om9BxQGDdqig6jYXn83zlRIIg+i4 6R9MUtgW5IU4Va2qjR9xOMkq2hb6pnRARZzVC80Q= Received: from localhost (177.183.215.101 [177.183.215.101]) by mx.zohomail.com with SMTPS id 1537908388794163.184245932836; Tue, 25 Sep 2018 13:46:28 -0700 (PDT) From: Flavio Leitner To: dev@openvswitch.org Date: Tue, 25 Sep 2018 17:46:24 -0300 Message-Id: <20180925204624.19973-1-fbl@sysclose.org> X-Mailer: git-send-email 2.14.4 X-ZohoMailClient: External X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH] sparse: check if floatn-common.h is available. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org This skip including floatn-common.h if it's not available since it was introduced in glibc 2.27 and OVS doesn't not actually require that to work with previous glibc version. Fixes: 07aec2ac1 sparse: Support newer GCC/glibc versions. Signed-off-by: Flavio Leitner --- configure.ac | 2 +- include/sparse/bits/floatn.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ba9e7d66d..aa92b151a 100644 --- a/configure.ac +++ b/configure.ac @@ -110,7 +110,7 @@ AC_CHECK_MEMBERS([struct sockaddr_in6.sin6_scope_id], [], [], #include ]]) AC_CHECK_FUNCS([mlockall strnlen getloadavg statvfs getmntent_r sendmmsg clock_gettime]) AC_CHECK_HEADERS([mntent.h sys/statvfs.h linux/types.h linux/if_ether.h]) -AC_CHECK_HEADERS([linux/net_namespace.h stdatomic.h]) +AC_CHECK_HEADERS([linux/net_namespace.h stdatomic.h bits/floatn-common.h]) AC_CHECK_HEADERS([net/if_mib.h], [], [], [[#include #include ]]) diff --git a/include/sparse/bits/floatn.h b/include/sparse/bits/floatn.h index a247331eb..624a1660a 100644 --- a/include/sparse/bits/floatn.h +++ b/include/sparse/bits/floatn.h @@ -27,6 +27,9 @@ #define __HAVE_FLOAT128 0 #define __HAVE_FLOAT64X 0 +#ifdef HAVE_BITS_FLOATN_COMMON_H +/* Introduced in glibc 2.27 */ #include +#endif #endif /* for sparse */