Messages in this thread | | | Date | Tue, 10 Nov 2015 17:56:45 -0500 | From | Steven Rostedt <> | Subject | Re: [PATCH] kernel/trace/trace.c: Switch the related code with CONFIG_TRACER_MAX_TRACE |
| |
On Wed, 11 Nov 2015 06:31:25 +0800 Chen Gang <xili_gchen_5257@hotmail.com> 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 ..." >
| |