Commit 2292bf26 authored by Jack Steiner's avatar Jack Steiner Committed by David Mosberger

[PATCH] ia64: Update function prototype for sn_io_addr

Add "const" to function prototype for sn_io_addr. Cuts boot time
on simulator in half.
Signed-off-by: default avatarJack Steiner <steiner@sgi.com>
Signed-off-by: default avatarDavid Mosberger <davidm@hpl.hp.com>
parent a5f4eea7
...@@ -8,10 +8,11 @@ ...@@ -8,10 +8,11 @@
#ifndef _ASM_SN_SN2_IO_H #ifndef _ASM_SN_SN2_IO_H
#define _ASM_SN_SN2_IO_H #define _ASM_SN_SN2_IO_H
#include <linux/compiler.h>
#include <asm/intrinsics.h>
extern void * sn_io_addr(unsigned long port); /* Forward definition */ extern void * sn_io_addr(unsigned long port) __attribute_const__; /* Forward definition */
extern void sn_mmiob(void); /* Forward definition */ extern void sn_mmiob(void); /* Forward definition */
#include <asm/intrinsics.h>
#define __sn_mf_a() ia64_mfa() #define __sn_mf_a() ia64_mfa()
......
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