1. 02 2月, 2014 1 次提交
  2. 19 1月, 2014 10 次提交
  3. 18 12月, 2013 1 次提交
  4. 05 12月, 2013 1 次提交
    • H
      usb: tools: fix a regression issue that gcc can't link to pthread · cb292ce2
      Huang Rui 提交于
      Reproduce:
      ray@hr-bak:~/usb$ make -C tools/usb/
      make: Entering directory `/home/ray/usb/tools/usb'
      gcc -Wall -Wextra -g -lpthread -I../include -o testusb testusb.c
      /tmp/cc0EMxfy.o: In function `main':
      /home/ray/usb/tools/usb/testusb.c:508: undefined reference to `pthread_create'
      /home/ray/usb/tools/usb/testusb.c:531: undefined reference to `pthread_join'
      collect2: error: ld returned 1 exit status
      make: *** [testusb] Error 1
      make: Leaving directory `/home/ray/usb/tools/usb'
      
      Comments:
      In the latest version (4.7.3) of gcc compiler, it requres that
      libraries must follow the object or source files like below:
      
      "gcc hello.c -lpthread" instead of "gcc -lpthread hello.c"
      
      And it isn't encountered at gcc version 4.7.2.
      So this patch fix to move the pthread option after testusb.c.
      Signed-off-by: NHuang Rui <ray.huang@amd.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      cb292ce2
  5. 26 11月, 2013 2 次提交
  6. 20 11月, 2013 1 次提交
    • A
      tools lib traceevent: Fix conversion of pointer to integer of different size · 6b5fa0ba
      Arnaldo Carvalho de Melo 提交于
      gcc complaint on 32-bit system:
      
        /home/acme/git/linux/tools/lib/traceevent/event-parse.c: In function ‘eval_num_arg’:
        /home/acme/git/linux/tools/lib/traceevent/event-parse.c:3468:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      
      This is because the eval_num_arg returns everything as an 'unsigned long long',
      so it converts a void pointer to a wider integer, fix it by converting the void
      pointer to an integer of the same size, 'unsigned long', before casting it to
      'unsigned long long'.
      Acked-by: NSteven Rostedt <rostedt@goodmis.org>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/n/tip-yllx4aqcg06v5n4vjpwiiuld@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      6b5fa0ba
  7. 19 11月, 2013 4 次提交
  8. 15 11月, 2013 11 次提交
  9. 14 11月, 2013 1 次提交
    • I
      tools/perf/build: Fix timerfd feature check · bb4c5500
      Ingo Molnar 提交于
      'feature_timerfd' is checked all the time and calculated explicitly,
      in a serial fashion. Add it to CORE_FEATURE_TESTS which causes it to
      be built in parallel, using the newfangled parallel build autodetection
      code.
      
      This shaves 137 msecs off the perf build time on my system, which
      speeds up the common case cached build by 43%:
      
      Before:
      
        comet:~/tip> perf stat --null --repeat 5 make -C tools/perf/
        [...]
               0,453771441 seconds time elapsed                                          ( +-  0,09% )
      
      After:
      
        comet:~/tip> perf stat --null --repeat 5 make -C tools/perf/
        [...]
               0,316290185 seconds time elapsed                                          ( +-  0,24% )
      
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Link: http://lkml.kernel.org/n/tip-bb92CmexihopoSyqnkqepvsy@git.kernel.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
      bb4c5500
  10. 13 11月, 2013 8 次提交