mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
To: Jan Dittmer <jdittmer@ppp0.net>
Cc: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] matrox w1: fix integer to pointer conversion warnings
Date: Sun, 14 Nov 2004 23:06:17 +0300	[thread overview]
Message-ID: <20041114230617.5ce14ce9@zanzibar.2ka.mipt.ru> (raw)
In-Reply-To: <41974A6C.20302@ppp0.net>

On Sun, 14 Nov 2004 13:07:08 +0100
Jan Dittmer <jdittmer@ppp0.net> wrote:

> Get rid of some pointer to integer conversion warnings
> in the matrox w1 bus driver.

I believe it should be done using __iomem * conversation.
I will create a patch later.

Thank you.

> Signed-off-by: Jan Dittmer <jdittmer@ppp0.net>
> 
> diff -Nru a/drivers/w1/matrox_w1.c b/drivers/w1/matrox_w1.c
> --- a/drivers/w1/matrox_w1.c	2004-11-14 13:03:45 +01:00
> +++ b/drivers/w1/matrox_w1.c	2004-11-14 13:03:45 +01:00
> @@ -78,11 +78,12 @@
> 
>  struct matrox_device
>  {
> -	unsigned long base_addr;
> -	unsigned long port_index, port_data;
> +	char *base_addr;
> +	char *port_index, *port_data;
>  	u8 data_mask;
> 
> -	unsigned long phys_addr, virt_addr;
> +	unsigned long phys_addr;
> +	char *virt_addr;
>  	unsigned long found;
> 
>  	struct w1_bus_master *bus_master;
> @@ -181,8 +182,7 @@
> 
>  	dev->phys_addr = pci_resource_start(pdev, 1);
> 
> -	dev->virt_addr =
> -		(unsigned long) ioremap_nocache(dev->phys_addr, 16384);
> +	dev->virt_addr = ioremap_nocache(dev->phys_addr, 16384);
>  	if (!dev->virt_addr) {
>  		dev_err(&pdev->dev, "%s: failed to ioremap(0x%lx, %d).\n",
>  			__func__, dev->phys_addr, 16384);


	Evgeniy Polyakov

Only failure makes us experts. -- Theo de Raadt

  reply	other threads:[~2004-11-14 19:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-14 12:07 Jan Dittmer
2004-11-14 20:06 ` Evgeniy Polyakov [this message]
2004-11-14 20:15   ` Jan Dittmer
2004-11-15  4:43     ` Evgeniy Polyakov
2004-11-15  4:46       ` Roland Dreier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041114230617.5ce14ce9@zanzibar.2ka.mipt.ru \
    --to=johnpol@2ka.mipt.ru \
    --cc=jdittmer@ppp0.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®