powerpc: mpc83xx: Allow including initreg.h into multiple files
authorJ. Neuschäfer <j.ne@posteo.net>
Fri, 20 Dec 2024 10:37:52 +0000 (11:37 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 30 Dec 2024 21:55:27 +0000 (15:55 -0600)
commitb3e8c67a91b6e614fa84db270010da4faa702a42
tree46428fb05d3675224228ff17c6f22db2a56209c7
parentdeb26b6c29670dee743dfb54b8f69866339580bd
powerpc: mpc83xx: Allow including initreg.h into multiple files

Globals defined in headers can result in multiple-definition errors
while linking, if they are visible beyond the current translation unit.

This hasn't been a problem for initreg.h so far, but would become a
problem in the next patch, where I use a constant from initreg.h in a
second C file.

Reviewed-by: Sinan Akman <sinan@writeme.com>
Signed-off-by: J. Neuschäfer <j.ne@posteo.net>
arch/powerpc/cpu/mpc83xx/initreg/initreg.h