Skip to content
Snippets Groups Projects
Forked from KED Software Projects / Miscellaneous / KED U-Boot Fork
Source project has a limited visibility.
  • Marek Vasut's avatar
    5760fc78
    mips: Fix compiler warning in cpu.c · 5760fc78
    Marek Vasut authored
    
    There really is zero reason for including netdev.h in generic mips CPU code.
    Removing the netdev.h from cpu.c also fixes the following compiler warning:
    
    In file included from arch/mips/cpu/cpu.c:10:0:
    include/netdev.h:204:41: warning: 'struct eth_device' declared inside parameter list [enabled by default]
     int fecmxc_register_mii_postcall(struct eth_device *dev, int (*cb)(int));
                                             ^
    include/netdev.h:204:41: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
    
    Signed-off-by: default avatarMarek Vasut <marex@denx.de>
    Cc: Paul Burton <paul.burton@imgtec.com>
    Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
    5760fc78
    History
    mips: Fix compiler warning in cpu.c
    Marek Vasut authored
    
    There really is zero reason for including netdev.h in generic mips CPU code.
    Removing the netdev.h from cpu.c also fixes the following compiler warning:
    
    In file included from arch/mips/cpu/cpu.c:10:0:
    include/netdev.h:204:41: warning: 'struct eth_device' declared inside parameter list [enabled by default]
     int fecmxc_register_mii_postcall(struct eth_device *dev, int (*cb)(int));
                                             ^
    include/netdev.h:204:41: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
    
    Signed-off-by: default avatarMarek Vasut <marex@denx.de>
    Cc: Paul Burton <paul.burton@imgtec.com>
    Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>