From patchwork Thu Jul 25 06:10:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nas Chung X-Patchwork-Id: 13741577 Received: from SE2P216CU007.outbound.protection.outlook.com (mail-koreacentralazon11021106.outbound.protection.outlook.com [40.107.42.106]) (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 5159C15FD13; Thu, 25 Jul 2024 06:10:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.42.106 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721887860; cv=fail; b=fPlXqYKwTgr8qkhc/IFSJSVSJGlopn8XV7pDayiAsLS2NvvbWmehDu02jpn0Nlv0o0TpnuOpakNWJ11uGZYt0L85Hf7VI77J4g/AzsrvZdBs6KxZMyHqt/Yrme2t+ZS3hmiY9qj6ENBOfPWYbxWr327PvIERB2avQBACALS+LnE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721887860; c=relaxed/simple; bh=D970LIGCthGR0/ri/6BUJJAKhO2QNrqEJvBqMuiTp5Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=e5W0cMfcQu8hPtw1IfK3iY9kZgUL6dPQ/glu55yPT+FGTU/MycV1yMGHldZuzvt4abw+I8oIRbpP3QW/uRdy+8jEq8TeD3lIuZtmaQy4NIKZHvG+KnVzlI3vZksLH491S2vYzR9+caRs5n/JzpqwR3Rf09JXBflf3uTQ3qQ8GwE= 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=ZNUCPlpM; arc=fail smtp.client-ip=40.107.42.106 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="ZNUCPlpM" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MaPAN9TIPuFIF7VJNHMhfE3a8ROu69YiVGs/lwoCUDTsmtghjFNxunnHMaVXotUF4DZFTtImEQbJe9RA6431QlT1u1/Ta9L7EUNGu9vWbJhxI4JuPuwtz8r3R3HfmOc2P8+jDQgfMjkL+5RW0hJAIE+NBHvXwBEpni9dEFILv3yR1xE2Jb/kT/sxp1+jkRKIEj9q0nhiLKk8rjcMLKcterDvz/WopOwiJJSzrq2URCoyV2yeFbu8oI6HuDtosI+6HH1TO+CwxnWv8w3Psv92i5Z2y5qfuGpwAa1S0387qSOzYw6B1G+uc5gpaVpME1twV+GdWG7rLUhxTN4VueD+MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=VgcflCY42THp8S1Gu+oZl2RHDtAv7azYbU8IBdtVXkM=; b=TuA0urpilnjYZtAGZzIwSCPouhvokE6XL99M/BuUjexAkxYKEhKahTT6nRUJ4gEtHTNOWiVhIvqVJGavY/pixKO0Pb60M1YQI8KXQZIm6ixqaek4OESAeosGuvLEuaWBUYInAWQI+9yU+LsQ0bt2st443C8v4pIx6+M/C8wcXViyqbrp1oTDTCcdgP34p3e1lyqwODeYQPBWjBaedqRSZsrYTQAJSvijLrbMzfihDdtl34GXZAqQ/YjMWWndWVne5x2JBjvvji/jJFrJYD0ctB+8TunfLQBxmk6oNdEEArmggtFRNtUq28GLX/SExdQEZlm2Rng0gJE9NS55gB+RqA== 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=VgcflCY42THp8S1Gu+oZl2RHDtAv7azYbU8IBdtVXkM=; b=ZNUCPlpM6KhydQegSmBul0w/tf0njINW9gqUeVG0+3Mqy5Q27HA1V3/renaWmNWeOn2CInttxC3BFvxwrUO2LcDdyVjyDzGJyjhMC+ystr0+0dD+2kAH6f8exVc8vRjJsaCSNIAefct64/Zdw+bOHTTijO7daULeRH53HBJ7nmg= 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 PU4P216MB1880.KORP216.PROD.OUTLOOK.COM (2603:1096:301:d9::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.28; Thu, 25 Jul 2024 06:10:52 +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.7784.020; Thu, 25 Jul 2024 06:10:52 +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: [RESEND v3 1/3] media: uapi: v4l: Change V4L2_TYPE_IS_CAPTURE condition Date: Thu, 25 Jul 2024 15:10:32 +0900 Message-Id: <20240725061034.461-2-nas.chung@chipsnmedia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240725061034.461-1-nas.chung@chipsnmedia.com> References: <20240725061034.461-1-nas.chung@chipsnmedia.com> X-ClientProxiedBy: SE2P216CA0009.KORP216.PROD.OUTLOOK.COM (2603:1096:101:117::15) 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_|PU4P216MB1880:EE_ X-MS-Office365-Filtering-Correlation-Id: 4518fe44-f213-47ad-2545-08dcac70898b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: JrOKFAnjbdEV4IAxUNt8JK1E57Tz80BiCYup4GOtNvUxT583pnLQfV3UpeOC+rWnv7GrpbT5/rOWEe5E7ZA4qyUNt7POfbY7QaeyYEx5D0p+uFOP3HUbzDHNF8V3hVvWaVm7uhCL8ONUdLP6n2UXRr0D5iCoTScApiGBWhk7mp5CBwnDAvWP5T5DO95AcDHL720ZBxzi4PZQ0hTPy79aiQqoB4eEKUtCx4dQ9aO+BepXAKJ2L5ZJCC0aCiRNpRSaJ9uGiwtEpg4HohaKSjFbHc3OPz8APyieqSoYGUY6/uYx2Ni+oKVlvCta2LgNjR+XA+9e0JxIaNK/oWD/YPxXaMcC0LsQN+kw7jhg4rH8zf4gi4ZwhNdXBLRlhD2T35p7cXRJN15bnPV6EyUOm+FnVjUyCZvqe1hf01ZGGrOnOnXAI1RKfWgKkdBXcUy070voapyfTCAwvgC22oN2RzzBRMdMicnmpDveGcnpPBrumqqhqZ6/JKGUrVU3rrNIz9WaiCngwkpo/PxhBrfGjQq0TXzgyGpIXIds9XCKpU1TWGaWaWeAop312tTcHhMf+MnvWVr/U+NvnH/DnbakuXIH3EIrKCvtXGSmT2U6SfUn69nBaLv3gAS9GFDXGiwLZLa3zK5PHqhlS448pREjHd32TTSP+VjNvS+3nSGWVGe2PTgf7shb8OgMAlvJRBbYFLNSBpHTZmx4oC+Yc1YUrxYpLoTLXAnbJ5k6HSQc1a06+HgGgYrMvJzMP1cm51zb95VkJlXelc1jCKLaWNgJc/KjQQ2zT1G9vaV3ZmnMOAMbTyS0vdheR2E42ufbGZpAIG6s4YutrUZsHTjCsiYhZHKPKoAmLIvbbYN7TpjgIiNScLIQZmgM9miq8Vl6UwOHSOZUQ7gWaY3Qk/sJmuKTHPlWkqzQDNE/sazsIPOH5EHFKoI6Y9nFk+NeC1hvAUStzoo89vNeSa2UuXqIBSfG4bdDm2J3ruROvg1VIJR9YIEGFVpJQBToOlmU3tNlpMjqi7rT5vY/3jsyFVXmQgqml9m4zImeEJHP2ys2u42p4fKaAb9b6b/L0Wv5v/gk3Z3P/KYV8kNJ8hb8KmHrcOL8YxtgdqJigmjjP6onb2keBuvuIaDJdaFefiXZ51qJASpv7ucfgCkUppdrFyUxlI+S7ClCdwJy9XubRW3nlBD5z8REOFkLDcb2RVSxYKdmSlg9ZqhutkszVEdOygsnx6FENub9nMUVqFInWJthQF4zc+TbrWihbt+fRpAR1Ka72HLr33UK6kOauaA6LcV2ImuwW6KkWF8VIDwoUGKUrYsOEdjiJizqT2KHF2c7BdPY/DsTBZwiaBwfxaJZ4ickJYY4+cRHSsbXPrPMyeWldATRs0cqvKPRoVjF4QLHmB0Jp9c+GFMGUuilGtbazkKTe6cAG8NM4A== 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:(13230040)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiS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by0CS+5RBU59H6KSwRMgIE/ajQWuo+A0MRxYlcQYsegGjZoLyb8EKohbWCwgok0+Owm+41LEj6w4AY5BY83lhWX3irRpbjoL9yAKp2y/IK5NebvnKLg1PyS1mI7GWs3pp3XcgKXf+7IzjUZipBu5T2xuCx/JJJk9CiBora1sYZFOYbN/WEPd06KuRObsWmuUa2yYNSOM1PBevzNDkBMCQCjbFZm0dPUlCdZkqSiheU9i1T7AyprRkmoaAj3qrn/OvIr/bjpIDuPXPu/Obp9i7xvEX1GHiGe/kuzhGtU8iCaD77xqtqCQ/701a8mBLMu2M3u4LcpCcvlCDBTQzL863Y7+Ilh1A/le1YASnLVutIg4jfwkaFMDsx2tyRw3j73tfl5kxspvbmm8G/iEtOOXvOxfzSFnMyT0Hken6RrN0k3H6HYtEfQeQQ8KyKVF+S9d2KMwEv26JRJ4bwWwKKh+83K1KHQ+aafY2wqArjVI7j6jqWYHrdaPmFjYf0mEcaxa+ebj1ncB1Fb2O9RJ0+DDS+9l7t3R4XSkIlbOeW8BdwrRx8pRIU3bOOW6FHC4vnKrGksvvEPZgQ== X-OriginatorOrg: chipsnmedia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4518fe44-f213-47ad-2545-08dcac70898b X-MS-Exchange-CrossTenant-AuthSource: SL2P216MB1246.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2024 06:10:52.4581 (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: qhqX1nzy9I5EfYC6yUYDLby7eoSNg33PWMKoo8N/jlgIznV7D/qmNLkJdYPdQLKm54a4Z0SkHMDIeSsUxrg884n4NFFfN5tOONytSfpH1S4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU4P216MB1880 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 --- 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 4e91362da6da..8293b2197ea3 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 Thu Jul 25 06:10:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nas Chung X-Patchwork-Id: 13741578 Received: from SE2P216CU007.outbound.protection.outlook.com (mail-koreacentralazon11021094.outbound.protection.outlook.com [40.107.42.94]) (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 5884C29CA; Thu, 25 Jul 2024 06:11:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.42.94 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721887865; cv=fail; b=Z9iM3VM6OpIYZoBNc52e2xR3UW7yjkvZI/nOTocNs0VAIQs8hW/PrXa3G6ItdOadco4sJ+wZdnHSQYmCX/bSKzbm/IWEi4eqtJtMoHLWT6c/08bwobRUcCQyo+9uudDhd8HzaAVNYa3tMElqGPk6bO0bBaFTvqbvlEJmDB4EDHo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721887865; c=relaxed/simple; bh=abz71ql46959hQU0JZHgqC5ZFnnIwls9U6WTjFtR4Iw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=nRg9qwaM1/D1e+WfUpK87VVMhBiDJcsdYUPjLDzfPO3HP5EJLCflM2kTVJtqWIeWhgRJu4zQKG+UWdViLb/4gXH3xlhVq4yrfsQQ1d6LmkJcx0DaeBqXIus99+p4MMLZ1a/EhK7jK2nopLMozsWw2jAGNXh1bWELDTppiT+Or44= 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=OWSlmXt/; arc=fail smtp.client-ip=40.107.42.94 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="OWSlmXt/" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hBZSSIEzzOeUe8m3rO+81m5IMFWelblDnyHDAI4zliu7fnjY6IiZcOF3/7hCDrEldPkcXLq9I2+jadKMPUyCXIDjElZH9MpktXNpa93a4rc8UsQinitDl91YlbAJ8a4V9ED6iKNxhQPIAAkSy4ud5Ph7XYKTpPzb7h8sEuWJ+PUcwDTdJ/Q6rICPivMwAs2aexSzPsbhvLLyqC9S2oZ3KW5RUv9y3kezrw2dFUzAN8ysKDkieJgRr4Y7AjvpMmdBo4feZOO+B4YObY7PdTUOSXm5KcbicazsKbSvjZlzpwzNfOJhrA2gtaJV7lVGLv4VPu56ytvYFZ7ZAb33aJfsYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=dVUszj1XsZEMnq3NzQQmMJxnGbb0VEEP+udD6nRSK30=; b=E0LNBJf9MJU7GiUjf2GMtXoMplSkxeskcHu4GQ+V1GS+WGvNtPKLJPwnwsA7EbCi2DBE1l9vd1OxzcOrWvOBxm2uMeBd/lE8o9qHSjNO9y9poEF2jVKWEmCDgfMmfeYtuMAmo7Pkc9meGYvY4hlACU3UQz2loxEpQDcRwoJh8cZBE5ZYYymgF7uDoVRzU5n1zrTEytN1CNjy5JFUrE9LcYdFiw5l2LzRHzPsPyFT91eXvRlpyGDYO6fo9HJdwVQUXMrUInLM7s30qaI/s873KTacdW4IdrxV1GaJeQnD853spqYdYT1YWj4SgqMx6ucN27Fg990vUpuc8SmQaBTEXw== 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=dVUszj1XsZEMnq3NzQQmMJxnGbb0VEEP+udD6nRSK30=; b=OWSlmXt/T5D1Jkj9yp4SchNmRHssgf+eoTs+SqOAl7ygCArm43OuZaoZiHMQdvAanhH+gkZBi5p8oKcmsAkEmJft4dAkqxOs21YFmAWqDHf5/VsmGJD7Xdc7pEFyEVxfXpzfihkLou/deI6aaqsf5hLwLvbhmCCx+dhUtaJWVY0= 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 PU4P216MB1880.KORP216.PROD.OUTLOOK.COM (2603:1096:301:d9::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.28; Thu, 25 Jul 2024 06:10:59 +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.7784.020; Thu, 25 Jul 2024 06:10:59 +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: [RESEND v3 2/3] media: qcom: venus: Fix uninitialized variable warning Date: Thu, 25 Jul 2024 15:10:33 +0900 Message-Id: <20240725061034.461-3-nas.chung@chipsnmedia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240725061034.461-1-nas.chung@chipsnmedia.com> References: <20240725061034.461-1-nas.chung@chipsnmedia.com> X-ClientProxiedBy: SE2P216CA0009.KORP216.PROD.OUTLOOK.COM (2603:1096:101:117::15) 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_|PU4P216MB1880:EE_ X-MS-Office365-Filtering-Correlation-Id: af3d1f3c-97ee-4a35-5d03-08dcac708d9b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: En9jzlHud8Uvm4DLBhOIr/+Vqz1cLatMloFiWAfc4wl7dd2Z4GlUrb+GQre3sOacvp8xmzafbitJNENyZ5n/qC0pe/w8MHyRXMIwaiFlJPfbfVSntnZz0f9O3A60zxpTKtkQTtaPRX8Lxs1/EV/yteFfJM6pgF32rKQpPkm/MTZg6rAkUTL4mByCxT+1y0vdcbqsRfPoL65UlNfsMgj95G0b1hobyvMz1in27QkHIfRzO6q/pBKspBJ8d2QQvPrK791/4M27Amntaai6clKNgpwyx98GJHiub7cZ5G+uH9PEjKQNyEgfFMIJ/sox9k513L8fKiqrHZ+1l98v76+aqCmtwkgXdnD4k3h3KmgJ1nuq6rPBgDx7v+XoXsUMyscv98flxUBBEDET8FUCPUv6iPs5GMu3KdTnDEoN/9CdPGBTsgUKblUxQdm29Qo4Kj/9KyinLEsKzHvdjLCOVE4LnHd+4/1dsOWd0VJBoHEl9Wnw9Ko0BEJpHiFnqA2RF5A4r/krAyykgAYthmVqX72saFsAVtDPyCAGCRkC8ARrEub+g2joTXMh5ScsCr0+cr/YdEoaj43nsLqMwpn5mc9g5fADTdSnOEQAt5UxxwwJpIqy7F5H8FvKV2VOy9MdRG7lWtAeiAphUC6f0xUqnKy8uGV5N/fOUk86OTRcgfSui2m7KUrC+ve3cS/MnTsXDmxliS7E4+X7zDPXtT5CzxN88rVKdX/Kbo9RSL4CFYHcPO7c5SjEzC/wXmuyYLXVXOVySzl1A7bVLutgvpGCddpZavMRPWEHoB5+FQO0mZm/Whbre/BS13KXuTwk/iXGAsdQ8uZOs1lt7ThTs6J8BQkBpn5fsu43MkmUrMm6pQVhh4y5FdvpR8Ke4rGmD7VYsiFB17fgkBe2D2fyRNiqsy2LhIHQqaLt7mimOGm/3V0I4dWacQTJS836Y2txjJJxatFO2IyRb8B1E2iBuP7TcIoli5LGXrpzj/qt6ZYLveD2DMej1lqmvBdWy4kE8V1gdjYQ2uB8grudjRzjfIyNCdF7fuYg5lcqMD6yPq8H8ZLG6S+ogVh8EPN70+0ikq7Tb+5OGuuT4EXxHoz99YznNquluCudzu/Rv7XWBmP2TG9taKEcInbd81rCAGPaRzLtTHfsaaTXhJco/b9RQNQZlU8BSre/2nHQdFKRjZDyKCvISG5NCtHLNKguvi2/s3C9G7rWy8KFyqtlbcyTB7Nwm+E9F7wYWF/nNepnKp5036ORl+gkTaRLWwdYlmYCo5TcICotqPnkTBcmVxF/lwDoZa68cy0pDAz5kf/GMIZNBGooblh3InpLbOxwb6XtZYPA49F/qXGnMZrGwbnISm7/+/SSLI3XSDktWEqbaDt7rX4XyKpWm1FVElJS0NP9OfJ0NWU/Ie+WW2ecc6YORMpbJG+zYg== 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:(13230040)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Fgh43VHxqY+u1S7KS+maKONxSwGHbaP5EklpAEKcCxW8QtmZ/mYEJmMlyvrOzaLWiLc/jzei5YCOiEeWMuT+UkgH9j/Rf42pEw3457me1hy/dA/zoAhpPLRFQtPkUj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WPtXpkFTUpm6vnD/yrclXjDx7x2AQ/9XMIxfodFKDIDKCqvD4oXQzn7lQegZB9Wr8Pp/TIK7MJf9U14m0c+K3DuKJi/QjNP8/hZ0QV15mVo3Ghh0dYetMF4u9MHjb+t+cBXpVUYsWfXmY7vxOLmmSvzZTDMzD95C/IdE38ueLCWs0nyz7AZJ6EaZ1OQgPebZq7R2cTiTkYR5cyIIMyk6Li55FK0Hu1PivCDndR3uMBg2WhQiSf+EAxy/iKoQrgzNQfRFxjBPLZobAzKdPXVnbwN3TzJ6JilaMi+5irClzPoKhVcIEdbWOfrwdL0Hg098Sp0EjBSVdahFfaRzk5CBTc+w+Eh/aAjf8EpZFmTYDPMfMv8RDsI/E9h9DRxuGpjBLpadA== X-OriginatorOrg: chipsnmedia.com X-MS-Exchange-CrossTenant-Network-Message-Id: af3d1f3c-97ee-4a35-5d03-08dcac708d9b X-MS-Exchange-CrossTenant-AuthSource: SL2P216MB1246.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2024 06:10:59.2550 (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: ELxYxkYE/KvJjrPCjdjLV+UNxyVjBd7w69beBz6UnORUPzQk7I54GtLxu9OONPd/e5vCGpwbCkfVxsC8Cv61tOw2HKKu8FYEGWofdVd1osg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU4P216MB1880 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 d12089370d91..b72b579018e3 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 Thu Jul 25 06:10:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nas Chung X-Patchwork-Id: 13741579 Received: from SE2P216CU007.outbound.protection.outlook.com (mail-koreacentralazon11021094.outbound.protection.outlook.com [40.107.42.94]) (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 B681416DED1; Thu, 25 Jul 2024 06:11:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.42.94 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721887867; cv=fail; b=MgSJXRZpMXFemRqgPrgGaaoacKju6edUDdkRvSe0nSY86xtQbYF4NsJpXapb2oMEEFhlw5dqsb/DBWwDzWxC6+v0bZl8HNz7DJrEsRoKR/gCw0Qeh+FROR/Dk+9xBXRYI4LcvoFytqG9Q3ChdRFu9ZSmks4l56eJ25hsPm4lM2U= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721887867; c=relaxed/simple; bh=1GTU273Pu9KXTnwkVMkTsRCKpzn6VsZa96igmq2P4E0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=ByCYOPr8X4yvE2Py0O8E0Vo5Wwvv+BAK7x6tPkdAZ9lYY6oHgvE786to46XWURKkP+ooCDB0+DZYQbCmdT3ILVire+GlAxJ0AhyMeU0BwAiGfDwJIjE4BMG23AI/l413HMbc1NNN6iXYR0VhcEvZ1gN0MOnuzxH4CGrW45By5Hg= 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=kze0s2Xv; arc=fail smtp.client-ip=40.107.42.94 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="kze0s2Xv" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=l2iOnLXCepWxV1PhyyFYu/fxngv4i74euERGmGL/jLA4xmcxIBfCImrZsaPrytCyikdbLLCBsqJfEGGTSK/kKFOMJzS1rJGfGyDEF7nW4p25wQLmOyiHgAfHEYoXLxgVmn7PdtMVUUAYjjnr/UP+6Mnq5ibuLnoSlbx/4uO3JJ46aFGoV2AUj2G2Wgjw62evFxBR7RYnzvRUGING5GNEhAjTakiN/K4PFG2/dYtUF26vRo3Kd9KABLmH3amW5orkPfr6uF9yzO4AJdm2bqbd4/stLxrZJVjYAHbNUnYA73Z3fg38nFU+m4ENdcwVcLyNBDXiXIKvjyHt3W2myMAkRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=zbjCA5GkwinMaT6TsZkdREqLOaw8uK4Fma+1NIC5OnM=; b=wLL5um9Z9/bPmitv0uT1cgAJ+BK27z67Gs7uesG+fhkaipMl3sbA56y9ZoAIS2pf6OLBTnp2t9KaB0aIgKCNtKbTqbSJ4EUU2lX+lwGFiVWafymSbwqooTR1mtniFWsK7SX49EfGytVEz4nS6+tf7vqgBYqgAZAyExR0haq2lcVEJVvnypr1U4/TUhaWWEWsA4dYT0oiFZLQXjrdVhQWKNQ27til12uaEXh9QKXXJ5Rumq+C3GUaVhUZPxeBmcKBXJvL6VFn+ukPrcTagaZT1+jF72RjugUOyp4vG7d7FLunhtyGcpPwvjsy030LyesuynKG/zhbe3sH2s3lxeXmRw== 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=zbjCA5GkwinMaT6TsZkdREqLOaw8uK4Fma+1NIC5OnM=; b=kze0s2Xvf50JVzDhFkwlDf3O7rOlezZi70W1Y3LGVFegiJJrGBzgQ8gb7HYXsMLsfaoB3ckdSd9guF9CMkNernKzEjuBw9wdePytTQsOctc2IF+QU9v51oIgHbynncSEdPHRZScgD0ntMA6peKTGPbE8EqdBadnzz9AENRbbI84= 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 PU4P216MB1880.KORP216.PROD.OUTLOOK.COM (2603:1096:301:d9::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.28; Thu, 25 Jul 2024 06:11:02 +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.7784.020; Thu, 25 Jul 2024 06:11:02 +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: [RESEND v3 3/3] media: uapi: v4l: Fix V4L2_TYPE_IS_OUTPUT condition Date: Thu, 25 Jul 2024 15:10:34 +0900 Message-Id: <20240725061034.461-4-nas.chung@chipsnmedia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240725061034.461-1-nas.chung@chipsnmedia.com> References: <20240725061034.461-1-nas.chung@chipsnmedia.com> X-ClientProxiedBy: SE2P216CA0009.KORP216.PROD.OUTLOOK.COM (2603:1096:101:117::15) 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_|PU4P216MB1880:EE_ X-MS-Office365-Filtering-Correlation-Id: f4457548-4cde-4f97-fa6d-08dcac708f88 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: SToZ7kt7WI2oTbmLLNlFw8KkwcNN+MvmiQbGoABX6E53wAdrcFijb7f1kvlV/T/aNLHb7T782nlCnaaz83y170bBU4NjUezTNsIb3Ew6jM9FlTa+SJVYRfmVfgygQViLF9tc30VUq/KEx/uY3OqdPOmWhHXmev7s/BvvWG92guiUSz68A2gVKYO7glpHzWFKHsd631piWyA7WFXuvidxoM4nvnpes9NndbnlOcmHcYZmYhedhOMkiG7EZJcjb4JcTXnTcqWRy3MeXN7W+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avITJtMlyq2EgxHfoGpQkgbF1saaL3gvvjDdFkVdMNgjzbYgao4yPNXYn1KRj+Jw/YYiy6xqg== 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:(13230040)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4W4ys+LLYRknJfXS00D0V2tZT5kuhpMZAztxRYTKTT8Kkk0M5TmU/CpuS2uQI6zklkWmPHrYrU4Q10PveOHReRj+LMNrOPiE54CENrA5nDnBRxf2NmOVkeO5K8DSIP0dcYhaT7GVkuJkClGn8ecZmilAlwytqXJz2kMYs+a2BQAGsJkliG8XHIwLdj6vwAzajuCImKYLUmGR5MFariOAAbttofGyfFRVfrti+Xfzh66QxwZYr0VPuf2/XH0Ygc9AgYnIoCc2HTgtShNPyIH/4lD9MMpzkTI3ef7Xk+fv/vaIiApnusDHlj8MKtdPGEE379Zyv1KqESm2W2rYrOla/2M3q1mX+Zt+Y7tnVz3aPgj/dZgfv+8NHXMpQNrIdnOOM6U6Vq/OC9giaHMRNEhqXsojzKKyDJjQGYtIhZC3nsfQpiThSr5xn5JuC2aKhdAzxyc1teZ42fGkjQQbDjWdKjwku3fChocEA2fBdjX3xxA4C3z/+SLqvBMyPHpEeiJM73nJJghx3I1iuqfFfVUqUbOieU7ZX1bt10GExgzG5H/QD5BJTTIZop0aIiReA72cWSt4xgVKa+r7j9fkEfCtnVLyET7enj5xA1dW4uD1/OxUUZ+XVsD2xJi0oFZMh8TgBiOGOY9suA/TY/R3hpeexqlIe/wEyIjJjDcltNTQFHlEmnBQA6+O2Q8tka9NCEVpZbyziWeuMV2zYdprBaSK5tUkM16c2Ju4gYlTBZw9UMUlIOtk3iRm8g9DulKBBRQN+UM8Jy3qHt0ao4bfblb0Fzd5ZsvRMexgTFfWqmHKCm1B3KzJ+qGEm8C31H4voqJ4muRe9ClK+62en3P81VrPo0V07P7o49OTWVilVnKKpccjJ90Mfu9lx9IN8P/PXOFArJQcY0f3NaTxHuFctr5LjbuN7lxLaLXqjEMQ1Ugn2kUQJDTlzLa98vd4y0p57ZS/1aw3Jxob4Lo7OvRmtAdRWNE8ReWjk/gxsk43Fgc02GxlkzQNwnO+p4X6LAKAZ8r+Zq01wkmq3c+UvSucmHrUSgUN00PpHxlbsireV3BbKMCrh4SmRmEUabK9DWuSbMGY62Q3A7l1Oj71KsF21YvOjUH2iavsphlLo/1uuyhWQaCynOiXOBuNViefJ3pM4Dbxsv13XZi+z0FFiA2YbEZ4ZEpndtyJyM+DWH1FNfUjYPq4CBLKGx/2YodcERvWq8/rkjkpULGsaPqhKq97lTPZV05+nJgIgINDotO/g6cfP0XBZstxA0jNnhDaX3ygDKqDHtn50oz8Eu/1ws9enSlHAkqTdCjD7bRdjE/EyZHqB/Icg0e7Ehq34nuIeoQwrA4rg2P0UZLK4FmInw2EpZPhubn/5aA5sHQDAGjyZQiqyrHirfD60djl4AY9qMBBsbuibl188G0Rz9ok5FW7uvDlnuBGozLGSvwn1atCWi9b5tIhcPyrDwkqBUvQAPnV5/Ep3z8etlPJcPWOvr1NF5xxjmKZ54o4ufoW83a7gP5QLUm/EqkyNfWmhHcDHVqmDuYRoEer+8e9Nl6YdmxyxYwZ5pLcyU3dXIqzjUx0v9i5s279BRTYQjVew7P4NSC6LcCjvAuI98dUq17zcEtscnNbNw== X-OriginatorOrg: chipsnmedia.com X-MS-Exchange-CrossTenant-Network-Message-Id: f4457548-4cde-4f97-fa6d-08dcac708f88 X-MS-Exchange-CrossTenant-AuthSource: SL2P216MB1246.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2024 06:11:02.4960 (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: rqxaTtD+FDiD2Yh5BXg8GX178Vpv7dItIDPZ6NUnC0V0TOBuE5ev4fZ+nDfqMsrNw1ZvFFw4KBKZRp2G3ITjR0hObmdM2lqvpteWXGCk4qM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU4P216MB1880 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 8293b2197ea3..5e85cf09278a 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 \