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] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMXE1-phb7_4h2Z-EdJ_QK0EYYcQkFwaMZevFaTNmet6OHF7Dw@mail.gmail.com>
Date:	Fri, 23 Mar 2012 16:01:15 +0200
From:	Andrei Emeltchenko <andrei.emeltchenko.news@...il.com>
To:	netdev@...r.kernel.org
Subject: Re: [PATCH] e1000: Silence sparse warnings by correcting type

ping

On Tue, Mar 20, 2012 at 10:59 AM, Andrei Emeltchenko
<Andrei.Emeltchenko.news@...il.com> wrote:
> From: Andrei Emeltchenko <andrei.emeltchenko@...el.com>
>
> Silence sparse warnings shown below:
> ...
> drivers/net/ethernet/intel/e1000/e1000_main.c:3435:17: warning:
>        cast to restricted __le64
> drivers/net/ethernet/intel/e1000/e1000_main.c:3435:17: warning:
>        cast to restricted __le64
> ...
>
> Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@...el.com>
> ---
>  drivers/net/ethernet/intel/e1000/e1000_main.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c
> index 6419a88..1bf73cf 100644
> --- a/drivers/net/ethernet/intel/e1000/e1000_main.c
> +++ b/drivers/net/ethernet/intel/e1000/e1000_main.c
> @@ -3377,7 +3377,7 @@ static void e1000_dump(struct e1000_adapter *adapter)
>        for (i = 0; tx_ring->desc && (i < tx_ring->count); i++) {
>                struct e1000_tx_desc *tx_desc = E1000_TX_DESC(*tx_ring, i);
>                struct e1000_buffer *buffer_info = &tx_ring->buffer_info[i];
> -               struct my_u { u64 a; u64 b; };
> +               struct my_u { __le64 a; __le64 b; };
>                struct my_u *u = (struct my_u *)tx_desc;
>                const char *type;
>
> @@ -3421,7 +3421,7 @@ rx_ring_summary:
>        for (i = 0; rx_ring->desc && (i < rx_ring->count); i++) {
>                struct e1000_rx_desc *rx_desc = E1000_RX_DESC(*rx_ring, i);
>                struct e1000_buffer *buffer_info = &rx_ring->buffer_info[i];
> -               struct my_u { u64 a; u64 b; };
> +               struct my_u { __le64 a; __le64 b; };
>                struct my_u *u = (struct my_u *)rx_desc;
>                const char *type;
>
> --
> 1.7.9.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ