Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9314115rwr; Thu, 11 May 2023 13:04:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4XXkDWyRFOdlagfxTAdAND8zJ+G/x0oZpfs6lxh5shNJL2fWa3yDuzbkRZPswyRtKyD3Xj X-Received: by 2002:a05:6a20:72a8:b0:104:2896:a61 with SMTP id o40-20020a056a2072a800b0010428960a61mr2381271pzk.19.1683835484877; Thu, 11 May 2023 13:04:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683835484; cv=none; d=google.com; s=arc-20160816; b=KebJ2MK4Ogud3s0/h5DFedM4Z5lynKjnyzlFngYScxN8siKq8lTmujwNp57MENlx/J xugb/jVCD1gcjlHTPL813TZVqvT/J3vf+noa05dxAadHsag06cW1MY6rlUXbJr2hILVs LsiMorXv9HyWJvHMjTBWQRwgkFzFSvDNwXp6OzAMl3yx5nm4qo5kx7c2wWdTzpkDAgHu OcB2b72qHJpMCvst6AOTuhIfaDJnTHmD94EL7SNR6Y1sp+UYVhaNxFMc7GBj+Uagrgvq AuKxaqMabgabtLcaho+FLKbJ1vLNNj0KyDn5s6hXoT8QyvwQ6KaokgqRd/QRIFMQC202 RZgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=GMdMZanCPuIQdAXFLNo3WJTphkoKE1vlUhMHToOgUww=; b=X4bcopz38f19VwtKjEfNaYbCnvSZeqIjTWt/wU53p29tsipBNQt8NPBQxftGrwH836 C2LPFKBaF2wQnF5pHbVFt3HnKSKYSAOIr2kUsN+736mY3yoPd33h7Ayxcc3m8pDpNbXs GemqQdhtjPSB7ztcz+Pv8pYwV8uWnap+sC7VlUoNrMGAhXWQpo2Bxp6PxnGlYtSEZuoP ifA7Ub5uIZVMUeJ6x5+U6qlUTzqq3TzYROjv44IAJIeyl4NmDNJ3wp2YasRZewBG4cWa pKpz9+y2MsLLLHO0Cmmg7/ZW8zC5c0xGK9CfAR7NkHKUlr+u3cbgdgK6J58tyWnuLp7G xXlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=aaCmjPWs; 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 t17-20020a639551000000b0050bd4b86169si7417582pgn.414.2023.05.11.13.04.30; Thu, 11 May 2023 13:04:44 -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=aaCmjPWs; 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 S239525AbjEKTsi (ORCPT + 99 others); Thu, 11 May 2023 15:48:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239518AbjEKTsW (ORCPT ); Thu, 11 May 2023 15:48:22 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B47F6AD24; Thu, 11 May 2023 12:47:49 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34BJKCvj005540; Thu, 11 May 2023 19:47:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=GMdMZanCPuIQdAXFLNo3WJTphkoKE1vlUhMHToOgUww=; b=aaCmjPWsPPS0/rMgDhaOhjDwTkK6wDhJdVDs9/rlyi61CzeIhnpwGSvTpbs4mnx6aRIt cQocYxGP75Dqfm4PX2dtsHKdUkg/tgIxMhDSpofNAAIq46EG+XIojMJkHx2ZGe9InPMB CJcRDRFMKNRn0PBTkdaFnWyZ4DzyEzOID/nN8RSNdOzRB6Eu+gWeOBJDCof2OaPfOh8J juT1g6QSFDmhZLzHUKx9sS+A8VUnT7Es3BBhCkDyM48jJ3XHQHrXXtWpzvMPvt+DTeXw WQHC+/11bykeZrchfDERRJ4QOxsevr3hLmp71+DvK+7U5vmXKNPl4i9LTqWE9a4D6Reu WQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qgv1u9pe1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 May 2023 19:47:06 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34BJl4Sj030846 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 May 2023 19:47:04 GMT Received: from [10.50.47.207] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Thu, 11 May 2023 12:47:02 -0700 Subject: Re: [PATCH] accel/qaic: silence some uninitialized variable warnings To: Dan Carpenter , Jeffrey Hugo CC: Oded Gabbay , , , , References: From: Pranjal Ramajor Asha Kanojiya Message-ID: <962011a6-9089-b678-6ac8-ce29b8ffa2fb@quicinc.com> Date: Fri, 12 May 2023 01:16:59 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 5zfhe7JIzJ0c6nTCWcOPBlG6meEolwCV X-Proofpoint-ORIG-GUID: 5zfhe7JIzJ0c6nTCWcOPBlG6meEolwCV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-11_15,2023-05-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 lowpriorityscore=0 bulkscore=0 spamscore=0 clxscore=1011 suspectscore=0 adultscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305110167 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 5/3/2023 4:11 PM, Dan Carpenter wrote: > Smatch complains that these are not initialized if get_cntl_version() > fails but we still print them in the debug message. Not the end of > the world, but true enough. Let's just initialize them to a dummy value > to make the checker happy. > > Signed-off-by: Dan Carpenter > --- > drivers/accel/qaic/qaic_drv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/accel/qaic/qaic_drv.c b/drivers/accel/qaic/qaic_drv.c > index ff80eb571729..e10e8b603e37 100644 > --- a/drivers/accel/qaic/qaic_drv.c > +++ b/drivers/accel/qaic/qaic_drv.c > @@ -263,7 +263,7 @@ static void qaic_destroy_drm_device(struct qaic_device *qdev, s32 partition_id) > static int qaic_mhi_probe(struct mhi_device *mhi_dev, const struct mhi_device_id *id) > { > struct qaic_device *qdev; > - u16 major, minor; > + u16 major = -1, minor = -1; > int ret; > > /* > Thank you Dan for the patch. Reviewed-by: Pranjal Ramajor Asha Kanojiya I agree with Jeff's comment to sort the variable declaration length wise.