diff mbox series

perf: Convert to using %pOFn instead of device_node.name

Message ID 20180828015252.28511-38-robh@kernel.org
State Accepted
Commit 03630b3b76ccc2999f77e11c4ba60b0a549d023a
Headers show
Series perf: Convert to using %pOFn instead of device_node.name | expand

Commit Message

Rob Herring Aug. 28, 2018, 1:52 a.m. UTC
In preparation to remove the node name pointer from struct device_node,
convert printf users to use the %pOFn format specifier.

Cc: Will Deacon <will.deacon@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Rob Herring <robh@kernel.org>

---
 drivers/perf/arm_pmu_platform.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
2.17.1

Comments

Will Deacon Aug. 28, 2018, 5:02 p.m. UTC | #1
On Mon, Aug 27, 2018 at 08:52:39PM -0500, Rob Herring wrote:
> In preparation to remove the node name pointer from struct device_node,

> convert printf users to use the %pOFn format specifier.

> 

> Cc: Will Deacon <will.deacon@arm.com>

> Cc: Mark Rutland <mark.rutland@arm.com>

> Cc: linux-arm-kernel@lists.infradead.org

> Signed-off-by: Rob Herring <robh@kernel.org>

> ---

>  drivers/perf/arm_pmu_platform.c | 6 +++---

>  1 file changed, 3 insertions(+), 3 deletions(-)


Cheers, I can queue this up for 4.20. Let me know if you'd rather take it
along with the name pointer removal instead.

Will

> diff --git a/drivers/perf/arm_pmu_platform.c b/drivers/perf/arm_pmu_platform.c

> index 96075cecb0ae..933bd8410fc2 100644

> --- a/drivers/perf/arm_pmu_platform.c

> +++ b/drivers/perf/arm_pmu_platform.c

> @@ -77,14 +77,14 @@ static int pmu_parse_irq_affinity(struct device_node *node, int i)

>  

>  	dn = of_parse_phandle(node, "interrupt-affinity", i);

>  	if (!dn) {

> -		pr_warn("failed to parse interrupt-affinity[%d] for %s\n",

> -			i, node->name);

> +		pr_warn("failed to parse interrupt-affinity[%d] for %pOFn\n",

> +			i, node);

>  		return -EINVAL;

>  	}

>  

>  	cpu = of_cpu_node_to_id(dn);

>  	if (cpu < 0) {

> -		pr_warn("failed to find logical CPU for %s\n", dn->name);

> +		pr_warn("failed to find logical CPU for %pOFn\n", dn);

>  		cpu = nr_cpu_ids;

>  	}

>  

> -- 

> 2.17.1

>
Rob Herring Sept. 28, 2018, 9:19 p.m. UTC | #2
On Tue, Aug 28, 2018 at 12:02 PM Will Deacon <will.deacon@arm.com> wrote:
>

> On Mon, Aug 27, 2018 at 08:52:39PM -0500, Rob Herring wrote:

> > In preparation to remove the node name pointer from struct device_node,

> > convert printf users to use the %pOFn format specifier.

> >

> > Cc: Will Deacon <will.deacon@arm.com>

> > Cc: Mark Rutland <mark.rutland@arm.com>

> > Cc: linux-arm-kernel@lists.infradead.org

> > Signed-off-by: Rob Herring <robh@kernel.org>

> > ---

> >  drivers/perf/arm_pmu_platform.c | 6 +++---

> >  1 file changed, 3 insertions(+), 3 deletions(-)

>

> Cheers, I can queue this up for 4.20. Let me know if you'd rather take it

> along with the name pointer removal instead.


I assumed you were going to take this since I didn't say otherwise,
but looks like it is not in linux-next. Please take thru your tree.

Rob
Will Deacon Oct. 1, 2018, 9:18 a.m. UTC | #3
On Fri, Sep 28, 2018 at 04:19:07PM -0500, Rob Herring wrote:
> On Tue, Aug 28, 2018 at 12:02 PM Will Deacon <will.deacon@arm.com> wrote:

> >

> > On Mon, Aug 27, 2018 at 08:52:39PM -0500, Rob Herring wrote:

> > > In preparation to remove the node name pointer from struct device_node,

> > > convert printf users to use the %pOFn format specifier.

> > >

> > > Cc: Will Deacon <will.deacon@arm.com>

> > > Cc: Mark Rutland <mark.rutland@arm.com>

> > > Cc: linux-arm-kernel@lists.infradead.org

> > > Signed-off-by: Rob Herring <robh@kernel.org>

> > > ---

> > >  drivers/perf/arm_pmu_platform.c | 6 +++---

> > >  1 file changed, 3 insertions(+), 3 deletions(-)

> >

> > Cheers, I can queue this up for 4.20. Let me know if you'd rather take it

> > along with the name pointer removal instead.

> 

> I assumed you were going to take this since I didn't say otherwise,

> but looks like it is not in linux-next. Please take thru your tree.


Sorry, slipped through the cracks. I'll get it queued asap for the merge
window.

Will
diff mbox series

Patch

diff --git a/drivers/perf/arm_pmu_platform.c b/drivers/perf/arm_pmu_platform.c
index 96075cecb0ae..933bd8410fc2 100644
--- a/drivers/perf/arm_pmu_platform.c
+++ b/drivers/perf/arm_pmu_platform.c
@@ -77,14 +77,14 @@  static int pmu_parse_irq_affinity(struct device_node *node, int i)
 
 	dn = of_parse_phandle(node, "interrupt-affinity", i);
 	if (!dn) {
-		pr_warn("failed to parse interrupt-affinity[%d] for %s\n",
-			i, node->name);
+		pr_warn("failed to parse interrupt-affinity[%d] for %pOFn\n",
+			i, node);
 		return -EINVAL;
 	}
 
 	cpu = of_cpu_node_to_id(dn);
 	if (cpu < 0) {
-		pr_warn("failed to find logical CPU for %s\n", dn->name);
+		pr_warn("failed to find logical CPU for %pOFn\n", dn);
 		cpu = nr_cpu_ids;
 	}