• Adrian Bunk's avatar
    PCI: drivers/pci/msi.c: move arch hooks to the top · 6a9e7f20
    Adrian Bunk authored
    This patch fixes the following problem present with older gcc versions:
    
    <--  snip  -->
    
    ...
      CC      drivers/pci/msi.o
    /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/pci/msi.c:692: warning: weak declaration of `arch_msi_check_device' after first use results in unspecified behavior
    /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/pci/msi.c:704: warning: weak declaration of `arch_setup_msi_irqs' after first use results in unspecified behavior
    /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/pci/msi.c:724: warning: weak declaration of `arch_teardown_msi_irqs' after first use results in unspecified behavior
    ...
    
    <--  snip  -->
    Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    6a9e7f20
msi.c 17.9 KB