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: <CAMRc=MdRPe1PRAQ1vwsMXynR02PRDqbxNeQHg1fXBiBxe-s8vw@mail.gmail.com>
Date: Thu, 21 Nov 2024 16:48:19 +0100
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Catalin Popescu <catalin.popescu@...ca-geosystems.com>
Cc: linus.walleij@...aro.org, linux-gpio@...r.kernel.org, 
	linux-kernel@...r.kernel.org, bsp-development.geo@...ca-geosystems.com, 
	m.felsch@...gutronix.de
Subject: Re: [PATCH] gpio: mxc: fix warning about static allocation of GPIO base

On Thu, Nov 21, 2024 at 3:55 PM Catalin Popescu
<catalin.popescu@...ca-geosystems.com> wrote:
>
> Static allocation of GPIO base is deprecated, let gpiolib perform the
> dynamic allocation. This is done by initializing base to a negative
> value before the registration of the gpio controller.
>
> Signed-off-by: Catalin Popescu <catalin.popescu@...ca-geosystems.com>
> ---
>  drivers/gpio/gpio-mxc.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c
> index 4cb455b2bdee..a7418a4814d6 100644
> --- a/drivers/gpio/gpio-mxc.c
> +++ b/drivers/gpio/gpio-mxc.c
> @@ -490,8 +490,7 @@ static int mxc_gpio_probe(struct platform_device *pdev)
>         port->gc.request = mxc_gpio_request;
>         port->gc.free = mxc_gpio_free;
>         port->gc.to_irq = mxc_gpio_to_irq;
> -       port->gc.base = (pdev->id < 0) ? of_alias_get_id(np, "gpio") * 32 :
> -                                            pdev->id * 32;
> +       port->gc.base = -1;
>
>         err = devm_gpiochip_add_data(&pdev->dev, &port->gc, port);
>         if (err)
>
> base-commit: decc701f41d07481893fdea942c0ac6b226e84cd
> prerequisite-patch-id: 0000000000000000000000000000000000000000
> --
> 2.34.1
>

Sorry, no can do[1]. :(

Bart

https://lore.kernel.org/all/f891bb06-4fc6-7b4b-464d-50235c1cff48@pengutronix.de/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ