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
ad439c6d
Commit
ad439c6d
authored
Oct 05, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] PCI Hotplug: fix __iomem warnings in the compaq pci hotplug driver
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
1a13e9de
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
30 deletions
+34
-30
drivers/pci/hotplug/cpqphp.h
drivers/pci/hotplug/cpqphp.h
+3
-3
drivers/pci/hotplug/cpqphp_core.c
drivers/pci/hotplug/cpqphp_core.c
+19
-15
drivers/pci/hotplug/cpqphp_nvram.h
drivers/pci/hotplug/cpqphp_nvram.h
+6
-6
drivers/pci/hotplug/cpqphp_pci.c
drivers/pci/hotplug/cpqphp_pci.c
+6
-6
No files found.
drivers/pci/hotplug/cpqphp.h
View file @
ad439c6d
...
...
@@ -268,7 +268,7 @@ struct slot {
struct
timer_list
task_event
;
u8
hp_slot
;
struct
controller
*
ctrl
;
void
*
p_sm_slot
;
void
__iomem
*
p_sm_slot
;
struct
hotplug_slot
*
hotplug_slot
;
};
...
...
@@ -287,7 +287,7 @@ struct controller {
struct
controller
*
next
;
u32
ctrl_int_comp
;
struct
semaphore
crit_sect
;
/* critical section semaphore */
void
*
hpc_reg
;
/* cookie for our pci controller location */
void
__iomem
*
hpc_reg
;
/* cookie for our pci controller location */
struct
pci_resource
*
mem_head
;
struct
pci_resource
*
p_mem_head
;
struct
pci_resource
*
io_head
;
...
...
@@ -405,7 +405,7 @@ extern void cpqhp_create_ctrl_files (struct controller *ctrl);
/* controller functions */
extern
void
cpqhp_pushbutton_thread
(
unsigned
long
event_pointer
);
extern
irqreturn_t
cpqhp_ctrl_intr
(
int
IRQ
,
void
*
data
,
struct
pt_regs
*
regs
);
extern
int
cpqhp_find_available_resources
(
struct
controller
*
ctrl
,
void
*
rom_start
);
extern
int
cpqhp_find_available_resources
(
struct
controller
*
ctrl
,
void
__iomem
*
rom_start
);
extern
int
cpqhp_event_start_thread
(
void
);
extern
void
cpqhp_event_stop_thread
(
void
);
extern
struct
pci_func
*
cpqhp_slot_create
(
unsigned
char
busnumber
);
...
...
drivers/pci/hotplug/cpqphp_core.c
View file @
ad439c6d
...
...
@@ -55,9 +55,9 @@ struct controller *cpqhp_ctrl_list; /* = NULL */
struct
pci_func
*
cpqhp_slot_list
[
256
];
/* local variables */
static
void
*
smbios_table
;
static
void
*
smbios_start
;
static
void
*
cpqhp_rom_start
;
static
void
__iomem
*
smbios_table
;
static
void
__iomem
*
smbios_start
;
static
void
__iomem
*
cpqhp_rom_start
;
static
int
power_mode
;
static
int
debug
;
...
...
@@ -123,10 +123,10 @@ static inline int is_slot66mhz(struct slot *slot)
* Returns pointer to the head of the SMBIOS tables (or NULL)
*
*/
static
void
*
detect_SMBIOS_pointer
(
void
*
begin
,
void
*
end
)
static
void
__iomem
*
detect_SMBIOS_pointer
(
void
__iomem
*
begin
,
void
__iomem
*
end
)
{
void
*
fp
;
void
*
endp
;
void
__iomem
*
fp
;
void
__iomem
*
endp
;
u8
temp1
,
temp2
,
temp3
,
temp4
;
int
status
=
0
;
...
...
@@ -232,13 +232,14 @@ static int pci_print_IRQ_route (void)
*
* returns a pointer to an SMBIOS structure or NULL if none found
*/
static
void
*
get_subsequent_smbios_entry
(
void
*
smbios_start
,
void
*
smbios_table
,
void
*
curr
)
static
void
__iomem
*
get_subsequent_smbios_entry
(
void
__iomem
*
smbios_start
,
void
__iomem
*
smbios_table
,
void
__iomem
*
curr
)
{
u8
bail
=
0
;
u8
previous_byte
=
1
;
void
*
p_temp
;
void
*
p_max
;
void
__iomem
*
p_temp
;
void
__iomem
*
p_max
;
if
(
!
smbios_table
||
!
curr
)
return
(
NULL
);
...
...
@@ -282,8 +283,10 @@ static void *get_subsequent_smbios_entry(void *smbios_start,
*
* returns a pointer to an SMBIOS structure or %NULL if none found
*/
static
void
*
get_SMBIOS_entry
(
void
*
smbios_start
,
void
*
smbios_table
,
u8
type
,
void
*
previous
)
static
void
__iomem
*
get_SMBIOS_entry
(
void
__iomem
*
smbios_start
,
void
__iomem
*
smbios_table
,
u8
type
,
void
__iomem
*
previous
)
{
if
(
!
smbios_table
)
return
NULL
;
...
...
@@ -319,8 +322,9 @@ static void release_slot(struct hotplug_slot *hotplug_slot)
kfree
(
slot
);
}
static
int
ctrl_slot_setup
(
struct
controller
*
ctrl
,
void
*
smbios_start
,
void
*
smbios_table
)
static
int
ctrl_slot_setup
(
struct
controller
*
ctrl
,
void
__iomem
*
smbios_start
,
void
__iomem
*
smbios_table
)
{
struct
slot
*
new_slot
;
u8
number_of_slots
;
...
...
@@ -328,7 +332,7 @@ static int ctrl_slot_setup(struct controller * ctrl, void *smbios_start,
u8
slot_number
;
u8
ctrl_slot
;
u32
tempdword
;
void
*
slot_entry
=
NULL
;
void
__iomem
*
slot_entry
=
NULL
;
int
result
=
-
ENOMEM
;
dbg
(
"%s
\n
"
,
__FUNCTION__
);
...
...
drivers/pci/hotplug/cpqphp_nvram.h
View file @
ad439c6d
...
...
@@ -30,26 +30,26 @@
#ifndef CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM
static
inline
void
compaq_nvram_init
(
void
*
rom_start
)
static
inline
void
compaq_nvram_init
(
void
__iomem
*
rom_start
)
{
return
;
}
static
inline
int
compaq_nvram_load
(
void
*
rom_start
,
struct
controller
*
ctrl
)
static
inline
int
compaq_nvram_load
(
void
__iomem
*
rom_start
,
struct
controller
*
ctrl
)
{
return
0
;
}
static
inline
int
compaq_nvram_store
(
void
*
rom_start
)
static
inline
int
compaq_nvram_store
(
void
__iomem
*
rom_start
)
{
return
0
;
}
#else
extern
void
compaq_nvram_init
(
void
*
rom_start
);
extern
int
compaq_nvram_load
(
void
*
rom_start
,
struct
controller
*
ctrl
);
extern
int
compaq_nvram_store
(
void
*
rom_start
);
extern
void
compaq_nvram_init
(
void
__iomem
*
rom_start
);
extern
int
compaq_nvram_load
(
void
__iomem
*
rom_start
,
struct
controller
*
ctrl
);
extern
int
compaq_nvram_store
(
void
__iomem
*
rom_start
);
#endif
...
...
drivers/pci/hotplug/cpqphp_pci.c
View file @
ad439c6d
...
...
@@ -51,10 +51,10 @@ static u16 unused_IRQ;
* find the Hot Plug Resource Table in the specified region of memory.
*
*/
static
void
*
detect_HRT_floating_pointer
(
void
*
begin
,
void
*
end
)
static
void
__iomem
*
detect_HRT_floating_pointer
(
void
__iomem
*
begin
,
void
__iomem
*
end
)
{
void
*
fp
;
void
*
endp
;
void
__iomem
*
fp
;
void
__iomem
*
endp
;
u8
temp1
,
temp2
,
temp3
,
temp4
;
int
status
=
0
;
...
...
@@ -1162,12 +1162,13 @@ int cpqhp_valid_replace(struct controller *ctrl, struct pci_func * func)
*
* returns 0 if success
*/
int
cpqhp_find_available_resources
(
struct
controller
*
ctrl
,
void
*
rom_start
)
int
cpqhp_find_available_resources
(
struct
controller
*
ctrl
,
void
__iomem
*
rom_start
)
{
u8
temp
;
u8
populated_slot
;
u8
bridged_slot
;
void
*
one_slot
;
void
__iomem
*
one_slot
;
void
__iomem
*
rom_resource_table
;
struct
pci_func
*
func
=
NULL
;
int
i
=
10
,
index
;
u32
temp_dword
,
rc
;
...
...
@@ -1175,7 +1176,6 @@ int cpqhp_find_available_resources (struct controller *ctrl, void *rom_start)
struct
pci_resource
*
p_mem_node
;
struct
pci_resource
*
io_node
;
struct
pci_resource
*
bus_node
;
void
*
rom_resource_table
;
rom_resource_table
=
detect_HRT_floating_pointer
(
rom_start
,
rom_start
+
0xffff
);
dbg
(
"rom_resource_table = %p
\n
"
,
rom_resource_table
);
...
...
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