Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1544026pxb; Tue, 26 Oct 2021 10:57:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwekdPXg+rEXQu2sgzTaVOT/n4ayV2lLln01CI1nvV2LHfRjFE+czF9yu3shR4YkdVGUkji X-Received: by 2002:a63:9d4c:: with SMTP id i73mr19978817pgd.216.1635271068266; Tue, 26 Oct 2021 10:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635271068; cv=none; d=google.com; s=arc-20160816; b=NxZZULwZ6wB6JRA84Lonmm28rEOgBqYtgOOtvSRif/yfgZwA3P6l86k0QePDJuziS0 4AsG7PtVkHiZQjiwpoJHLCtUmA85ktmq4EbAOUgKkkSesVKp52qMHdb5NGkcUQc0XP4V w3/iVlvzPgLFQ8eXAe2eS8+MoXzo/cdHu7fd4KsBLPXSKF+o1c4XelnxKlsC5Q3W9Fca CBmEneOANYUG847cQ4LilT3aJivx6M1TIkl12/hCek6bI9gOBbrUek8UCdL2jk1BM3Hz vgomiAQBudzdSCkvFwyyHIz5FDAUQhaSsjz6TxY6G+nDPE/36phisCfRdhud/hWKybsJ z5Sw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=k+SzSb0wljvawtd8OEwd/HHH7H6JZJQ0uG7mdNgAd+c=; b=beq047MJWZQSgAgaZKjAf5mkHXEcXyD59xsuK9wy3n+uKKyQC8a+UcwESphiXdhOTB kzYWqkcxgTljj3JoBEiGJestsJyqC+CHZBBCT2/vvazYAQX3UGUqAsd+gq1TvtugQXSJ 2e6T2/POTU0yd2TO7TZRRikIjVIMCzmKHFPmKAkeQdhRCDg3dKsqpwZfiFADRbx1rlk3 kNndOH9d2Q9hPWfCtHu7NRIfMU1VPw92S43gUds5ZFBogMMeu7SGTgdrIFVOJkqi4cx/ xFmVS00E88PAkE080d9DhWFIeWszNqTjeyE0Sm4RuZASFe+iAw5RYrzLqKuiHtwMDrks bfng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FevFKkka; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si31215117pfi.116.2021.10.26.10.57.35; Tue, 26 Oct 2021 10:57:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FevFKkka; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234803AbhJZO1v (ORCPT + 99 others); Tue, 26 Oct 2021 10:27:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:43982 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235005AbhJZO1r (ORCPT ); Tue, 26 Oct 2021 10:27:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B744F610E5; Tue, 26 Oct 2021 14:25:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635258323; bh=CCPB4RRkX6JYEDol0ilOJjnvgGwsxTWxj1m6hC9Unvg=; h=From:To:Cc:Subject:Date:From; b=FevFKkkahfcBvXUluNFV8XWL623aVtESiXqX5+x96qnnwfRJBZ/7DgzssX5MBy5VU SO9qRZiztot16VLlmrX5qYhPxNr9Ht2VTtI9VeA53kV3S7X3cM9NPti87IijfZzcMC 8Ez4VSqWyhhWYgeo+toa3SCXy80tAPh11PSplvfJjHyiPIfz0S1a4ufPdDYIEKrcVm xOZ8qZoLOpHrP5BI5831gMUH9WipGyRqNm7nfAMD8VreZXjAmT3q9XkNVG7OuNCRN7 +NSc7FNZzsW+jckAoZGdPMk4lziNnka1QUQeiMDTJw48CqLL/RET09ZmK65H2wcy+E DDLowRuKtETnw== From: Nathan Chancellor To: Rob Clark , Sean Paul Cc: Nick Desaulniers , Jessica Zhang , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Nathan Chancellor , "kernelci.org bot" Subject: [PATCH] drm/msm/dpu: Remove commit and its uses in dpu_crtc_set_crc_source() Date: Tue, 26 Oct 2021 07:24:36 -0700 Message-Id: <20211026142435.3606413-1-nathan@kernel.org> X-Mailer: git-send-email 2.33.1.637.gf443b226ca MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Clang warns: drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:162:6: error: variable 'commit' is uninitialized when used here [-Werror,-Wuninitialized] if (commit) ^~~~~~ drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:106:32: note: initialize the variable 'commit' to silence this warning struct drm_crtc_commit *commit; ^ = NULL 1 error generated. The assignment and use of commit in the main body of dpu_crtc_set_crc_source() were removed from v1 to v2 but the call to drm_crtc_commit_put() at the end was not. Do that now so there is no more warning. Fixes: 78d9b458cc21 ("drm/msm/dpu: Add CRC support for DPU") Link: https://github.com/ClangBuiltLinux/linux/issues/1493 Reported-by: "kernelci.org bot" Signed-off-by: Nathan Chancellor --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c index 2523e829f485..967245b8cc02 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c @@ -103,7 +103,6 @@ static int dpu_crtc_set_crc_source(struct drm_crtc *crtc, const char *src_name) { enum dpu_crtc_crc_source source = dpu_crtc_parse_crc_source(src_name); enum dpu_crtc_crc_source current_source; - struct drm_crtc_commit *commit; struct dpu_crtc_state *crtc_state; struct drm_device *drm_dev = crtc->dev; struct dpu_crtc_mixer *m; @@ -159,8 +158,6 @@ static int dpu_crtc_set_crc_source(struct drm_crtc *crtc, const char *src_name) cleanup: - if (commit) - drm_crtc_commit_put(commit); drm_modeset_unlock(&crtc->mutex); return ret; base-commit: 00326bfa4e6363e4b0b8b019ecd2556fdda5ad1c -- 2.33.1.637.gf443b226ca