From patchwork Wed May 3 10:41:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 89714 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1255700vqo; Wed, 3 May 2023 04:35:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ63UZxfPC2G068lZ8eMvoDDE8DFFKljjIR/zLL6Cb4ZuAKB+3eBS8P4Bt0ti9hPFMoW5CcF X-Received: by 2002:a05:6a21:110e:b0:ef:b596:2fb6 with SMTP id oh14-20020a056a21110e00b000efb5962fb6mr23141213pzb.36.1683113706161; Wed, 03 May 2023 04:35:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683113706; cv=none; d=google.com; s=arc-20160816; b=sO6U+bfgaAdQ/evNbLx2T3Z98JM3M/5kUT3os3OMwuQNGoaT24ZCI5BeUiXe2kL1Q8 z5fCXA/i13Jrbxx+B/EMKqTZFRj+J2a7ELVJX1Q1aIEvf0szD9AGZFpdt8JlD2ScJlTE ImRcy7RgCq5R4K5iBhQ/1c21UnDTfDBRrzHEn5ZY2eaYEkMVwaE60QsdoE481VU8kCn/ 1VCKYKHInphuINCNfWGckGPEk4WLq1Y/FKkZThXZ1sySSvPq9BH+RnOozMNk23RN+Sx/ y3Yc1U07gkapUqPKAyWHxi2G7keiAnE/xogIXhWll/Lh9SOoF72MBoETYLZOHBiFXVrb VNfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=xHsnWChYQT1z+NaKAydFHIQbH8RXi8T5lYad1K4Txs0=; b=wnwYhMXViWS0vEpIKXNt+Uz0lSN5qSBbWfuyLURZo9yXWcn8iaB+ga7umML7XNSlU0 C+G0iGHcf6sq9xZC1UZW/V6ZDdfeMwvUOj02zGmdlNbNt1EYXd8ZAVuQau8mSBMkcYNX mrZtwEvzwjCDbdgKmh2i5Y6O3NIKlnyjne1ndJ63MNwmstFgPG8nK9MBaA85PUePaSbr XrYlpHgSCionrMqOcfCqQFwVmumrHzy95TVcl9b2FnRzEAaVyojyMaJA1G0rGZChwXZL 1OMJ59wzRHIOfLCfpKwxLlThpGDWGe1EGdYjf9ot18P768cuf4po3h4xplQmo//0n+EE PN/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lGacC+qg; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b201-20020a621bd2000000b0062565210347si32618544pfb.275.2023.05.03.04.34.53; Wed, 03 May 2023 04:35:06 -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=@linaro.org header.s=google header.b=lGacC+qg; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230036AbjECKlg (ORCPT + 99 others); Wed, 3 May 2023 06:41:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229686AbjECKle (ORCPT ); Wed, 3 May 2023 06:41:34 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C0673C01 for ; Wed, 3 May 2023 03:41:33 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-306342d7668so1706215f8f.1 for ; Wed, 03 May 2023 03:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683110492; x=1685702492; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=xHsnWChYQT1z+NaKAydFHIQbH8RXi8T5lYad1K4Txs0=; b=lGacC+qgxPocSkx1r674MI1CUDVr3KX2qyaKs/LsCsd9gQ/L9HAOC+KCgMpeAGwHgx XZ7GUfebWa4+59RX0Ga72c/xyzbT/7EpW4EaKXD8u97PwnF+mqnxGct/Yuh5MYQhKB2N U85TB8Ry2jIg/2qRWK+vm+tFOYJ82rfE84Uitj9E022wxbJqqugwo1jKuRfhU5WkEVpB JipQvWyKi3FFssIeYhpixXB1I9av0BbZ25sXKym5f9NV5gLDdlnvLrp2VALBlza0CP8q ZCOkrxihaH8Buw+PR4dgL19xmNf69WlnX4KUV4GpQ1IWgcilZzznXZIkWu5qQha0zI3A 8//Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683110492; x=1685702492; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xHsnWChYQT1z+NaKAydFHIQbH8RXi8T5lYad1K4Txs0=; b=iur0SGIePJ/WhxRjRHRjEOjneAWGWywWOl59P/0lgc+qzvxztDoR/IHzVcYG+W+Jjr OPRhu4Yo6wNXMRtUXQEwVNich/9tzBc6J0PFVdiCWu8jh+V5WnnpzQx97qjCyoJGMKGS x0nSPpky27YWE7mcerncn0L1czvnY7yiwT7BSSf35DYPftK4v+Y/eCkrA+S81NbJC+Q6 sKKbstyar2pMZbmoBBeWW9KsLpd/aFnKfbtjVzK/e5ZnjEEF/IMX+Wjx7kET/MZxGniB 5heySSKQJ3l+O4I3BSejzyOO2x6HrmfaJufUIwzThHKmwRBzOHc2uAbdaDwJDzcV2CI8 3tUA== X-Gm-Message-State: AC+VfDzP/kO2fCeZoTnCnkw6f1V6bS4lbHxFIofHhnT/NZ3091pQQXVf T6cbdTHhxfKeXjLA2ELlkuYlbw== X-Received: by 2002:adf:ec04:0:b0:2f9:a798:602c with SMTP id x4-20020adfec04000000b002f9a798602cmr14969737wrn.12.1683110491914; Wed, 03 May 2023 03:41:31 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id q11-20020a5d574b000000b003049d7b9f4csm19417469wrw.32.2023.05.03.03.41.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 May 2023 03:41:30 -0700 (PDT) Date: Wed, 3 May 2023 13:41:27 +0300 From: Dan Carpenter To: Jeffrey Hugo Cc: Oded Gabbay , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH] accel/qaic: silence some uninitialized variable warnings Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Mailer: git-send-email haha only kidding X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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?1764872637375970923?= X-GMAIL-MSGID: =?utf-8?q?1764872637375970923?= 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 Reviewed-by: Jeffrey Hugo Reviewed-by: Carl Vanderlip Reviewed-by: Pranjal Ramajor Asha Kanojiya --- 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; /*