From: Wolfgang Denk Date: Tue, 25 Jan 2011 21:15:28 +0100 Subject: [U-Boot] [PATCH] UEC: Fix compiler warnings introduced by linux/mii.h change In-Reply-To: <1295429800-26074-1-git-send-email-galak@kernel.crashing.org> References: <1295429800-26074-1-git-send-email-galak@kernel.crashing.org> Message-ID: <20110125201528.0470DB187@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Kumar Gala, In message <1295429800-26074-1-git-send-email-galak@kernel.crashing.org> you wrote: > Patch 8ef583a0 [miiphy: convert to linux/mii.h] introduced the following > compiler warnings in the uec ethernet driver: > > In file included from /local/home/galak/git/u-boot-85xx/include/miiphy.h:37:0, > from uec.c:32: > /local/home/galak/git/u-boot-85xx/include/linux/mii.h:133:0: warning: "LPA_1000FULL" redefined > uec_phy.h:34:0: note: this is the location of the previous definition > /local/home/galak/git/u-boot-85xx/include/linux/mii.h:134:0: warning: "LPA_1000HALF" redefined > uec_phy.h:35:0: note: this is the location of the previous definition > In file included from /local/home/galak/git/u-boot-85xx/include/miiphy.h:37:0, > from uec_phy.c:27: > /local/home/galak/git/u-boot-85xx/include/linux/mii.h:133:0: warning: "LPA_1000FULL" redefined > uec_phy.h:34:0: note: this is the location of the previous definition > /local/home/galak/git/u-boot-85xx/include/linux/mii.h:134:0: warning: "LPA_1000HALF" redefined > uec_phy.h:35:0: note: this is the location of the previous definition > > Fix them be removing the duplication in the uec code and utlizing the > linux/mii.h version instead. > > Signed-off-by: Kumar Gala > --- > drivers/qe/uec_phy.c | 16 ++++++++-------- > drivers/qe/uec_phy.h | 12 +----------- > 2 files changed, 9 insertions(+), 19 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Old programmers never die, they just become managers.