Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2799456lqp; Mon, 25 Mar 2024 09:29:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWsF8OaYljLp8sN+qX9maC7oj33LFB+7vj96SDjVK13uvB7ReuznjAribEq4Nuq9+hELH29dFQaT2QetF/2FiphBhHhFmAV0IEUQgZB0A== X-Google-Smtp-Source: AGHT+IHIUnxVrEZHENrY3JkuPIUQpL80nB1gwxjCz3nJxQkJt4QFxayP+OQ8Nt1ihMIWK4Eq6W3x X-Received: by 2002:ac8:5787:0:b0:431:3e6b:899f with SMTP id v7-20020ac85787000000b004313e6b899fmr7812768qta.44.1711384187620; Mon, 25 Mar 2024 09:29:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711384187; cv=pass; d=google.com; s=arc-20160816; b=ctcDZTEpenWfkf/fp8ft8tZ2CadWF2ITIXnJYPYFlA1SdzRjwk7hZcIyFPtNlb3q+u YGnfwk5lMcmChSBUgbe13lmEtzF0yuQ6k82+wHVGj996glOpJwlFjEYt6MoFJ1c6XYKt HwR1YPgTEb8W+3gM+jlE/rLsO5ZUwOk0F3QA58Th+KzE2aP5mUqQvnPmB/amPuWzMaGI cn3urreMuJ1ptOKdTEJfAUnUJmAEqOnqArQuWPxm9OL+Rg5nTBDHBrEMv84rSOEIVfAF 9u54tou8+ePAWrz/QqRZ3xflWVKj4eDDW1gnOY86CwgAALxuFSFiej3Gm2GBE3hKeP1u nTSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=H3XV/BFRORhDDlgNHHmWyRWqMIVOw6WvWWLzRQu/wIQ=; fh=I4Hc6xmEYfVLypEP3emOImpnsdT8YGFQRBBbVElQRsU=; b=lfT+fLofw+cvHi3cs1nMyVloRA2P3Ab1GRIYue/cWWKQk5gpp3YqVoI9ZmUh0YDsTo HMIEJC/MHGCQ7w1s1nCr+oNJxRwUkZjKnC5rFrWgtjPJvvRoHzcU1K6piPHQ1JMzL9hs e4wTaurq60XHCRsY6skyKD41geNtaSOBykrn8woMUn64qqTIgpeA2avmh8cPXVmas4// s14zAL41ldFMi7QWKWnycIlqqttwSuyBfMtGdx5t7O9RlUXb1gWwDScePlfIXjq+tr8X PYJ7wzZsw+EEodOdnP5KY8imDgHZeO7mrxQMhLxGkHMLyxSAJm8h58/Zjmtyo8yjbMB7 EqRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="nMg/uVE/"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-117235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u11-20020a05622a17cb00b00430ea1a92d2si5706899qtk.619.2024.03.25.09.29.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 09:29:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="nMg/uVE/"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-117235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 969CB1C63E20 for ; Mon, 25 Mar 2024 16:22:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E480154449; Mon, 25 Mar 2024 14:20:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="nMg/uVE/" Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (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 8A0FC12D748 for ; Mon, 25 Mar 2024 14:19:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711376399; cv=none; b=eLG+bAAl56VoSV2KcKwPGM2X4ImZKGc/SlKuu4WncXh/lc5ccAoxVxRYbN73BhVbh+lzLj+hKJ+gluM/O6yblLKmSAJDhfNl9Jy7jY4mtFn/1HuL/mvgcSv1iZWyEtWNfd/zrTWdcrqWposaEM/3aDn8Q1j92JTtBTM4nTWCnb0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711376399; c=relaxed/simple; bh=SydhYBUNZqt6seDV8GSPes7otcagbCoXjH+x0l9PSis=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uSzJxR9ca/nx9bImFnVkt9xZ+RsTIURqVuP9f207HtDhim2b4jr5SQ/9FbPxfjw5vs3SMdPyWkKcV116i7svTPsoFA6jVYaDHEFbiOFwiCTKYT42XO4dRdLvO1ICqr7Ry52B58l7knWSOUSyk1Jmf9ZERrZblIav+c9bClTMduU= 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=nMg/uVE/; arc=none smtp.client-ip=209.85.160.170 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 Received: by mail-qt1-f170.google.com with SMTP id d75a77b69052e-42a9c21f9ecso18320531cf.0 for ; Mon, 25 Mar 2024 07:19:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711376396; x=1711981196; 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=H3XV/BFRORhDDlgNHHmWyRWqMIVOw6WvWWLzRQu/wIQ=; b=nMg/uVE/TL6u6fL6AzDxSZwnQzAjadgsZTZT8E2sZqodgHh4JMh+NnIqUAKBF2KiPp Uhf8FeXRjkfRHwBoEN+9HafE25od3khaHWe5KwP3QD11kTwsR0mlAy/E1Qq05birEqIs 5DX2ztrA4a8YaATMC+x3ToK3CmHhMWnbJaD8M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711376396; x=1711981196; 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=H3XV/BFRORhDDlgNHHmWyRWqMIVOw6WvWWLzRQu/wIQ=; b=tVNvIGmfB7B2wz5Qn1oEeyUcK1THQoaLJtXIqvYk5ulZf8g9qNydT9dxzgrbR8Pncd KCSyC2zPLmtZFTzesk4U0s7e6FJ3RH4PTXPBEIwP9u53XUjKZQoQItVI/PXLorxsiTnp gT8JZHtFTvP83VXpGvSP+ELvTjNfzhzz26MKcNNMajVB/1zVGM/OTOPuWM2PQDSiPD2B PBTfnsYlcya8/BV+eB/L9NEhwULEF8u5LLKTVeFCVmm98AfW7K6lnVUjW3NDhmsvb281 KVPgYSeV8o1EUrPhx6NfZL29oAjtd7gz1jpqkUVzilmgTk60yTjUK9oaivaMdm3pMa8g 1I2Q== X-Forwarded-Encrypted: i=1; AJvYcCWT69aDRsiYVaxjyY+B6EKlvb5XTquSiN+ZVNSCU2Dlvu5HtoPLOL85htxTZ5IDzN/zpEma5MCdQL7ccAG7IP7SeY4mbUowZJOHmFia X-Gm-Message-State: AOJu0YynKrg/hU7AFlxoppONdESEMLgcP4d8v/E2zyMv1V7o26kqCN4c VHvK1RuU7/+KUi82KGn4Z1RuC+llMpSwjER+ajoiq6B9oFarbYhfZ+zzM3dUrw== X-Received: by 2002:ac8:5a09:0:b0:431:5c20:f0d2 with SMTP id n9-20020ac85a09000000b004315c20f0d2mr2279132qta.22.1711376396512; Mon, 25 Mar 2024 07:19:56 -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 br11-20020a05622a1e0b00b00430a9b20a55sm2618759qtb.69.2024.03.25.07.19.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:19:55 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 25 Mar 2024 14:19:53 +0000 Subject: [PATCH v2 1/3] staging: media: tegra-video: Fix -Wmaybe-unitialized warn in gcc Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240325-gcc-arm-warnings-v2-1-47523cf5c8ca@chromium.org> References: <20240325-gcc-arm-warnings-v2-0-47523cf5c8ca@chromium.org> In-Reply-To: <20240325-gcc-arm-warnings-v2-0-47523cf5c8ca@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..c39b52d0e4447 100644 --- a/drivers/staging/media/tegra-video/tegra20.c +++ b/drivers/staging/media/tegra-video/tegra20.c @@ -176,6 +176,7 @@ static void tegra20_vi_get_input_formats(struct tegra_vi_channel *chan, (*yuv_input_format) = VI_INPUT_YUV_INPUT_FORMAT_YUYV; break; case MEDIA_BUS_FMT_YVYU8_2X8: + default: (*yuv_input_format) = VI_INPUT_YUV_INPUT_FORMAT_YVYU; break; } -- 2.44.0.396.g6e790dbe36-goog