[OpenBIOS] [PATCHv2 1/3] SPARC64: fix build warnings on gcc6
Cole Robinson
crobinso at redhat.com
Tue Mar 15 19:17:10 CET 2016
On 03/12/2016 06:18 AM, Mark Cave-Ayland wrote:
> Make sure we use the correct REGISTER_NODE macro when registering the /memory
> and /virtual-memory nodes.
>
> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
> ---
> openbios-devel/arch/sparc64/lib.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/openbios-devel/arch/sparc64/lib.c b/openbios-devel/arch/sparc64/lib.c
> index e9101af..4709ca8 100644
> --- a/openbios-devel/arch/sparc64/lib.c
> +++ b/openbios-devel/arch/sparc64/lib.c
> @@ -458,10 +458,10 @@ NODE_METHODS(mmu) = {
> void ob_mmu_init(const char *cpuname, uint64_t ram_size)
> {
> /* memory node */
> - REGISTER_NODE_METHODS(memory, "/memory");
> + REGISTER_NODE(memory);
>
> /* MMU node */
> - REGISTER_NODE_METHODS(mmu, "/virtual-memory");
> + REGISTER_NODE(mmu);
>
> ofmem_register(find_dev("/memory"), find_dev("/virtual-memory"));
>
>
v2 patches fix all the warnings (except the non-null issue). Thanks!
- Cole
More information about the OpenBIOS
mailing list