Skip to contentSkip to conversation

Suppress warning when CONFIG_PCI is not defined

PATCH Applied Li Yang 2 participants 2 messages May 10, 2007

Subsystems (2)
lore
Share & tools
lore

Li Yang

author
#0 lore raw

PATCH 1/2 Suppress warning when CONFIG_PCI is not defined

Suppress warning when CONFIG_PCI is not defined.

---

arch/powerpc/platforms/83xx/mpc8313_rdb.c |    2 ++
arch/powerpc/platforms/83xx/mpc834x_itx.c |    2 ++
arch/powerpc/platforms/83xx/mpc834x_mds.c |    2 ++
3 files changed, 6 insertions(+), 0 deletions(-)
arch/powerpc/platforms/83xx/mpc8313_rdb.c +0 -0
index 32e9e94..96970ac 100644
@@ -40,7 +40,9 @@ unsigned long isa_mem_base = 0;
 */

static void __init mpc8313_rdb_setup_arch(void)
{
+#ifdef CONFIG_PCI

	struct device_node *np;

+#endif

	if (ppc_md.progress)
		ppc_md.progress("mpc8313_rdb_setup_arch()", 0);
arch/powerpc/platforms/83xx/mpc834x_itx.c +0 -0
index 3c009f6..40a0194 100644
@@ -50,7 +50,9 @@ unsigned long isa_mem_base = 0;
 */

static void __init mpc834x_itx_setup_arch(void)
{
+#ifdef CONFIG_PCI

	struct device_node *np;

+#endif

	if (ppc_md.progress)
		ppc_md.progress("mpc834x_itx_setup_arch()", 0);
arch/powerpc/platforms/83xx/mpc834x_mds.c +0 -0
index 8aa9a93..10394b2 100644
@@ -120,7 +120,9 @@ static int mpc834x_usb_cfg(void)
 */

static void __init mpc834x_mds_setup_arch(void)
{
+#ifdef CONFIG_PCI

	struct device_node *np;

+#endif

	if (ppc_md.progress)
		ppc_md.progress("mpc834x_mds_setup_arch()", 0);
Applied
#1 lore raw
Quoted 9 lines · Li Yang

Suppress warning when CONFIG_PCI is not defined.

---

arch/powerpc/platforms/83xx/mpc8313_rdb.c |    2 ++
arch/powerpc/platforms/83xx/mpc834x_itx.c |    2 ++
arch/powerpc/platforms/83xx/mpc834x_mds.c |    2 ++
3 files changed, 6 insertions(+), 0 deletions(-)

applied.

- k