mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* PCI: fix up errors after dma bursting patch and CONFIG_PCI=n -- bug?
@ 2005-07-26  4:52 Kumar Gala
  2005-07-26 17:50 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Kumar Gala @ 2005-07-26  4:52 UTC (permalink / raw)
  To: Andrew Morton, Greg KH; +Cc: linux-kernel

Andrew,

In the patch from:

http://www.uwsg.iu.edu/hypermail/linux/kernel/0506.3/0985.html

Is the the following line suppose inside the if CONFIG_PCI=n

  #define pci_dma_burst_advice(pdev, strat, strategy_parameter) do { } while (0)

Signed-off-by: Kumar Gala <kumar.gala@freescale.com>

---
diff --git a/include/linux/pci.h b/include/linux/pci.h
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -971,6 +971,8 @@ static inline int pci_enable_wake(struct
 
 #define	isa_bridge	((struct pci_dev *)NULL)
 
+#define pci_dma_burst_advice(pdev, strat, strategy_parameter) do { } while (0)
+
 #else
 
 /*
@@ -985,9 +987,6 @@ static inline int pci_proc_domain(struct
 	return 0;
 }
 #endif
-
-#define pci_dma_burst_advice(pdev, strat, strategy_parameter) do { } while (0)
-
 #endif /* !CONFIG_PCI */
 
 /* these helpers provide future and backwards compatibility


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PCI: fix up errors after dma bursting patch and CONFIG_PCI=n -- bug?
  2005-07-26  4:52 PCI: fix up errors after dma bursting patch and CONFIG_PCI=n -- bug? Kumar Gala
@ 2005-07-26 17:50 ` Greg KH
  2005-07-26 21:51   ` Kumar Gala
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2005-07-26 17:50 UTC (permalink / raw)
  To: Kumar Gala; +Cc: Andrew Morton, linux-kernel

On Mon, Jul 25, 2005 at 11:52:43PM -0500, Kumar Gala wrote:
> Andrew,
> 
> In the patch from:
> 
> http://www.uwsg.iu.edu/hypermail/linux/kernel/0506.3/0985.html
> 
> Is the the following line suppose inside the if CONFIG_PCI=n
> 
>   #define pci_dma_burst_advice(pdev, strat, strategy_parameter) do { } while (0)
> 
> Signed-off-by: Kumar Gala <kumar.gala@freescale.com>

Hm, how did that work?

Bah, that pci.h file needs some major cleanups, I'll apply this patch
and clean up the rest to make it more sane.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PCI: fix up errors after dma bursting patch and CONFIG_PCI=n -- bug?
  2005-07-26 17:50 ` Greg KH
@ 2005-07-26 21:51   ` Kumar Gala
  0 siblings, 0 replies; 3+ messages in thread
From: Kumar Gala @ 2005-07-26 21:51 UTC (permalink / raw)
  To: Greg KH; +Cc: Gala Kumar K.-galak, Andrew Morton, linux-kernel


On Jul 26, 2005, at 12:50 PM, Greg KH wrote:

> On Mon, Jul 25, 2005 at 11:52:43PM -0500, Kumar Gala wrote:
>
>> Andrew,
>>
>> In the patch from:
>>
>> http://www.uwsg.iu.edu/hypermail/linux/kernel/0506.3/0985.html
>>
>> Is the the following line suppose inside the if CONFIG_PCI=n
>>
>>   #define pci_dma_burst_advice(pdev, strat, strategy_parameter) do  
>> { }
>>
> while (0)
>
>>
>> Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
>>
>
> Hm, how did that work?

I'm somewhat baffled by that as well.  I did a full build regression  
of the 50 PPC32 defconfigs and only one broke because of this.  I'm  
still a bit confused as to why.

> Bah, that pci.h file needs some major cleanups, I'll apply this patch
> and clean up the rest to make it more sane.

Cool, just want to make sure the minor fix makes it to linus before  
2.6.13.

- kumar

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-07-26 21:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-26  4:52 PCI: fix up errors after dma bursting patch and CONFIG_PCI=n -- bug? Kumar Gala
2005-07-26 17:50 ` Greg KH
2005-07-26 21:51   ` Kumar Gala

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®