From patchwork Sat Mar 23 10:41:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 782149 Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (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 9F1FD10A1B for ; Sat, 23 Mar 2024 10:41:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711190513; cv=none; b=tpeGRa/K7YZ/Xfm+ccSWeR9ysJQDTqApOwio3O8lCT7bckUjlsBRBxJK0dTXKI3nYaoGahbZDbfbyExO04hGzBQlKiEBhwpOp3yIkFO0VXUVj2V+DYdJTEzaw1tu2OqXQlc0PR7TI8E9QFQBXyrbYBGQl3nOcUlIZrJ2rReNaLI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711190513; c=relaxed/simple; bh=SydhYBUNZqt6seDV8GSPes7otcagbCoXjH+x0l9PSis=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PkitCWArBmL2/lqh4/s3SlZKojHsX5Y+O39eOwy/hxWkVLKOzariKF2WTSmxiyzdweFxPtW0z3FeeZ2fwB0BdlgNPANVYdcitJjdR7NPuv61pJuO/JLr/1pPFB9gzCNDWE+oPxEhNOs+8AipcF5fRAI6QexpVhofiIKcoFh7Q2w= 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=dO0dWuhc; arc=none smtp.client-ip=209.85.222.178 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="dO0dWuhc" Received: by mail-qk1-f178.google.com with SMTP id af79cd13be357-789e2bf854dso183085985a.3 for ; Sat, 23 Mar 2024 03:41:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711190509; x=1711795309; 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=dO0dWuhc306F9Z3PScGw1uDUZtZ4FR4RWg6mIBHJAbbFx/CnS5AiCdFwM2YCSMcyvc oi0T/VbWujf6EAdlgosVNElC1Q078IHlfrRk4iSXk+co6CDHka27oNcpPubPb5jK1gvX d2sVVhBxcnGVS0EaKBb4KpoPwRvDu/DMV/bvo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711190509; x=1711795309; 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=C1AJuOhEEfN3++BzFWa38hj1AJJAB0Q5zCoj03xs1pE4xTmb54kO5om8zenMfdYgf5 bWpQcbifttjjx1EpQN9GeGXJx7qsCgQuGjlJ01pOZrKk1rJXJYpBzxfPD0ONf/KNKAJ+ WzuwJ6yO3FkONcof/EAQAQ6ZSykTIObYUqMJZfIcJUKkLAIWqdF1fm3pn/v1hCsP+B4n PEdk7IamKrgJUIMWNV6UlduqIw159Cs+52hD8HSrcy/0zvTsHxGe4FyIPWcPKoS8819o 5u40IXWMGKvIDb2qtW7w2u6IpFjfqk9tTTfze3MCZvdTM0hMitrT1gnpQufh4gSAFN5+ TMOQ== X-Gm-Message-State: AOJu0YxacgsDoY0Np4SLtUb3UNRAsfL6eebD63Q/CH+tYebxST8QkOAW mfZMPNVKcLa2hpUhBPnLkMPGzSjux8BwG0z28yioIsShEBmlKGstGT5vjWQodw== X-Google-Smtp-Source: AGHT+IFJ0AxLDSRvjFb1ZMGrWouHQmyY7qI2KBszA3xQ8hMp/4DEq6hXhIgWD+DLoGqs1PoIzfFgPg== X-Received: by 2002:a05:6214:4112:b0:696:116c:f00 with SMTP id kc18-20020a056214411200b00696116c0f00mr2359404qvb.59.1711190509586; Sat, 23 Mar 2024 03:41:49 -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 6-20020a0562140d4600b0068f75622543sm1998523qvr.1.2024.03.23.03.41.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 03:41:48 -0700 (PDT) From: Ricardo Ribalda Date: Sat, 23 Mar 2024 10:41:45 +0000 Subject: [PATCH 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: <20240323-gcc-arm-warnings-v1-1-0b45cc52f39e@chromium.org> References: <20240323-gcc-arm-warnings-v1-0-0b45cc52f39e@chromium.org> In-Reply-To: <20240323-gcc-arm-warnings-v1-0-0b45cc52f39e@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; }