Skip to content

Commit

Permalink
x86: fix "__udivdi3" [drivers/scsi/aha1542.ko] undefined
Browse files Browse the repository at this point in the history
Commit 976e8f6 ("x86: asm/io.h: unify
virt_to_phys/phys_to_virt") changed the return of virt_to_phys from long
to phys_addr_t which is unsigned long long on a PAE platform.

So, I could suggest a fix below since isa addresses may never be above
32 bits.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
James Bottomley authored and Ingo Molnar committed Feb 13, 2009
1 parent beb6943 commit bf33a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static inline void *phys_to_virt(phys_addr_t address)
/*
* ISA I/O bus memory addresses are 1:1 with the physical address.
*/
#define isa_virt_to_bus virt_to_phys
#define isa_virt_to_bus (unsigned long)virt_to_phys
#define isa_page_to_bus page_to_phys
#define isa_bus_to_virt phys_to_virt

Expand Down

0 comments on commit bf33a70

Please sign in to comment.