treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500Based on 2 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of th
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500Based on 2 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation #extracted by the scancode license scanner the SPDX license identifier GPL-2.0-onlyhas been chosen to replace the boilerplate/reference in 4122 file(s).Signed-off-by: Thomas Gleixner <[email protected]>Reviewed-by: Enrico Weigelt <[email protected]>Reviewed-by: Kate Stewart <[email protected]>Reviewed-by: Allison Randal <[email protected]>Cc: [email protected]Link: https://lkml.kernel.org/r/[email protected]Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project license, GPL v2 only. The resulting SPDXlicense identifier is: GPL-2.0-onlySigned-off-by: Thomas Gleixner <[email protected]>Signed-off-by: Greg Kroah-Hartman <[email protected]>
tools: fix cross-compile var clobberingCurrently a number of Makefiles break when used with toolchains thatpass extra flags in CC and other cross-compile related variables (suchas --sysroot).Th
tools: fix cross-compile var clobberingCurrently a number of Makefiles break when used with toolchains thatpass extra flags in CC and other cross-compile related variables (suchas --sysroot).Thus we get this error when we use a toolchain that puts --sysroot inthe CC var: ~/src/linux/tools$ make iio [snip] iio_event_monitor.c:18:10: fatal error: unistd.h: No such file or directory #include <unistd.h> ^~~~~~~~~~This occurs because we clobber several env vars related tocross-compiling with lines like this: CC = $(CROSS_COMPILE)gccAlthough this will point to a valid cross-compiler, we lose any extraflags that might exist in the CC variable, which can break toolchainsthat rely on them (for example, those that use --sysroot).This easily shows up using a Yocto SDK: $ . [snip]/sdk/environment-setup-cortexa8hf-neon-poky-linux-gnueabi $ echo $CC arm-poky-linux-gnueabi-gcc -march=armv7-a -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a8 --sysroot=[snip]/sdk/sysroots/cortexa8hf-neon-poky-linux-gnueabi $ echo $CROSS_COMPILE arm-poky-linux-gnueabi- $ echo ${CROSS_COMPILE}gcc krm-poky-linux-gnueabi-gccAlthough arm-poky-linux-gnueabi-gcc is a cross-compiler, we've lost the--sysroot and other flags that enable us to find the right libraries tolink against, so we can't find unistd.h and other libraries and headers.Normally with the --sysroot flag we would find unistd.h in the sdkdirectory in the sysroot: $ find [snip]/sdk/sysroots -path '*/usr/include/unistd.h' [snip]/sdk/sysroots/cortexa8hf-neon-poky-linux-gnueabi/usr/include/unistd.hThe perf Makefile adds CC = $(CROSS_COMPILE)gcc if and only if CC is notalready set, and it compiles correctly with the above toolchain.So, generalize the logic that perf uses in the common Makefile andremove the manual CC = $(CROSS_COMPILE)gcc lines from each Makefile.Note that this patch does not fix cross-compile for all the tools (somehave other bugs), but it does fix it for all except usb and acpi, whichstill have other unrelated issues.I tested both with and without the patch on native and cross-build andthere appear to be no regressions.Link: http://lkml.kernel.org/r/[email protected]Signed-off-by: Martin Kelly <[email protected]>Acked-by: Mark Brown <[email protected]>Cc: Tejun Heo <[email protected]>Cc: Li Zefan <[email protected]>Cc: Johannes Weiner <[email protected]>Cc: Linus Walleij <[email protected]>Cc: "K. Y. Srinivasan" <[email protected]>Cc: Haiyang Zhang <[email protected]>Cc: Stephen Hemminger <[email protected]>Cc: Jonathan Cameron <[email protected]>Cc: Pali Rohar <[email protected]>Cc: Richard Purdie <[email protected]>Cc: Jacek Anaszewski <[email protected]>Cc: Pavel Machek <[email protected]>Cc: Peter Zijlstra <[email protected]>Cc: Ingo Molnar <[email protected]>Cc: Arnaldo Carvalho de Melo <[email protected]>Cc: Robert Moore <[email protected]>Cc: Lv Zheng <[email protected]>Cc: "Rafael J. Wysocki" <[email protected]>Cc: Greg Kroah-Hartman <[email protected]>Cc: Valentina Manea <[email protected]>Cc: Shuah Khan <[email protected]>Cc: Mario Limonciello <[email protected]>Signed-off-by: Andrew Morton <[email protected]>Signed-off-by: Linus Torvalds <[email protected]>
tools/wmi: add a sample for dell smbios communication over WMIThis application uses the character device /dev/wmi/dell-smbiosto perform SMBIOS communications from userspace.It offers demonstrati
tools/wmi: add a sample for dell smbios communication over WMIThis application uses the character device /dev/wmi/dell-smbiosto perform SMBIOS communications from userspace.It offers demonstrations of a few simple tasks: - Running a class/select command - Querying a token value - Activating a tokenSigned-off-by: Mario Limonciello <[email protected]>Reviewed-by: Edward O'Callaghan <[email protected]>Signed-off-by: Darren Hart (VMware) <[email protected]>