From patchwork Fri Jan 20 11:46:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Borntraeger X-Patchwork-Id: 46300 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp151236wrn; Fri, 20 Jan 2023 03:48:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXu/XbWSxKwieLm9e3Dj6E/rbzeUBzA2TBFrZT00kLnkqtAjVeTDgIzWQv6djT5eQng5EM2O X-Received: by 2002:a17:90b:2690:b0:227:21f5:8295 with SMTP id pl16-20020a17090b269000b0022721f58295mr14299138pjb.47.1674215307042; Fri, 20 Jan 2023 03:48:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674215307; cv=none; d=google.com; s=arc-20160816; b=gpO6/jN27iSbdb8d7N4DEGFV81mInZ67GWpDPKFPI7nA8vai2Mm0Ow8zH06rfOAEVG 0JLh20O4BiHHKgQlGyumBWgVZnTW6QxOp3ha0OdYIJoZZCZUwJCWQ5kM6sc/EGnGENCc pEpJQVzgV/TR5wKQjTvtDyNUuesXqJJUAeQEBhhnSCXRbLJ11RKWggq1RnhNsnNBtgue 37MacsRGBr+d3mLT3rz3NKe9T/JbJ4fJq7mzW/3oBDtFJEuMI+svK0FbBFOn2JmKnhzt KD8vZxMZ6yahhaoRTkzjAm74qNLzT7DYzEcLfAjhz6HjDxS4hhHEhyF2+cF9ZVb7SdB6 Puww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=rfHbfchEBFp0rSAQl1DiDL6znkjA4C2YnGHx5ZHq4jY=; b=je3gTRxrb6cdnDAMBS9PzcoYmIUYHxqVY/lixJMcnZtqNORJ2ozFPxHW/G8XF1gMR8 KYiKzyjyec+/M9sCEq+zTN6fgjSUxOpjVuNxuL6riUMO1UIpn/XhsGCTcBnW+yz6FNvz +5KG7edFwXSIvgfB+nqYyxbKGVJvuYbEBEdKAq10mWjfyVY2LhDo7Ok+QaCcPN/eawAB Zbc+Q3N6RFan9e6SsaDBo3MkQfJWmjEeRGlUQ4P1brIvZWaGdcDoFwHI71tEFrykYnDt gJ5Xk6sVQC1/vpD1mv3XGCSXDa/nJDWdZZ5v5Jg3XfOFgw5LeHbrDYpcjA/aXWfjm0w4 tNDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=qgrrFYf3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t7-20020a17090aba8700b002197759873bsi2206099pjr.115.2023.01.20.03.48.12; Fri, 20 Jan 2023 03:48:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=qgrrFYf3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229879AbjATLr2 (ORCPT + 99 others); Fri, 20 Jan 2023 06:47:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229940AbjATLrU (ORCPT ); Fri, 20 Jan 2023 06:47:20 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63FE8B2791 for ; Fri, 20 Jan 2023 03:47:01 -0800 (PST) Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30KBdohc021838; Fri, 20 Jan 2023 11:46:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=rfHbfchEBFp0rSAQl1DiDL6znkjA4C2YnGHx5ZHq4jY=; b=qgrrFYf3C5wqVEb+bAi7r4fDHNLbrLWcqRGo+JlTcHt/d90bfKjVcz3Ey0xxDvqS0L6X xyOYM4DEfN4Z98k+etAojdGFQTXC328oJldkL9mRtguZRf3BJyW6B042JlZXuMEq8z7e izFyPHFWsGHaUhmZiV4g/UBshtkXZgiZsYS5vNtdHfoEl2jrk4ZnrZ98MDxoB8h+Uep0 SNInd1lDArmUXThUWRKdNQmuJR4XCdddtc0VSzamruJcfnuHdTnqXO+p/58dSxhc1dMl hbUKxuBO6nR/DOZzwDLa8NbWQeVYqzwTmad62Q36ExU9MUO6969IckEGJXCZx1Ri89IW Vg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3n7sk6h6av-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 11:46:55 +0000 Received: from m0098410.ppops.net (m0098410.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 30KBeQJ2024356; Fri, 20 Jan 2023 11:46:54 GMT Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3n7sk6h693-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 11:46:54 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 30JJSwff007923; Fri, 20 Jan 2023 11:46:52 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma06ams.nl.ibm.com (PPS) with ESMTPS id 3n3knfqxj1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 11:46:52 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 30KBknY230408974 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 20 Jan 2023 11:46:49 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C864820043; Fri, 20 Jan 2023 11:46:49 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 83A642004B; Fri, 20 Jan 2023 11:46:49 +0000 (GMT) Received: from m83lp52.lnxne.boe (unknown [9.152.108.100]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 20 Jan 2023 11:46:49 +0000 (GMT) From: Christian Borntraeger To: Andy Whitcroft , Joe Perches Cc: Dwaipayan Ray , Lukas Bulwahn , linux-kernel@vger.kernel.org Subject: [PATCH 1/1] checkpatch: recognise NOKPROBE_SYMBOL for blank line detection after function/struct/union/enum Date: Fri, 20 Jan 2023 12:46:49 +0100 Message-Id: <20230120114649.117018-1-borntraeger@linux.ibm.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: enZE0vXAWZ3GVKJtfp6KkZS09IBFdrNH X-Proofpoint-ORIG-GUID: PvYaePtMG2ln00MEH766r9LvLYGLrED6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-20_07,2023-01-20_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 adultscore=0 bulkscore=0 impostorscore=0 mlxscore=0 mlxlogscore=999 spamscore=0 clxscore=1011 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301200110 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755541989780037521?= X-GMAIL-MSGID: =?utf-8?q?1755541989780037521?= NOKPROBE_SYMBOL should be treated like EXPORT_SYMBOL to avoid false positives. Signed-off-by: Christian Borntraeger --- scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 78cc595b98ce..037acbcee0e1 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3995,6 +3995,7 @@ sub process { $line =~ /^\+/ && !($line =~ /^\+\s*$/ || $line =~ /^\+\s*(?:EXPORT_SYMBOL|early_param)/ || + $line =~ /^\+\s*NOKPROBE_SYMBOL/ || $line =~ /^\+\s*MODULE_/i || $line =~ /^\+\s*\#\s*(?:end|elif|else)/ || $line =~ /^\+[a-z_]*init/ ||