From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnon Warshavsky Subject: Re: [PATCH v10] devtools: alert on new instances of rte_panic and rte_exit Date: Sun, 27 May 2018 23:34:19 +0300 Message-ID: References: <1524723664-30510-11-git-send-email-arnon@qwilt.com> <1525070752-21085-1-git-send-email-arnon@qwilt.com> <5254321.ZC84c43z8L@xps> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: dev@dpdk.org, "Burakov, Anatoly" , "Lu, Wenzhuo" , "Doherty, Declan" , jerin.jacob@caviumnetworks.com, Bruce Richardson , "Yigit, Ferruh" , Neil Horman To: Thomas Monjalon Return-path: Received: from mail-it0-f50.google.com (mail-it0-f50.google.com [209.85.214.50]) by dpdk.org (Postfix) with ESMTP id 71A262C54 for ; Sun, 27 May 2018 22:34:20 +0200 (CEST) Received: by mail-it0-f50.google.com with SMTP id z6-v6so12647285iti.4 for ; Sun, 27 May 2018 13:34:20 -0700 (PDT) In-Reply-To: <5254321.ZC84c43z8L@xps> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This is consuming stdin. > I guess the checkpatch.pl will have nothing to check in the next step. > We should merge Neil's patch first, because he is adding a tmpfile > to solve the issue of stdin read only once. > Yup. Missed the fact stdin is consumed. temp file is a good idea > > > + [ $? -eq 0 ] || return 0 > > This test looks reversed: if the result is not 0, we should not return 0. > And by the way, I think it is better to continue with other checks. > Neil's patch is setting ret=1, continue and return at the end. > > > report=$($DPDK_CHECKPATCH_PATH $options - 2>/dev/null) > As it was agreed that this check should only warn and not fail the tests, The actual situation is that the function check_forbidden_additions() always returns zero. Once Neils patch is in, I can align to the return value propagation, but the current code never fails (that may change of course for future different tokens) thanks /Arnon