From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTP id C260D5A026D for ; Fri, 4 Aug 2023 09:04:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1691132644; 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: in-reply-to:in-reply-to:references:references; bh=X+WD2XBxfKZNBSRGXYYvgcI/zWvw5QVSbatQW68Ona4=; b=BT81mSi2q78668BzTy8VEL5wXCiqaCnlfQmK709yvmlBR+Tpp8okXeGDN7I+7s2QqL4Z90 PKsvHz94eo0mdMsRu+Oj1de7ZaaS3i5uGqNFua95zt+Db0WO7cmy/EeAXttY9BAG9O20Qe 6+7rcdNn9z1aDt8vwWBgykqxXyIdx9c= Received: from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-47-dJzXDOhkNS6BzOVrX-1syA-1; Fri, 04 Aug 2023 03:04:00 -0400 X-MC-Unique: dJzXDOhkNS6BzOVrX-1syA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 230863C0ED50; Fri, 4 Aug 2023 07:04:00 +0000 (UTC) Received: from elisabeth (unknown [10.39.208.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 772244087C82; Fri, 4 Aug 2023 07:03:59 +0000 (UTC) Date: Fri, 4 Aug 2023 09:03:32 +0200 From: Stefano Brivio To: David Gibson Subject: Re: [PATCH 0/3] RFC: Allow C11 extensions in the passt/pasta code Message-ID: <20230804090332.5a1d7678@elisabeth> In-Reply-To: <20230801033647.2135844-1-david@gibson.dropbear.id.au> References: <20230801033647.2135844-1-david@gibson.dropbear.id.au> Organization: Red Hat MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: BZIHTB5YESPJ6P5WMTVOMC5JTCDVTN64 X-Message-ID-Hash: BZIHTB5YESPJ6P5WMTVOMC5JTCDVTN64 X-MailFrom: sbrivio@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: passt-dev@passt.top 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: On Tue, 1 Aug 2023 13:36:44 +1000 David Gibson wrote: > As discussed on our recent calls, the C11 standard introduces > anonymous structure and union members and static assertions, amongst > other things. Both of these could be useful in a few places in > passt/pasta to make the code more readable and safer. > > However, at the moment, the compiler flags we use only allow C99 code. > This series allows C11 code, and makes some fairly obvious cleanups by > using it. > > It would be nice to get an opinion on this reasonably quickly, because > I have other patches in the works that will look different depending > on whether or not they can use C11 features. > > David Gibson (3): > Allow C11 code, not just C99 code > Use C11 anonymous members to make poll refs less verbose to use > Use static assertion to verify that union epoll_ref is the right size Applied. -- Stefano