Re: [PATCH v3] RISC-V: Always compile mm/init.c with cmodel=medany and notrace

From: Christoph Hellwig
Date: Mon Mar 25 2019 - 07:38:00 EST


> +ifdef CONFIG_FTRACE
> +CFLAGS_REMOVE_init.o = -pg
> +endif
> +
> obj-y += init.o
> obj-y += fault.o
> obj-y += extable.o
> obj-y += ioremap.o
> obj-y += cacheflush.o
> +
> +CFLAGS_init.o := -mcmodel=medany

Can you keep the two flags adjustments togther, preferably towards
the top of the file?

> +/*
> + * The setup_vm() is called from head.S with MMU-off.

s/The //g

Otherwis looks fine:

Reviewed-by: Christoph Hellwig <hch@xxxxxx>