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: <CABeAxaf=xC3sTJg88BsC_msm=fbNd6LkxZKySRwugA6S8zcSbA@mail.gmail.com>
Date:	Mon, 7 Apr 2014 15:38:27 +0300
From:	Matei Oprea <eu@...eamatei.ro>
To:	Greg KH <gregkh@...uxfoundation.org>
Cc:	driverdev <devel@...verdev.osuosl.org>,
	linux-kernel@...r.kernel.org, Matei Oprea <eu@...eamatei.ro>,
	ROSEdu Kernel Community <firefly@...ts.rosedu.org>
Subject: Re: [PATCH] staging: cxt1e1: hwprobe: fix incorrect type in assignment

Any comments on this ?
ᐧ

On Sun, Mar 23, 2014 at 2:13 PM, Matei Oprea <eu@...eamatei.ro> wrote:
> This patch fixes "incorrect type in argument 1" warning from sparse.
>
> Signed-off-by: Matei Oprea <eu@...eamatei.ro>
> Cc: ROSEdu Kernel Community <firefly@...ts.rosedu.org>
> ---
>  drivers/staging/cxt1e1/hwprobe.c       |    6 +++---
>  drivers/staging/cxt1e1/pmcc4_private.h |    2 +-
>  2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/staging/cxt1e1/hwprobe.c b/drivers/staging/cxt1e1/hwprobe.c
> index 9b4198b..1a145ea 100644
> --- a/drivers/staging/cxt1e1/hwprobe.c
> +++ b/drivers/staging/cxt1e1/hwprobe.c
> @@ -174,12 +174,12 @@ cleanup_ioremap(void)
>                 if (hi->pci_slot == 0xff)
>                         break;
>                 if (hi->addr_mapped[0]) {
> -                       iounmap((void *)(hi->addr_mapped[0]));
> +                       iounmap(hi->addr_mapped[0]);
>                         release_mem_region((long) hi->addr[0], hi->len[0]);
>                         hi->addr_mapped[0] = 0;
>                 }
>                 if (hi->addr_mapped[1]) {
> -                       iounmap((void *)(hi->addr_mapped[1]));
> +                       iounmap(hi->addr_mapped[1]);
>                         release_mem_region((long) hi->addr[1], hi->len[1]);
>                         hi->addr_mapped[1] = 0;
>                 }
> @@ -329,7 +329,7 @@ c4hw_attach_all(void)
>                                 return -ENOMEM;
>                         }
>
> -                       hi->addr_mapped[j] = (unsigned long)ioremap(hi->addr[j], hi->len[j]);
> +                       hi->addr_mapped[j] = ioremap(hi->addr[j], hi->len[j]);
>                         if (!hi->addr_mapped[j]) {
>                                 pr_warning("%s: ioremap fails, addr=0x%lx, len=0x%lx ?\n",
>                                            hi->devname, hi->addr[j], hi->len[j]);
> diff --git a/drivers/staging/cxt1e1/pmcc4_private.h b/drivers/staging/cxt1e1/pmcc4_private.h
> index eb28f09..451f12f 100644
> --- a/drivers/staging/cxt1e1/pmcc4_private.h
> +++ b/drivers/staging/cxt1e1/pmcc4_private.h
> @@ -262,7 +262,7 @@ struct s_hdw_info
>      struct pci_dev *pdev[2];
>
>      unsigned long addr[2];
> -    unsigned long addr_mapped[2];
> +    void __iomem *addr_mapped[2];
>      unsigned long len[2];
>
>      union
> --
> 1.7.9.5
>



-- 
Oprea Matei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ