lkml.org 
[lkml]   [2015]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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 ..."
>



\
 
 \ /
  Last update: 2015-11-11 00:21    [W:0.420 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site