xen: rename xen_pmu_init() in sys-hypervisor.c
Juergen Gross
maintainerPATCH 1/1 xen: rename xen_pmu_init() in sys-hypervisor.c
There are two functions with name xen_pmu_init() in the kernel. Rename the one in drivers/xen/sys-hypervisor.c to avoid shadowing the one in arch/x86/xen/pmu.c
--- drivers/xen/sys-hypervisor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/xen/sys-hypervisor.c +2 -2
@@ -455,7 +455,7 @@ static const struct attribute_group xen_pmu_group = { .attrs = xen_pmu_attrs, }; -static int __init xen_pmu_init (void ) +static int __init xen_sysfs_pmu_init (void ) {return sysfs_create_group (hypervisor_kobj, &xen_pmu_group); }
@@ -485,7 +485,7 @@ static int __init hyper_sysfs_init(void) goto prop_out;#ifdef CONFIG_XEN_HAVE_VPMU if (xen_initial_domain ()) { - ret =xen_pmu_init (); + ret =xen_sysfs_pmu_init ();if (ret) {sysfs_remove_group (hypervisor_kobj, &xen_properties_group);
Signature · 1 line
2.6.6
Quoted 5 lines · Juergen Gross
There are two functions with name
xen_pmu_init()in the kernel. Rename the one indrivers/xen/sys-hypervisor.cto avoid shadowing the one inarch/x86/xen/pmu.cSigned-off-by Juergen Gross <[email protected]>
While at it, how about changing xen_properties_init to xen_sysfs_properties_init as well for consistency?
-boris
Quoted 18 lines
--- drivers/xen/sys-hypervisor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/xen/sys-hypervisor.c +1
-1@@ -455,7 +455,7 @@ static const struct attribute_group xen_pmu_group = { .attrs = xen_pmu_attrs, }; -static int __init xen_pmu_init (void ) +static int __init xen_sysfs_pmu_init (void ) {return sysfs_create_group (hypervisor_kobj, &xen_pmu_group); }
drivers/xen/sys-hypervisor.c static int __init hyper_sysfs_init(void) · line 491
Quoted 8 lines
drivers/xen/sys-hypervisor.c +1
-1@@ -485,7 +485,7 @@ static int __init hyper_sysfs_init(void) goto prop_out;#ifdef CONFIG_XEN_HAVE_VPMU if (xen_initial_domain ()) { - ret =xen_pmu_init (); + ret =xen_sysfs_pmu_init ();if (ret) {sysfs_remove_group (hypervisor_kobj, &xen_properties_group);
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 5 lines · Juergen Gross
There are two functions with name
xen_pmu_init()in the kernel. Rename the one indrivers/xen/sys-hypervisor.cto avoid shadowing the one inarch/x86/xen/pmu.cSigned-off-by Juergen Gross <[email protected]>
While at it, how about changing xen_properties_init to xen_sysfs_properties_init as well for consistency?
-boris
Quoted 26 lines
--- drivers/xen/sys-hypervisor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/xen/sys-hypervisor.c +2
-2@@ -455,7 +455,7 @@ static const struct attribute_group xen_pmu_group = { .attrs = xen_pmu_attrs, }; -static int __init xen_pmu_init (void ) +static int __init xen_sysfs_pmu_init (void ) {return sysfs_create_group (hypervisor_kobj, &xen_pmu_group); }@@ -485,7 +485,7 @@ static int __init hyper_sysfs_init(void) goto prop_out;#ifdef CONFIG_XEN_HAVE_VPMU if (xen_initial_domain ()) { - ret =xen_pmu_init (); + ret =xen_sysfs_pmu_init ();if (ret) {sysfs_remove_group (hypervisor_kobj, &xen_properties_group);
Juergen Gross
maintainerQuoted 9 lines · Boris Ostrovsky
Quoted 5 lines · Juergen Gross
There are two functions with name
xen_pmu_init()in the kernel. Rename the one indrivers/xen/sys-hypervisor.cto avoid shadowing the one inarch/x86/xen/pmu.cSigned-off-by Juergen Gross <[email protected]>While at it, how about changing
xen_properties_inittoxen_sysfs_properties_initas well for consistency?
I don't mind changing this name, too. Will send V2.
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 10 lines · Juergen Gross
Quoted 8 lines · Boris Ostrovsky
Quoted 5 lines · Juergen Gross
There are two functions with name
xen_pmu_init()in the kernel. Rename the one indrivers/xen/sys-hypervisor.cto avoid shadowing the one inarch/x86/xen/pmu.cSigned-off-by Juergen Gross <[email protected]>While at it, how about changing
xen_properties_inittoxen_sysfs_properties_initas well for consistency?I don't mind changing this name, too. Will send V2.
Thanks. Actually, there is one more --- xen_compilation_init().
-boris
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 10 lines · Juergen Gross
Quoted 8 lines · Boris Ostrovsky
Quoted 5 lines · Juergen Gross
There are two functions with name
xen_pmu_init()in the kernel. Rename the one indrivers/xen/sys-hypervisor.cto avoid shadowing the one inarch/x86/xen/pmu.cSigned-off-by Juergen Gross <[email protected]>While at it, how about changing
xen_properties_inittoxen_sysfs_properties_initas well for consistency?I don't mind changing this name, too. Will send V2.
Thanks. Actually, there is one more --- xen_compilation_init().
-boris
Juergen Gross
maintainerQuoted 7 lines · Boris Ostrovsky
Quoted 6 lines · Juergen Gross
Quoted 5 lines · Boris Ostrovsky
Quoted 4 lines · Juergen Gross
There are two functions with name
xen_pmu_init()in the kernel. Rename the one indrivers/xen/sys-hypervisor.cto avoid shadowing the one inarch/x86/xen/pmu.c
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Juergen Gross <[email protected]>While at it, how about changing
xen_properties_inittoxen_sysfs_properties_initas well for consistency?I don't mind changing this name, too. Will send V2.
Thanks. Actually, there is one more ---
xen_compilation_init().
I'll do all of them.
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel