From patchwork Tue Jun 4 05:11:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nas Chung X-Patchwork-Id: 13684652 Received: from SEVP216CU002.outbound.protection.outlook.com (mail-koreacentralazon11022018.outbound.protection.outlook.com [52.101.154.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89A3213DBA4; Tue, 4 Jun 2024 05:11:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.154.18 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717477904; cv=fail; b=ZinZKtdPC48dpocRZfpcE46JyTGxds0mkyWjBi/gIyqsmAnPI/qnVVgqZR/S+fhPsQkBda7BLS9Whb/kxquWT1jeJpb4KaxC17l1IZlFQICbQ5h8WJLnk6NM2BFMHQlH/mudKoc2sfNwSw9/ebbKLFIGUQjUJ7bhpCJ9+fmHJ7Y= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717477904; c=relaxed/simple; bh=7cJfdK87ftfvhKD8heJ0+NI98EwfX/oBDqQnG+UwBWs=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=YJa3XM7IipZ6c0W1h1hTHafuU0gxn6B5LvBrnyplgqppoCW2/QuU8sn5AKvC7nfFpVv3jAHQ20T+tZwjiu70BOwdPFnUqxjPZXXlio0Alv0b7PEs/Mq8keCX5OWTqJ9fqOAYjXNoWjiKvg1BlrwobXhSjHEoN54zlI0Mnopvm6I= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chipsnmedia.com; spf=pass smtp.mailfrom=chipsnmedia.com; dkim=pass (1024-bit key) header.d=chipsnmedia.com header.i=@chipsnmedia.com header.b=WTCo9tNe; arc=fail smtp.client-ip=52.101.154.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chipsnmedia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chipsnmedia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chipsnmedia.com header.i=@chipsnmedia.com header.b="WTCo9tNe" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WHEkVQGwhCwsdDU8o+SW+95Jvh+Abw8qoy4/uqh9/YtJbr5EbPBBFP16kH3/50x+Jdntp69PWFv/GWukVdglSuc6X00A3u30/UC6TGAPIkvjCawYsqe4nTT1KdsbsINPrvhpuNbw98EPvpLPkI86WypyQVk0i+XV9khodbwmCIIWKR1+atkQl1/RXIRxtQNMfI6VLr6TWzOvh9YXaGfda4PdrpqdwRtR1/K/+FFKwG0bO/4g7/Ecl1BY5cL/Qv1Kgk1IdjDgi8LSOKHbTCZDnmG4kmdiGE+xdbLUUeFtii8yll/eQbnm4Q+n3ITo0u0xxqRAx+c7myUJJF6AlHz6cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZoCXtRmruLooNqkHk/hITgSWUp+4gmZn5RIctzBMGA8=; b=esQzSg1xk65i5znE2ei93zijvUN8k9gZnTmOfH8OIqk85f7gLAggoxEdz6AT0TydkmZjRcT7BHA+ZrcdSkmDfCfxAjnye5+20ztfwJoE0aMjdnqtW5d9UHlfv5LVgp7Rkp5DWfTkjTgTfOVvlPW9x4Rd8VlEYjRgGyCVq0drzj1K310DC3qCg/yV6KN4Fb04m0rhpgqs9A8YZUkG6hC7FZ91KmjZ6B+yF+ETzy9t9T/CuOeHT9WYJmeORdTf+x9Thy8flW0OwSjvCE7Fr7G+mc8n6rnHLnf3BfwlJDsCfVqbYLKpCrcZ1xjqlZzMlUwm5AO2ggBoB6Fb49zO81URLA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=chipsnmedia.com; dmarc=pass action=none header.from=chipsnmedia.com; dkim=pass header.d=chipsnmedia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chipsnmedia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZoCXtRmruLooNqkHk/hITgSWUp+4gmZn5RIctzBMGA8=; b=WTCo9tNexSEKPxLCe08saef8Konzlo5S2S/FQ70yk4cbSlQTRPeOZ0SP3cKwUIPv7bgoCXgTTQCIGWVRwOKUB63y1gdPq9mrT7Dd0BMHBPqRi+ZSkWWg6AsXBcS8/GiBbDacnsA004tM3SxnHRXjhaX4buhwBCMoO7LGw74ov/I= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=chipsnmedia.com; Received: from SL2P216MB1246.KORP216.PROD.OUTLOOK.COM (2603:1096:101:a::9) by SE2P216MB1537.KORP216.PROD.OUTLOOK.COM (2603:1096:101:2c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.27; Tue, 4 Jun 2024 05:11:37 +0000 Received: from SL2P216MB1246.KORP216.PROD.OUTLOOK.COM ([fe80::9e3d:ee20:8cc7:3c07]) by SL2P216MB1246.KORP216.PROD.OUTLOOK.COM ([fe80::9e3d:ee20:8cc7:3c07%4]) with mapi id 15.20.7633.021; Tue, 4 Jun 2024 05:11:37 +0000 From: Nas Chung To: mchehab@kernel.org, hverkuil@xs4all.nl, bryan.odonoghue@linaro.org, linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Nas Chung , Michael Tretter Subject: [PATCH v3 1/3] media: uapi: v4l: Change V4L2_TYPE_IS_CAPTURE condition Date: Tue, 4 Jun 2024 14:11:18 +0900 Message-Id: <20240604051120.9441-1-nas.chung@chipsnmedia.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SE2P216CA0068.KORP216.PROD.OUTLOOK.COM (2603:1096:101:118::11) To SL2P216MB1246.KORP216.PROD.OUTLOOK.COM (2603:1096:101:a::9) Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SL2P216MB1246:EE_|SE2P216MB1537:EE_ X-MS-Office365-Filtering-Correlation-Id: 422e6d6f-6303-4fd0-a96c-08dc8454cf60 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|52116005|366007|1800799015|38350700005; X-Microsoft-Antispam-Message-Info: HPuT2trc8kOi23WLMHZ8kPU6QMeun5f0qMcbxKGcQrH7owuFWkusrxxm9ahzDlnTA9tbQRUIHWswQujtLE8qDcXI8sZhW9l13JpaX6kHlRBzEmc1VJhnMC9gG1uw/RMjR9wRDFiqtapKKMvmEwpZbpdCPEJwwb518A9W6PHFOk9+6mmC3g05TFqTtpHQN5Bh3Ws5HFNtdlasrDqhXL+hffjwYyfVgi3lt+GS2wHKRmdGfbORCaVwQfygCmYNvr//z0+vu3JrHt2SCRvNluVmgdmoHEckgHYa1P7oKJJB2bvbTCSrG7PbS2LrQDyDLVvObXoyZM46SAxgPhPya+DNUuzGk4OXRcrORlEoOhxNn1NpyJqZMRTHwCNQyft4nG11F5JGa+qt/YSsBZovdHOOG2htZhxK64YaZEhlpKjOWoy5bz77IQqiJ3pFIJYj3Fm2Y7TwA0h27iFTQMP6U0KeytTc+msqUbCtiW26YmeCZgkSRqFEkmYRx8oQ09Cp8qWX8XAX0ul1u6w9MgUFkygsPBeHp2pwKklUwQZYnikSSkFlqglXKSeMWfsZOf3aGImy+miMTwxwSLDANOae6QAcTxD1Y3aCPJWX5mFSlD5gCJndOuAE4kRVW9V/hFjCjtC5AL1gjfO3mhyQNnm59JnTf6e4bvznfJktDzKCFXCX9ZNJM404oiuqrO0/u2fW9x0d7J33s2WdXMyAj4+9QxnEE69AnYMxd3WzSHbCeDLZ8g6gJwM0UZ2ndXYrzHBCf1suqkO3QbkNk+BEoruqKtok/1D/6mnITn5n6livfefBMVQHgp6VsMw3T9F5xmtdFUg6QFpoUbnPgw7/GXkfBSXf+TNCzwxbIP4UK1VitcjxPkRL8MszUzrkSOmPqfUzISB3+1Wc50QhLaFKki3BGwNtj7Od6OJEmlMkHHuSjb9zC8MCRWzNK/CUps7+/dJ6NbGHOm2Azjplr7my1qrCttW8oeA5o00XMwzUxQupAU2TQTr4dRSmTPDmAgR5lOCMeR3iA6roapyZkqFgVrmBVoNIg+UVST651nOdFP8mxAXsgzEmQU9n0ZpyIhpUlsxHMnY16gjeSP/J+x1Qp9RiUPdeJvaxZ3tSIdYuY8pIB4o3UQo6aCXIA6j7l6fdOsNMGTqImsOj+k6jtFvm5EGVV3BLh2VgW4WCUzCvIzTo2Fe7hHYmrALbPJJKKxGi3we4jWpQPNxQX8pXun8+fe4wZuvZRzHUZKnfGeHvSdYazLfvPijNW303ZXT+dS8r705T4ENu6IqXpC8sd5Wi6hW+87wB6fUm5mTceMMhvimYKvJyDeJpnZyW9NF7Eof8x5hHfUoMhdQazit9brDHgiLQbWWlOA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SL2P216MB1246.KORP216.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(376005)(52116005)(366007)(1800799015)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zY7PKxnEyNIVSOfeQ5xnQYiKZDBFYLwohsu1Ni3/j303xf46XyYzmyewSpSP26vyhdnCFaxk5jO2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hTs7NtYThk8jQDJtedZPC5P7JRye51zW5NTDq7DMCajxh1cuM5w1WRNqQdyckyLtVQBWUKnP2sGsMTgX7eCqOTMQxNpA1pV8uuu3uvFw1lFNrVtGgOt8r0PrqogIBfpEU0xMJIMvUyNLwqJHc+rjEQN3D34moJvClK8+1yJgmWo8qCez/r4oPgmuAMpLQV4adLaBAlPqo8EuNBl1qWBbIEeNYNUBdyi3WbDt4R4SNe4t0wB3k2TmPuthdyfEcajDxN4GfFUf/1jgzF5aQiBZTzPkIre04Yis7A5OY6Inh7bqpfRxlnwk/8iI72y+G1lsH/3gNT5LE76SRQ7h1Vi27r2AwR1ASvTVfsyvFxBkNp+YeU0wvoIBlslxaSxfiJAXGWuTG1Q0A3niQ4TPfdUQB2u5mGtthL3StLcC3QIPxfGCUVk9AFpN0toxJZ6FYdd869YjnqQrZvISPA74PvDI+e6Q0KOw== X-OriginatorOrg: chipsnmedia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 422e6d6f-6303-4fd0-a96c-08dc8454cf60 X-MS-Exchange-CrossTenant-AuthSource: SL2P216MB1246.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 05:11:37.2333 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4d70c8e9-142b-4389-b7f2-fa8a3c68c467 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: WnKv7SQFALFlk/4H9gzA/DtJqrzrGAoNRTPRWz6lmO2u+Ku4xz11zR6e9oj8mia8E14ubX6o7Ib4zE9FCMTUxS9o2mN5FkBLgXlgjILa0ME= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SE2P216MB1537 Explicitly compare a buffer type only with valid buffer types, to avoid matching a buffer type outside of the valid buffer type set. Signed-off-by: Nas Chung Reviewed-by: Michael Tretter --- v3 - Address Han's feedback v2 - Improve commit message - Add V4L2_TYPE_IS_VALID(type) macro include/uapi/linux/videodev2.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index fe6b67e83751..51da63173a98 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -153,10 +153,17 @@ enum v4l2_buf_type { V4L2_BUF_TYPE_SDR_OUTPUT = 12, V4L2_BUF_TYPE_META_CAPTURE = 13, V4L2_BUF_TYPE_META_OUTPUT = 14, + /* V4L2_TYPE_IS_VALID and V4L2_TYPE_IS_OUTPUT must + * be updated if a new type is added. + */ /* Deprecated, do not use */ V4L2_BUF_TYPE_PRIVATE = 0x80, }; +#define V4L2_TYPE_IS_VALID(type) \ + ((type) >= V4L2_BUF_TYPE_VIDEO_CAPTURE \ + && (type) <= V4L2_BUF_TYPE_META_OUTPUT) + #define V4L2_TYPE_IS_MULTIPLANAR(type) \ ((type) == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE \ || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) @@ -171,7 +178,8 @@ enum v4l2_buf_type { || (type) == V4L2_BUF_TYPE_SDR_OUTPUT \ || (type) == V4L2_BUF_TYPE_META_OUTPUT) -#define V4L2_TYPE_IS_CAPTURE(type) (!V4L2_TYPE_IS_OUTPUT(type)) +#define V4L2_TYPE_IS_CAPTURE(type) \ + (V4L2_TYPE_IS_VALID(type) && !V4L2_TYPE_IS_OUTPUT(type)) enum v4l2_tuner_type { V4L2_TUNER_RADIO = 1, From patchwork Tue Jun 4 05:11:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nas Chung X-Patchwork-Id: 13684653 Received: from SEVP216CU002.outbound.protection.outlook.com (mail-koreacentralazon11022018.outbound.protection.outlook.com [52.101.154.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DC4413DDAB; Tue, 4 Jun 2024 05:11:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.154.18 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717477906; cv=fail; b=QfU6s9kcOYRU9FTopJZYPKqjNarGeTXWFv/etE33OVgrKWxVsS7YfMYgZWevuSygtQ1Jqq1jPL5+FfnfrXnNhZp7HENRI63Z/v3uC8qb3oXXvAYeATjqa2gKeFBpQx9QCzaqw+Gi3ZuXFIIG76ejGZvcxb5VVAm6hX6SK/ZomVc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717477906; c=relaxed/simple; bh=fz8DxEF3MjNB5/0zQz8VN4EFVP81ZnD5LFAmEqE9fJY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=Kf8BoDxYnv7DcdgwurZhYQ3Xs2FH2bXftm6KhpVOqEVoAiLLXVW/DMPhnF10y2uWmtbQhdSXAYjwYYPf84WzRmHeKNlQUKuFy3c3BIS9IS8aInYsnL+M0PulAd5c3yPREVwaUNW3My92T+Mz0rdp3M8IeSZmondSgACRTNipdJA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chipsnmedia.com; spf=pass smtp.mailfrom=chipsnmedia.com; dkim=pass (1024-bit key) header.d=chipsnmedia.com header.i=@chipsnmedia.com header.b=eu7lE/HN; arc=fail smtp.client-ip=52.101.154.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chipsnmedia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chipsnmedia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chipsnmedia.com header.i=@chipsnmedia.com header.b="eu7lE/HN" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QjDakmg6smbeqE42FE88SKFMAvfEDGvB5F/9SOvNWdczXMHCqgDDdB72KrOGkkxWCfC9ZLX+iQF4pvUSt5A67/4D/2wWcrnfWvi2pyE+vKsOfcSUAC+brabpJcHlBVdCzcnAOAOAngdPdsBjqZrvncdP24mUjbPrIb5UILmUt90B1zEwPoxUh1VGuVUZAvpik8WDX4swz2xKX2C+RfIhKzsUI3R1vngwa+6xJpC5Zaqoi19PQLmxNO6/GZA3cQ75QPmelm9SveeQwfBJVjK3n11BEhVkMRsuMNlkl6pJpeGtyX+4t22c2sF4/AK0jSplUyk/SAtUvzKxIVwRfhvU4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=98IokyhvF5viXgCvgvP+4isEJFmV3dVZvFJiOFsVBkE=; b=DCVh36HekGNxI4+dxSqj5QhTXIekOyhbYlaIvVaOCmaqLiNkIphwPX7+GbXzkPfBq/XeG7Jrb13qwkCqfvUwOxO8nuoj0PmQoXC0cmUZ+IJaO90r8m1qFDkDgMtjiNmc2ZML+mmgXmdrwaWDx4I1RPciLpHmJZx0GQIGwgRXQZF00HbfROwY50p2I8gsZzMeBRlurCmDXyZAvmhUAO2Me5QkccTSjVvtPqlbflKO7sHtbP337TO54d0QTFsc5AVDexKoszN33U0sWQDOALiMpVbC7s8VCHNqFAfiJFxvpRDs+SRMuwFWP3XyrX/jBva7coC+Dky37fkHjfjlH+vNYQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=chipsnmedia.com; dmarc=pass action=none header.from=chipsnmedia.com; dkim=pass header.d=chipsnmedia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chipsnmedia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=98IokyhvF5viXgCvgvP+4isEJFmV3dVZvFJiOFsVBkE=; b=eu7lE/HNHl+vDNU0ALcn1nhmVeHNd6StdrHdRi7ivlQEKAT8VIm9jVgpK/5jUrwuqgVgsk314hHJE4lY1sQ9q/Dz5ENOvMzZWKBaIW+g4kN7YFYSZdxXo9Hss3Nd61dCSlzbFc5EE0zTVrbzOhS11uKQXAURCv01Rf8OtmYP4MI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=chipsnmedia.com; Received: from SL2P216MB1246.KORP216.PROD.OUTLOOK.COM (2603:1096:101:a::9) by SE2P216MB1537.KORP216.PROD.OUTLOOK.COM (2603:1096:101:2c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.27; Tue, 4 Jun 2024 05:11:41 +0000 Received: from SL2P216MB1246.KORP216.PROD.OUTLOOK.COM ([fe80::9e3d:ee20:8cc7:3c07]) by SL2P216MB1246.KORP216.PROD.OUTLOOK.COM ([fe80::9e3d:ee20:8cc7:3c07%4]) with mapi id 15.20.7633.021; Tue, 4 Jun 2024 05:11:41 +0000 From: Nas Chung To: mchehab@kernel.org, hverkuil@xs4all.nl, bryan.odonoghue@linaro.org, linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Nas Chung Subject: [PATCH v3 2/3] media: qcom: venus: Fix uninitialized variable warning Date: Tue, 4 Jun 2024 14:11:19 +0900 Message-Id: <20240604051120.9441-2-nas.chung@chipsnmedia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240604051120.9441-1-nas.chung@chipsnmedia.com> References: <20240604051120.9441-1-nas.chung@chipsnmedia.com> X-ClientProxiedBy: SE2P216CA0068.KORP216.PROD.OUTLOOK.COM (2603:1096:101:118::11) To SL2P216MB1246.KORP216.PROD.OUTLOOK.COM (2603:1096:101:a::9) Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SL2P216MB1246:EE_|SE2P216MB1537:EE_ X-MS-Office365-Filtering-Correlation-Id: 0c2ee957-93d7-4623-b71e-08dc8454d1dd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|52116005|366007|1800799015|38350700005; X-Microsoft-Antispam-Message-Info: PYAc6EHBWf6Ruq8/zF4XyV2dsi/BP1D00OB8XTF2bbSlo5NRRzOd7l41CYNhxo/1MwSIDYAwUbuIM+/UoN0FLZSO1knNzuyWnQvm4KjqyvR9E21h4dDDPCIi3RS25aX4tNaemGgXlYGNhjQiTp/+67ne/SSNc7O/BJ1PudcGjY3FWwRZxuPABX6F9Rt01rUJ+bvYDUltXKZnOayTeUU2gGoomZ5otmPy2hTcLpi6oMUvGN9zpJYzu88T9YS9rXFtl+fnitqGcuQQKLYDEP410PPT4MTgBgEBJQ2Pm064m/3C51V4l3LkBNFYLDU9eCeT4s+CuEI0/Em1Ow03hNv7xHqltmJRCUX73PXAIAJIPQiqicK2wTPHiIL0dPrXXv7Yp/DmUcsDa+LFuhs+sGMcJxNDXl1dl758950MaljWYUdGyEo9ywNT0hGkfSg5GeKiTbyjSlNi0uyoHVdniwL6Hb1uJb8XUyX2eLGcUbzAkE/7AP01HTdHu6a21FHKLdMNrFVBE520uGUK0jeRh2J9xG63Bf4XIg9b1z78r3mk/igAOzsAGRZNB8z5GwWdXE9l+jCl4JBUooQ3e2ItDV5EaRspRPvSegjdyISEK7a67BZf2ZspnZpUwQd+nUH3szfcShCcB5cx5Oe1vpBbcoabT9OUwOPslN5gAhnZC9fPcjBuKvNr6SO0hBPUx2xPAv5oRbbr0KMjnqt9dShmizIBpJPxgr2B3Ybl0ctSVtu7JPVl/r6oJe2PQEJxm3noDUJ7/Ig/xHYaFzRK3hPMiL1kgkfZgKrYnTO2LiC372FRdjSD1YWoJciygpMTeSQBjVcJTeOYs2ZoXXpegPQcDzlRMD88igcDgRj4TpxXCA9WldeaqqNjmaJn5BPSlzwSp1Yc2d26V6Wxh1oOKeqjoQN4PzGbz3I+RxCB50GJfXeeSZN73/2mfp4g8DV12ty1h5DrYf7Ixr/JEHlNyJmKHKcBnHgqiw3q2n9hf2DHNAfoNm9IAP2uB0THAX2pdFXXUjsDgJw6D4A4A5vUZWVeN4KI20dAF8FzdSMYq/PZWJzNRrQeeYumslGqsFB5Tp4SXF+gMBwOcWw+HvhXdcYnsj1fYnb3YufbFuKyjt+PSR2cKeEzj5FaEMXt7hhTbZYJAlW3fNdjJrCwbZR8HVKSLBMThaBlfvj0wMYg80pawoZjMZXxffPgo+ezFjqZSVEfvC7cxpQZGAmczb47QaBF9BhVFCZSHKph/lcU4OkcPAHq8i8qbPu6Abt0eG740jdz85oYI0u1MQH1O2Z+EbtVj6Uarb9+iLOG53C8H5nrVPO5yP0Qe+i95t7Nrb1fukC7vPAf2/dxzwwJcSAuluWqfGN4qQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SL2P216MB1246.KORP216.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(376005)(52116005)(366007)(1800799015)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Dg5NBeUreFMnKZ1qcxgIJhDqMbs+Ni8VyZzVQEdAiz5B9nRax3V3oO1Ef8mNg8LZWCrbg0DjrZxzfTlPbJVhFa99BtAGBfKjJ2JXtkvsACGyu0V7RJrdEKgxd5UN7t+/WAmNDe9bKN7O9rWNOw7spcWZvTCCTJYFhREv4IfKuyVZ/Ntjk50zBzX3r3xp55qkp9KdRyRpqDMmIbFzh1Ansj8xPFrX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kPqt2PgN9yewDAXztTrGVQPEZHk022HOkNYz8wUHxeKaVPCRN5f3XrzR6fxumRSUUzhv3A9LeMhccQUbuuKMwf3XXw+kitkzADKr6whwVeDHrEKW1BNQILNlkW5dYmvV8IdPjCD3KbByl3UQbSHhjXucmLxb7QF01rSHxL6vKsAIakX3TcdtbKlGUw1R0ycd48AvRr7gQfFiqjfZzvg4j1U2TDHufUeDvzxUcR2RxyvOUuB7B0Se6a6HqrkAQ8e8XKohwsStGc9+qOslW2BaZtpK+T2wKJrOKaIzhxMQpD4aRvEocKQ+3DK4w7DpHUzNjRmoaxsE2IyPYI+6A== X-OriginatorOrg: chipsnmedia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0c2ee957-93d7-4623-b71e-08dc8454d1dd X-MS-Exchange-CrossTenant-AuthSource: SL2P216MB1246.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 05:11:41.4100 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4d70c8e9-142b-4389-b7f2-fa8a3c68c467 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: SART16oRmPqgXB/LIyfObE7SVKA2ZnYnU5ZUSsbgS0+8JCfOxMfU5PtCAv9vAtTOtuHo/brNDrpL+SZtwlJgoh2sEsNxnGIzkh9kKRsbvGk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SE2P216MB1537 Avoid uninitialized variable when both V4L2_TYPE_IS_OUTPUT() and V4L2_TYPE_IS_CAPTURE() return false. Signed-off-by: Nas Chung --- drivers/media/platform/qcom/venus/vdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c index 29130a9441e7..283d3c21c2b5 100644 --- a/drivers/media/platform/qcom/venus/vdec.c +++ b/drivers/media/platform/qcom/venus/vdec.c @@ -161,7 +161,7 @@ find_format_by_index(struct venus_inst *inst, unsigned int index, u32 type) if (V4L2_TYPE_IS_OUTPUT(type)) { valid = venus_helper_check_codec(inst, fmt[i].pixfmt); - } else if (V4L2_TYPE_IS_CAPTURE(type)) { + } else { valid = venus_helper_check_format(inst, fmt[i].pixfmt); if (fmt[i].pixfmt == V4L2_PIX_FMT_QC10C && From patchwork Tue Jun 4 05:11:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nas Chung X-Patchwork-Id: 13684654 Received: from SEVP216CU002.outbound.protection.outlook.com (mail-koreacentralazon11022018.outbound.protection.outlook.com [52.101.154.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F3A313E052; Tue, 4 Jun 2024 05:11:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.154.18 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717477908; cv=fail; b=XDbFgw+/5pEyQCZKQocUCa4NAQsTPidRpl/q6qMsyOvnK8EBlLYeWCqnb1DjcUtp0mYyVDyAXzmYSY6Pe98FSdYZhjfUhoy5tvm9bV8F19+/sbv13ODfT61JVSZaUYZTahGZFpVN1GrIhICxNkN0WGzWuU1qIyDd0QFM+3Tdm6Q= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717477908; c=relaxed/simple; bh=cv0fou/XWV81AXyGQz0fk1wU/LNHDn7XpV3UNu8iWlk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=tSZuDSZOxI4MczYYGqPqgHshjvEIRl+/f+254hs82CNgy6CQxocbtwAHAMJXsL3BuFxzvm0d5tJR/MvwFXTGDGjFzx+Ka27Y0pBrMUV0D1k0hakXAoqrrF2ppfZAN3FFq02PecjjH9A2iXRgBs3Jvr9pm8Bh4c/0zPdQIjbz+4c= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chipsnmedia.com; spf=pass smtp.mailfrom=chipsnmedia.com; dkim=pass (1024-bit key) header.d=chipsnmedia.com header.i=@chipsnmedia.com header.b=ThzMeHuZ; arc=fail smtp.client-ip=52.101.154.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chipsnmedia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chipsnmedia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chipsnmedia.com header.i=@chipsnmedia.com header.b="ThzMeHuZ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m7TsZMhaRKSUeMsBFzndR1YCcKppbHf31y3lq6blmQM9QT02IaK6HvN0skJub/GVT7XJ2oTh1mLjn7n2rfXxm4kJuzLCazSzDq+tnUOmh/0d1eotgXfy8PS6bsZ7X8prgyUCMaCw6NfWkVmpCoF2e666CR/iI3Sps3IrBElpduDF3c+0RwIZBBgjkOPmAZuEK3yaVnc6MJxAbOksZpnv+qzGCrdCAIAIh6rAmgVaPXu0MuS/QLoF9oe1mVc5wjnpSOkdSkftrZMlyimYXCiWP93MhEbUA+Mk8mi/H29MRsjUzNeaqM+aq+d6HKJUhPOmCggAwjdSH3pwYEebYCvLiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YHIeEa0zLSmQQFnKk7KsbDjHEmwlqEJ2wWNK4xLlky0=; b=PuHbIWwsENGX1kFLf/TF6tYLhCeGz97xpFfYZUSrbVMWgpsM+bm++9M4ue+ReaRsCSTz3rtDCBRiuw6tPYOktNHayJipb9M7V8J8DLrRHynApcrQNaR32RcFtRkpER5gESEwSphXswonBIsch2iJF0gyjRzTOU7r8IsxHZA4tgRx6UntDD1llrslBM6CD3e11SujNexP8dg8CHZezj4DWC+PGWGBScMDSMVQL8gJdYHElQRsp4eTy/1giEiaKlnHD3qoHYN7DwmOlhlblV9dybLaesoy+Zr+AwbngCxVcvAae43v7BkuvOO49jRVGDaGJaEn4m2Oa3vDqw0lZ+9MHA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=chipsnmedia.com; dmarc=pass action=none header.from=chipsnmedia.com; dkim=pass header.d=chipsnmedia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chipsnmedia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YHIeEa0zLSmQQFnKk7KsbDjHEmwlqEJ2wWNK4xLlky0=; b=ThzMeHuZZvvpbc5djke4Dd8Ttn+j+iF8K3MkwreFCddVl0An1jcIbLalD9DjV4q8RTCcCbFU7sRswb4wSPN7SkSByEI0LmY43nxIVq0EQ9Q7q0fZ6U0zBr23sME/kHylJdnXRegfm1Xr4+VXNMvZO7QJXOd1BnHpkfwOR7s6uus= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=chipsnmedia.com; Received: from SL2P216MB1246.KORP216.PROD.OUTLOOK.COM (2603:1096:101:a::9) by SE2P216MB1537.KORP216.PROD.OUTLOOK.COM (2603:1096:101:2c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.27; Tue, 4 Jun 2024 05:11:43 +0000 Received: from SL2P216MB1246.KORP216.PROD.OUTLOOK.COM ([fe80::9e3d:ee20:8cc7:3c07]) by SL2P216MB1246.KORP216.PROD.OUTLOOK.COM ([fe80::9e3d:ee20:8cc7:3c07%4]) with mapi id 15.20.7633.021; Tue, 4 Jun 2024 05:11:43 +0000 From: Nas Chung To: mchehab@kernel.org, hverkuil@xs4all.nl, bryan.odonoghue@linaro.org, linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Nas Chung Subject: [PATCH v3 3/3] media: uapi: v4l: Fix V4L2_TYPE_IS_OUTPUT condition Date: Tue, 4 Jun 2024 14:11:20 +0900 Message-Id: <20240604051120.9441-3-nas.chung@chipsnmedia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240604051120.9441-1-nas.chung@chipsnmedia.com> References: <20240604051120.9441-1-nas.chung@chipsnmedia.com> X-ClientProxiedBy: SE2P216CA0068.KORP216.PROD.OUTLOOK.COM (2603:1096:101:118::11) To SL2P216MB1246.KORP216.PROD.OUTLOOK.COM (2603:1096:101:a::9) Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SL2P216MB1246:EE_|SE2P216MB1537:EE_ X-MS-Office365-Filtering-Correlation-Id: 8081110e-3bad-4b19-07b2-08dc8454d2e4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|52116005|366007|1800799015|38350700005; X-Microsoft-Antispam-Message-Info: Y9Sh8bj+S+wNoSOsz0TU8cYG89uXzDFH0qM7BACzwRovCFR0p4cifmOQuJ+CQ5jiGa1zusrHXbtQ9R+E+1rD+GGQkVt6OojhIpqnDXl+nE6eR4jJWRpFV2BAhkc5yAOcNj68sHnoxRCzLxjddlQi4PrYOf6e5FoLcCukpAHs2KUFhvuxWoZm5VzGtPAt56Qug0XoekvVbP02DYIrd4rpu+AdIS/H0Wsn7alADcOBfyDqiLwn3YN8gAtKf663F9kaRWn9vw8/Z7mJqr7WIod9BqCNqKBqoeha1ySMBIBGlPClF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255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SL2P216MB1246.KORP216.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(376005)(52116005)(366007)(1800799015)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TBydkJ0bjAJI3YpFkYJFQS2K8bmoXP7WV93M4v8CpmTxeERTK622CWCuWHx4DjkB2+2vH5UmbhjY8j1QnHGGv7dQrKjA6hd0zAyq93+cNa268pqru8OJoygr5UtDrrFsUPIRb2vkG0zGClkzmS4kAznAsxbjjeeWqKG+jwj9YUukZzFdWDl9uuo69bWoaiSiCg8gXQO5gRdAHNHvJDmKT0SneprG7uAgaDgEhSBbPm7exEx0dnRp7YuHgZvinDmUayWeAMyYAqBaowO+Q2ar1pbJy20SkyBKRxsC8cQmNvRSLvYpT1DWctplu7yFIOt1DUluBrq2q5UTD7gNslCJllr542X/VYwkeBLlTVHRtmtiHFIV8SXLHrwc1WkFUK2KQVW01EQ3Wwf0s7UM4NV6Z1rLnLfoDtP3huRxK/VRGo0KB5VsWHb7xKh2IbD/abFM/xDp03DCuDiEoETXOKiDKAwLkIdduPe5QbCqpO0YbiwSyV30ybdIkqWQZaufUxXaKzVh0Yej1S3H6nG9nOn2xIF4CG2NtZ18jMcq55uc/hY136ZnCPRfXcL6CmhROTzVjpHEaEswpXldBwoCyFJc1zD096wpimBQjbTlXvwGl+vKK4J7sxGiUo5B8SgaZEhJg6DAFXeVXBc707gCuew3wXNa7esxgetmTrSMXCbQzM4QVNIiXcSfHlbdVRZEYUvVlRpwDEKLtiMO+Jv3iVLdrfW7KFRonmYxNrqrwl/QnLV5LuiMoWlTNvfTVW7SYEirlqEs366k1OtwNTmNkI9q6jHizebj87ZdYDkYTsTxNTKOEJ9hYSLRC5lc8HQDt4NGaU+cIK9fv6N4LhPurxGWlsf0Urf3go7uBjNJ5W9qyMjLElKhUnvMVVsu18u+LYV142ynl1x7C4W2Vn+oPg5JbJoDReJM2yu8pQSMUN5M970GY/ILu8FbNFJ/+yDm9ZXoXrgNxzHOZGdvXGUsf/I7UIIU//nyGtaFMTAY/BY1Te+vKDJ8zilXVPRRGy0bGxe6H2bt/bZD16PpC9z0ncX90lxSuJbYhDqHc8v/ec9pM2aHazDa3ibkblUAJFxkjWhT8gk+RoVSzENRwxlATAF1L3FZpNCCWIdposaNflkhq5GD+fITmboa4J2qpHo/jvRfTMkb2LF/It2x7mL4ztqRMDOLEWcDSYrNvic1bpyxDQK4/DT5mld7ym9Z64esKuXh1LukeS248KCL8knUttZ93rw1BFIjUTzCcd/+ZP5AC2tZn3MjsCrcFPBCWoDRbI+3KfMS8MdbuWTG2xNeqPAokuJkOzI+4BRjucndRJDfKIbFyS2P4Eped2AUwFYpFETx7RWBRR6iy3YRuvpN1zVW3RekcqqT2EKXWZ3sKwomvTHzAA8CqVVBcyoyV11W2Uj+3G2Kapb5t+TOukZgt9iqvkcGrbx5Oa1tkI+B8DLNyvYMSiTqocxnbfEwG8VPZ4KcJgvpodOHPuSK+V/d6BbAsuZvIuij0ZyTsyhkK9RMBghar2vqoVcs9BwuJyyozQkokz8kkleGypkjqzZaTvtJ0Ej2+sLpmhtpoOWxt5FghBmuufdocAv7anzKTb6h49mhpvAxovj0k3+evuckU6Z8FA== X-OriginatorOrg: chipsnmedia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8081110e-3bad-4b19-07b2-08dc8454d2e4 X-MS-Exchange-CrossTenant-AuthSource: SL2P216MB1246.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 05:11:43.1080 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4d70c8e9-142b-4389-b7f2-fa8a3c68c467 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 60RQYxpmB8ddwGp4oH6WoayX0+b0/h8nEUo+x/c80/zjawoTS7+mcuMn9Z5Mml+bywUy8BuziITFf4EfeHvvRckXbelsj11S7riY25loIbo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SE2P216MB1537 V4L2_TYPE_IS_OUTPUT() returns true for V4L2_BUF_TYPE_VIDEO_OVERLAY which definitely belongs to CAPTURE. Signed-off-by: Nas Chung --- include/uapi/linux/videodev2.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 51da63173a98..9e2bccaea462 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -171,7 +171,6 @@ enum v4l2_buf_type { #define V4L2_TYPE_IS_OUTPUT(type) \ ((type) == V4L2_BUF_TYPE_VIDEO_OUTPUT \ || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE \ - || (type) == V4L2_BUF_TYPE_VIDEO_OVERLAY \ || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY \ || (type) == V4L2_BUF_TYPE_VBI_OUTPUT \ || (type) == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT \