Skip to content

Commit

Permalink
ARM: cns3xxx: Fix build with CONFIG_PCI=y
Browse files Browse the repository at this point in the history
commit 6338a6a ("ARM: 6269/1: Add 'code'
parameter for hook_fault_code()") breaks CNS3xxx build:

  CC      arch/arm/mach-cns3xxx/pcie.o
pcie.c: In function 'cns3xxx_pcie_init':
pcie.c:373: warning: passing argument 4 of 'hook_fault_code' makes integer from pointer without a cast
pcie.c:373: error: too few arguments to function 'hook_fault_code'

This commit fixes the small issue.

Cc: stable@kernel.org [36]
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
  • Loading branch information
Anton Vorontsov committed Nov 29, 2010
1 parent 3561d43 commit 4426641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-cns3xxx/pcie.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ static int __init cns3xxx_pcie_init(void)
{
int i;

hook_fault_code(16 + 6, cns3xxx_pcie_abort_handler, SIGBUS,
hook_fault_code(16 + 6, cns3xxx_pcie_abort_handler, SIGBUS, 0,
"imprecise external abort");

for (i = 0; i < ARRAY_SIZE(cns3xxx_pcie); i++) {
Expand Down

0 comments on commit 4426641

Please sign in to comment.