drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h: remove unused macro pr_fmt()
Subsystems (2)
PATCH 1/1 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h: remove unused macro pr_fmt()
From: Andrew Morton <[email protected]>
Subject: drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h: remove unused macro pr_fmt()
In file included from drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c:22:drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h:24:1: warning: "pr_fmt" redefined In file included from include/linux/kernel.h:20,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c:21:include/linux/printk.h:152:1: warning: this is the location of the previous definition
---
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h | 2 -- 1 file changed, 2 deletions(-)
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h renamed from drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h~drivers-net-ethernet-oki-semi-pch_gbe-pch_gbeh-remove-unused-macro-pr_fmt +0 -2
@@ -21,8 +21,6 @@#ifndef _PCH_GBE_H_#define _PCH_GBE_H_ -#define pr_fmt (fmt) KBUILD_MODNAME ": " fmt -#include <linux/mii.h> #include <linux/delay.h> #include <linux/pci.h>
_
David Miller
maintainerFrom: [email protected]
Date: Tue, 15 Nov 2011 14:55:29 -0800
Quoted 2 lines
From: Andrew Morton <[email protected]>
Subject:drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h: remove unused macropr_fmt()
It's not unused, it just isn't properly coming before the linux/printk.h include.
Quoted 8 lines · On Tue, 15 Nov 2011 18:38:08 -0500 (EST) David Miller <[email protected]>…
From: [email protected]
Date: Tue, 15 Nov 2011 14:55:29 -0800Quoted 2 lines
From: Andrew Morton <[email protected]>
Subject:drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h: remove unused macropr_fmt()It's not unused, it just isn't properly coming before the
linux/printk.hinclude.
Oh well, I'll drop it. Please treat the patch as a bug report instead.
PATCH 1/1 pch_gbe: Move #include of module.h
The first #include must be pch_gbe.h as it
does a #define of pr_fmt.
--- .../net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c +1 -1
@@ -18,8 +18,8 @@* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. */ -#include <linux/module.h> /* for __MODULE_STRING */ #include "pch_gbe.h" +#include <linux/module.h> /* for __MODULE_STRING */ #define OPTION_UNSET -1#define OPTION_DISABLED 0
Re: [PATCH] pch_gbe: Move #include of module.h
From: Joe Perches <[email protected]>
Date: Tue, 15 Nov 2011 15:56:14 -0800
Quoted 4 lines
The first #include must be
pch_gbe.has it
does a #define ofpr_fmt.Signed-off-by Joe Perches <[email protected]>
Applied.
David Miller
maintainerFrom: Andrew Morton <[email protected]>
Date: Tue, 15 Nov 2011 15:52:10 -0800
Quoted 6 lines
Quoted 3 lines · On Tue, 15 Nov 2011 18:38:08 -0500 (EST) David Miller <[email protected]>…
From: [email protected]
Date: Tue, 15 Nov 2011 14:55:29 -0800
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
From: Andrew Morton <[email protected]>
Subject:drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h: remove unused macropr_fmt()It's not unused, it just isn't properly coming before the
linux/printk.hinclude.Oh well, I'll drop it. Please treat the patch as a bug report instead.
Joe Perches took care of it, I just applied a proper fix from him.
Thanks.