Skip to content

Commit a9b94d2

Browse files
vthankiingomolnar
authored andcommitted
tools/lib/lockdep: Remove -lpthread compiler option
With -lpthread option, the test for ABBA_2threads was failing, and test passed if it was removed. Since -pthread compiler option is sufficient for linking to pthread libraries, this patch removes -lpthread. Signed-off-by: Vishal Thanki <vishalthanki@gmail.com> Signed-off-by: Sasha Levin <sasha.levin@oracle.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: a.p.zijlstra@chello.nl Cc: ben@decadent.org.uk Link: http://lkml.kernel.org/r/20170525130005.5947-9-alexander.levin@verizon.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 1baa754 commit a9b94d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tools/lib/lockdep/run_tests.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ make &> /dev/null
44

55
for i in `ls tests/*.c`; do
66
testname=$(basename "$i" .c)
7-
gcc -o tests/$testname -pthread -lpthread $i liblockdep.a -Iinclude -D__USE_LIBLOCKDEP &> /dev/null
7+
gcc -o tests/$testname -pthread $i liblockdep.a -Iinclude -D__USE_LIBLOCKDEP &> /dev/null
88
echo -ne "$testname... "
99
if [ $(timeout 1 ./tests/$testname | wc -l) -gt 0 ]; then
1010
echo "PASSED!"
@@ -18,7 +18,7 @@ done
1818

1919
for i in `ls tests/*.c`; do
2020
testname=$(basename "$i" .c)
21-
gcc -o tests/$testname -pthread -lpthread -Iinclude $i &> /dev/null
21+
gcc -o tests/$testname -pthread -Iinclude $i &> /dev/null
2222
echo -ne "(PRELOAD) $testname... "
2323
if [ $(timeout 1 ./lockdep ./tests/$testname | wc -l) -gt 0 ]; then
2424
echo "PASSED!"

0 commit comments

Comments
 (0)