From patchwork Thu Jan 12 11:35:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 121911 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0A324423B5; Thu, 12 Jan 2023 12:36:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C0F5042D22; Thu, 12 Jan 2023 12:36:11 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id CAD0740E25 for ; Thu, 12 Jan 2023 12:36:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673523370; x=1705059370; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=j6EJRx1rzP+vhIGrKHNYhAPgNZZ6MPoIjsRedrgbliw=; b=BgySlDITP0lMr9esQOg5o7CSpXxzPjUpf6GnsEUe7BWaVF6y++8Deyxz ysFhEVZayw4augqQagnqxWJsRz7/NvvLNY+akF+DPwtBmQS0A2BvQX/EE LEgd3TPvAr5mxFN3lobG5lzGS3e3AHYYfuvc/yLLbqmPq+5OmHr5iK6rA 2PjaASB5r6dX4lbdpfR58wdqpmz4MVrQqmgp88cfHJkHM+DEytjpiWsSd QGoy2ZunnpkjGsnDa23gGYuSic0mfvT6oW24JY5IhTjg2H9BzTXEqyaE/ JOx8fVQYNIvNwdjR9AauCudxkjGentJKYlTLK7tHTMDzQVLtRDP+BUKL3 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="323742516" X-IronPort-AV: E=Sophos;i="5.96,319,1665471600"; d="scan'208";a="323742516" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2023 03:36:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="690102017" X-IronPort-AV: E=Sophos;i="5.96,319,1665471600"; d="scan'208";a="690102017" Received: from silpixa00401385.ir.intel.com ([10.237.214.166]) by orsmga001.jf.intel.com with ESMTP; 12 Jan 2023 03:36:07 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: thomas@monjalon.net, david.marchand@redhat.com, mb@smartsharesystems.com, roretzla@linux.microsoft.com, Bruce Richardson Subject: [RFC PATCH 0/1] Specify C-standard requirement for DPDK builds Date: Thu, 12 Jan 2023 11:35:55 +0000 Message-Id: <20230112113556.47485-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Traditionally, DPDK has never specified a minimum C standard used either in DPDK builds or for applications using DPDK. Following discussion on-list about C standards, this RFC attempts to start the process of codifying what our standards expectations are. No code changes are made by this RFC, instead only the build parameters are changed to explicitly specify: * C99 standard is used to build DPDK itself. This is supported by all supported compiler versions of GCC and Clang. * The headers are checked for compatibility with gcc89 standard, which was the default standard used by the oldest supported version of GCC. DPDK headers do not build with the official C89 standard, and, to the best of my knowledge, have never done so. Bruce Richardson (1): build: increase minimum C standard for DPDK builds buildtools/chkincs/meson.build | 1 + meson.build | 1 + 2 files changed, 2 insertions(+) --- 2.37.2