Skip to contentSkip to conversation

idle/i7300: Add CONFIG_PCI dependency

PATCH Applied Borislav Petkov 3 participants 4 messages Oct 30, 2016 – Nov 14, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 idle/i7300: Add CONFIG_PCI dependency

From: Borislav Petkov <[email protected]>

... in order to fix this randconfig build warning:

drivers/idle/i7300_idle.c: In function ‘i7300_idle_stop’:
./include/asm-generic/bug.h:117:24: warning: ‘got_ctl’ is used uninitialized in this function [-Wuninitialized]

    int __ret_warn_once = !!(condition);   \
                          ^
  drivers/idle/i7300_idle.c:415:5: note: ‘got_ctl’ was declared here
    u8 got_ctl;
       ^
---
 drivers/idle/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/idle/Kconfig +1 -0
index 4732dfc15447..c11ee3e657a6 100644
@@ -18,6 +18,7 @@ config I7300_IDLE_IOAT_CHANNEL
 config I7300_IDLE
 	tristate "Intel chipset idle memory power saving driver"
 	select I7300_IDLE_IOAT_CHANNEL
+	depends on CONFIG_PCI
 	help
 	  Enable memory power savings when idle with certain Intel server
 	  chipsets. The chipset must have I/O AT support, such as the
Signature · 1 line
2.10.0
#1 lore raw
Quoted 24 lines · Borislav Petkov

From: Borislav Petkov <[email protected]>

... in order to fix this randconfig build warning:

drivers/idle/i7300_idle.c: In function ‘i7300_idle_stop’:
./include/asm-generic/bug.h:117:24: warning: ‘got_ctl’ is used uninitialized in this function [-Wuninitialized]

    int __ret_warn_once = !!(condition);   \
                          ^
  drivers/idle/i7300_idle.c:415:5: note: ‘got_ctl’ was declared here
    u8 got_ctl;
       ^
---
 drivers/idle/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/idle/Kconfig +0 -0
index 4732dfc15447..c11ee3e657a6 100644

drivers/idle/Kconfig config I7300_IDLE_IOAT_CHANNEL · line 21

Quoted 4 lines
drivers/idle/Kconfig +1 -0
@@ -18,6 +18,7 @@ config I7300_IDLE_IOAT_CHANNEL
 config I7300_IDLE
 	tristate "Intel chipset idle memory power saving driver"
 	select I7300_IDLE_IOAT_CHANNEL
+	depends on CONFIG_PCI

depends on PCI
(no CONFIG_ prefix)

Quoted 4 lines
drivers/idle/Kconfig +0 -0
 	help
 	  Enable memory power savings when idle with certain Intel server
 	  chipsets. The chipset must have I/O AT support, such as the
Signature · 1 line
~Randy
#2 lore raw
Quoted 2 lines · Randy Dunlap

depends on PCI
(no CONFIG_ prefix)

Whoops!

Thanks. FWIW, it didn't fire even with "depends on CONFIG_PCI" anymore. Didn't investigate why though...

---
From: Borislav Petkov <[email protected]>
Date: Sun, 30 Oct 2016 14:39:28 +0100
Subject: [PATCH] idle/i7300: Add CONFIG_PCI dependency
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

... in order to fix this randconfig build warning:

drivers/idle/i7300_idle.c: In function ‘i7300_idle_stop’:
./include/asm-generic/bug.h:117:24: warning: ‘got_ctl’ is used uninitialized in this function [-Wuninitialized]

    int __ret_warn_once = !!(condition);   \
                          ^
  drivers/idle/i7300_idle.c:415:5: note: ‘got_ctl’ was declared here
    u8 got_ctl;
       ^
---
 drivers/idle/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/idle/Kconfig +1 -0
index 4732dfc15447..a066fca3688f 100644
@@ -18,6 +18,7 @@ config I7300_IDLE_IOAT_CHANNEL
 config I7300_IDLE
 	tristate "Intel chipset idle memory power saving driver"
 	select I7300_IDLE_IOAT_CHANNEL
+	depends on PCI
 	help
 	  Enable memory power savings when idle with certain Intel server
 	  chipsets. The chipset must have I/O AT support, such as the
Signature · 7 lines
2.10.0

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
#3 lore raw
Quoted 40 lines · Borislav Petkov
Quoted 2 lines · Randy Dunlap

depends on PCI
(no CONFIG_ prefix)

Whoops!

Thanks. FWIW, it didn't fire even with "depends on CONFIG_PCI" anymore. Didn't investigate why though...

---
From: Borislav Petkov <[email protected]>
Date: Sun, 30 Oct 2016 14:39:28 +0100
Subject: [PATCH] idle/i7300: Add CONFIG_PCI dependency
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

... in order to fix this randconfig build warning:

drivers/idle/i7300_idle.c: In function ‘i7300_idle_stop’:
./include/asm-generic/bug.h:117:24: warning: ‘got_ctl’ is used uninitialized in this function [-Wuninitialized]

    int __ret_warn_once = !!(condition);   \
                          ^
  drivers/idle/i7300_idle.c:415:5: note: ‘got_ctl’ was declared here
    u8 got_ctl;
       ^
---
 drivers/idle/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/idle/Kconfig +0 -0
index 4732dfc15447..a066fca3688f 100644

drivers/idle/Kconfig config I7300_IDLE_IOAT_CHANNEL · line 24

Quoted 7 lines
drivers/idle/Kconfig +1 -0
@@ -18,6 +18,7 @@ config I7300_IDLE_IOAT_CHANNEL
 config I7300_IDLE
 	tristate "Intel chipset idle memory power saving driver"
 	select I7300_IDLE_IOAT_CHANNEL
+	depends on PCI
 	help
 	  Enable memory power savings when idle with certain Intel server
 	  chipsets. The chipset must have I/O AT support, such as the

Applied.

Thanks,
Rafael