Commit 522b5cc7 authored by Dave Airlie's avatar Dave Airlie

drm: fix missing inline function on 32-bit powerpc.

The readq/writeq really need to be static inline on the arches which
don't provide them.
Reported-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 833bb304
......@@ -7,12 +7,12 @@
#include <linux/delay.h>
#ifndef readq
static u64 readq(void __iomem *reg)
static inline u64 readq(void __iomem *reg)
{
return ((u64) readl(reg)) | (((u64) readl(reg + 4UL)) << 32);
}
static void writeq(u64 val, void __iomem *reg)
static inline void writeq(u64 val, void __iomem *reg)
{
writel(val & 0xffffffff, reg);
writel(val >> 32, reg + 0x4UL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment