From patchwork Mon Mar 25 14:50:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 782437 Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CEA813D259 for ; Mon, 25 Mar 2024 14:50:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711378228; cv=none; b=kB3nOE3zEmCBV7nwZvgw2NGdNZhgiCBMxvaTIDYK5sm+I0lO78PTRvXHOpIuql7YeTUVKFhd3g1G1KKg1vy1ZB///Zbvlfm2kkNyl0xsobPMvf61/QfbxLHJIV2piy1/WOINskbLlhTGQjpyBRD692dN+AzIWlTvNa5bLZwmr5I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711378228; c=relaxed/simple; bh=bzGkhh3857LfO//R8Cc3xM+Sm0Pu0LcZVZpGpS79/9U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LDpvwccsWzcTJJ2Pfm1X0rCOFAqikXWbKHpsVrTsIG/NHFjdkF2R3bLnRqLgnvqH3LOWWEjMYdzn/gXBYgYnMrzuoTRhg6yK++ahBBeNJzovOzAfQ+bK4yv89WKxNghuQvZcdXDOSa2/2n+2dXrOzCpZdJDDHz4mjqMg279HJNg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=W2gaYCIG; arc=none smtp.client-ip=209.85.160.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="W2gaYCIG" Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-220ee7342ddso1528443fac.3 for ; Mon, 25 Mar 2024 07:50:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711378225; x=1711983025; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=HiJIJJs/fXvTyCDSSNBDGHDw2J3EG4BtX2teiiFjae0=; b=W2gaYCIGNnCQvWLmUv7VdKQ4w9GjZaQ4/4apOsJMbIWRsmtzRHCNVLCerGfSc53Q7W dWZJJQukVWNVYlNTbiuXBMgDKsAzi801kDG79DRg4StubaWNySl1aquooJVwppQwGISr V5XU5gripwuSe4PpeD52JJk++ZjMY4NAvYcHw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711378225; x=1711983025; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HiJIJJs/fXvTyCDSSNBDGHDw2J3EG4BtX2teiiFjae0=; b=jM/UPocXlzlkG9uGY9z3PhpJCZwmlphnd6rLPm4quWFVkyTQKJP8exGfyMhED5nsQW p944gCVjBUuzO7Zj8ASD2Zb+JTBjRIhi2s2qYoGB7yvzp+dZgfowjbwtuR4d5kgnsB+G 2GIyeAeP/Fe6VycgDcp0O+/0/vJI+8rGzvbcfB9UlFUz7qkKiYUPN/r829nlbZAht574 73NBH0IfUz/1mPtlV7ihQCffuawxN75NG19BlRGQLD7DSqzpBjC/qD0nxlCySF60KjJO rTUsGKC+wg/rIYJ7yhzvJXyZqHQI39PsEB+SpaRz+kxjMQ3ks90jkXUE537IVHqsOVpg OEjg== X-Gm-Message-State: AOJu0YxEmoFDyEsZNHcor6HBfb8q3bqeYKMvs+zQu+dj0NaOrxSMRTE7 snV045AMkBdNF2sbPXXSQPsQotWX3ohRXoIooou9b/oCm+uY8UY/ZwKG/WVr9w== X-Google-Smtp-Source: AGHT+IFi6H6aHLQfI8VFi0WO8ICSYFmiwIeOfLPtxErl0UIG07TzmLmgVZ3n0y6H5EShjbVyMwmPSQ== X-Received: by 2002:a05:6870:1641:b0:229:e41e:a6b0 with SMTP id c1-20020a056870164100b00229e41ea6b0mr7401259oae.47.1711378225403; Mon, 25 Mar 2024 07:50:25 -0700 (PDT) Received: from denia.c.googlers.com (188.173.86.34.bc.googleusercontent.com. [34.86.173.188]) by smtp.gmail.com with ESMTPSA id eq17-20020a05622a5e1100b004313f54aaa9sm2491449qtb.5.2024.03.25.07.50.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:50:25 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 25 Mar 2024 14:50:23 +0000 Subject: [PATCH v3 1/3] staging: media: tegra-video: Fix -Wmaybe-unitialized warn in gcc Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240325-gcc-arm-warnings-v3-1-81b8c10dc18a@chromium.org> References: <20240325-gcc-arm-warnings-v3-0-81b8c10dc18a@chromium.org> In-Reply-To: <20240325-gcc-arm-warnings-v3-0-81b8c10dc18a@chromium.org> To: Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , Mauro Carvalho Chehab , Greg Kroah-Hartman , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.12.4 Make sure that tegra20_vi_get_input_formats always assign a value for yuv_input_format. Fix: drivers/staging/media/tegra-video/tegra20.c:624:72: warning: ‘yuv_input_format’ may be used uninitialized [-Wmaybe-uninitialized] Signed-off-by: Ricardo Ribalda --- drivers/staging/media/tegra-video/tegra20.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/tegra-video/tegra20.c b/drivers/staging/media/tegra-video/tegra20.c index c25286772603c..630e2ff987a37 100644 --- a/drivers/staging/media/tegra-video/tegra20.c +++ b/drivers/staging/media/tegra-video/tegra20.c @@ -164,6 +164,7 @@ static void tegra20_vi_get_input_formats(struct tegra_vi_channel *chan, unsigned int input_mbus_code = chan->fmtinfo->code; (*main_input_format) = VI_INPUT_INPUT_FORMAT_YUV422; + (*yuv_input_format) = VI_INPUT_YUV_INPUT_FORMAT_UYVY; switch (input_mbus_code) { case MEDIA_BUS_FMT_UYVY8_2X8: