[U-Boot] [PATCH v2] include/linux/mii.h: update for supporting GE

Wolfgang Denk wd at denx.de
Fri Jan 21 08:09:19 CET 2011


Dear Macpaul Lin,

In message <1291355554-18586-1-git-send-email-macpaul at andestech.com> you wrote:
> This file has been synced (copy) from Linux source code.
> This commit was based on kernel 2.6.32.
> It updates gigabit related phy registers and basic definitions.
> 
> Signed-off-by: Macpaul Lin <macpaul at andestech.com>
> ---
> Change v1: pull header file from Linux.
> Change v2: clean up unused code for u-boot.
> 
>  include/linux/mii.h |  181 ++++++++++++++++++++++++++++++---------------------
>  1 files changed, 107 insertions(+), 74 deletions(-)

This patch causes build warnings for a number of boards, for example:

Configuring for MPC8568MDS board...
In file included from /home/wd/git/u-boot/work/include/miiphy.h:37,
                 from uec.c:32:
/home/wd/git/u-boot/work/include/linux/mii.h:133:1: warning: "LPA_1000FULL" redefined
In file included from uec.c:31:
uec_phy.h:34:1: warning: this is the location of the previous definition
In file included from /home/wd/git/u-boot/work/include/miiphy.h:37,
                 from uec.c:32:
/home/wd/git/u-boot/work/include/linux/mii.h:134:1: warning: "LPA_1000HALF" redefined
In file included from uec.c:31:
uec_phy.h:35:1: warning: this is the location of the previous definition
In file included from /home/wd/git/u-boot/work/include/miiphy.h:37,
                 from uec_phy.c:27:
/home/wd/git/u-boot/work/include/linux/mii.h:133:1: warning: "LPA_1000FULL" redefined
In file included from uec_phy.c:26:
uec_phy.h:34:1: warning: this is the location of the previous definition
In file included from /home/wd/git/u-boot/work/include/miiphy.h:37,
                 from uec_phy.c:27:
/home/wd/git/u-boot/work/include/linux/mii.h:134:1: warning: "LPA_1000HALF" redefined
In file included from uec_phy.c:26:
uec_phy.h:35:1: warning: this is the location of the previous definition
   text    data     bss     dec     hex filename
 238866   22824   25252  286942   460de /work/wd/tmp-ppc/u-boot
Configuring for MPC8569MDS board...
In file included from /home/wd/git/u-boot/work/include/miiphy.h:37,
                 from uec.c:32:
/home/wd/git/u-boot/work/include/linux/mii.h:133:1: warning: "LPA_1000FULL" redefined
In file included from uec.c:31:
uec_phy.h:34:1: warning: this is the location of the previous definition
In file included from /home/wd/git/u-boot/work/include/miiphy.h:37,
                 from uec.c:32:
/home/wd/git/u-boot/work/include/linux/mii.h:134:1: warning: "LPA_1000HALF" redefined
In file included from uec.c:31:
uec_phy.h:35:1: warning: this is the location of the previous definition
In file included from /home/wd/git/u-boot/work/include/miiphy.h:37,
                 from uec_phy.c:27:
/home/wd/git/u-boot/work/include/linux/mii.h:133:1: warning: "LPA_1000FULL" redefined
In file included from uec_phy.c:26:
uec_phy.h:34:1: warning: this is the location of the previous definition
In file included from /home/wd/git/u-boot/work/include/miiphy.h:37,
                 from uec_phy.c:27:
/home/wd/git/u-boot/work/include/linux/mii.h:134:1: warning: "LPA_1000HALF" redefined
In file included from uec_phy.c:26:
uec_phy.h:35:1: warning: this is the location of the previous definition
   text    data     bss     dec     hex filename
 327682   28828  230568  587078   8f546 /work/wd/tmp-ppc/u-boot
...

etc. etc.


Please fix.

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
Insults are effective only where emotion is present.
	-- Spock, "Who Mourns for Adonais?"  stardate 3468.1


More information about the U-Boot mailing list