Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4572065rwd; Tue, 23 May 2023 09:21:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7vGp7yw5lCB9/RRIhKz8O5CrPcmtyTLYMw4iF0N28XVejLQp9F4bHHnnqVy3hLunFIVcqt X-Received: by 2002:a05:6a20:2450:b0:10c:d3e5:1953 with SMTP id t16-20020a056a20245000b0010cd3e51953mr976240pzc.3.1684858877274; Tue, 23 May 2023 09:21:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684858877; cv=none; d=google.com; s=arc-20160816; b=nF/+xAy96ePIDilp3MvtdisGTphEcKUpNYuP3I7asNu+rflTDuP4Ignw1en5HhpZeS T9FuFYKRaQ2oEz0EM7IiVGY4QJaCoKWV3542r+ZJyDELsKiIne0UfjmBju6bcOKcrkOw 06EIDoI32tKNHCKo62rWn9jgBIn9VxoygUTM4Txng6T7qXj6R6DZbG6rnU3kXELLKKzJ XsN0l6X1Vhe+Qj9boBJb6HUxGsjQB5z3T43R/3PmfE3hwvgQstay/h2xXrark7xpCgWk p1yDJKW5kwa3n85c6B00GDl4IxZDVkOjZNdScP3IlTVfuNyDOWJQEq05TwjZfLT1eUN4 v7yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=R05m8COYzrgCWL+/yCx5qzMmm3WKfUMyhZcRluJdZ0s=; b=h+RYC5khKdBA0dot+w/fIGdc0o3dby6lABW78GQFANyr5bn0VygDglfeCpCdpZZf74 4xHdityH8/vA5ctsC0lEEMsyWdVCmks74rbea/C6eOtG0bycmpqS3aeK51ZruPx6o7JC 5zwFGrl03PhSxL+mQKeK/TapOzsvT+e4Uz+qidCXIMGTZ4tDXR12MVJoe35Vu/cgNkyS +yRMlztKwkWkpEf0Cob8k5j/1q/T7G/oFhogfKdechECdko8T+ZgOF92XeDTkidYkJrn MoZrO1G49FlmAhCLmRvBltyUgGY3ye0d2P/aYD2NDOMUFp7hwqHCGaXt/iN4l0eyMbYj Wg9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=In037dwq; 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 b6-20020a637146000000b0053ef3c50929si1160202pgn.508.2023.05.23.09.21.01; Tue, 23 May 2023 09:21:17 -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=In037dwq; 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 S237094AbjEWP46 (ORCPT + 99 others); Tue, 23 May 2023 11:56:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237273AbjEWP44 (ORCPT ); Tue, 23 May 2023 11:56:56 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3341713E; Tue, 23 May 2023 08:56:50 -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 34NFT3JM026262; Tue, 23 May 2023 15:56:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=R05m8COYzrgCWL+/yCx5qzMmm3WKfUMyhZcRluJdZ0s=; b=In037dwq79LL7DsKeQHBhFAxEzu+Zu3P4nJorM1yxZNKuvZBNZpsqVwQ6K+tFuHbXNL3 rJKth3MtvChzfj9NVaBGcwtdqDgusaycmWN84YUi4cLZBgq/YQcLsriMItUA2iqgqkV9 IaWQwC5w1U6Hqx4pNUMTLzZ6u2LTEZGY3C2MWAdpBw3+yxZcaczdagxd22qIZi4SNmhQ S9H0GrDnyDhksXY3jnCwjxpOuZd2AMvT0Oo2r4Ibm4Owyie1RRT/glk56P2zIaIao2Sp +AoplqjKV37Oe03JZNC7BrEUutSM7YT0+Sd85wRwdDpiuqq9xKEyW9sHSa8yMCUeZjbc ag== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qs05s82aa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 May 2023 15:56:20 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34NFuHeu031157 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 May 2023 15:56:18 GMT Received: from [10.226.59.182] (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; Tue, 23 May 2023 08:56:16 -0700 Message-ID: Date: Tue, 23 May 2023 09:56:16 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH v2] accel/qaic: initialize ret variable to 0 Content-Language: en-US To: , , , , , , , CC: , , , References: <20230517165605.16770-1-quic_jhugo@quicinc.com> From: Jeffrey Hugo In-Reply-To: <20230517165605.16770-1-quic_jhugo@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: vRPIXW_3rH41R8uWhGdmgdytuArGKGfS X-Proofpoint-ORIG-GUID: vRPIXW_3rH41R8uWhGdmgdytuArGKGfS X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-23_10,2023-05-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 mlxscore=0 phishscore=0 clxscore=1015 bulkscore=0 mlxlogscore=999 priorityscore=1501 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305230126 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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/17/2023 10:56 AM, Jeffrey Hugo wrote: > From: Tom Rix > > clang static analysis reports > drivers/accel/qaic/qaic_data.c:610:2: warning: Undefined or garbage > value returned to caller [core.uninitialized.UndefReturn] > return ret; > ^~~~~~~~~~ > > From a code analysis of the function, the ret variable is only set some > of the time but is always returned. This suggests ret can return > uninitialized garbage. However BO allocation will ensure ret is always > set in reality. > > Initialize ret to 0 to silence the warning. > > Fixes: ff13be830333 ("accel/qaic: Add datapath") > Signed-off-by: Tom Rix > [jhugo: Reword commit text] > Signed-off-by: Jeffrey Hugo Pushed to drm-misc-fixes