Skip to content

Commit

Permalink
drm: fix missing inline function on 32-bit powerpc.
Browse files Browse the repository at this point in the history
The readq/writeq really need to be static inline on the arches which
don't provide them.

Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie committed Apr 2, 2009
1 parent 833bb30 commit 522b5cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/drm/drm_os_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 522b5cc

Please sign in to comment.