Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp195793rdg; Thu, 12 Oct 2023 03:03:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFANpbF+/ai9JuMrN6SGUtpG4c5eCx11rKOnNisFbz+rbQzaVl3O7FDqyEjpBTrkvpJCX76 X-Received: by 2002:a05:6a21:328a:b0:14d:7b6:cf2f with SMTP id yt10-20020a056a21328a00b0014d07b6cf2fmr28412032pzb.47.1697105026238; Thu, 12 Oct 2023 03:03:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697105026; cv=none; d=google.com; s=arc-20160816; b=fpU90adM7PpNE70F+7Ssagp7RsD092G4wvr3L5q/3pV9YLMtUUdTw3wCsU7dKlPw6v v0MK22clpULtX46Vf8UUWLbt4n+Inr9Vn2wfjOQPlXwaTcxaqRztm93rXGlRxJ3DSyM+ RNL/XbtxHlufX5GLWeIICu0fOiguSfucyb5RnT/TG8a/Tph26mg0PU0ptocxrEKuvg8F 9rADkhBXbWnI19WJZ2NKXzf7Ka8vo8g1CdDIz9wyW+imQFA7U5ABkUkdwU2gJZo6TsZC omyKrZ2pv9iJcqC/QsOvU6AykCRCpE8kO04AYkQF5P+5BPImC0u+KpVOIN9dmkXUWkcw DWfA== 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=0mEjCWQZTxRZbbNg6mdtO8Uj10XjAlWVbHMvsiIz1qc=; fh=hk89HocYbttyp2bFqQikzLChorTOMKYzQihrbjgF1tI=; b=ZfLDM4ENZduUhcOrpigBV+c+y2Ea9BW2vgdxH6TJgW6AURcyBoyjac9Y8fqoq+qWye mSdyhkADsKbrRY8L0LHljPcSdbVlvErfaOV1og708IwChd9qdrSdpMofOsfeaFxta5GD Y5stbTQAAADQsZsb51JBptPBDxnzF23G4H/6bSCBz/QqzxS5bB73/PTyIl/S8DyVD4fb oqv+DndqrDMocjs17D/7SuLZYwZzym32gYqefwf4UFAR2X+nkxlTGlTF8retD/uEHJ/p 0IXQ79ksXMyyEBxdEcchfRU0tocsCYklOBPC/UkmoAn1OvGWPUMVoLeND5BDkFWH+wFN A51A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QBNYOs35; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id b5-20020a633405000000b0059b79bf220csi1888048pga.662.2023.10.12.03.03.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 03:03:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QBNYOs35; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 33AC783BB595; Thu, 12 Oct 2023 03:03:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343616AbjJLKDd (ORCPT + 99 others); Thu, 12 Oct 2023 06:03:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235586AbjJLKDb (ORCPT ); Thu, 12 Oct 2023 06:03:31 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A61C9D; Thu, 12 Oct 2023 03:03:30 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 947A7660730F; Thu, 12 Oct 2023 11:03:28 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1697105009; bh=vSR9Dv/F40nI015RR/8THaxAbwmFqoejsJwpTYtpx/8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=QBNYOs35EM11eNbq4zlUrZ7qdAJXpabM2HA//NhdL3bImajgCeWrHaU3P0EjuA1Tz R6j8DYqo7wSNnyXsHsPzEj0G0gc3+PIDIpjcCM9oqr+npTeYcII/m9KJKgTyfrfN9k Z5Nzzq+Xma2TSmMCOy+z3c08zm0E47lg+dqVMy/uMV/xvCPh4kPhjZJn6ezTDhH3EX XvXy4wLgOuUGTy3bbYqW5QEO/njdJbOZumzYDoaB8eDv6VyzXUxn86ckfkQWIfRtxi p6wRmjMkxMpMElFfpG5/ZGj0MDdML63z5ts5XOIprMDliB2UUTgc8JRkPlzmOeIl3w B6rrrKGGpWkyQ== Message-ID: <9c811fd0-9584-0df9-9639-00806f9c89a6@collabora.com> Date: Thu, 12 Oct 2023 12:03:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH v1] media: platform: mtk-mdp3: fix uninitialized variable in mdp_path_config() Content-Language: en-US To: Moudy Ho , Mauro Carvalho Chehab , Matthias Brugger , Hans Verkuil Cc: daoyuan huang , Ping-Hsun Wu , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20231011030037.22337-1-moudy.ho@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20231011030037.22337-1-moudy.ho@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 12 Oct 2023 03:03:43 -0700 (PDT) Il 11/10/23 05:00, Moudy Ho ha scritto: > Fix the build warnings that were detected by the linux-media > build scripts tool: > > drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c: > In function 'mdp_path_config.isra': > drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c: > warning: 'ctx' may be used uninitialized [-Wmaybe-uninitialized] > | out = CFG_COMP(MT8195, ctx->param, outputs[0]); > | ~~~^~~~~~~ > drivers/media/platform/mediatek/mdp3/mtk-img-ipi.h: note: > in definition of macro 'CFG_COMP' > | (IS_ERR_OR_NULL(comp) ? 0 : _CFG_COMP(plat, comp, mem)) > | ^~~~ > drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c: > note: 'ctx' was declared here > | struct mdp_comp_ctx *ctx; > | > > Fixes: 61890ccaefaf ("media: platform: mtk-mdp3: add MediaTek MDP3 driver") > Signed-off-by: Moudy Ho Reviewed-by: AngeloGioacchino Del Regno