Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp857641ybh; Wed, 11 Mar 2020 12:13:49 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuaSS/QlOr+RtDLZA3HbfB7fAEfCNbuahgQHASMNkqoFhF4DO0K/IBsRbHnHlVxdnCLX6ZH X-Received: by 2002:aca:dc56:: with SMTP id t83mr135723oig.105.1583954029021; Wed, 11 Mar 2020 12:13:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583954029; cv=none; d=google.com; s=arc-20160816; b=tuYSnAr163/MM1KMJd6EgvFh5T+do2L/WrYiuzl9tJJ+1Oh+4EBgeqWd6rdudRgTZd oUbdkqwuM+ZVNA5A9+x3VcsqK6e9hIg7DmKtVk0E7rKD0a4+LC14XDqFjHkpPxuvTU9y aTk8RE/XdEzCoyjJ28+qW+K5KRq5vKfkO2598XTgkPBDUQZ2jFcACuoK5rf10AfgunfZ dLZvg2uoITBlqqV8Q0cYf0unIjtLbEM/Ryxv2YBmcgWsEhYeQhmN4CooWQr7VWBDeK4F x2kcf0YA4ozvUNilcfFxpr5AebYzBUYVG+U/LjqsjM4qbjizK/nlDzaXfEZ3jRHm8mC1 giag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=5L4TciC+tNkYgT9aNIpRQF0FAoCb9l4BAjFrnNt7nFY=; b=dLRJ+WJ0u4rgO8BWTg5HfTnt7mzWFwZzfIWj15nEYk8RT4qSP5g5fWah1/O29focVB 0mrmMlPUj6c4HJUtlhG9D137VTZ6CRCf5jlPL1KdiOgwBkmk8l7ijK44QIxWOKIoq0bz OYYeYGy1PXFndcUryxWZKhoQaO42v1CYNQNLje1fAq7tiu4LS//p6Y4RBvneqRKmSNGk Zc4oN9rcIpX4GytJ/eSkJ0eIWxbjhHj3VvyHgfmT9xcyjw7CyS6wDCZhvVgsDmcOwyM7 8jaOPyE0xBTt6sZ4FjPCWDLwHLsUCyjL5MpBnTWq2/bbrjmcpT5iV43gQdcupqWdWa4y b/OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=ZaRkYseR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si1602337oie.105.2020.03.11.12.13.21; Wed, 11 Mar 2020 12:13:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=ZaRkYseR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730974AbgCKTLl (ORCPT + 99 others); Wed, 11 Mar 2020 15:11:41 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:45453 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730858AbgCKTLk (ORCPT ); Wed, 11 Mar 2020 15:11:40 -0400 Received: by mail-wr1-f68.google.com with SMTP id m9so4079295wro.12 for ; Wed, 11 Mar 2020 12:11:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=5L4TciC+tNkYgT9aNIpRQF0FAoCb9l4BAjFrnNt7nFY=; b=ZaRkYseRVuRzovGqfb6Q9Lp+BkDzd4pKaChfeu7h6YDBJId4Bx4/eIO84sTUkVZYQb CfzJL8zoOuFkf0W2alkbdRNBhdX+vNtlmvIzC7U5j2QEHYjWw6mS56MoJczgblPaL7Ph XfxIteJ3a5kzAnmQUM1M433YpHbmbI8PCuAcU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5L4TciC+tNkYgT9aNIpRQF0FAoCb9l4BAjFrnNt7nFY=; b=dmuweYsFr1eQLrsOyf/xtDa/ikH2eCfzOThKuE+mPPkGHa5NAchz+VFiGNrzAKTHXk YeV1Wry7ZoC4VagK7V/dxLIUbumBdkUlFFvKK/Sr/Tbw2AZVlpc/7PSTVxGoR+/RZr2Z MvlvqG0cOF/86eiaogxta6H6ZRWuFzKPIJ2uP14Q38ae+eZbxWg7lqrhMEYSQ+Qm8ytG vgM8qunW6S0WKkri6AOSX7YeA/yCElifp8H+9q5fllecALSiHM6C/69XpU2tzzpPXWNZ MUJY2K7/A8jSQbmFf9a5sxaGiwaa6KjapoNqg+S3JRqsiy/CLoIZJj7byDCwdNlbgSbj 5v5Q== X-Gm-Message-State: ANhLgQ1i70rjNID6adxCl2VoHi9rtWFvRsCETXJuPUfYYDV24Nyzevee ZX2ebqR5AkhvXlVl9o17zU2YZA== X-Received: by 2002:a5d:5411:: with SMTP id g17mr5611761wrv.4.1583953898577; Wed, 11 Mar 2020 12:11:38 -0700 (PDT) Received: from lbrmn-lnxub113.broadcom.net ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id i6sm7073030wru.40.2020.03.11.12.11.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2020 12:11:37 -0700 (PDT) From: Scott Branden To: Andy Whitcroft , Joe Perches , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Scott Branden Subject: [PATCH] checkpatch: always allow C99 SPDX License Identifer comments Date: Wed, 11 Mar 2020 12:11:28 -0700 Message-Id: <20200311191128.7896-1-scott.branden@broadcom.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Always allow C99 comment styles if SPDK-License-Identifier is in comment even if C99_COMMENT_TOLERANCE is specified in the --ignore options. Signed-off-by: Scott Branden --- scripts/checkpatch.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index a63380c6b0d2..c8b429dd6b51 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3852,8 +3852,8 @@ sub process { } } -# no C99 // comments - if ($line =~ m{//}) { +# no C99 // comments except for SPDX-License-Identifier + if ($line =~ m{//} && $rawline !~ /SPDX-License-Identifier:/) { if (ERROR("C99_COMMENTS", "do not use C99 // comments\n" . $herecurr) && $fix) { -- 2.17.1