Skip to contentSkip to conversation

pti: add missing CONFIG_PCI dependency

PATCH In review Heiko Carstens 5 participants 7 messages Aug 2, 2011 – Aug 3, 2011 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pti: add missing CONFIG_PCI dependency

From: Heiko Carstens <[email protected]>

allmodconfig compile fails on s390 because of the new PTI driver:

drivers/misc/pti.c:407:3: error: implicit declaration of function 'pci_iounmap' drivers/misc/pti.c:410:3: error: implicit declaration of function 'pci_release_region'

Add a 'depends on PCI' statement so it doesn't get compiled.

---
 drivers/misc/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/misc/Kconfig +1 -0
@@ -146,6 +146,7 @@ config PHANTOM
 
 config INTEL_MID_PTI
 	tristate "Parallel Trace Interface for MIPI P1149.7 cJTAG standard"
+	depends on PCI
 	default n
 	help
 	  The PTI (Parallel Trace Interface) driver directs
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · On Tue, 2 Aug 2011 10:08:34 +0200 Heiko Carstens wrote:

From: Heiko Carstens <[email protected]>

allmodconfig compile fails on s390 because of the new PTI driver:

drivers/misc/pti.c:407:3: error: implicit declaration of function 'pci_iounmap' drivers/misc/pti.c:410:3: error: implicit declaration of function 'pci_release_region'

Add a 'depends on PCI' statement so it doesn't get compiled.

Cc J Freyensee <[email protected]>

James has already acked my identical patch.
The problem seems to be that we don't have a drivers/misc/ maintainter to merge the patch.

Anyway:

Quoted 8 lines
---
 drivers/misc/Kconfig |    1 +
 1 file changed, 1 insertion(+)

drivers/misc/Kconfig config PHANTOM

Quoted 8 lines
drivers/misc/Kconfig +1 -1
@@ -146,6 +146,7 @@ config PHANTOM
 
 config INTEL_MID_PTI
 	tristate "Parallel Trace Interface for MIPI P1149.7 cJTAG standard"
+	depends on PCI
 	default n
 	help
 	  The PTI (Parallel Trace Interface) driver directs
--

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

#2 lore raw
Quoted 4 lines · Randy Dunlap
Quoted 2 lines · On Tue, 2 Aug 2011 10:08:34 +0200 Heiko Carstens wrote:

From: Heiko Carstens<[email protected]>

Quoted 9 lines
Quoted 8 lines

allmodconfig compile fails on s390 because of the new PTI driver:

drivers/misc/pti.c:407:3: error: implicit declaration of function 'pci_iounmap' drivers/misc/pti.c:410:3: error: implicit declaration of function 'pci_release_region'

Add a 'depends on PCI' statement so it doesn't get compiled.

Cc J Freyensee<[email protected]>

Greg, did you see the patch go your way?

http://marc.info/?l=linux-kernel&m=131007615706260&w=2

Should I res-submit this patch to you through the linux-next mailing list?

Thanks Greg,

J

Quoted 29 lines

James has already acked my identical patch.
The problem seems to be that we don't have a drivers/misc/ maintainter to merge the patch.

Anyway:

Quoted 8 lines
---
  drivers/misc/Kconfig |    1 +
  1 file changed, 1 insertion(+)

drivers/misc/Kconfig config PHANTOM

Quoted 8 lines
drivers/misc/Kconfig +1 -1
@@ -146,6 +146,7 @@ config PHANTOM
 
  config INTEL_MID_PTI
  	tristate "Parallel Trace Interface for MIPI P1149.7 cJTAG standard"
+	depends on PCI
  	default n
  	help
  	  The PTI (Parallel Trace Interface) driver directs
--

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

Signature · 3 lines
J (James/Jay) Freyensee
Storage Technology Group
Intel Corporation
#3 lore raw
Quoted 12 lines · J Freyensee
Quoted 11 lines · Randy Dunlap
Quoted 9 lines · On Tue, 2 Aug 2011 10:08:34 +0200 Heiko Carstens wrote:

From: Heiko Carstens<[email protected]>

allmodconfig compile fails on s390 because of the new PTI driver:

drivers/misc/pti.c:407:3: error: implicit declaration of function 'pci_iounmap' drivers/misc/pti.c:410:3: error: implicit declaration of function 'pci_release_region'

Add a 'depends on PCI' statement so it doesn't get compiled.

Quoted 8 lines
Quoted 2 lines
Quoted 1 line
Cc J Freyensee<[email protected]>

Greg, did you see the patch go your way?

http://marc.info/?l=linux-kernel&m=131007615706260&w=2

Should I res-submit this patch to you through the linux-next mailing list?

I'll pick it up, it's in my "to-apply" queue now.

thanks,

greg k-h

#4 lore raw
Quoted 16 lines · Greg KH
Quoted 15 lines · J Freyensee
Quoted 13 lines · Randy Dunlap
Quoted 10 lines · On Tue, 2 Aug 2011 10:08:34 +0200 Heiko Carstens wrote:

From: Heiko Carstens<[email protected]>

allmodconfig compile fails on s390 because of the new PTI driver:

drivers/misc/pti.c:407:3: error: implicit declaration of function 'pci_iounmap' drivers/misc/pti.c:410:3: error: implicit declaration of function 'pci_release_region'

Add a 'depends on PCI' statement so it doesn't get compiled.

Cc J Freyensee<[email protected]>
Quoted 7 lines
Quoted 5 lines

Greg, did you see the patch go your way?

http://marc.info/?l=linux-kernel&m=131007615706260&w=2

Should I res-submit this patch to you through the linux-next mailing list?

I'll pick it up, it's in my "to-apply" queue now.

Thanks Greg.

There probably is one more pti patch that has not been applied as well.
Stephen Rothwell asked about drivers/misc patches a week ago and I
responded about this additional patch I also sent:

http://marc.info/?l=linux-next&m=131016084730837&w=2

I apologize for the confusion.

Quoted 4 lines

thanks,

greg k-h

Signature · 3 lines
J (James/Jay) Freyensee
Storage Technology Group
Intel Corporation
#5 lore raw
In reply to Randy Dunlap
Quoted 11 lines · Randy Dunlap
Quoted 9 lines · On Tue, 2 Aug 2011 10:08:34 +0200 Heiko Carstens wrote:

From: Heiko Carstens <[email protected]>

allmodconfig compile fails on s390 because of the new PTI driver:

drivers/misc/pti.c:407:3: error: implicit declaration of function 'pci_iounmap' drivers/misc/pti.c:410:3: error: implicit declaration of function 'pci_release_region'

Add a 'depends on PCI' statement so it doesn't get compiled.

Quoted 8 lines
Quoted 1 line
Cc J Freyensee <[email protected]>

James has already acked my identical patch.
The problem seems to be that we don't have a drivers/misc/ maintainter to merge the patch.

Anyway:

It's also missing

#include <linux/slab.h>
#include <linux/uaccess.h>

Cfr. http://kisskb.ellerman.id.au/kisskb/buildresult/4429212/

drivers/misc/pti.c:249: error: implicit declaration of function 'kmalloc' drivers/misc/pti.c:657: error: implicit declaration of function 'copy_from_user' drivers/misc/pti.c:848: error: implicit declaration of function 'kzalloc'

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds

#6 lore raw
Quoted 18 lines · Geert Uytterhoeven
Quoted 17 lines · Randy Dunlap
Quoted 10 lines · On Tue, 2 Aug 2011 10:08:34 +0200 Heiko Carstens wrote:

From: Heiko Carstens<[email protected]>

allmodconfig compile fails on s390 because of the new PTI driver:

drivers/misc/pti.c:407:3: error: implicit declaration of function 'pci_iounmap' drivers/misc/pti.c:410:3: error: implicit declaration of function 'pci_release_region'

Add a 'depends on PCI' statement so it doesn't get compiled.

Cc J Freyensee<[email protected]>

James has already acked my identical patch.
The problem seems to be that we don't have a drivers/misc/ maintainter to merge the patch.

Quoted 8 lines
Quoted 2 lines

Anyway:

It's also missing

#include<linux/slab.h>
#include<linux/uaccess.h>

Yes, the other patch and url I sent to Greg yesterday will take care of that.

Thanks

Quoted 16 lines

Cfr. http://kisskb.ellerman.id.au/kisskb/buildresult/4429212/

drivers/misc/pti.c:249: error: implicit declaration of function 'kmalloc' drivers/misc/pti.c:657: error: implicit declaration of function 'copy_from_user' drivers/misc/pti.c:848: error: implicit declaration of function 'kzalloc'

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

Signature · 3 lines
J (James/Jay) Freyensee
Storage Technology Group
Intel Corporation