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

Commit 3810d073 authored by Carter Cooper's avatar Carter Cooper
Browse files

msm: kgsl: Fix CONFIG_QCOM_LLCC compilation issues



If CONFIG_QCOM_LLCC isn't enabled then the KGSL will fail
to build. Fix this by moving the #define check and fixing
a function prototype.

Change-Id: Ie2a00e18b920f9f823fdb921cf6dc4a3be3913ae
Signed-off-by: default avatarCarter Cooper <ccooper@codeaurora.org>
parent 90fbaffb
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 */
#ifndef __ADRENO_LLC_H
#define __ADRENO_LLC_H

#ifdef CONFIG_QCOM_LLCC
#include "adreno.h"
#include <linux/soc/qcom/llcc-qcom.h>

#ifdef CONFIG_QCOM_LLCC

static inline bool adreno_llc_supported(void)
{
	return true;
@@ -69,8 +70,7 @@ static inline bool adreno_llc_supported(void)
	return false;
}

static inline void *adreno_llc_getd(struct device *dev,
		const char *name)
static inline void *adreno_llc_getd(u32 uid)
{
	return NULL;
}