drivers/platform/x86: move module mlx-platform from arch/x86 to drivers/platform/x86
Subsystems (2)
PATCH 1/2 drivers/platform/x86: move module mlx-platform from arch/x86 to drivers/platform/x86
From: Vadim Pasternak <[email protected]>
Move module mlx-platform.c from arch/x86/platform/mellanox/ to drivers/platform/x86/.
Remove folder arch/x86/platform/mellanox/ and update relevant Makefile and Kconfig.
--- MAINTAINERS | 2 +- arch/x86/Kconfig | 12 -- arch/x86/platform/Makefile | 1 - arch/x86/platform/mellanox/Makefile | 1 - arch/x86/platform/mellanox/mlx-platform.c | 266 ------------------------------ drivers/platform/x86/Kconfig | 14 +- drivers/platform/x86/Makefile | 1 + drivers/platform/x86/mlx-platform.c | 266 ++++++++++++++++++++++++++++++ 8 files changed, 281 insertions(+), 282 deletions(-) delete mode 100644 arch/x86/platform/mellanox/Makefile delete mode 100644 arch/x86/platform/mellanox/mlx-platform.c create mode 100644 drivers/platform/x86/mlx-platform.c
MAINTAINERS +1 -1
@@ -7879,7 +7879,7 @@ MELLANOX PLATFORM DRIVER M: Vadim Pasternak <[email protected]> L: [email protected] S: Supported -F: arch/x86/platform/mellanox/mlx-platform.c +F: drivers/platform/x86/mlx-platform.c MELLANOX MLX CPLD HOTPLUG DRIVER M: Vadim Pasternak <[email protected]>
arch/x86/Kconfig +0 -12
@@ -550,18 +550,6 @@ config X86_INTEL_QUARK Say Y here if you have a Quark based system such as the Arduino compatible Intel Galileo. -config MLX_PLATFORM - tristate "Mellanox Technologies platform support" - depends on X86_64 - depends on X86_EXTENDED_PLATFORM - ---help--- - This option enables system support for the Mellanox Technologies - platform. - - Say Y here if you are building a kernel for Mellanox system. - - Otherwise, say N. - config X86_INTEL_LPSS bool "Intel Low Power Subsystem Support" depends on X86 && ACPI
arch/x86/platform/Makefile +0 -1
@@ -8,7 +8,6 @@ obj-y += iris/ obj-y += intel/ obj-y += intel-mid/ obj-y += intel-quark/ -obj-y += mellanox/ obj-y += olpc/ obj-y += scx200/ obj-y += sfi/
arch/x86/platform/mellanox/Makefile deleted +0 -1
@@ -1 +0,0 @@ -obj-$(CONFIG_MLX_PLATFORM) += mlx-platform.o
arch/x86/platform/mellanox/mlx-platform.c deleted +0 -266
266 lines not on this page · raw message
drivers/platform/x86/Kconfig +13 -1
@@ -1028,10 +1028,22 @@ config INTEL_TELEMETRY directly via debugfs files. Various tools may use this interface for SoC state monitoring. +config MLX_PLATFORM + tristate "Mellanox Technologies platform support" + depends on X86_64 + ---help--- + This option enables system support for the Mellanox Technologies + platform. The Mellanox systems provide data center networking + solutions based on Virtual Protocol Interconnect (VPI) technology + enable seamless connectivity to 56/100Gb/s InfiniBand or 10/40/56GbE + connection. + + If you have a Mellanox system, say Y or M here. + config MLX_CPLD_PLATFORM tristate "Mellanox platform hotplug driver support" default n - depends on MLX_PLATFORM + select MLX_PLATFORM select HWMON select I2C ---help---
drivers/platform/x86/Makefile +1 -0
@@ -71,4 +71,5 @@ obj-$(CONFIG_INTEL_TELEMETRY) += intel_telemetry_core.o \ intel_telemetry_pltdrv.o \ intel_telemetry_debugfs.o obj-$(CONFIG_INTEL_PMC_CORE) += intel_pmc_core.o +obj-$(CONFIG_MLX_PLATFORM) += mlx-platform.o obj-$(CONFIG_MLX_CPLD_PLATFORM) += mlxcpld-hotplug.o
drivers/platform/x86/mlx-platform.c new file +266 -0
266 lines not on this page · raw message
Signature · 1 line
2.1.4
Quoted 6 lines · On Thu, 2016-10-27 at 13:59 +0000, [email protected] wrote:
From: Vadim Pasternak <[email protected]>
Move module
mlx-platform.cfromarch/x86/platform/mellanox/todrivers/platform/x86/.
Remove folderarch/x86/platform/mellanox/and update relevantMakefileandKconfig.
No way, please use -M -C.
Quoted 17 lines
Signed-off-by Vadim Pasternak <[email protected]>---
MAINTAINERS | 2 +- arch/x86/Kconfig | 12 -- arch/x86/platform/Makefile | 1 - arch/x86/platform/mellanox/Makefile | 1 -arch/x86/platform/mellanox/mlx-platform.c| 266 -------------------
-----------
drivers/platform/x86/Kconfig | 14 +- drivers/platform/x86/Makefile | 1 + drivers/platform/x86/mlx-platform.c | 266
++++++++++++++++++++++++++++++8 files changed, 281 insertions(+), 282 deletions(-)delete mode 100644
arch/x86/platform/mellanox/Makefiledelete mode 100644arch/x86/platform/mellanox/mlx-platform.ccreate mode 100644drivers/platform/x86/mlx-platform.c
Signature · 2 lines
Andy Shevchenko <[email protected]> Intel Finland Oy
Quoted 15 lines
-----Original Message-----
From: Andy Shevchenko [mailto:[email protected]]
Sent: Thursday, October 27, 2016 4:59 PM
To: Vadim Pasternak <[email protected]>; [email protected]; [email protected]
Cc: [email protected]; [email protected]; akpm@linux- foundation.org; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [patch v1 1/2]drivers/platform/x86: move module mlx-platform fromarch/x86todrivers/platform/x86On Thu, 2016-10-27 at 13:59 +0000, [email protected] wrote:
Quoted 9 lines
Quoted 6 lines
From: Vadim Pasternak <[email protected]>
Move module
mlx-platform.cfromarch/x86/platform/mellanox/todrivers/platform/x86/.
Remove folderarch/x86/platform/mellanox/and update relevantMakefileandKconfig.No way, please use -M -C.
Hi Andy,
I am afraid I didn't understand your comment.
Could you, please, add some more details?
Thanks,
Vadim.
Quoted 22 lines
Quoted 13 lines
Signed-off-by Vadim Pasternak <[email protected]>---
MAINTAINERS | 2 +- arch/x86/Kconfig | 12 -- arch/x86/platform/Makefile | 1 - arch/x86/platform/mellanox/Makefile | 1 -arch/x86/platform/mellanox/mlx-platform.c| 266 -------------------
-----------
drivers/platform/x86/Kconfig | 14 +- drivers/platform/x86/Makefile | 1 + drivers/platform/x86/mlx-platform.c | 266
++++++++++++++++++++++++++++++Quoted 4 lines
8 files changed, 281 insertions(+), 282 deletions(-)delete mode 100644
arch/x86/platform/mellanox/Makefiledelete mode 100644arch/x86/platform/mellanox/mlx-platform.ccreate mode 100644drivers/platform/x86/mlx-platform.c--
Andy Shevchenko <[email protected]> Intel Finland Oy
Quoted 23 lines · Vadim Pasternak
Quoted 23 lines
-----Original Message-----
From: Andy Shevchenko [mailto:[email protected]]
Sent: Thursday, October 27, 2016 4:59 PM
To: Vadim Pasternak <[email protected]>; [email protected]; [email protected]
Cc: [email protected]; [email protected]; akpm@linux- foundation.org; [email protected]; [email protected]; [email protected]; [email protected]; [email protected] ;
[email protected]; [email protected]
Subject: Re: [patch v1 1/2]drivers/platform/x86: move module mlx- platform
fromarch/x86todrivers/platform/x86Quoted 7 lines · On Thu, 2016-10-27 at 13:59 +0000, [email protected] wrote:
From: Vadim Pasternak <[email protected]>
Move module
mlx-platform.cfromarch/x86/platform/mellanox/todrivers/platform/x86/.
Remove folderarch/x86/platform/mellanox/and update relevantMakefile
andKconfig.
Quoted 8 lines
Quoted 2 lines
No way, please use -M -C.
Hi Andy,
I am afraid I didn't understand your comment.
Could you, please, add some more details?
When you prepare patches where files are copied and/or moved add those command line options. It is the case for this patch.
Moreover I forgot to mention -n (link your patches into an e-mail thread) if you consider them dependent.
More details are available in help of git format-patch.
Signature · 2 lines
Andy Shevchenko <[email protected]> Intel Finland Oy
kbuild test robot
build botcoccinelle warnings: (new ones prefixed by >>)
Hi Vadim,
[auto build test WARNING on platform-drivers-x86/for-next]
[also build test WARNING on next-20161027]
[cannot apply to v4.9-rc2]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on] [Check https://git-scm.com/docs/git-format-patch for more information]
url: https://github.com/0day-ci/linux/commits/vadimp-mellanox-com/drivers-platform-x86-move-module-mlx-platform-from-arch-x86-to-drivers-platform-x86/20161028-000047 base: git://git.infradead.org/users/dvhart/linux-platform-drivers-x86.git for-next
coccinelle warnings: (new ones prefixed by >>)
>> drivers/platform/x86/mlx-platform.c:219:2-3: Unneeded semicolon
Please review and possibly fold the followup patch.
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
kbuild test robot
build bot[PATCH] drivers/platform/x86: fix semicolon.cocci warnings
In reply to [email protected]drivers/platform/x86/mlx-platform.c:219:2-3: Unneeded semicolon
drivers/platform/x86/mlx-platform.c:219:2-3: Unneeded semicolon
Remove unneeded semicolon.
Generated by: scripts/coccinelle/misc/semicolon.cocci
---
mlx-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/mlx-platform.c +1 -1
@@ -216,7 +216,7 @@ static int __init mlxplat_init(void)if (IS_ERR (priv->pdev_i2c)) { err =PTR_ERR (priv->pdev_i2c); goto fail_alloc; - }; + }for (i =0 ; i <ARRAY_SIZE (mlxplat_mux_data); i++) { priv->pdev_mux[i] = platform_device_register_resndata(
Vadim Pasternak
Acked-byRE: [PATCH] drivers/platform/x86: fix semicolon.cocci warnings
Quoted 31 lines
-----Original Message-----
From: kbuild test robot [mailto:[email protected]]
Sent: Thursday, October 27, 2016 8:27 PM
To: Vadim Pasternak <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; platform-driver- [email protected]; [email protected]; [email protected]; Vadim Pasternak <[email protected]>
Subject: [PATCH]drivers/platform/x86: fixsemicolon.cocciwarningsdrivers/platform/x86/mlx-platform.c:219:2-3: Unneeded semicolon
Remove unneeded semicolon.
Generated by:
scripts/coccinelle/misc/semicolon.cocciCC Vadim Pasternak <[email protected]>Signed-off-by Fengguang Wu <[email protected]>---
mlx-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/mlx-platform.c static int __init mlxplat_init(void) · line 219
Quoted 5 lines
drivers/platform/x86/mlx-platform.c +1
-1@@ -216,7 +216,7 @@ static int __init mlxplat_init(void)if (IS_ERR (priv->pdev_i2c)) { err =PTR_ERR (priv->pdev_i2c); goto fail_alloc; - }; + }
Quoted 3 lines
drivers/platform/x86/mlx-platform.c +0
-0for (i =0 ; i <ARRAY_SIZE (mlxplat_mux_data); i++) { priv->pdev_mux[i] = platform_device_register_resndata(
kbuild test robot
build botreproduce:
Hi Vadim,
[auto build test WARNING on platform-drivers-x86/for-next]
[also build test WARNING on next-20161027]
[cannot apply to v4.9-rc2]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on] [Check https://git-scm.com/docs/git-format-patch for more information]
url: https://github.com/0day-ci/linux/commits/vadimp-mellanox-com/drivers-platform-x86-move-module-mlx-platform-from-arch-x86-to-drivers-platform-x86/20161028-000047 base: git://git.infradead.org/users/dvhart/linux-platform-drivers-x86.git for-next config: i386-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386
All warnings (new ones prefixed by >>):
warning: (MLX_CPLD_PLATFORM) selects MLX_PLATFORM which has unmet direct dependencies (X86 && X86_PLATFORM_DEVICES && X86_64)
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation