Skip to contentSkip to conversation

xen: rename xen_pmu_init() in sys-hypervisor.c

PATCH Superseded Juergen Gross 2 participants 7 messages Aug 1, 2016 Xen hypervisor interface

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Juergen Gross

author maintainer
#0 lore raw

PATCH 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
index 6881b3c..17ea846 100644
@@ -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
#1 lore raw
Quoted 5 lines · Juergen Gross

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

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
index 6881b3c..17ea846 100644
@@ -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

#2 lore raw
In reply to Juergen Gross
Quoted 5 lines · Juergen Gross

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

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
index 6881b3c..17ea846 100644
@@ -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);
author maintainer
#3 lore raw
Quoted 9 lines · Boris Ostrovsky
Quoted 5 lines · Juergen Gross

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

While at it, how about changing xen_properties_init to xen_sysfs_properties_init as 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

#4 lore raw
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 in drivers/xen/sys-hypervisor.c to avoid shadowing the one in arch/x86/xen/pmu.c

While at it, how about changing xen_properties_init to xen_sysfs_properties_init as 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

#5 lore raw
In reply to Juergen Gross
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 in drivers/xen/sys-hypervisor.c to avoid shadowing the one in arch/x86/xen/pmu.c

While at it, how about changing xen_properties_init to xen_sysfs_properties_init as well for consistency?

I don't mind changing this name, too. Will send V2.

Thanks. Actually, there is one more --- xen_compilation_init().

-boris

author maintainer
#6 lore raw
Quoted 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 in drivers/xen/sys-hypervisor.c to avoid shadowing the one in arch/x86/xen/pmu.c

Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Quoted 1 line

While at it, how about changing xen_properties_init to xen_sysfs_properties_init as 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