Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6174857ybv; Tue, 18 Feb 2020 11:22:12 -0800 (PST) X-Google-Smtp-Source: APXvYqxkh6/6eu3Nga1+ld1FAnK3RIjOC/hMYfoE9itA3AQy0EoekamcDuZF1AoV7LrU31lXmBrd X-Received: by 2002:aca:1a17:: with SMTP id a23mr2160211oia.84.1582053732105; Tue, 18 Feb 2020 11:22:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582053732; cv=none; d=google.com; s=arc-20160816; b=qv5tCWoD2sU/r7XXsGeDIRTfqK58EdvnJJlK/7S0ArhHFcVLrCdqXV6hV1mIE1xvPb M145AIQj4qsCFgLq9llQIoMVZA3gCRf5bXJGMqy5kExRz/dtOgr+YFxbKx1n3OR49fSt 35nkMkZnVWXKbkoF3r/+wEkI4FZo8H811FLg/6V0aQgVs0Waa4bbqJdRKkcx8f7Ojmdd K3/Vh2Lm90l0M+p1OAoq4sOSrz/vf41cHXinoV9yM5eQ0JGtdX+MG9hrygTHc3gVkQIZ oqXgMJblFKCLxUnVVwVYHiKqwMPWI81HrpFwTs/uLAPvXoCTcsnHk2YjLWYUrmaW+mEx yjxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=zqbO0R0oWAc9eRipttSvdRvY2bo5r8WCm9pM9xI7PzY=; b=VEQSvEcTy3AMHquE+ExyX/ka3p1zcugcLPFEaXcOEwjxKvppt3g4KT3vi6OlqQY15o ffyFt3gv+bQImT0n9+/ZFh2DWvWzPRDzHU2xfwv1iOBt1G9KPsUw+gQ535GWbIJ87dSt n+LdScFtGG7aA46FOcWWBpDHPdrZDUnG+ODa4cg6wNO/7SgKM4odnH2XacGzzmlQ/QCk E2W6Ie4VnIh33gGjRrsB2541sz8Z9Qe3tLU6oHyuB58pZ28BzmDoG3bOw/jSH3OYOe6I ji/wt62xFws/DFhXydxyRZVI6NcyBPruXT/6/7H42quUB2fDJtbmDFVOinlu0JxUZ9Rz 2nIw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d83si8180660oib.166.2020.02.18.11.21.58; Tue, 18 Feb 2020 11:22:12 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726384AbgBRTVv (ORCPT + 99 others); Tue, 18 Feb 2020 14:21:51 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:57960 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726283AbgBRTVv (ORCPT ); Tue, 18 Feb 2020 14:21:51 -0500 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01IJLlJ7110159; Tue, 18 Feb 2020 14:21:47 -0500 Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0b-001b2d01.pphosted.com with ESMTP id 2y89aautkf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Feb 2020 14:21:46 -0500 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 01IJKMFH001444; Tue, 18 Feb 2020 19:21:27 GMT Received: from b03cxnp08025.gho.boulder.ibm.com (b03cxnp08025.gho.boulder.ibm.com [9.17.130.17]) by ppma03dal.us.ibm.com with ESMTP id 2y6896ut8x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Feb 2020 19:21:26 +0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01IJLPwj28049828 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Feb 2020 19:21:25 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A82F9BE054; Tue, 18 Feb 2020 19:21:25 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4723DBE04F; Tue, 18 Feb 2020 19:21:25 +0000 (GMT) Received: from localhost.localdomain (unknown [9.114.17.106]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP; Tue, 18 Feb 2020 19:21:25 +0000 (GMT) From: Christian Borntraeger To: Andy Whitcroft , Joe Perches Cc: linux-kernel@vger.kernel.org, Christian Borntraeger Subject: [PATCH] checkpatch: add NOKPROBE_SYMBOL to list of special cases Date: Tue, 18 Feb 2020 14:21:20 -0500 Message-Id: <20200218192120.176633-1-borntraeger@de.ibm.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-18_06:2020-02-18,2020-02-18 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 suspectscore=0 mlxlogscore=747 adultscore=0 impostorscore=0 clxscore=1011 mlxscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002180129 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org NOKPROBE_SYMBOL should - like EXPORT_SYMBOL - directly follow the struct or union. This is widely used. See git grep -B 1 NOKPROBE_SYMBOL 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 a63380c6b0d2..d4cc992d4876 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3354,6 +3354,7 @@ sub process { $line =~ /^\+/ && !($line =~ /^\+\s*$/ || $line =~ /^\+\s*EXPORT_SYMBOL/ || + $line =~ /^\+\s*NOKPROBE_SYMBOL/ || $line =~ /^\+\s*MODULE_/i || $line =~ /^\+\s*\#\s*(?:end|elif|else)/ || $line =~ /^\+[a-z_]*init/ || -- 2.25.0