* [U-Boot-Users] LIBFDT: bogus definition of fdt in libfdt_env.h
@ 2007-04-25 8:33 Wolfgang Grandegger
2007-04-25 12:08 ` Jerry Van Baren
0 siblings, 1 reply; 2+ messages in thread
From: Wolfgang Grandegger @ 2007-04-25 8:33 UTC (permalink / raw)
To: u-boot
Hi Jerry,
in libfdt_env.h there is fdt defined as:
struct fdt_header *fdt; /* Pointer to the working fdt */
I think it should be declared "extern", because the file is included by
more than one file. Or the declaration should be moved to cmd_fdt.c,
because it's the only file actually using it.
Wolfgang.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] LIBFDT: bogus definition of fdt in libfdt_env.h
2007-04-25 8:33 [U-Boot-Users] LIBFDT: bogus definition of fdt in libfdt_env.h Wolfgang Grandegger
@ 2007-04-25 12:08 ` Jerry Van Baren
0 siblings, 0 replies; 2+ messages in thread
From: Jerry Van Baren @ 2007-04-25 12:08 UTC (permalink / raw)
To: u-boot
Wolfgang Grandegger wrote:
> Hi Jerry,
>
> in libfdt_env.h there is fdt defined as:
>
> struct fdt_header *fdt; /* Pointer to the working fdt */
>
> I think it should be declared "extern", because the file is included by
> more than one file. Or the declaration should be moved to cmd_fdt.c,
> because it's the only file actually using it.
>
> Wolfgang.
Hi Wolfgang G,
Yes, that is not declared properly. IIRC, I split the fdt_support.c out
of cmd_fdt.c and moved the declaration into the .h file because I
thought I would need it in more places (cmd_bootm.c, IIRC). The move
was done poorly.
I'll add figuring out the proper location and declaration to the cleanup
list. It probably should move (as a static) back into cmd_fdt.c until
it is actually needed elsewhere.
Thanks,
gvb
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-25 12:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-25 8:33 [U-Boot-Users] LIBFDT: bogus definition of fdt in libfdt_env.h Wolfgang Grandegger
2007-04-25 12:08 ` Jerry Van Baren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox