All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers: acpi: make ACPI_PROCFS_POWER X86 only
@ 2015-05-01 10:27 Lorenzo Pieralisi
  2015-05-02 13:09   ` Hanjun Guo
  0 siblings, 1 reply; 5+ messages in thread
From: Lorenzo Pieralisi @ 2015-05-01 10:27 UTC (permalink / raw)
  To: linux-kernel, linux-acpi
  Cc: Lorenzo Pieralisi, Hanjun Guo, Lan Tianyu, Rafael J. Wysocki

The ACPI procfs power interface is initialized by compilation units
that are only selectable on X86 platforms. Since its usage is
deprecated and it cannot even be used on platforms other than X86
it should be compiled in only on X86 platforms.

This patch makes CONFIG_ACPI_PROCFS_POWER dependent on X86, so
that other architectures are prevented from compiling it in for
no purpose.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Hanjun Guo <hanjun.guo@linaro.org>
Cc: Lan Tianyu <tianyu.lan@intel.com>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
---
Lan, Rafael,

I do not see any reason why this option is allowed to be selected
on platforms other than X86, so let's make it X86 only. Please let
me know what you think, thanks.

Lorenzo

 drivers/acpi/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index ab2cbb5..16da185 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -62,7 +62,7 @@ config ACPI_SLEEP
 
 config ACPI_PROCFS_POWER
 	bool "Deprecated power /proc/acpi directories"
-	depends on PROC_FS
+	depends on X86 && PROC_FS
 	help
 	  For backwards compatibility, this option allows
           deprecated power /proc/acpi/ directories to exist, even when
-- 
2.2.1


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

* Re: [PATCH] drivers: acpi: make ACPI_PROCFS_POWER X86 only
  2015-05-01 10:27 [PATCH] drivers: acpi: make ACPI_PROCFS_POWER X86 only Lorenzo Pieralisi
@ 2015-05-02 13:09   ` Hanjun Guo
  0 siblings, 0 replies; 5+ messages in thread
From: Hanjun Guo @ 2015-05-02 13:09 UTC (permalink / raw)
  To: Lorenzo Pieralisi, linux-kernel, linux-acpi; +Cc: Lan Tianyu, Rafael J. Wysocki

On 2015年05月01日 18:27, Lorenzo Pieralisi wrote:
> The ACPI procfs power interface is initialized by compilation units
> that are only selectable on X86 platforms. Since its usage is
> deprecated and it cannot even be used on platforms other than X86
> it should be compiled in only on X86 platforms.
>
> This patch makes CONFIG_ACPI_PROCFS_POWER dependent on X86, so
> that other architectures are prevented from compiling it in for
> no purpose.
>
> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> Cc: Hanjun Guo <hanjun.guo@linaro.org>
> Cc: Lan Tianyu <tianyu.lan@intel.com>
> Cc: Rafael J. Wysocki <rjw@rjwysocki.net>

I think this proc fs was not used for IA64 (it is
for server platform) too.

Acked-by: Hanjun Guo <hanjun.guo@linaro.org>

> ---
> Lan, Rafael,
>
> I do not see any reason why this option is allowed to be selected
> on platforms other than X86, so let's make it X86 only. Please let
> me know what you think, thanks.
>
> Lorenzo
>
>   drivers/acpi/Kconfig | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
> index ab2cbb5..16da185 100644
> --- a/drivers/acpi/Kconfig
> +++ b/drivers/acpi/Kconfig
> @@ -62,7 +62,7 @@ config ACPI_SLEEP
>
>   config ACPI_PROCFS_POWER
>   	bool "Deprecated power /proc/acpi directories"
> -	depends on PROC_FS
> +	depends on X86 && PROC_FS
>   	help
>   	  For backwards compatibility, this option allows
>             deprecated power /proc/acpi/ directories to exist, even when
>
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] drivers: acpi: make ACPI_PROCFS_POWER X86 only
@ 2015-05-02 13:09   ` Hanjun Guo
  0 siblings, 0 replies; 5+ messages in thread
From: Hanjun Guo @ 2015-05-02 13:09 UTC (permalink / raw)
  To: Lorenzo Pieralisi, linux-kernel, linux-acpi; +Cc: Lan Tianyu, Rafael J. Wysocki

On 2015年05月01日 18:27, Lorenzo Pieralisi wrote:
> The ACPI procfs power interface is initialized by compilation units
> that are only selectable on X86 platforms. Since its usage is
> deprecated and it cannot even be used on platforms other than X86
> it should be compiled in only on X86 platforms.
>
> This patch makes CONFIG_ACPI_PROCFS_POWER dependent on X86, so
> that other architectures are prevented from compiling it in for
> no purpose.
>
> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> Cc: Hanjun Guo <hanjun.guo@linaro.org>
> Cc: Lan Tianyu <tianyu.lan@intel.com>
> Cc: Rafael J. Wysocki <rjw@rjwysocki.net>

I think this proc fs was not used for IA64 (it is
for server platform) too.

Acked-by: Hanjun Guo <hanjun.guo@linaro.org>

> ---
> Lan, Rafael,
>
> I do not see any reason why this option is allowed to be selected
> on platforms other than X86, so let's make it X86 only. Please let
> me know what you think, thanks.
>
> Lorenzo
>
>   drivers/acpi/Kconfig | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
> index ab2cbb5..16da185 100644
> --- a/drivers/acpi/Kconfig
> +++ b/drivers/acpi/Kconfig
> @@ -62,7 +62,7 @@ config ACPI_SLEEP
>
>   config ACPI_PROCFS_POWER
>   	bool "Deprecated power /proc/acpi directories"
> -	depends on PROC_FS
> +	depends on X86 && PROC_FS
>   	help
>   	  For backwards compatibility, this option allows
>             deprecated power /proc/acpi/ directories to exist, even when
>

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

* Re: [PATCH] drivers: acpi: make ACPI_PROCFS_POWER X86 only
  2015-05-02 13:09   ` Hanjun Guo
@ 2015-05-15  0:02     ` Rafael J. Wysocki
  -1 siblings, 0 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2015-05-15  0:02 UTC (permalink / raw)
  To: Hanjun Guo; +Cc: Lorenzo Pieralisi, linux-kernel, linux-acpi, Lan Tianyu

On Saturday, May 02, 2015 09:09:35 PM Hanjun Guo wrote:
> On 2015年05月01日 18:27, Lorenzo Pieralisi wrote:
> > The ACPI procfs power interface is initialized by compilation units
> > that are only selectable on X86 platforms. Since its usage is
> > deprecated and it cannot even be used on platforms other than X86
> > it should be compiled in only on X86 platforms.
> >
> > This patch makes CONFIG_ACPI_PROCFS_POWER dependent on X86, so
> > that other architectures are prevented from compiling it in for
> > no purpose.
> >
> > Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> > Cc: Hanjun Guo <hanjun.guo@linaro.org>
> > Cc: Lan Tianyu <tianyu.lan@intel.com>
> > Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
> 
> I think this proc fs was not used for IA64 (it is
> for server platform) too.
> 
> Acked-by: Hanjun Guo <hanjun.guo@linaro.org>

Queued up for 4.2, thanks!


-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] drivers: acpi: make ACPI_PROCFS_POWER X86 only
@ 2015-05-15  0:02     ` Rafael J. Wysocki
  0 siblings, 0 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2015-05-15  0:02 UTC (permalink / raw)
  To: Hanjun Guo; +Cc: Lorenzo Pieralisi, linux-kernel, linux-acpi, Lan Tianyu

On Saturday, May 02, 2015 09:09:35 PM Hanjun Guo wrote:
> On 2015年05月01日 18:27, Lorenzo Pieralisi wrote:
> > The ACPI procfs power interface is initialized by compilation units
> > that are only selectable on X86 platforms. Since its usage is
> > deprecated and it cannot even be used on platforms other than X86
> > it should be compiled in only on X86 platforms.
> >
> > This patch makes CONFIG_ACPI_PROCFS_POWER dependent on X86, so
> > that other architectures are prevented from compiling it in for
> > no purpose.
> >
> > Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> > Cc: Hanjun Guo <hanjun.guo@linaro.org>
> > Cc: Lan Tianyu <tianyu.lan@intel.com>
> > Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
> 
> I think this proc fs was not used for IA64 (it is
> for server platform) too.
> 
> Acked-by: Hanjun Guo <hanjun.guo@linaro.org>

Queued up for 4.2, thanks!


-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

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

end of thread, other threads:[~2015-05-14 23:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-01 10:27 [PATCH] drivers: acpi: make ACPI_PROCFS_POWER X86 only Lorenzo Pieralisi
2015-05-02 13:09 ` Hanjun Guo
2015-05-02 13:09   ` Hanjun Guo
2015-05-15  0:02   ` Rafael J. Wysocki
2015-05-15  0:02     ` Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.