]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/2.6.36.2/arm-cns3xxx-fix-build-with-config_pci-y.patch
Fixes for 5.10
[thirdparty/kernel/stable-queue.git] / releases / 2.6.36.2 / arm-cns3xxx-fix-build-with-config_pci-y.patch
CommitLineData
bcd4f083
GKH
1From 44266416f786514ec43a0d15ad951c34566b99c9 Mon Sep 17 00:00:00 2001
2From: Anton Vorontsov <cbouatmailru@gmail.com>
3Date: Mon, 29 Nov 2010 18:46:22 +0300
4Subject: ARM: cns3xxx: Fix build with CONFIG_PCI=y
5
6From: Anton Vorontsov <cbouatmailru@gmail.com>
7
8commit 44266416f786514ec43a0d15ad951c34566b99c9 upstream.
9
10commit 6338a6aa7c082f11d55712251e14178c68bf5869 ("ARM: 6269/1: Add 'code'
11parameter for hook_fault_code()") breaks CNS3xxx build:
12
13 CC arch/arm/mach-cns3xxx/pcie.o
14pcie.c: In function 'cns3xxx_pcie_init':
15pcie.c:373: warning: passing argument 4 of 'hook_fault_code' makes integer from pointer without a cast
16pcie.c:373: error: too few arguments to function 'hook_fault_code'
17
18This commit fixes the small issue.
19
20Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
21Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
22
23---
24 arch/arm/mach-cns3xxx/pcie.c | 2 +-
25 1 file changed, 1 insertion(+), 1 deletion(-)
26
27--- a/arch/arm/mach-cns3xxx/pcie.c
28+++ b/arch/arm/mach-cns3xxx/pcie.c
29@@ -369,7 +369,7 @@ static int __init cns3xxx_pcie_init(void
30 {
31 int i;
32
33- hook_fault_code(16 + 6, cns3xxx_pcie_abort_handler, SIGBUS,
34+ hook_fault_code(16 + 6, cns3xxx_pcie_abort_handler, SIGBUS, 0,
35 "imprecise external abort");
36
37 for (i = 0; i < ARRAY_SIZE(cns3xxx_pcie); i++) {