1. 19 11月, 2014 1 次提交
  2. 16 1月, 2014 1 次提交
    • N
      perf tools: Fix build error due to zfree() cast · 7d16c634
      Namhyung Kim 提交于
      It failed to build perf on my ubuntu 10.04 box (gcc 4.4.3):
      
          CC       util/strlist.o
        cc1: warnings being treated as errors
        util/strlist.c: In function ‘str_node__delete’:
        util/strlist.c:42: error: dereferencing type-punned pointer will break strict-aliasing rules
        util/strlist.c:42: error: dereferencing type-punned pointer will break strict-aliasing rules
          CC       util/strfilter.o
        make: *** [util/strlist.o] Error 1
      
          CC       util/srcline.o
        cc1: warnings being treated as errors
        util/srcline.c: In function ‘addr2line_init’:
        util/srcline.c:132: error: dereferencing type-punned pointer will break strict-aliasing rules
        util/srcline.c:132: error: dereferencing type-punned pointer will break strict-aliasing rules
        util/srcline.c: In function ‘addr2line_cleanup’:
        util/srcline.c:143: error: dereferencing type-punned pointer will break strict-aliasing rules
        util/srcline.c:143: error: dereferencing type-punned pointer will break strict-aliasing rules
        make: *** [util/srcline.o] Error 1
      
      It seems it only allows to remove 'const' qualifier.
      Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung.kim@lge.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lkml.kernel.org/r/1389276479-9047-1-git-send-email-namhyung@kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      7d16c634
  3. 28 12月, 2013 1 次提交
  4. 11 12月, 2013 1 次提交
  5. 05 12月, 2013 4 次提交
  6. 14 10月, 2013 1 次提交
    • D
      perf tools: Fix old GCC build error in 'get_srcline' · a949fffb
      David Ahern 提交于
      trace-event-parse.c:parse_proc_kallsyms()
      
          Old GCC (4.4.2) does not see through the code flow of get_srcline() and
      gets confused about the status of 'file' and 'line':
      
          CC       /tmp/build/perf/util/srcline.o
        cc1: warnings being treated as errors
        util/srcline.c: In function ¿get_srcline¿:
        util/srcline.c:226: error: ¿file¿ may be used uninitialized in this function
        util/srcline.c:227: error: ¿line¿ may be used uninitialized in this function
        make[1]: *** [/tmp/build/perf/util/srcline.o] Error 1
        make: *** [install] Error 2
        make: Leaving directory `/home/acme/git/linux/tools/perf'
        [acme@fedora12 linux]$
      
      Help out GCC by initializing 'file' and 'line'.
      Signed-off-by: NDavid Ahern <dsahern@gmail.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Namhyung Kim <namhyung@gmail.com>
      Link: http://lkml.kernel.org/n/tip-h8k7h49z3cndqgjdftkmm9f8@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      a949fffb
  7. 10 10月, 2013 5 次提交