From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3E781A0C4B; Tue, 27 Jul 2021 15:19:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C2CD1410F0; Tue, 27 Jul 2021 15:19:25 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id C548E410ED for ; Tue, 27 Jul 2021 15:19:23 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16RDFf9K028746; Tue, 27 Jul 2021 06:19:22 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=TZFdEqVNR13di3UEJDXBmgHxUXzGvqUteSsmcVzH/9Q=; b=G2FvalI9+X71lJx2Vt4jo51jUN/WE78IY9zuug3wjFDyMQL5uPg4uxdu3/zbi9r05dG/ iAFOKdUHV2fQ0MoGBLW77rUmdief56MmffpyYu4zyNeI+v9NKdEMLJWgMvml5FV9Vrlp 3M/VSZhFGi7wxcXQkzpY1v+Ac2LR7TdxqMzUePPaBNJ0SouWg2VgZZJPkKsY1KjhC1JB kJbv24L6E5SnbYtWEOSVgFjpXnNmh1Ez0twGMrdwslWQrehzwDtnzOCqyfFxiWnr2p9Y 1g0eh9EbsXQIXy5YexJqkfBJaOS7DfRI+/UgmbHpBfhrYFSF+9xWfjqEIAC4CO5TYlnc jg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 3a235e2w1e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 27 Jul 2021 06:19:22 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 27 Jul 2021 06:19:21 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Tue, 27 Jul 2021 06:19:21 -0700 Received: from localhost.localdomain (unknown [10.28.34.39]) by maili.marvell.com (Postfix) with ESMTP id 14DA43F7041; Tue, 27 Jul 2021 06:19:19 -0700 (PDT) From: Tomasz Duszynski To: , Thomas Monjalon CC: , Tomasz Duszynski Date: Tue, 27 Jul 2021 08:19:17 -0500 Message-ID: <20210727131917.120743-1-tduszynski@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 51SMjAKCQHTh4SoTOEUCTLs1m4ixxj5y X-Proofpoint-GUID: 51SMjAKCQHTh4SoTOEUCTLs1m4ixxj5y X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-27_07:2021-07-27, 2021-07-27 signatures=0 Subject: [dpdk-dev] [PATCH] devtools: relax headline prefix check 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 Sender: "dev" In order to avoid code duplication common code shared across drivers is stored under drivers/common. Currently if one needs to introduce changes to common and particular driver i.e common/driver and net/driver separate patches needs to be prepared otherwise warning about wrong headline prefix gets printed. In order to avoid that script should allow cases where changes to drivers/common/driver and drivers/group/driver belong to the same patch. Signed-off-by: Tomasz Duszynski --- devtools/check-git-log.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devtools/check-git-log.sh b/devtools/check-git-log.sh index 9988bf863d..ee37e65ae4 100755 --- a/devtools/check-git-log.sh +++ b/devtools/check-git-log.sh @@ -80,6 +80,10 @@ bad=$(for commit in $commits ; do drv=$(echo "$files" | grep '^drivers/' | cut -d "/" -f 2,3 | sort -u) drvgrp=$(echo "$drv" | cut -d "/" -f 1 | uniq) if [ $(echo "$drvgrp" | wc -l) -gt 1 ] ; then + if [ $(echo "$drvgrp" | grep -c "common") -eq 1 ] && + [ $(echo "$drvgrp" | grep -cv "common") -eq 1 ] ; then + continue + fi echo "$headline" | grep -v '^drivers:' elif [ $(echo "$drv" | wc -l) -gt 1 ] ; then echo "$headline" | grep -v "^drivers/$drvgrp" -- 2.25.1