linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers:pci Add pcie/Kconfig to pci/Kconfig
@ 2016-01-12 14:22 Bogicevic Sasa
  2016-01-19  3:31 ` Bjorn Helgaas
  0 siblings, 1 reply; 3+ messages in thread
From: Bogicevic Sasa @ 2016-01-12 14:22 UTC (permalink / raw)
  To: bhelgaas; +Cc: linux-pci, linux-kernel, Bogicevic Sasa

Architectures currently have to include both
drivers/pci/Kconfig and drivers/pci/pcie/Kconfig.
They should include only drivers/pci/Kconfig, and
that should handle PCIe as well.

Signed-off-by: Bogicevic Sasa <brutallesale@gmail.com>
---
 drivers/pci/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig
index 73de4ef..005dd7d 100644
--- a/drivers/pci/Kconfig
+++ b/drivers/pci/Kconfig
@@ -119,3 +119,5 @@ config PCI_LABEL
 	select NLS
 
 source "drivers/pci/host/Kconfig"
+
+source "drivers/pci/pcie/Kconfig"
-- 
2.5.0


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

* Re: [PATCH] drivers:pci Add pcie/Kconfig to pci/Kconfig
  2016-01-12 14:22 [PATCH] drivers:pci Add pcie/Kconfig to pci/Kconfig Bogicevic Sasa
@ 2016-01-19  3:31 ` Bjorn Helgaas
  2016-02-03 21:29   ` sasa bogicevic
  0 siblings, 1 reply; 3+ messages in thread
From: Bjorn Helgaas @ 2016-01-19  3:31 UTC (permalink / raw)
  To: Bogicevic Sasa; +Cc: bhelgaas, linux-pci, linux-kernel

Hi Bogicevic,

On Tue, Jan 12, 2016 at 06:22:25AM -0800, Bogicevic Sasa wrote:
> Architectures currently have to include both
> drivers/pci/Kconfig and drivers/pci/pcie/Kconfig.
> They should include only drivers/pci/Kconfig, and
> that should handle PCIe as well.
> 
> Signed-off-by: Bogicevic Sasa <brutallesale@gmail.com>
> ---
>  drivers/pci/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig
> index 73de4ef..005dd7d 100644
> --- a/drivers/pci/Kconfig
> +++ b/drivers/pci/Kconfig
> @@ -119,3 +119,5 @@ config PCI_LABEL
>  	select NLS
>  
>  source "drivers/pci/host/Kconfig"
> +
> +source "drivers/pci/pcie/Kconfig"

This project is something I'd like to get done, but it requires a
little more work.  If it were this simple, I would have done it long
ago :)

For one thing, we need to update all the Kconfig files that already
include drivers/pci/pcie/Kconfig at the same time.  On x86,
arch/x86/Kconfig already includes both:

  source "drivers/pci/pcie/Kconfig"
  source "drivers/pci/Kconfig"

With your patch applied, I see these new warnings:

  05:42:09 ~/linux (wip/bogicevic-kconfig)$ make menuconfig
  ...
  scripts/kconfig/mconf  Kconfig
  drivers/pci/pcie/Kconfig:61:warning: choice value used outside its choice group
  drivers/pci/pcie/Kconfig:67:warning: choice value used outside its choice group
  drivers/pci/pcie/Kconfig:74:warning: choice value used outside its choice group

I see that you did verify that removing the source line from
arch/x86/Kconfig does the right thing.  We need to put all the related
changes in a single patch so it is self-contained.  The tree should be
buildable and functional at every stage.

Bjorn

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

* Re: [PATCH] drivers:pci Add pcie/Kconfig to pci/Kconfig
  2016-01-19  3:31 ` Bjorn Helgaas
@ 2016-02-03 21:29   ` sasa bogicevic
  0 siblings, 0 replies; 3+ messages in thread
From: sasa bogicevic @ 2016-02-03 21:29 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: linux-pci, linux-kernel

Hi Bjorn,
I just sent a patch regarding pcie Kconfig in arch/ . I just wanted to ask how did you get these errors you pasted:

>  drivers/pci/pcie/Kconfig:61:warning: choice value used outside its choice group
>  drivers/pci/pcie/Kconfig:67:warning: choice value used outside its choice group
>  drivers/pci/pcie/Kconfig:74:warning: choice value used outside its choice group


Is there a tool for this ? I just wanted to be better at debugging kernel compilation process.

Thanks, Sasa
{
	name: Bogicevic Sasa
	phone: +381606006200
}



> On Jan 19, 2016, at 04:31, Bjorn Helgaas <helgaas@kernel.org> wrote:
> 
> Hi Bogicevic,
> 
> On Tue, Jan 12, 2016 at 06:22:25AM -0800, Bogicevic Sasa wrote:
>> Architectures currently have to include both
>> drivers/pci/Kconfig and drivers/pci/pcie/Kconfig.
>> They should include only drivers/pci/Kconfig, and
>> that should handle PCIe as well.
>> 
>> Signed-off-by: Bogicevic Sasa <brutallesale@gmail.com>
>> ---
>> drivers/pci/Kconfig | 2 ++
>> 1 file changed, 2 insertions(+)
>> 
>> diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig
>> index 73de4ef..005dd7d 100644
>> --- a/drivers/pci/Kconfig
>> +++ b/drivers/pci/Kconfig
>> @@ -119,3 +119,5 @@ config PCI_LABEL
>> 	select NLS
>> 
>> source "drivers/pci/host/Kconfig"
>> +
>> +source "drivers/pci/pcie/Kconfig"
> 
> This project is something I'd like to get done, but it requires a
> little more work.  If it were this simple, I would have done it long
> ago :)
> 
> For one thing, we need to update all the Kconfig files that already
> include drivers/pci/pcie/Kconfig at the same time.  On x86,
> arch/x86/Kconfig already includes both:
> 
>  source "drivers/pci/pcie/Kconfig"
>  source "drivers/pci/Kconfig"
> 
> With your patch applied, I see these new warnings:
> 
>  05:42:09 ~/linux (wip/bogicevic-kconfig)$ make menuconfig
>  ...
>  scripts/kconfig/mconf  Kconfig
>  drivers/pci/pcie/Kconfig:61:warning: choice value used outside its choice group
>  drivers/pci/pcie/Kconfig:67:warning: choice value used outside its choice group
>  drivers/pci/pcie/Kconfig:74:warning: choice value used outside its choice group
> 
> I see that you did verify that removing the source line from
> arch/x86/Kconfig does the right thing.  We need to put all the related
> changes in a single patch so it is self-contained.  The tree should be
> buildable and functional at every stage.
> 
> Bjorn


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

end of thread, other threads:[~2016-02-03 21:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-12 14:22 [PATCH] drivers:pci Add pcie/Kconfig to pci/Kconfig Bogicevic Sasa
2016-01-19  3:31 ` Bjorn Helgaas
2016-02-03 21:29   ` sasa bogicevic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).