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 A144A4334C; Fri, 17 Nov 2023 05:35:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8BB974069D; Fri, 17 Nov 2023 05:35:10 +0100 (CET) Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) by mails.dpdk.org (Postfix) with ESMTP id 0AA2840271 for ; Fri, 17 Nov 2023 05:35:09 +0100 (CET) Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-41f155c862bso9048881cf.2 for ; Thu, 16 Nov 2023 20:35:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700195708; x=1700800508; darn=dpdk.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=KFaX27rqtwOxyFcdVMkRRsG8AyxNIbMJYExGxWR5pV8=; b=La/4x02oIINt8YZOkBS4ktrp/YRhe6u3IBZkbsMpWNP4RWO2i6qvEMMrRiidrLw9OD G6yLnW6aQAi5i6RzGXaGLpgGHWPObrRNLlYqtVj9TbxP7Cm5o7LgkqFlcj3muxBbeaZU QnJOPhta01DN42XYmRSQ4Kl9+cxcnfMu6RGKtjaPPe0cFVXKGiTyE/SOzlCJgo/t+ySM /ynbPPNxBd3Uxp7LhBg+ILmzdnkeoumd1k1lr1RarFuf+Lw2FPKOkRMKN90Dr5A417Vq 19Uqn6VMsP0UEk8HG5mXxKklsVGXszv0q6JSY481OaSLT2EddLvUMRIsPGQLqBPKXF8K 5tcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700195708; x=1700800508; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KFaX27rqtwOxyFcdVMkRRsG8AyxNIbMJYExGxWR5pV8=; b=V0pqevVjWLWZ5HHJsfPRdIIGEV4pTt0PhdWmagTkFCS42K/sIC0wrxtwOTINMtmtAG NRv6rDqRpOZUGcAQkaaEGXEM8/N7KohfRVrjyw60zCTa1ckXYhfg0vVK4gSNWlFvUSlJ BcComOgacMGJxAiQuefB7mapXqKOPVOvWY+NqJ4RKHCqcOAj8GVgN9G5uLlgxCDBm4Ce LOK2RVMx/u4Xf5fXAXBNp6OnnFSBLysbW7QNC4J39fpJIIbBUuTONF7uFE+62hLu+lG5 YTeQtivD0e+vgZO2B1701cvMn4bONyr0rKFXGg6XmTJ4yFNdYi3C2IxoYbdp/Ub2D53s i3AQ== X-Gm-Message-State: AOJu0YyDXlWPMHt/4omOqiYm+F2ORJQPQRUN63OukPjctXCA9hqvvR2y tHiHQW64jQmGJJqJ1dHJX/BMjEhroodFcGTr7aQ= X-Google-Smtp-Source: AGHT+IG72c/W14vAZsqFxwOLwuJwcgNGIM9lUDTZA5LqTCsUFNEzg3iBRa8VfkdDdcR6RfWlTC/y+k9IfutqQW0F/Ss= X-Received: by 2002:a05:622a:34d:b0:419:51d1:5456 with SMTP id r13-20020a05622a034d00b0041951d15456mr11859485qtw.22.1700195708392; Thu, 16 Nov 2023 20:35:08 -0800 (PST) MIME-Version: 1.0 References: <20231004122753.3261337-1-jerinj@marvell.com> In-Reply-To: <20231004122753.3261337-1-jerinj@marvell.com> From: Jerin Jacob Date: Fri, 17 Nov 2023 10:04:42 +0530 Message-ID: Subject: Re: [dpdk-dev] [PATCH 1/2] devtools: support skipping forbid rule check To: jerinj@marvell.com Cc: Thomas Monjalon , dev@dpdk.org, david.marchand@redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Wed, Oct 4, 2023 at 11:56=E2=80=AFPM wrote: > > From: Jerin Jacob > > In some case, a set of files in directory may need to skip forbid > rules check. > > Added an infrastructure to enable the same using SKIP_FILES variable. > > Signed-off-by: Jerin Jacob Ping for review > --- > devtools/check-forbidden-tokens.awk | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/devtools/check-forbidden-tokens.awk b/devtools/check-forbidd= en-tokens.awk > index 026844141c..90d3a64f8e 100755 > --- a/devtools/check-forbidden-tokens.awk > +++ b/devtools/check-forbidden-tokens.awk > @@ -58,8 +58,11 @@ BEGIN { > for (i in deny_folders) { > re =3D "^\\+\\+\\+ b/" deny_folders[i]; > if ($0 ~ re) { > - in_file =3D 1 > - last_file =3D $0 > + # Check only if the files are not part of SKIP_FI= LES > + if (!(length(SKIP_FILES) && ($re ~ SKIP_FILES))) = { > + in_file =3D 1 > + last_file =3D $0 > + } > } > } > } > -- > 2.42.0 >