Fix pci_subsys_init() to have a return value
PATCH 1/1 Fix pci_subsys_init() to have a return value
Fix pci_subsys_init() to return a value (0) when it has finished. All the functions it calls currently return 0, so returning 0 here unconditionally rather than gathering the results of its callees would seem reasonable.
---
arch/x86/pci/legacy.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/x86/pci/legacy.c +1 -0
@@ -63,5 +63,6 @@ int __init pci_subsys_init(void)pci_legacy_init ();pcibios_irq_init ();pcibios_init (); +return 0 ; }subsys_initcall (pci_subsys_init);
Quoted 16 lines · David Howells
Fix
pci_subsys_init()to return a value (0) when it has finished. All the functions it calls currently return 0, so returning 0 here unconditionally rather than gathering the results of its callees would seem reasonable.Signed-off-by David Howells <[email protected]>---
arch/x86/pci/legacy.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)arch/x86/pci/legacy.c +0
-0
arch/x86/pci/legacy.c int __init pci_subsys_init(void) · line 68
Quoted 6 lines
arch/x86/pci/legacy.c +1
-0@@ -63,5 +63,6 @@ int __init pci_subsys_init(void)pci_legacy_init ();pcibios_irq_init ();pcibios_init (); +return 0 ; }subsys_initcall (pci_subsys_init);
Looks like Robert already pushed a patch like this via the x86 tree, but at least it's been fixed.
Thanks,
Jesse
Quoted 12 lines · Jesse Barnes
Quoted 11 lines · David Howells
Fix
pci_subsys_init()to return a value (0) when it has finished. All the functions it calls currently return 0, so returning 0 here unconditionally rather than gathering the results of its callees would seem reasonable.Signed-off-by David Howells <[email protected]>---
arch/x86/pci/legacy.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Quoted 14 lines
arch/x86/pci/legacy.c int __init pci_subsys_init(void) · line 68
Quoted 11 lines
arch/x86/pci/legacy.c +1
-0@@ -63,5 +63,6 @@ int __init pci_subsys_init(void)pci_legacy_init ();pcibios_irq_init ();pcibios_init (); +return 0 ; }subsys_initcall (pci_subsys_init);Looks like Robert already pushed a patch like this via the x86 tree, but at least it's been fixed.
Right, there was also another location to fix.
-Robert
Signature · 3 lines
Advanced Micro Devices, Inc. Operating System Research Center email: [email protected]