ARM/PCI: Add declaration of pcibios_report_status
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/9 ARM/PCI: Add declaration of pcibios_report_status
The function pcibios_report_status() needs a declaration to avoid the following warning, so declare it in <asm/pci.h>.
/home/ben/kernel/linux/arch/arm/kernel/bios32.c:58:6: warning: symbol 'pcibios_report_status' was not declared. Should it be static?
---
Cc: linux-arm-kernel at lists.infradead.org
Cc: Russell King <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
--- arch/arm/include/asm/pci.h | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/include/asm/pci.h +2 -0
@@ -37,5 +37,7 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)return channel ?15 :14 ; } +extern void pcibios_report_status (unsigned int status_mask,int warn); +#endif /* __KERNEL__ */ #endif
Signature · 1 line
2.8.1
PATCH 1/9 ARM/PCI: Add declaration of pcibios_report_status
Quoted 20 lines · CEST Ben Dooks
The function
pcibios_report_status()needs a declaration to avoid the following warning, so declare it in <asm/pci.h>.
/home/ben/kernel/linux/arch/arm/kernel/bios32.c:58:6: warning: symbol 'pcibios_report_status' was not declared. Should it be static?Signed-off-by Ben Dooks <[email protected]>---
Cc: linux-arm-kernel at lists.infradead.org
Cc: Russell King <[email protected]>
Cc: Bjorn Helgaas <[email protected]>--- arch/arm/include/asm/pci.h | 2 ++ 1 file changed, 2 insertions(+)arch/arm/include/asm/pci.h +0
-0
arch/arm/include/asm/pci.h static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) · line 43
Quoted 7 lines
arch/arm/include/asm/pci.h +2
-0@@ -37,5 +37,7 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)return channel ?15 :14 ; } +extern void pcibios_report_status (unsigned int status_mask,int warn); +#endif /* __KERNEL__ */ #endif
Should we remove the declaration in arch/arm/mach-footbridge/dc21285.c at the same time?
Another option would be to move the function to that file and make it static, since nothing else uses it.
Arnd
PATCH 2/9 ARM: fix missing include of <asm/insn.h> in arch/arm/kernel/insn.c
In reply to a message not in the archiveFix the warning by including <asm/insn.h> for the declaration of __arm_gen_branch().
arm/kernel/insn.c:56:1: warning: symbol '__arm_gen_branch' was not declared. Should it be static?
---
Cc: Russell King <[email protected]>
Cc: linux-arm-kernel at lists.infradead.org
--- arch/arm/kernel/insn.c | 1 + 1 file changed, 1 insertion(+)
arch/arm/kernel/insn.c +1 -0
@@ -1,6 +1,7 @@#include <linux/bug.h> #include <linux/kernel.h> #include <asm/opcodes.h> +#include <asm/insn.h> static unsigned long __arm_gen_branch_thumb2 (unsigned long pc,unsigned long addr,bool link)
Signature · 1 line
2.8.1
PATCH 3/9 ARM: add missing <asm/prom.h>
In reply to a message not in the archiveFix the following warnings by including declarations from <asm/prom.h>:
arch/arm/kernel/devtree.c:69:13: warning: symbol 'arm_dt_init_cpu_maps' was not declared. Should it be static? arch/arm/kernel/devtree.c:210:27: warning: symbol 'setup_machine_fdt' was not declared. Should it be static?
---
Cc: Russell King <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: linux-arm-kernel at lists.infradead.org
--- arch/arm/kernel/devtree.c | 1 + 1 file changed, 1 insertion(+)
arch/arm/kernel/devtree.c +1 -0
@@ -23,6 +23,7 @@#include <asm/cputype.h> #include <asm/setup.h> #include <asm/page.h> +#include <asm/prom.h> #include <asm/smp_plat.h> #include <asm/mach/arch.h> #include <asm/mach-types.h>
Signature · 1 line
2.8.1
PATCH 3/9 ARM: add missing <asm/prom.h>
Quoted 8 lines · CEST Ben Dooks
Fix the following warnings by including declarations from <
asm/prom.h>:
arch/arm/kernel/devtree.c:69:13: warning: symbol 'arm_dt_init_cpu_maps' was not declared. Should it be static?arch/arm/kernel/devtree.c:210:27: warning: symbol 'setup_machine_fdt' was not declared. Should it be static?Signed-off-by Ben Dooks <[email protected]>
PATCH 4/9 ARM: fix missing <asm/vga.h> in arch/arm/mm/iomap.c
In reply to a message not in the archiveThe vga_base is exported but has no declaration, so fix the warning by including the declaration in <asm/vga.h>.
arch/arm/mm/iomap.c:12:15: warning: symbol 'vga_base' was not declared. Should it be static?
---
Cc: Russell King <[email protected]>
Cc: linux-arm-kernel at lists.infradead.org
--- arch/arm/mm/iomap.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mm/iomap.c +2 -0
@@ -9,6 +9,8 @@#include <linux/ioport.h> #include <linux/io.h> +#include <asm/vga.h> +unsigned long vga_base;EXPORT_SYMBOL (vga_base);
Signature · 1 line
2.8.1
PATCH 5/9 ARM: fix missing <linux/elf-randomize.h> in arch/arm/mm/mmap.c
In reply to a message not in the archiveThe declaration of arch_mmap_rnd() is missing so fix it by including <linux/elf-randomize.h>. Fixes:
/arch/arm/mm/mmap.c:172:15: warning: symbol 'arch_mmap_rnd' was not declared. Should it be static?
---
Cc: linux-arm-kernel at lists.infradead.org
Cc: Russell King <[email protected]>
--- arch/arm/mm/mmap.c | 1 + 1 file changed, 1 insertion(+)
arch/arm/mm/mmap.c +1 -0
@@ -9,6 +9,7 @@#include <linux/io.h> #include <linux/personality.h> #include <linux/random.h> +#include <linux/elf-randomize.h> #include <asm/cachetype.h> #define COLOUR_ALIGN (addr,pgoff) \
Signature · 1 line
2.8.1
PATCH 6/9 ARM: fix missing <asm/cacheflush.h> in arch/arm/mm/pageattr.c
In reply to a message not in the archiveFix missing declarations in arch/arm/mm/pageattr.c by including <asm/cacheflush.h>. Fixes:
arch/arm/mm/pageattr.c:71:5: warning: symbol 'set_memory_ro' was not declared. Should it be static? arch/arm/mm/pageattr.c:78:5: warning: symbol 'set_memory_rw' was not declared. Should it be static? arch/arm/mm/pageattr.c:85:5: warning: symbol 'set_memory_nx' was not declared. Should it be static? arch/arm/mm/pageattr.c:92:5: warning: symbol 'set_memory_x' was not declared. Should it be static?
---
Cc: Russell King <[email protected]>
Cc: linux-arm-kernel at lists.infradead.org
--- arch/arm/mm/pageattr.c | 1 + 1 file changed, 1 insertion(+)
arch/arm/mm/pageattr.c +1 -0
@@ -14,6 +14,7 @@#include <linux/module.h> #include <asm/pgtable.h> +#include <asm/cacheflush.h> #include <asm/tlbflush.h> struct page_change_data {
Signature · 1 line
2.8.1
PATCH 7/9 ARM: probes: fix warning on NULL/0 substitution
In reply to a message not in the archiveFix warning from use of '0' as NULL pointer.
arch/arm/probes/kprobes/actions-common.c:131:42: warning: Using plain integer as NULL pointer
---
Cc: Russell King <[email protected]>
Cc: linux-arm-kernel at lists.infradead.org
--- arch/arm/probes/kprobes/actions-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/probes/kprobes/actions-common.c +1 -1
@@ -128,7 +128,7 @@ enum probes_insn __kprobes kprobe_decode_ldmstm(probes_opcode_t insn, struct arch_probes_insn *asi, const struct decode_header *h) { - probes_insn_handler_t *handler = 0; + probes_insn_handler_t *handler = NULL;unsigned reglist = insn &0xffff ;int is_ldm = insn &0x100000 ;int rn = (insn >>16 ) &0xf ;
Signature · 1 line
2.8.1
RFC PATCH 9/9 pci: include <asm/dma.h> for isa_dma_bridge_buggy
In reply to a message not in the archiveAt least on arm, <asm/dma.h> does not get included when building drivers/pci/pci.o. This causes the following build warning which can be fixed by including <asm/dma.h>:
drivers/pci/pci.c:37:5: warning: symbol 'isa_dma_bridge_buggy' was not declared. Should it be static?
---
Cc: Bjorn Helgaas <[email protected]>
Cc: linux-pci at vger.kernel.org
Cc: linux-kernel at vger.kernel.org
Cc: linux-arm-kernel at lists.infradead.org
--- drivers/pci/pci.c | 1 + 1 file changed, 1 insertion(+)
drivers/pci/pci.c +1 -0
@@ -26,6 +26,7 @@#include <linux/pm_runtime.h> #include <linux/pci_hotplug.h> #include <asm/setup.h> +#include <asm/dma.h> #include <linux/aer.h> #include "pci.h"
Signature · 1 line
2.8.1
Bjorn Helgaas
AppliedRe: [PATCH 9/9] [RFC] pci: include <asm/dma.h> for isa_dma_bridge_buggy
Quoted 7 lines · Ben Dooks
At least on arm, <
asm/dma.h> does not get included when buildingdrivers/pci/pci.o. This causes the following build warning which can be fixed by including <asm/dma.h>:
drivers/pci/pci.c:37:5: warning: symbol 'isa_dma_bridge_buggy' was not declared. Should it be static?Signed-off-by Ben Dooks <[email protected]>
Applied to pci/misc for v4.8, thanks, Ben!
Quoted 28 lines
---
Cc: Bjorn Helgaas <[email protected]>
Cc: linux-pci at vger.kernel.org
Cc: linux-kernel at vger.kernel.org
Cc: linux-arm-kernel at lists.infradead.org--- drivers/pci/pci.c | 1 + 1 file changed, 1 insertion(+)drivers/pci/pci.c +1
-0@@ -26,6 +26,7 @@#include <linux/pm_runtime.h> #include <linux/pci_hotplug.h> #include <asm/setup.h> +#include <asm/dma.h> #include <linux/aer.h> #include "pci.h" Signature · 6 lines
2.8.1 -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html