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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7223d43a-ef82-2364-9bf7-dde50ce4a7f3@gmail.com>
Date:   Mon, 18 Jun 2018 14:51:00 +0200
From:   Andrea Greco <andrea.greco.gapmilano@...il.com>
To:     David Miller <davem@...emloft.net>
Cc:     kbuild-all@...org, tobin@...orbit.com,
        Andrea Greco <a.greco@...gma.it>,
        Michael Grzeschik <m.grzeschik@...gutronix.de>,
        linux-kernel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH 3/6] arcnet: com20020: Add com20020 io mapped version

On 06/11/2018 06:35 PM, kbuild test robot wrote:
>     drivers/net/arcnet/com20020-io.c:34:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>       return ioread8((void *__iomem) addr + offset);
>                      ^
>     drivers/net/arcnet/com20020-io.c: In function 'io_arc_outb':
>     drivers/net/arcnet/com20020-io.c:39:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>       iowrite8(value, (void *__iomem)addr + offset);
>                       ^
>     drivers/net/arcnet/com20020-io.c: In function 'io_arc_insb':
>     drivers/net/arcnet/com20020-io.c:44:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>       ioread8_rep((void *__iomem) (addr + offset), buffer, count);
>                   ^
>     drivers/net/arcnet/com20020-io.c: In function 'io_arc_outsb':
>     drivers/net/arcnet/com20020-io.c:49:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>       iowrite8_rep((void *__iomem) (addr + offset), buffer, count);
>                    ^
>     drivers/net/arcnet/com20020-io.c: In function 'com20020_probe':
>     drivers/net/arcnet/com20020-io.c:219:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
>       ioaddr = (int)devm_ioremap(&pdev->dev, iores->start,
>                ^
>     drivers/net/arcnet/com20020-io.c:288:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>       devm_iounmap(&pdev->dev, (void __iomem *)ioaddr);
>                                ^

Is there some clean way for fix this.
Some architetture int size is 32 bit and ptr is 64, this rise warning, 
of spark64 compiler.
Change ioaddr type means introduce a lots of casting in all other driver.

Which is the best way for proceed ?

Andrea


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ