mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Karsten Keil <kkeil@suse.de>
To: Jeff Garzik <jeff@garzik.org>
Cc: Andrew Morton <akpm@osdl.org>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ISDN: fix warnings
Date: Mon, 4 Dec 2006 13:55:41 +0100	[thread overview]
Message-ID: <20061204125541.GA3674@pingi.kke.suse.de> (raw)
In-Reply-To: <20061204014203.GA6938@havoc.gtf.org>

On Sun, Dec 03, 2006 at 08:42:03PM -0500, Jeff Garzik wrote:
> 
> * diva, sedlbauer: the 'ready' label is only used in certain configurations
> * hfc_pci:
> 	- cast 'arg' to proper size for testing and printing
> 	- print out 'void __iomem *' variables with %p,
> 	  rather than using incorrect casts that throw warnings
> 
> Signed-off-by: Jeff Garzik <jeff@garzik.org>
> 

Acked-by: Karsten keil <kkeil@suse.de>

> diff --git a/drivers/isdn/hisax/diva.c b/drivers/isdn/hisax/diva.c
> index 3dacfff..6eebeb4 100644
> --- a/drivers/isdn/hisax/diva.c
> +++ b/drivers/isdn/hisax/diva.c
> @@ -1121,7 +1121,11 @@ #endif /* CONFIG_PCI */
>  			bytecnt = 32;
>  		}
>  	}
> +
> +#ifdef __ISAPNP__
>  ready:
> +#endif
> +
>  	printk(KERN_INFO
>  		"Diva: %s card configured at %#lx IRQ %d\n",
>  		(cs->subtyp == DIVA_PCI) ? "PCI" :
> diff --git a/drivers/isdn/hisax/hfc_pci.c b/drivers/isdn/hisax/hfc_pci.c
> index 93f60b5..463b8ac 100644
> --- a/drivers/isdn/hisax/hfc_pci.c
> +++ b/drivers/isdn/hisax/hfc_pci.c
> @@ -1211,7 +1211,7 @@ #endif
>  			break;
>  		case (HW_TESTLOOP | REQUEST):
>  			spin_lock_irqsave(&cs->lock, flags);
> -			switch ((int) arg) {
> +			switch ((long) arg) {
>  				case (1):
>  					Write_hfc(cs, HFCPCI_B1_SSL, 0x80);	/* tx slot */
>  					Write_hfc(cs, HFCPCI_B1_RSL, 0x80);	/* rx slot */
> @@ -1229,7 +1229,7 @@ #endif
>  				default:
>  					spin_unlock_irqrestore(&cs->lock, flags);
>  					if (cs->debug & L1_DEB_WARN)
> -						debugl1(cs, "hfcpci_l1hw loop invalid %4x", (int) arg);
> +						debugl1(cs, "hfcpci_l1hw loop invalid %4lx", (long) arg);
>  					return;
>  			}
>  			cs->hw.hfcpci.trm |= 0x80;	/* enable IOM-loop */
> @@ -1709,9 +1709,9 @@ #ifdef CONFIG_PCI
>  		pci_write_config_dword(cs->hw.hfcpci.dev, 0x80, (u_int) virt_to_bus(cs->hw.hfcpci.fifos));
>  		cs->hw.hfcpci.pci_io = ioremap((ulong) cs->hw.hfcpci.pci_io, 256);
>  		printk(KERN_INFO
> -		       "HFC-PCI: defined at mem %#x fifo %#x(%#x) IRQ %d HZ %d\n",
> -		       (u_int) cs->hw.hfcpci.pci_io,
> -		       (u_int) cs->hw.hfcpci.fifos,
> +		       "HFC-PCI: defined at mem %p fifo %p(%#x) IRQ %d HZ %d\n",
> +		       cs->hw.hfcpci.pci_io,
> +		       cs->hw.hfcpci.fifos,
>  		       (u_int) virt_to_bus(cs->hw.hfcpci.fifos),
>  		       cs->irq, HZ);
>  		spin_lock_irqsave(&cs->lock, flags);
> diff --git a/drivers/isdn/hisax/sedlbauer.c b/drivers/isdn/hisax/sedlbauer.c
> index 9522141..030d162 100644
> --- a/drivers/isdn/hisax/sedlbauer.c
> +++ b/drivers/isdn/hisax/sedlbauer.c
> @@ -677,7 +677,11 @@ #else
>  		return (0);
>  #endif /* CONFIG_PCI */
>  	}	
> +
> +#ifdef __ISAPNP__
>  ready:	
> +#endif
> +
>  	/* In case of the sedlbauer pcmcia card, this region is in use,
>  	 * reserved for us by the card manager. So we do not check it
>  	 * here, it would fail.

-- 
Karsten Keil
SuSE Labs
ISDN development

      reply	other threads:[~2006-12-04 12:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-04  1:42 Jeff Garzik
2006-12-04 12:55 ` Karsten Keil [this message]

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=20061204125541.GA3674@pingi.kke.suse.de \
    --to=kkeil@suse.de \
    --cc=akpm@osdl.org \
    --cc=jeff@garzik.org \
    --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®