Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
5ad6772e
Commit
5ad6772e
authored
Oct 05, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ibmasm: fix __iomem warnings
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
d540b4a8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
20 deletions
+20
-20
drivers/misc/ibmasm/ibmasm.h
drivers/misc/ibmasm/ibmasm.h
+1
-1
drivers/misc/ibmasm/ibmasmfs.c
drivers/misc/ibmasm/ibmasmfs.c
+2
-2
drivers/misc/ibmasm/lowlevel.c
drivers/misc/ibmasm/lowlevel.c
+1
-1
drivers/misc/ibmasm/lowlevel.h
drivers/misc/ibmasm/lowlevel.h
+15
-15
drivers/misc/ibmasm/uart.c
drivers/misc/ibmasm/uart.c
+1
-1
No files found.
drivers/misc/ibmasm/ibmasm.h
View file @
5ad6772e
...
...
@@ -158,7 +158,7 @@ struct remote_queue {
struct
service_processor
{
struct
list_head
node
;
spinlock_t
lock
;
void
*
base_address
;
void
__iomem
*
base_address
;
unsigned
int
irq
;
struct
command
*
current_command
;
struct
command
*
heartbeat
;
...
...
drivers/misc/ibmasm/ibmasmfs.c
View file @
5ad6772e
...
...
@@ -520,7 +520,7 @@ static int remote_settings_file_close(struct inode *inode, struct file *file)
static
ssize_t
remote_settings_file_read
(
struct
file
*
file
,
char
__user
*
buf
,
size_t
count
,
loff_t
*
offset
)
{
unsigned
long
address
=
(
unsigned
long
)
file
->
private_data
;
void
__iomem
*
address
=
(
void
__iomem
*
)
file
->
private_data
;
unsigned
char
*
page
;
int
retval
;
int
len
=
0
;
...
...
@@ -554,7 +554,7 @@ static ssize_t remote_settings_file_read(struct file *file, char __user *buf, si
static
ssize_t
remote_settings_file_write
(
struct
file
*
file
,
const
char
__user
*
ubuff
,
size_t
count
,
loff_t
*
offset
)
{
unsigned
long
address
=
(
unsigned
long
)
file
->
private_data
;
void
__iomem
*
address
=
(
void
__iomem
*
)
file
->
private_data
;
char
*
buff
;
unsigned
int
value
;
...
...
drivers/misc/ibmasm/lowlevel.c
View file @
5ad6772e
...
...
@@ -58,7 +58,7 @@ irqreturn_t ibmasm_interrupt_handler(int irq, void * dev_id, struct pt_regs *reg
{
u32
mfa
;
struct
service_processor
*
sp
=
(
struct
service_processor
*
)
dev_id
;
void
*
base_address
=
sp
->
base_address
;
void
__iomem
*
base_address
=
sp
->
base_address
;
if
(
!
sp_interrupt_pending
(
base_address
))
return
IRQ_NONE
;
...
...
drivers/misc/ibmasm/lowlevel.h
View file @
5ad6772e
...
...
@@ -52,51 +52,51 @@
#define SCOUT_COM_C_BASE 0x0200
#define SCOUT_COM_D_BASE 0x0300
static
inline
int
sp_interrupt_pending
(
void
*
base_address
)
static
inline
int
sp_interrupt_pending
(
void
__iomem
*
base_address
)
{
return
SP_INTR_MASK
&
readl
(
base_address
+
INTR_STATUS_REGISTER
);
}
static
inline
int
uart_interrupt_pending
(
void
*
base_address
)
static
inline
int
uart_interrupt_pending
(
void
__iomem
*
base_address
)
{
return
UART_INTR_MASK
&
readl
(
base_address
+
INTR_STATUS_REGISTER
);
}
static
inline
void
ibmasm_enable_interrupts
(
void
*
base_address
,
int
mask
)
static
inline
void
ibmasm_enable_interrupts
(
void
__iomem
*
base_address
,
int
mask
)
{
void
*
ctrl_reg
=
base_address
+
INTR_CONTROL_REGISTER
;
void
__iomem
*
ctrl_reg
=
base_address
+
INTR_CONTROL_REGISTER
;
writel
(
readl
(
ctrl_reg
)
&
~
mask
,
ctrl_reg
);
}
static
inline
void
ibmasm_disable_interrupts
(
void
*
base_address
,
int
mask
)
static
inline
void
ibmasm_disable_interrupts
(
void
__iomem
*
base_address
,
int
mask
)
{
void
*
ctrl_reg
=
base_address
+
INTR_CONTROL_REGISTER
;
void
__iomem
*
ctrl_reg
=
base_address
+
INTR_CONTROL_REGISTER
;
writel
(
readl
(
ctrl_reg
)
|
mask
,
ctrl_reg
);
}
static
inline
void
enable_sp_interrupts
(
void
*
base_address
)
static
inline
void
enable_sp_interrupts
(
void
__iomem
*
base_address
)
{
ibmasm_enable_interrupts
(
base_address
,
SP_INTR_MASK
);
}
static
inline
void
disable_sp_interrupts
(
void
*
base_address
)
static
inline
void
disable_sp_interrupts
(
void
__iomem
*
base_address
)
{
ibmasm_disable_interrupts
(
base_address
,
SP_INTR_MASK
);
}
static
inline
void
enable_uart_interrupts
(
void
*
base_address
)
static
inline
void
enable_uart_interrupts
(
void
__iomem
*
base_address
)
{
ibmasm_enable_interrupts
(
base_address
,
UART_INTR_MASK
);
}
static
inline
void
disable_uart_interrupts
(
void
*
base_address
)
static
inline
void
disable_uart_interrupts
(
void
__iomem
*
base_address
)
{
ibmasm_disable_interrupts
(
base_address
,
UART_INTR_MASK
);
}
#define valid_mfa(mfa) ( (mfa) != NO_MFAS_AVAILABLE )
static
inline
u32
get_mfa_outbound
(
void
*
base_address
)
static
inline
u32
get_mfa_outbound
(
void
__iomem
*
base_address
)
{
int
retry
;
u32
mfa
;
...
...
@@ -109,12 +109,12 @@ static inline u32 get_mfa_outbound(void *base_address)
return
mfa
;
}
static
inline
void
set_mfa_outbound
(
void
*
base_address
,
u32
mfa
)
static
inline
void
set_mfa_outbound
(
void
__iomem
*
base_address
,
u32
mfa
)
{
writel
(
mfa
,
base_address
+
OUTBOUND_QUEUE_PORT
);
}
static
inline
u32
get_mfa_inbound
(
void
*
base_address
)
static
inline
u32
get_mfa_inbound
(
void
__iomem
*
base_address
)
{
u32
mfa
=
readl
(
base_address
+
INBOUND_QUEUE_PORT
);
...
...
@@ -124,12 +124,12 @@ static inline u32 get_mfa_inbound(void *base_address)
return
mfa
;
}
static
inline
void
set_mfa_inbound
(
void
*
base_address
,
u32
mfa
)
static
inline
void
set_mfa_inbound
(
void
__iomem
*
base_address
,
u32
mfa
)
{
writel
(
mfa
,
base_address
+
INBOUND_QUEUE_PORT
);
}
static
inline
struct
i2o_message
*
get_i2o_message
(
void
*
base_address
,
u32
mfa
)
static
inline
struct
i2o_message
*
get_i2o_message
(
void
__iomem
*
base_address
,
u32
mfa
)
{
return
(
struct
i2o_message
*
)(
GET_MFA_ADDR
(
mfa
)
+
base_address
);
}
...
...
drivers/misc/ibmasm/uart.c
View file @
5ad6772e
...
...
@@ -34,7 +34,7 @@
void
ibmasm_register_uart
(
struct
service_processor
*
sp
)
{
struct
serial_struct
serial
;
unsigned
char
*
iomem_base
;
void
__iomem
*
iomem_base
;
iomem_base
=
sp
->
base_address
+
SCOUT_COM_B_BASE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment