From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v9] checkpatches.sh: Add checks for ABI symbol addition Date: Mon, 16 Jul 2018 01:12:38 +0200 Message-ID: <3596307.7gyfprgr2O@xps> References: <20180115190545.25687-1-nhorman@tuxdriver.com> <20180627180101.16442-1-nhorman@tuxdriver.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, john.mcnamara@intel.com, bruce.richardson@intel.com, Ferruh Yigit , Stephen Hemminger To: Neil Horman Return-path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 9AD7E2BD5 for ; Mon, 16 Jul 2018 01:12:50 +0200 (CEST) In-Reply-To: <20180627180101.16442-1-nhorman@tuxdriver.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 27/06/2018 20:01, Neil Horman: > Recently, some additional patches were added to allow for programmatic > marking of C symbols as experimental. The addition of these markers is > dependent on the manual addition of exported symbols to the EXPERIMENTAL > section of the corresponding libraries version map file. The consensus > on review is that, in addition to mandating the addition of symbols to > the EXPERIMENTAL version in the map, we need a mechanism to enforce our > documented process of mandating that addition when they are introduced. > To that end, I am proposing this change. It is an addition to the > checkpatches script, which scan incoming patches for additions and > removals of symbols to the map file, and warns the user appropriately > > Signed-off-by: Neil Horman > CC: thomas@monjalon.net > CC: john.mcnamara@intel.com > CC: bruce.richardson@intel.com > CC: Ferruh Yigit > CC: Stephen Hemminger > > --- > + tmpinput=$(mktemp checkpatches.XXXXXX) > + git format-patch --find-renames \ > + --no-stat --stdout -1 $commit > ./$tmpinput In case $tmpinput is an absolute path (like in /tmp), we must not prepend it with ./ I fix it when applying. Applied, thanks