* [PATCH 7/7] alpha: Fix type compatibility warning for marvel_map_irq
2013-07-16 17:04 [PATCH 0/7] Minor Alpha updates for 3.11 Richard Henderson
@ 2013-07-16 17:04 ` Richard Henderson
0 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 2013-07-16 17:04 UTC (permalink / raw)
To: linux-kernel; +Cc: ink, mattst88, linux-alpha
Signed-off-by: Richard Henderson <rth@twiddle.net>
---
arch/alpha/kernel/sys_marvel.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/alpha/kernel/sys_marvel.c b/arch/alpha/kernel/sys_marvel.c
index 407accc..53d6e4a 100644
--- a/arch/alpha/kernel/sys_marvel.c
+++ b/arch/alpha/kernel/sys_marvel.c
@@ -317,8 +317,9 @@ marvel_init_irq(void)
}
static int
-marvel_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
+marvel_map_irq(const struct pci_dev *cdev, u8 slot, u8 pin)
{
+ struct pci_dev *dev = (struct pci_dev *)dev;
struct pci_controller *hose = dev->sysdata;
struct io7_port *io7_port = hose->sysdata;
struct io7 *io7 = io7_port->io7;
--
1.8.1.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 7/7] alpha: Fix type compatibility warning for marvel_map_irq
@ 2013-07-16 21:12 Phil Carmody
2013-07-17 13:03 ` Richard Henderson
0 siblings, 1 reply; 4+ messages in thread
From: Phil Carmody @ 2013-07-16 21:12 UTC (permalink / raw)
To: rth; +Cc: linux-alpha
Greetings Richard,
Your
+ struct pci_dev *dev = (struct pci_dev *)dev;
should surely (i.e. I'm nowhere near a compiler or kernel tree
presently) be
+ struct pci_dev *dev = (struct pci_dev *)cdev;
I guess post that, you can have:
Acked-by: Phil Carmody <pc+lkml@asdf.org>
Cheers,
Phil
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 7/7] alpha: Fix type compatibility warning for marvel_map_irq
2013-07-16 21:12 [PATCH 7/7] alpha: Fix type compatibility warning for marvel_map_irq Phil Carmody
@ 2013-07-17 13:03 ` Richard Henderson
2013-07-17 14:42 ` Phil Carmody
0 siblings, 1 reply; 4+ messages in thread
From: Richard Henderson @ 2013-07-17 13:03 UTC (permalink / raw)
To: Phil Carmody; +Cc: linux-alpha
On 07/16/2013 02:12 PM, Phil Carmody wrote:
> Greetings Richard,
>
> Your
>
> + struct pci_dev *dev = (struct pci_dev *)dev;
>
> should surely (i.e. I'm nowhere near a compiler or kernel tree
> presently) be
>
> + struct pci_dev *dev = (struct pci_dev *)cdev;
>
> I guess post that, you can have:
>
> Acked-by: Phil Carmody <pc+lkml@asdf.org>
Ug. Self-assignment suppressing uninitialized variable warning
is the stupidest extension evar.
Good eyes, thanks.
r~
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 7/7] alpha: Fix type compatibility warning for marvel_map_irq
2013-07-17 13:03 ` Richard Henderson
@ 2013-07-17 14:42 ` Phil Carmody
0 siblings, 0 replies; 4+ messages in thread
From: Phil Carmody @ 2013-07-17 14:42 UTC (permalink / raw)
To: Richard Henderson; +Cc: linux-alpha
On 17/07/13 06:03 -0700, Richard Henderson wrote:
> On 07/16/2013 02:12 PM, Phil Carmody wrote:
> > Greetings Richard,
> >
> > Your
> >
> > + struct pci_dev *dev = (struct pci_dev *)dev;
> >
> > should surely (i.e. I'm nowhere near a compiler or kernel tree
> > presently) be
> >
> > + struct pci_dev *dev = (struct pci_dev *)cdev;
> >
> > I guess post that, you can have:
> >
> > Acked-by: Phil Carmody <pc+lkml@asdf.org>
>
> Ug. Self-assignment suppressing uninitialized variable warning
> is the stupidest extension evar.
That complaint gets my Ack too!
> Good eyes, thanks.
I don't have much to offer, but I never forget how enormously in debt
I am to those who enabled my shiny new '164 to run linux way way back.
Phil
--
If "law-abiding citizens have nothing to fear" from privacy-invading
technologies and policies, then law-abiding governments should have
nothing to fear from whistleblowers.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-07-17 14:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-16 21:12 [PATCH 7/7] alpha: Fix type compatibility warning for marvel_map_irq Phil Carmody
2013-07-17 13:03 ` Richard Henderson
2013-07-17 14:42 ` Phil Carmody
-- strict thread matches above, loose matches on Subject: below --
2013-07-16 17:04 [PATCH 0/7] Minor Alpha updates for 3.11 Richard Henderson
2013-07-16 17:04 ` [PATCH 7/7] alpha: Fix type compatibility warning for marvel_map_irq Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox