Skip to content

Commit e171e32

Browse files
committed
mips IO: make phys/bus_to_bus/phys static
This matches the consistency of phys/virt_to_virt/phys which was changed to match kernel and supports gcc 5.x. Signed-off-by: Ian Pozella <[email protected]>
1 parent e47c3c0 commit e171e32

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

arch/mips/include/asm/io.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,12 +560,12 @@ static inline void unmap_physmem(void *vaddr, unsigned long flags)
560560

561561
#ifdef CONFIG_PHYS_TO_BUS
562562

563-
extern inline unsigned long phys_to_bus(unsigned long phys)
563+
static inline unsigned long phys_to_bus(unsigned long phys)
564564
{
565565
return (unsigned long) virt_to_phys((void * )phys);
566566
}
567567

568-
extern inline unsigned long bus_to_phys(unsigned long bus)
568+
static inline unsigned long bus_to_phys(unsigned long bus)
569569
{
570570
return (unsigned long) phys_to_virt(bus);
571571
}

include/phys2bus.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#define _BUS_ADDR_H
99

1010
#ifdef CONFIG_PHYS_TO_BUS
11-
unsigned long phys_to_bus(unsigned long phys);
12-
unsigned long bus_to_phys(unsigned long bus);
11+
static unsigned long phys_to_bus(unsigned long phys);
12+
static unsigned long bus_to_phys(unsigned long bus);
1313
#else
1414
static inline unsigned long phys_to_bus(unsigned long phys)
1515
{

0 commit comments

Comments
 (0)