lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <25327197-4a70-e31c-5ccc-8becf4da8395@st.com>
Date:   Wed, 19 Jul 2017 07:06:06 +0000
From:   Patrice CHOTARD <patrice.chotard@...com>
To:     Rob Herring <robh@...nel.org>,
        "Rafael J. Wysocki" <rjw@...ysocki.net>
CC:     "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
        Viresh Kumar <viresh.kumar@...aro.org>,
        Benjamin Herrenschmidt <benh@...nel.crashing.org>,
        Paul Mackerras <paulus@...ba.org>,
        Michael Ellerman <mpe@...erman.id.au>,
        "linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
        "linuxppc-dev@...ts.ozlabs.org" <linuxppc-dev@...ts.ozlabs.org>,
        "linux-arm-kernel@...ts.infradead.org" 
        <linux-arm-kernel@...ts.infradead.org>,
        "kernel@...inux.com" <kernel@...inux.com>
Subject: Re: [PATCH] cpufreq: Convert to using %pOF instead of full_name


On 07/18/2017 11:42 PM, Rob Herring wrote:
> Now that we have a custom printf format specifier, convert users of
> full_name to use %pOF instead. This is preparation to remove storing
> of the full path string for each node.
> 
> Signed-off-by: Rob Herring <robh@...nel.org>
> Cc: "Rafael J. Wysocki" <rjw@...ysocki.net>
> Cc: Viresh Kumar <viresh.kumar@...aro.org>
> Cc: Benjamin Herrenschmidt <benh@...nel.crashing.org>
> Cc: Paul Mackerras <paulus@...ba.org>
> Cc: Michael Ellerman <mpe@...erman.id.au>
> Cc: Patrice Chotard <patrice.chotard@...com>
> Cc: linux-pm@...r.kernel.org
> Cc: linuxppc-dev@...ts.ozlabs.org
> Cc: linux-arm-kernel@...ts.infradead.org
> Cc: kernel@...inux.com
> ---
>   drivers/cpufreq/pmac64-cpufreq.c | 2 +-
>   drivers/cpufreq/sti-cpufreq.c    | 8 ++++----
>   2 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/cpufreq/pmac64-cpufreq.c b/drivers/cpufreq/pmac64-cpufreq.c
> index 267e0894c62d..be623dd7b9f2 100644
> --- a/drivers/cpufreq/pmac64-cpufreq.c
> +++ b/drivers/cpufreq/pmac64-cpufreq.c
> @@ -516,7 +516,7 @@ static int __init g5_pm72_cpufreq_init(struct device_node *cpunode)
>   		goto bail;
>   	}
> 
> -	DBG("cpufreq: i2c clock chip found: %s\n", hwclock->full_name);
> +	DBG("cpufreq: i2c clock chip found: %pOF\n", hwclock);
> 
>   	/* Now get all the platform functions */
>   	pfunc_cpu_getfreq =
> diff --git a/drivers/cpufreq/sti-cpufreq.c b/drivers/cpufreq/sti-cpufreq.c
> index d2d0430d09d4..47105735df12 100644
> --- a/drivers/cpufreq/sti-cpufreq.c
> +++ b/drivers/cpufreq/sti-cpufreq.c
> @@ -65,8 +65,8 @@ static int sti_cpufreq_fetch_major(void) {
>   	ret = of_property_read_u32_index(np, "st,syscfg",
>   					 MAJOR_ID_INDEX, &major_offset);
>   	if (ret) {
> -		dev_err(dev, "No major number offset provided in %s [%d]\n",
> -			np->full_name, ret);
> +		dev_err(dev, "No major number offset provided in %pOF [%d]\n",
> +			np, ret);
>   		return ret;
>   	}
> 
> @@ -92,8 +92,8 @@ static int sti_cpufreq_fetch_minor(void)
>   					 MINOR_ID_INDEX, &minor_offset);
>   	if (ret) {
>   		dev_err(dev,
> -			"No minor number offset provided %s [%d]\n",
> -			np->full_name, ret);
> +			"No minor number offset provided %pOF [%d]\n",
> +			np, ret);
>   		return ret;
>   	}
> 
> --
> 2.11.0
> 

For ST cpufreq:

Acked-by: Patrice Chotard <patrice.chotard@...com>

Thanks

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ