Skip to contentSkip to conversation

ARM/PCI: Add declaration of pcibios_report_status

PATCH Applied Ben Dooks 3 participants 11 messages Jun 17, 2016 – Jul 19, 2016 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Ben Dooks

author
#1 lore raw

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
index 057d381..4b5ea93 100644
@@ -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
#2 lore raw

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?

---
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
index 057d381..4b5ea93 100644

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

author
#3 lore raw

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 archive

Fix 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
index b760340..5438934 100644
@@ -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
author
#4 lore raw

PATCH 3/9 ARM: add missing <asm/prom.h>

In reply to a message not in the archive

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?

---
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
index 2e26016..d42a9fe 100644
@@ -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
#5 lore raw

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?

author
#6 lore raw

PATCH 4/9 ARM: fix missing <asm/vga.h> in arch/arm/mm/iomap.c

In reply to a message not in the archive

The 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
index 4614208..af177d6 100644
@@ -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
author
#7 lore raw

PATCH 5/9 ARM: fix missing <linux/elf-randomize.h> in arch/arm/mm/mmap.c

In reply to a message not in the archive

The 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
index 66353ca..ac8de3a 100644
@@ -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
author
#8 lore raw

PATCH 6/9 ARM: fix missing <asm/cacheflush.h> in arch/arm/mm/pageattr.c

In reply to a message not in the archive

Fix 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
index d19b1ad..ef0612d 100644
@@ -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
author
#9 lore raw

PATCH 7/9 ARM: probes: fix warning on NULL/0 substitution

In reply to a message not in the archive

Fix 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
index bd20a71..60bf926 100644
@@ -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
author
#10 lore raw

RFC PATCH 9/9 pci: include <asm/dma.h> for isa_dma_bridge_buggy

In reply to a message not in the archive

At 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
index 9add285..86b538d 100644
@@ -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
#11 lore raw

Re: [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 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?

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
index 9add285..86b538d 100644
@@ -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