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]
Date:   Fri, 17 Jun 2022 10:10:14 +0000
From:   patchwork-bot+netdevbpf@...nel.org
To:     Oleksij Rempel <o.rempel@...gutronix.de>
Cc:     chris.snook@...il.com, davem@...emloft.net, edumazet@...gle.com,
        kuba@...nel.org, pabeni@...hat.com, kernel@...gutronix.de,
        linux-kernel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH net-next v1 1/1] net: ag71xx: fix discards 'const' qualifier
 warning

Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@...emloft.net>:

On Thu, 16 Jun 2022 13:37:24 +0200 you wrote:
> Current kernel will compile this driver with warnings. This patch will
> fix it.
> 
> drivers/net/ethernet/atheros/ag71xx.c: In function 'ag71xx_fast_reset':
> drivers/net/ethernet/atheros/ag71xx.c:996:31: warning: passing argument 2 of 'ag71xx_hw_set
> _macaddr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>   996 |  ag71xx_hw_set_macaddr(ag, dev->dev_addr);
>       |                            ~~~^~~~~~~~~~
> drivers/net/ethernet/atheros/ag71xx.c:951:69: note: expected 'unsigned char *' but argument
>  is of type 'const unsigned char *'
>   951 | static void ag71xx_hw_set_macaddr(struct ag71xx *ag, unsigned char *mac)
>       |                                                      ~~~~~~~~~~~~~~~^~~
> drivers/net/ethernet/atheros/ag71xx.c: In function 'ag71xx_open':
> drivers/net/ethernet/atheros/ag71xx.c:1441:32: warning: passing argument 2 of 'ag71xx_hw_se
> t_macaddr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>  1441 |  ag71xx_hw_set_macaddr(ag, ndev->dev_addr);
>       |                            ~~~~^~~~~~~~~~
> drivers/net/ethernet/atheros/ag71xx.c:951:69: note: expected 'unsigned char *' but argument
>  is of type 'const unsigned char *'
>   951 | static void ag71xx_hw_set_macaddr(struct ag71xx *ag, unsigned char *mac)
>       |                                                      ~~~~~~~~~~~~~~~^~~
> 
> [...]

Here is the summary with links:
  - [net-next,v1,1/1] net: ag71xx: fix discards 'const' qualifier warning
    https://git.kernel.org/netdev/net-next/c/225b0ed27e6a

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ