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

Commit 77e2f884 authored by Deepak Kumar's avatar Deepak Kumar
Browse files

msm: kgsl: Fix compilation errors for 32bit kernel



This fixes below compilation errors for 32bit kernel
build.

kgsl.h: error: implicit declaration of function 'is_compat_task'
kgsl_compat.h: warning: declaration of 'struct kgsl_device' will
		not be visible outside of this function
adreno_compat.h:: warning: declaration of 'struct kgsL_device_getproperty'
		will not be visible outside of this function
adreno_a6xx.c:: undefined reference to `__aeabi_ldivmod'.

Change-Id: Ie2a710598c1e6dc13831d90e1c19d6a805c8588a
Signed-off-by: default avatarDeepak Kumar <dkumar@codeaurora.org>
parent b318a6e0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1064,8 +1064,8 @@ static int64_t a6xx_read_throttling_counters(struct adreno_device *adreno_dev)
		 * 91.7% counter does a weighted count by the value of sid used
		 * which are taken into consideration for the final formula.
		 */
		adj *= ((a * 42) + (b * 500) +
			((((int64_t)c - a - b * 12) / 22) * 917)) / 1000;
		adj *= div_s64((a * 42) + (b * 500) +
			(div_s64((int64_t)c - a - b * 12, 22) * 917), 1000);
	else
		adj *= ((a * 5) + (b * 50) + (c * 90)) / 100;

+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ long adreno_compat_ioctl(struct kgsl_device_private *dev_priv,
#else

static inline int adreno_getproperty_compat(struct kgsl_device *device,
		struct kgsL_device_getproperty *param);
		struct kgsl_device_getproperty *param)
{
	return -EINVAL;
}
+1 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
#include <linux/kthread.h>
#include <linux/mm.h>
#include <linux/uaccess.h>
#include <linux/compat.h>
#include <uapi/linux/msm_kgsl.h>

#include "kgsl_gmu_core.h"
+0 −15
Original line number Diff line number Diff line
@@ -228,25 +228,10 @@ static inline compat_size_t sizet_to_compat(size_t size)
	return (compat_size_t)size;
}

struct kgsl_device;
struct kgsl_drawobj;

int kgsl_drawobj_create_compat(struct kgsl_device *device, unsigned int flags,
			struct kgsl_drawobj *drawobj, void __user *cmdlist,
			unsigned int numcmds, void __user *synclist,
			unsigned int numsyncs);

long kgsl_compat_ioctl(struct file *filep, unsigned int cmd,
			unsigned long arg);

#else
static inline int kgsl_drawobj_create_compat(struct kgsl_device *device,
			unsigned int flags, struct kgsl_drawobj *drawobj,
			void __user *cmdlist, unsigned int numcmds,
			void __user *synclist, unsigned int numsyncs)
{
	return -EINVAL;
}

static inline long kgsl_compat_ioctl(struct file *filep, unsigned int cmd,
			unsigned long arg)