Re: [PATCH] kernel/trace/trace.c: Switch the related code with CONFIG_TRACER_MAX_TRACE

From: Steven Rostedt
Date: Tue Nov 10 2015 - 17:56:51 EST


On Wed, 11 Nov 2015 06:31:25 +0800
Chen Gang <xili_gchen_5257@xxxxxxxxxxx> wrote:

> > I'm curious to what compiler are you using? Because, for me gcc simply
> > compiles it out without any warning or anything because it's labeled as
> > a constant.
> >
>
> I use the upstream gcc 6.0.0, which is simply built by myself:
>

So this is new with gcc 6.0 (which I don't have). I'm still using 4.9
as that's the last one supported by:

https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/

-- Steve

>
> It will always report warning for both "static const struct file_operations
> tracing_max_lat_fops ..." and "static struct file_operations
> tracing_max_lat_fops ..."
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/