Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp611763rwr; Wed, 3 May 2023 03:46:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7NYOk+bOWb0OBehiW5DQMcJfdpppJV/bRqUXiYt6wyEB+uDXq1tbaun6dR0SCCWDtQqlNf X-Received: by 2002:a05:6a00:1885:b0:63d:6984:7a93 with SMTP id x5-20020a056a00188500b0063d69847a93mr28525230pfh.30.1683110816797; Wed, 03 May 2023 03:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683110816; cv=none; d=google.com; s=arc-20160816; b=F/OneoclhjmNZ+vHZstOWSBRRlAKR5IalX2f6CoqHPw/xw0lOPLiOUA7mE3tfE3P1X SxP0ufxPrqL2Ki76TAqeTm8UmG2zOhnwmgspELpa9UCVhnsF3gYZek7KGmwNFozYK/SE hZxIKH58Ah4Kmi8ViUEPkisUrtmEmO+a3BJIdcjS834jhW1yqDGnwMRey8TcnLqL6mq7 QjDxAg25rh9u34FWNJMTskAEu4lIfvlyRYBI/bD9MzltrTZ4NCAriUgckqTqhkb0ZjIj kMf0SpE/yYZRknBsHjuCaTBul7uufFO9XQjXA4XDXz1e8tDpPtOthjkq+4xDhrxUijvh K30Q== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020aa78ec7000000b0063b56b7ba82si32419267pfr.189.2023.05.03.03.46.41; Wed, 03 May 2023 03:46:56 -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 S230029AbjECKlg (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-Type: text/plain; charset=us-ascii 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 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; /* -- 2.39.2