Skip to content
Snippets Groups Projects
Commit b29ff627 authored by Ladislav Michl's avatar Ladislav Michl Committed by Tom Rix
Browse files

NetStar: eeprom - undefined reference to `memset'


Defining partially initialized struct eth_device on stack means
gcc has to zero out it, and some gcc versions optimize this with
an implicit call to memset. Move definition to data section
to avoid that (it has also nice side effect that we need not
to pass it to helper functions anymore)

Signed-off-by: default avatarLadislav Michl <ladis@linux-mips.org>
Signed-off-by: default avatarSandeep Paulraj <s-paulraj@ti.com>
parent ef8d0087
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment