Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6663093rwl; Wed, 22 Mar 2023 13:45:47 -0700 (PDT) X-Google-Smtp-Source: AK7set+eKTjb6+/Lxs/0c1UJPrZT1tdALJXxv77JE5BEpMnCG+6y8JpB+eGJXztH1NDjEGsUUoYB X-Received: by 2002:a17:906:7e05:b0:8b2:8876:2a11 with SMTP id e5-20020a1709067e0500b008b288762a11mr7609489ejr.28.1679517946938; Wed, 22 Mar 2023 13:45:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679517946; cv=none; d=google.com; s=arc-20160816; b=vvRJSBDydgHxkbY8f+BQVPG56dfKED5mlkvy+B43Sb0UjdzNfn9y0XKtX211rNEmnr 2/ngzSn4/X5mjVJtCQVjp5oH32XquBy5Q3pELKepEYTpGal0zI2cWgSF70RHsV9y7Bpm oBvcdvZvcrg7qLkXOShBi0hJp2g7Sul21rKXHakhPSZWn6HZ+vKhPEN6pFxuMCXg/S9V OY9yabQLu9gke9ja1HOtiPC2q83RxO0ewPbRFJe424lSvx9Wy9alsqSm+ig8ruEzgJJg qE0kjtckXN12ADU1x/KFbnp70V+p7rkFDzfWMAM6pYfZvV4uCjBGFXFIIERAkS0ECFbO lOlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=sdfdd0xxf3qPcLs1jEdYYzb9pI1i8cVptEp1avCiO5c=; b=SOietmcc8NHNF1E3F7prlHte4I+mLbXp2MJK5fGtOob4pZd9F/VImBj2+KbU4UKfE4 c+ipgh+O/9CYTdPkr+h5hVbLsOmvzCIKiK4cveF47yjexaK9Rf9PUsrUwi0r9KWUI/9j +W+s1JNQl7pmTnAwS2+jMwsKAPiUIonaXlXxnZqBtclRvqUVjQFh1YyPdC9ZmCbxq6PY Xc+WULOG7bUG2alN3x1KOMMX4mCMSbQRfAh7p3UQ5UCbbSxxE4pSs2MKcUVfp84zt7OR H+r6xDkUGuS/IZxCaBAFGPeJ2YBAd0kE205g2cDcGgHswX8YshQaGwqz9QtIMg3xawhv dz2w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a8-20020a170906274800b00926e4a8a488si14884601ejd.647.2023.03.22.13.45.20; Wed, 22 Mar 2023 13:45:46 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229909AbjCVUlE (ORCPT + 99 others); Wed, 22 Mar 2023 16:41:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229788AbjCVUkh (ORCPT ); Wed, 22 Mar 2023 16:40:37 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 912D633CD0 for ; Wed, 22 Mar 2023 13:32:52 -0700 (PDT) Received: from p508fd58e.dip0.t-ipconnect.de ([80.143.213.142] helo=phil.fritz.box) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pf4mJ-0004Ps-T8; Wed, 22 Mar 2023 21:09:47 +0100 From: Heiko Stuebner To: daniel@ffwll.ch, Tom Rix , hjc@rock-chips.com, nathan@kernel.org, s.hauer@pengutronix.de, airlied@gmail.com, ndesaulniers@google.com, michael.riesch@wolfvision.net Cc: Heiko Stuebner , llvm@lists.linux.dev, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/rockchip: vop2: fix uninitialized variable possible_crtcs Date: Wed, 22 Mar 2023 21:09:45 +0100 Message-Id: <167951576826.1541042.11962083782525897631.b4-ty@sntech.de> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230316132302.531724-1-trix@redhat.com> References: <20230316132302.531724-1-trix@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_PASS,T_SPF_HELO_TEMPERROR 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 On Thu, 16 Mar 2023 09:23:02 -0400, Tom Rix wrote: > clang reportes this error > drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:2322:8: error: > variable 'possible_crtcs' is used uninitialized whenever 'if' > condition is false [-Werror,-Wsometimes-uninitialized] > if (vp) { > ^~ > drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:2336:36: note: > uninitialized use occurs here > ret = vop2_plane_init(vop2, win, possible_crtcs); > ^~~~~~~~~~~~~~ > drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:2322:4: > note: remove the 'if' if its condition is always true > if (vp) { > ^~~~~~~~ > > [...] Applied, thanks! [1/1] drm/rockchip: vop2: fix uninitialized variable possible_crtcs commit: e88adb4ac27a37de4167150b8a6a736d40cf7018 Best regards, -- Heiko Stuebner