vdec: add struct for getting multi-vdec information modules part [1/1]
authorapollo.ling <apollo.ling@amlogic.com>
Mon, 20 Jan 2020 15:39:46 +0000 (23:39 +0800)
committerapollo.ling <apollo.ling@amlogic.com>
Mon, 20 Jan 2020 15:39:57 +0000 (23:39 +0800)
PD#SWPL-1449

Problem:
sizeof in android P is unsined int but long unsigned int in Q

Solution:
covert sizeof type to u32

Verify:
u212

Change-Id: Iee31852ddbb3af61fd9636f2ccd39afb1253d8c7
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
drivers/stream_input/amports/amstream.c

index 70367da861b09040e78312651f2f932344c20bac..6cf573608b12258520f920b0a585be3c2fc3f543 100644 (file)
@@ -2625,7 +2625,7 @@ static long amstream_do_ioctl_new(struct port_priv_s *priv,
                                        }
                                if (struct_size != sizeof(struct av_param_mvdec_t)) {
                                        pr_err("pass in size %u != expected size %u\n",
-                                               struct_size, sizeof(struct av_param_mvdec_t));
+                                               struct_size, (u32)sizeof(struct av_param_mvdec_t));
                                        pr_err("App using old structue,we will support it.\n");
                                        //Here will add the compatibility for old structure when
                                        //current struecture be substituded by newer structure.