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>] [day] [month] [year] [list]
Message-ID: <20230621171829.GN10378@google.com>
Date:   Wed, 21 Jun 2023 18:18:29 +0100
From:   Lee Jones <lee@...nel.org>
To:     baomingtong001@...suo.com
Cc:     linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mfd: sm501: prefer unsigned int over unsigned

On Tue, 13 Jun 2023, baomingtong001@...suo.com wrote:

> 
> Fix the following coccicheck warning:
> 
> drivers/mfd/sm501.c:887: Prefer 'unsigned int' to bare use of 'unsigned'.
> 
> Signed-off-by: Mindtong Bao <baomingtong001@...suo.com>
> ---
>  drivers/mfd/sm501.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

This patch did not make it to the upstream mailing list (LKML).

  https://lore.kernel.org/all/?q=%22mfd%3A+sm501%3A+prefer+unsigned+int+over+unsigned%22

I cannot take it unless it shows up there first.

Please debug this and resend.

> diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c
> index 28027982cf69..f08ad7249dc5 100644
> --- a/drivers/mfd/sm501.c
> +++ b/drivers/mfd/sm501.c
> @@ -884,7 +884,7 @@ static inline struct sm501_devdata
> *sm501_gpio_to_dev(struct sm501_gpio *gpio)
>      return container_of(gpio, struct sm501_devdata, gpio);
>  }
> 
> -static int sm501_gpio_get(struct gpio_chip *chip, unsigned offset)
> +static int sm501_gpio_get(struct gpio_chip *chip, unsigned int offset)
> 
>  {
>      struct sm501_gpio_chip *smgpio = gpiochip_get_data(chip);

-- 
Lee Jones [李琼斯]

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ