Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adad3930 authored by Manikanta Kanamarlapudi's avatar Manikanta Kanamarlapudi
Browse files

msm: vidc: Fix 32-bit compilation issues



Typecast the msm_vidc_arg argument correctly

CRs-Fixed: 2546421
Change-Id: I781767befa529cbe9366d67cb0773d97eb9f1beb
Signed-off-by: default avatarManikanta Kanamarlapudi <kmanikan@codeaurora.org>
parent b2ff4df9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 */

#include "msm_v4l2_private.h"
@@ -9,7 +9,7 @@ static int convert_from_user(struct msm_vidc_arg *kp, unsigned long arg)
{
	int rc = 0;
	int i;
	struct msm_vidc_arg __user *up = compat_ptr(arg);
	struct msm_vidc_arg __user *up = (struct msm_vidc_arg *)arg;

	if (!kp || !up) {
		d_vpr_e("%s: invalid params%pK %pK\n", __func__, kp, up);
@@ -101,7 +101,7 @@ static int convert_to_user(struct msm_vidc_arg *kp, unsigned long arg)
{
	int rc = 0;
	int i;
	struct msm_vidc_arg __user *up = compat_ptr(arg);
	struct msm_vidc_arg __user *up = (struct msm_vidc_arg *)arg;

	if (!kp || !up) {
		d_vpr_e("%s: invalid params %pK %pK\n",	__func__, kp, up);