Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp353677rwb; Wed, 5 Oct 2022 20:36:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM54P8JwKQxEVmEBVs24f7Lxt879qOIPXTsbth37KWarrRIZNNYa/Kvh4mvNRY2NhCG9mHgK X-Received: by 2002:a50:ff0a:0:b0:455:2cc3:920d with SMTP id a10-20020a50ff0a000000b004552cc3920dmr2670753edu.39.1665027371635; Wed, 05 Oct 2022 20:36:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665027371; cv=none; d=google.com; s=arc-20160816; b=qyPZfatb6nHBTJqzhD/FTJZJau5xXFDzZD1o1xlncsQ9myLm/GsmetYCsZxPh3rwjb B77xu2oSv29tYKGaTgBmYYiE2R7ejAX7iKg1OGW0ED7IINbwuXw+0E5+Xva4WCN4Nruy HZIzuKY+ovkPbB10Dg+rMykxaRqZxQpYWGYOuuGyjr9V201mSRtMo++RohVl0qeq5K3h lwPp4X65ebn0JDaXHCMYVsjfhgQYb6ICe8S4EowDT1Ckh8vufO65tVmuROrXDjqE3sGm ydcygFKDKS1pWR05zsSmjRBt3kdJxxdPO0BWcBHOyrtObs6dD11u/9rcYR2cxCGe6tWg Fbjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=qREY61YDonaxY7QHfNEBxxtHhu6S9Pr7EFSQqHzt6Lo=; b=aoeO94guQVkZbdjGjYuG+lWOm0/Tu9Da9uTPUSqFaRpufm614Br4REJhoJ0KF6Q68/ xD3cRUPyUOs6myKGk8Q/8Whd2w0gK5fxzpu1tAb0bLU0Q5iKMIlKrICs07HytTw8Yy3O ELqr27IAF0EriqQA1HxCnGaU+zxx98XWBkJ8lIhmNEB53t2JdTcB9K7hHnlvwMy4q9vM 2xhu8rBgBgpCitRR2p1CwAY1eIsXJV5AOfzTsMWIbUPunJ7CmEnaSuce4RVrkyhPUq4y mUSUcjEtU4QoAxRf9za8RhMA+DT3DOQqofgbHr747Wx0K5FVG+e3giSUiI5D6/Y9vehx bM9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="Tx4V/Cp3"; 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=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr36-20020a1709073fa400b007454d964534si16268599ejc.440.2022.10.05.20.35.45; Wed, 05 Oct 2022 20:36:11 -0700 (PDT) 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=@quicinc.com header.s=qcppdkim1 header.b="Tx4V/Cp3"; 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=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230133AbiJFD0X (ORCPT + 99 others); Wed, 5 Oct 2022 23:26:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbiJFDZe (ORCPT ); Wed, 5 Oct 2022 23:25:34 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74B00FAE8 for ; Wed, 5 Oct 2022 20:24:23 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2963OCjD010359; Thu, 6 Oct 2022 03:24:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=qREY61YDonaxY7QHfNEBxxtHhu6S9Pr7EFSQqHzt6Lo=; b=Tx4V/Cp38XnIKISvq3iTor3kVd9tFthWgBXw16ktZwnmAka900U5eGKQ3z1cvqLt3Hod w1DOy2bKE9vLEb9s8lbRk9zJqANF80il9R/R/DQxgNE3M80ZIHpqwgAa38Y3iO6dNxXs eFHWIkoq6abrT7xULLD6OCMkmjgFimIEvQwTh2O90LRnhXaw5oHeNJQ/1KNIktzyPITM hSKaV95HKxWo50RrExDEgGPxz4D7HGM6+wIvSdSAOg3lhqIj1gWhpAMHJwoJFHKGwbzv RTIZp0cldxwZWOCo+bnV77B1LKGCLdCJXjNtmeYEglufgj96gtCr9U4wxp9I7HUpb0fE nw== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3k0hxpvkbn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Oct 2022 03:24:12 +0000 Received: from pps.filterd (NASANPPMTA04.qualcomm.com [127.0.0.1]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 2963OB2F001703; Thu, 6 Oct 2022 03:24:11 GMT Received: from pps.reinject (localhost [127.0.0.1]) by NASANPPMTA04.qualcomm.com (PPS) with ESMTPS id 3k0q8tgxju-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Oct 2022 03:24:11 +0000 Received: from NASANPPMTA04.qualcomm.com (NASANPPMTA04.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2963OBcS001698; Thu, 6 Oct 2022 03:24:11 GMT Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA04.qualcomm.com (PPS) with ESMTPS id 2963OBgZ001695 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Oct 2022 03:24:11 +0000 Received: from hu-gurus-sd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Wed, 5 Oct 2022 20:24:10 -0700 From: Guru Das Srinagesh To: Nathan Chancellor , Nick Desaulniers , Tom Rix CC: Elliot Berman , , , Guru Das Srinagesh Subject: [PATCH 2/2] scripts/clang-tools: Remove core.uninitialized.Assign check Date: Wed, 5 Oct 2022 20:24:00 -0700 Message-ID: X-Mailer: git-send-email 2.7.4 In-Reply-To: <5a10dda2a06b92f040ec7a18876db4c8107b4989.1665026261.git.quic_gurus@quicinc.com> References: <5a10dda2a06b92f040ec7a18876db4c8107b4989.1665026261.git.quic_gurus@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: xg43Hpf9ts3M07FU1tXOXMJpxvez7V_a X-Proofpoint-ORIG-GUID: xg43Hpf9ts3M07FU1tXOXMJpxvez7V_a X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-10-05_05,2022-10-05_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 spamscore=0 mlxlogscore=927 lowpriorityscore=0 mlxscore=0 malwarescore=0 suspectscore=0 bulkscore=0 clxscore=1015 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210060019 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Remove this check as it leads to false positives in some cases (not all): warning: Assigned value is garbage or undefined [clang-analyzer-core.uninitialized.Assign] list_for_each_entry_safe(page, tmp_page, &pages, lru) ^ Signed-off-by: Guru Das Srinagesh --- scripts/clang-tools/run-clang-tools.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/clang-tools/run-clang-tools.py b/scripts/clang-tools/run-clang-tools.py index a72c4c7..714cb82 100755 --- a/scripts/clang-tools/run-clang-tools.py +++ b/scripts/clang-tools/run-clang-tools.py @@ -54,6 +54,7 @@ def run_analysis(entry): # List of checks to be excluded exclude = [] exclude.append("-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling") + exclude.append("-clang-analyzer-core.uninitialized.Assign") checks += ''.join(["," + e for e in exclude]) p = subprocess.run(["clang-tidy", "-p", args.path, checks, entry["file"]], -- 2.7.4