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 <tglx@linutronix.de>Reviewed-by: Enrico Weigelt <info@metux.net>Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>Reviewed-by: Allison Randal <allison@lohutok.net>Cc: linux-spdx@vger.kernel.orgLink: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.deSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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 <tglx@linutronix.de>Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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/20180107214028.23771-1-martin@martingkelly.comSigned-off-by: Martin Kelly <martin@martingkelly.com>Acked-by: Mark Brown <broonie@kernel.org>Cc: Tejun Heo <tj@kernel.org>Cc: Li Zefan <lizefan@huawei.com>Cc: Johannes Weiner <hannes@cmpxchg.org>Cc: Linus Walleij <linus.walleij@linaro.org>Cc: "K. Y. Srinivasan" <kys@microsoft.com>Cc: Haiyang Zhang <haiyangz@microsoft.com>Cc: Stephen Hemminger <sthemmin@microsoft.com>Cc: Jonathan Cameron <jic23@kernel.org>Cc: Pali Rohar <pali.rohar@gmail.com>Cc: Richard Purdie <rpurdie@rpsys.net>Cc: Jacek Anaszewski <jacek.anaszewski@gmail.com>Cc: Pavel Machek <pavel@ucw.cz>Cc: Peter Zijlstra <peterz@infradead.org>Cc: Ingo Molnar <mingo@redhat.com>Cc: Arnaldo Carvalho de Melo <acme@kernel.org>Cc: Robert Moore <robert.moore@intel.com>Cc: Lv Zheng <lv.zheng@intel.com>Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>Cc: Valentina Manea <valentina.manea.m@gmail.com>Cc: Shuah Khan <shuah@kernel.org>Cc: Mario Limonciello <mario.limonciello@dell.com>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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 <mario.limonciello@dell.com>Reviewed-by: Edward O'Callaghan <quasisec@google.com>Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>