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: <CAJZ5v0iiv6DjdcheiBZLjyrMjyhVJVfOvy_DUw8L+NrZuH33eA@mail.gmail.com>
Date:   Fri, 21 May 2021 18:55:11 +0200
From:   "Rafael J. Wysocki" <rafael@...nel.org>
To:     Viresh Kumar <viresh.kumar@...aro.org>
Cc:     Rafael Wysocki <rjw@...ysocki.net>,
        Linux PM <linux-pm@...r.kernel.org>,
        Vincent Guittot <vincent.guittot@...aro.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] cpufreq: dt: Rename black/white-lists

On Thu, May 20, 2021 at 6:41 AM Viresh Kumar <viresh.kumar@...aro.org> wrote:
>
> Rename them in accordance with the coding guidelines.
>
> Signed-off-by: Viresh Kumar <viresh.kumar@...aro.org>

FWIW

Reviewed-by: Rafael J. Wysocki <rafael@...nel.org>

> ---
>  drivers/cpufreq/cpufreq-dt-platdev.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c
> index 0bb10402f02c..bef7528aecd3 100644
> --- a/drivers/cpufreq/cpufreq-dt-platdev.c
> +++ b/drivers/cpufreq/cpufreq-dt-platdev.c
> @@ -15,7 +15,7 @@
>   * Machines for which the cpufreq device is *always* created, mostly used for
>   * platforms using "operating-points" (V1) property.
>   */
> -static const struct of_device_id whitelist[] __initconst = {
> +static const struct of_device_id allowlist[] __initconst = {
>         { .compatible = "allwinner,sun4i-a10", },
>         { .compatible = "allwinner,sun5i-a10s", },
>         { .compatible = "allwinner,sun5i-a13", },
> @@ -100,7 +100,7 @@ static const struct of_device_id whitelist[] __initconst = {
>   * Machines for which the cpufreq device is *not* created, mostly used for
>   * platforms using "operating-points-v2" property.
>   */
> -static const struct of_device_id blacklist[] __initconst = {
> +static const struct of_device_id blocklist[] __initconst = {
>         { .compatible = "allwinner,sun50i-h6", },
>
>         { .compatible = "arm,vexpress", },
> @@ -179,13 +179,13 @@ static int __init cpufreq_dt_platdev_init(void)
>         if (!np)
>                 return -ENODEV;
>
> -       match = of_match_node(whitelist, np);
> +       match = of_match_node(allowlist, np);
>         if (match) {
>                 data = match->data;
>                 goto create_pdev;
>         }
>
> -       if (cpu0_node_has_opp_v2_prop() && !of_match_node(blacklist, np))
> +       if (cpu0_node_has_opp_v2_prop() && !of_match_node(blocklist, np))
>                 goto create_pdev;
>
>         of_node_put(np);
> --
> 2.31.1.272.g89b43f80a514
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ