2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 15:13:55 +08:00
linux-next/tools/include/linux
Arnaldo Carvalho de Melo 8e99b6d453 tools include: Adopt strstarts() from the kernel
Replacing prefixcmp(), same purpose, inverted result, so standardize on
the kernel variant, to reduce silly differences among tools/ and the
kernel sources, making it easier for people to work in both codebases.

And then doing:

	if (strstarts(option, "no-"))

Looks clearer than doing:

	if (!prefixcmp(option, "no-"))

To figure out if option starts witn "no-".

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-kaei42gi7lpa8subwtv7eug8@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2017-07-20 15:46:10 -03:00
..
sched tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
unaligned tools/lib/lockdep: Fix compilation for 4.11 2017-06-05 09:28:09 +02:00
atomic.h tools include: Introduce atomic_cmpxchg_{relaxed,release}() 2017-03-03 19:07:14 -03:00
bitmap.h radix tree test suite: Remove duplicate bitops code 2017-01-27 21:29:39 -05:00
bitops.h tools/lib/lockdep: Fix compilation for 4.11 2017-06-05 09:28:09 +02:00
bug.h tools include: Introduce linux/bug.h, from the kernel sources 2017-04-19 13:01:42 -03:00
compiler-gcc.h tools: Adopt __aligned from kernel sources 2017-06-19 15:27:08 -03:00
compiler.h Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-07-03 12:40:46 -07:00
coresight-pmu.h tools: Copy coresight-pmu.h header file needed by perf tools 2016-08-23 15:37:33 -03:00
debug_locks.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
delay.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
err.h tools/include: Add IS_ERR_OR_NULL to err.h 2017-06-05 09:28:12 +02:00
export.h tools: Restore export.h 2015-08-25 09:44:22 +02:00
filter.h bpf: add various verifier test cases 2017-05-25 13:44:28 -04:00
ftrace.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
gfp.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
hardirq.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
hash.h tools: Copy linux/{hash,poison}.h and check for drift 2016-07-18 18:41:50 -03:00
hashtable.h tools include: Drop ARRAY_SIZE() definition from linux/hashtable.h 2017-04-19 13:01:45 -03:00
interrupt.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
irqflags.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
jhash.h tools/lib/lockdep: Fix compilation for 4.11 2017-06-05 09:28:09 +02:00
kallsyms.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
kern_levels.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
kernel.h Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-07-03 12:40:46 -07:00
kmemcheck.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
linkage.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
list.h tools: Make list.h self-sufficient 2016-01-12 12:42:07 -03:00
lockdep.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
log2.h tools include: Include missing headers for fls() and types in linux/log2.h 2017-04-19 13:01:49 -03:00
module.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
mutex.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
poison.h tools: Copy linux/{hash,poison}.h and check for drift 2016-07-18 18:41:50 -03:00
proc_fs.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
rbtree_augmented.h tools: Copy rbtree_augmented.h from the kernel 2015-07-05 22:59:05 -03:00
rbtree.h tools: Move rbtree.h from tools/perf/ 2015-07-05 22:54:01 -03:00
rcu.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
refcount.h tools include: Adopt kernel's refcount.h 2017-03-03 19:07:14 -03:00
seq_file.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
spinlock.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
stacktrace.h tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
string.h tools include: Adopt strstarts() from the kernel 2017-07-20 15:46:10 -03:00
stringify.h tools include: Copy linux/stringify.h from the kernel 2016-03-23 15:14:27 -03:00
time64.h tools: Introduce tools/include/linux/time64.h for *SEC_PER_*SEC macros 2016-08-23 15:37:33 -03:00
types.h tools include uapi: Grab copies of stat.h and fcntl.h 2017-03-31 11:26:03 -03:00