[PATCH linux-kselftest-next] selftests: watchdog: Fix ioctl SET* error paths to take oneshot exit path

2018-09-27 Thread Shuah Khan (Samsung OSG)
an unsupported ioctl command or some other error. Fix it to handle error paths as oneshot to stop the watchdog ticks and exit right away. Signed-off-by: Shuah Khan (Samsung OSG) --- tools/testing/selftests/watchdog/watchdog-test.c | 16 1 file changed, 12 insertions(+), 4 deletions

[PATCH] selftests: watchdog: fix message when /dev/watchdog open fails

2018-09-26 Thread Shuah Khan (Samsung OSG)
When /dev/watchdog open fails, watchdog exits with "watchdog not enabled" message. This is incorrect when open fails due to insufficient privilege. Fix message to clearly state the reason when open fails with EACCESS when a non-root user runs it. Signed-off-by: Shuah Khan (S

[PATCH] arm64: add NUMA emulation support

2018-08-24 Thread Shuah Khan (Samsung OSG)
ks across NUMA nodes. If NUMA emulation init fails, it will fall back to dummy NUMA init. This is tested on Raspberry Pi3b+ with ltp NUMA test suite, numactl, and numastat tools. In addition, tested in conjunction with cpuset cgroup to verify cpuset.cpus and cpuset.mems assignments. Signed-off-by:

[PATCH] selftests: vDSO - fix to exclude x86 test on non-x86 platforms

2018-06-22 Thread Shuah Khan (Samsung OSG)
Fix to exclude vdso_standalone_test_x86 test from building on non-x86 platforms. In addition, fix it to use TEST_GEN_PROGS which is the right variable to use for generated programs. TEST_PROGS is for shell scripts. Signed-off-by: Shuah Khan (Samsung OSG) --- tools/testing/selftests/vDSO

[PATCH] selftests: vDSO - fix to return KSFT_SKIP when test couldn't be run

2018-06-22 Thread Shuah Khan (Samsung OSG)
Fix to return KSFT_SKIP when test couldn't be run because AT_SYSINFO_EHDR isn't found and gettimeofday isn't defined. Signed-off-by: Shuah Khan (Samsung OSG) --- tools/testing/selftests/vDSO/vdso_test.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/testing

[PATCH] selftests: zram: return Kselftest Skip code for skipped tests

2018-06-14 Thread Shuah Khan (Samsung OSG)
skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) --- tools/testing/selftests/zram/zram.sh | 5 - tools/testing/selftests

[PATCH] selftests: vm: return Kselftest Skip code for skipped tests

2018-06-13 Thread Shuah Khan (Samsung OSG)
skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) --- tools/testing/selftests/vm/compaction_test.c | 4 +++- tools/testing/selftests

[PATCH] selftests: user: return Kselftest Skip code for skipped tests

2018-06-13 Thread Shuah Khan (Samsung OSG)
skipped to clearly report that the test could not be run. Add an explicit check for module presence and return skip code if module isn't present. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung

[PATCH] selftests: kselftest_harness: return Kselftest Skip code for skipped tests

2018-06-13 Thread Shuah Khan (Samsung OSG)
RUN ] global.uevent_filtering uevent_filtering.c:355:global.uevent_filtering:Uevent filtering tests require root privileges. Skipping test global.uevent_filtering: Test skipped at step #4 [ SKIP ] global.uevent_filtering not ok 1..1 selftests: uevent: uevent_filtering [SKIP] Signed-off-by: Shuah K

[PATCH] selftests: sparc64: Add missing SPDX License Identifiers

2018-06-13 Thread Shuah Khan (Samsung OSG)
Add missing SPDX License Identifiers to Makefile(s). Signed-off-by: Shuah Khan (Samsung OSG) --- tools/testing/selftests/sparc64/Makefile | 1 + tools/testing/selftests/sparc64/drivers/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests

[PATCH] selftests: sysctl: return Kselftest Skip code for skipped tests

2018-06-12 Thread Shuah Khan (Samsung OSG)
. Signed-off-by: Shuah Khan (Samsung OSG) --- tools/testing/selftests/sysctl/sysctl.sh | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/tools/testing/selftests/sysctl/sysctl.sh b/tools/testing/selftests/sysctl/sysctl.sh index ec232c3cfcaa..584eb8ea780a 100755

[PATCH] selftests: static_keys: return Kselftest Skip code for skipped tests

2018-06-12 Thread Shuah Khan (Samsung OSG)
framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) --- .../selftests/static_keys/test_static_keys.sh | 13 + 1 file changed, 13 insertions(+) diff --git a/tools/testing/selftests

[PATCH] selftests: sparc64: delete RUN_TESTS and EMIT_TESTS overrides

2018-06-12 Thread Shuah Khan (Samsung OSG)
Delete RUN_TESTS and EMIT_TESTS overrides and use common defines in lib.mk. Common defines work just fine and there is no need to define custom overrides. Signed-off-by: Shuah Khan (Samsung OSG) --- tools/testing/selftests/sparc64/Makefile | 8 1 file changed, 8 deletions(-) diff

[PATCH] selftests: sparc64: Fix to do nothing on non-sparc64

2018-06-12 Thread Shuah Khan (Samsung OSG)
%tick,%rax' : recipe for target 'adi-test' failed make[1]: *** [adi-test] Error 1 adi: [FAIL] ./drivers_test.sh: 24: ./drivers_test.sh: ./adi-test: not found ../lib.mk:73: recipe for target 'run_tests' failed make: *** [run_tests] Error 1 Signed-off-by: Shuah Khan (Samsung OSG) --- tools/testing

[PATCH] selftests: pstore: return Kselftest Skip code for skipped tests

2018-06-12 Thread Shuah Khan (Samsung OSG)
a test gets skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) --- tools/testing/selftests/pstore/pstore_post_reboot_tests | 5 - 1

[PATCH] selftests: lib: fix prime_numbers module search and skip logic

2018-05-30 Thread Shuah Khan (Samsung OSG)
prime_numbers modules search and skip logic removes the module instead of searching for it. Fix it. Signed-off-by: Shuah Khan (Samsung OSG) --- tools/testing/selftests/lib/prime_numbers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/lib

[PATCH] usbip: usbip_detach: fix to check for invalid ports

2018-05-29 Thread Shuah Khan (Samsung OSG)
ady detached (status == VDEV_ST_NULL). Don't remove state files and don't send detach request for invalid ports and ports that are already detached. Add error and information messages that make sense. Signed-off-by: Shuah Khan (Samsung OSG) --- tools/usb/usbip/src/usbip_detach.c |

[PATCH] usbip: usbip_host: fix bad unlock balance during stub_probe()

2018-05-15 Thread Shuah Khan (Samsung OSG)
7c ("usbip: usbip_host: fix NULL-ptr deref and use-after-free errors") in usb-linus Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- drivers/usb/usbip/stub_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/usbip/stub_main.c b/dri

[PATCH] MAINTAINERS: Add Q: entry to kselftest for patchwork project

2018-05-15 Thread Shuah Khan (Samsung OSG)
A new patchwork project is created to track kselftest patches. Update the kselftest entry in the MAINTAINERS file adding Q: entry: https://patchwork.kernel.org/project/linux-kselftest/list/ Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- MAINTAINERS | 1 + 1 file chan

[PATCH] usbip: usbip_host: fix NULL-ptr deref and use-after-free errors

2018-05-14 Thread Shuah Khan (Samsung OSG)
() and stub_device_rebind() call put_busid_priv() to release the busid lock before returning. This changes fixes the unprotected code paths eliminating the race conditions in updating the busid entries. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- drivers/usb/usbip/stub.h

[PATCH] selftests: memfd: split regular and hugetlbfs tests

2018-05-10 Thread Shuah Khan (Samsung OSG)
Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/memfd/Makefile | 6 +++--- .../testing/selftests/memfd/{run_tests.sh => run_hugetlbfs_test.sh} | 6 -- 2 files changed, 3 insertions(+), 9 deletions(-) rename tools/testing/selfte

[PATCH v2 21/24] selftests: memfd: return Kselftest Skip code for skipped tests

2018-05-07 Thread Shuah Khan (Samsung OSG)
framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- Changes since v1: -- addressed review comments on v1 -- Fixed a regression in v1 that changed the behavior to requir

[[PATCH v2 14/24]] selftests: kvm: return Kselftest Skip code for skipped tests

2018-05-07 Thread Shuah Khan (Samsung OSG)
required e.g: open /dev/kvm failed, rc: -1 errno: 13 Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- Changes since v1: - Don't do root check at the top of assert. - Instead do check for EACCES. tools/testing/selftests/kvm/lib/assert.c | 9 +++-- tools/testing/sel

[PATCH 24/24] selftests: net: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
message, instead of failing the test when /sys/power/state file open fails. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/net/fib_tests.sh| 8 +--- tools/testing/selftests/net/netdevice.sh| 16 +-- tools/testing/selftests/net/p

[PATCH 23/24] selftests: mqueue: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
skipped to clearly report that the test could not be run. Change it to use ksft_exit_skip() when the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/mqueue/mq_open_tests.c | 8 tools/testing/selftests/mqueue/mq_perf_tests

[PATCH 21/24] selftests: memfd: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
gets skipped to clearly report that the test could not be run. Added an explicit check for root user and return skip code. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <

[PATCH 22/24] selftests: memory-hotplug: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
a test gets skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/memory-hotpl

[PATCH 20/24] selftests: membarrier: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
gets skipped to clearly report that the test could not be run. Change it to use ksft_exit_skip() when the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/membarrier/membarrier_test.c | 7 +++ 1 file changed, 3 insertions(+), 4 del

[PATCH 19/24] selftests: media_tests: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
gets skipped to clearly report that the test could not be run. Change it to use ksft_exit_skip() when the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/media_tests/Makefile| 3 ++- tools/testing/selftests/media

[PATCH 17/24] selftests: locking: add Makefile for locking test

2018-05-04 Thread Shuah Khan (Samsung OSG)
Add Makefile for locking test. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/locking/Makefile | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 tools/testing/selftests/locking/Makefile diff --git a/tools/testing/selftests/l

[PATCH 18/24] selftests: locking: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/locking/ww_mutex.sh | 8 1 file changed, 8 insertions(+) mode change 100644 => 100755 tools/testing/selftests/locking/ww_mutex

[PATCH 16/24] selftests: lib: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
gets skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/lib/bitmap.sh

[PATCH 11/24] selftests: intel_pstate: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/intel_pstate/run.sh | 5 ++

[PATCH 12/24] selftests: ipc: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
skipped to clearly report that the test could not be run. Change it to use ksft_exit_skip() when the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/ipc/msgque.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a

[PATCH 15/24] selftests: lib: add prime_numbers.sh test to Makefile

2018-05-04 Thread Shuah Khan (Samsung OSG)
prime_numbers.sh is not included in TEST_PROGS. Add it. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/lib/Makefile b/tools/testing/selftes

[PATCH 13/24] selftests: kmod: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/kmod/kmod.sh | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftests/kmod/kmod.sh b/tools/testing/selftests/kmod/kmod.sh index 7956ea3be667..0a76314b4414 100755 --- a/tools/t

[PATCH 14/24] selftests: kvm: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
skipped to clearly report that the test could not be run. Change it to use ksft_exit_skip() when the test is skipped. In addition, refine test_assert() message to include strerror() string and add explicit check for root user to clearly identofy non-root user skip case. Signed-off-by: Shuah Khan

[PATCH 10/24] selftests: gpio: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/gpio/gpio-mockup.s

[PATCH 09/24] selftests: ftrace: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/ftrace/ftracetest | 8 ++--

[PATCH 08/24] selftests: firmware: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/firmware/fw_fallback.sh

[PATCH 07/24] selftests: filesystems: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
reporting a false postive. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Change it to use ksft_exit_skip() when test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/files

[PATCH 06/24] selftests: exec: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
gets skipped to clearly report that the test could not be run. Change it to use ksft_exit_skip() when kernel doesn't support execveat. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/exec/execveat.c | 6 -- 1 file changed, 4 insertions(+), 2 del

[PATCH 04/24] selftests: cpufreq: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/cpufreq/main.sh | 5 ++

[PATCH 05/24] selftests: efivarfs: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/efivarfs/efivarfs.sh | 7

[PATCH 03/24] selftests: cpu-hotplug: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/cpu-hotplug/cpu-on-off-test.s

[PATCH 01/24] selftests: android: ion: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/android/ion/ion_test.sh | 7 +--

[PATCH 02/24] selftests: breakpoints: return Kselftest Skip code for skipped tests

2018-05-04 Thread Shuah Khan (Samsung OSG)
a test gets skipped to clearly report that the test could not be run. Change it to use ksft_exit_skip() when a non-root user runs the test and add an explicit check for root and a clear message, instead of failing the test when /sys/power/state file open fails. Signed-off-by: Shuah Khan (Samsung

[PATCH] selftests: mqueue: delete RUN_TESTS and EMIT_TESTS overrides

2018-05-02 Thread Shuah Khan (Samsung OSG)
-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/mqueue/Makefile| 12 +-- tools/testing/selftests/mqueue/mq_open_tests.c | 29 +- 2 files changed, 16 insertions(+), 25 deletions(-) diff --git a/tools/testing/selftests/mqueue/Makef

[PATCH] selftests: mount: delete RUN_TESTS and EMIT_TESTS overrides

2018-05-02 Thread Shuah Khan (Samsung OSG)
is skipped instead of reporting it as failed. Output with this change: TAP version 13 selftests: mount: run_tests.sh WARN: No /proc/self/uid_map exist, test skipped. not ok 1..1 selftests: mount: run_tests.sh [SKIP] Signed-off-by: Shuah Khan (Samsung OSG

[PATCH] selftests: android: delete RUN_TESTS and EMIT_TESTS overrides

2018-05-02 Thread Shuah Khan (Samsung OSG)
Delete RUN_TESTS and EMIT_TESTS overrides and use common defines in lib.mk. Common defines work just fine and there is no need to define custom overrides. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/android/Makefile | 8 1 file chan

[PATCH] selftests: memory-hotplug: delete RUN_TESTS and EMIT_TESTS overrides

2018-05-02 Thread Shuah Khan (Samsung OSG)
sts target now calls the test with "-r 10". Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/memory-hotplug/Makefile | 5 + tools/testing/selftests/memory-hotplug/mem-on-off-test.sh | 3 ++- 2 files changed, 3 insertions(+), 5 deleti

[PATCH] selftests: futex: delete RUN_TESTS and EMIT_TESTS overrides

2018-05-02 Thread Shuah Khan (Samsung OSG)
Delete RUN_TESTS and EMIT_TESTS overrides and use common defines in lib.mk. Common defines work just fine and there is no need to define custom overrides. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/futex/Makefile | 12 1 file chang

[PATCH 3/7] selftests: lib.mk: move running and printing result to a new function

2018-05-01 Thread Shuah Khan (Samsung OSG)
-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/lib.mk | 52 +++--- 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk index e8f5f8b3abeb..dd516f

[PATCH 7/7] selftests: kselftest: change KSFT_SKIP=4 instead of KSFT_PASS

2018-05-01 Thread Shuah Khan (Samsung OSG)
it to return a skip code of 4 to clearly differentiate the skipped tests. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/kselftest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/sel

[PATCH 5/7] selftests: lib.mk: add SKIP handling and test suite name to EMIT_TESTS

2018-05-01 Thread Shuah Khan (Samsung OSG)
: breakpoints: breakpoint_test ok 1..2 selftests: breakpoints: breakpoint_test [PASS] Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/Makefile | 3 ++- tools/testing/selftests/lib.mk | 8 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a

[PATCH 0/7] Kselftest framework SKIP handling

2018-05-01 Thread Shuah Khan (Samsung OSG)
and cleaned up both RUN_TESTS and EMIT_TESTS define to remove duplicate test output strings. Shuah Khan (Samsung OSG) (7): selftests: lib.mk: cleanup RUN_TESTS define and make it readable selftests: lib.mk: add SKIP handling to RUN_TESTS define selftests: lib.mk: move running and printing result

[PATCH 1/7] selftests: lib.mk: cleanup RUN_TESTS define and make it readable

2018-05-01 Thread Shuah Khan (Samsung OSG)
Refine RUN_TESTS define's output block for summary and non-summary code to remove duplicate code and make it readable. cd `dirname $$TEST` > /dev/null; and cd - > /dev/null; are moved to common code block and indentation fixed. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@k

[PATCH 6/7] selftests: lib.mk: add test execute bit check to EMIT_TESTS

2018-05-01 Thread Shuah Khan (Samsung OSG)
Similar to what RUN_TESTS does, change EMIT_TESTS to check for execute bit and emit code to print warnings if test isn't executable to the the run_kselftest.sh. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/lib.mk | 7 ++- 1 file changed, 6 inse

[PATCH 4/7] selftests: lib.mk: Include test suite name in the RUN_TESTS output

2018-05-01 Thread Shuah Khan (Samsung OSG)
..7 selftests: timers: raw_skew [PASS] Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/lib.mk | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk

[PATCH 2/7] selftests: lib.mk: add SKIP handling to RUN_TESTS define

2018-05-01 Thread Shuah Khan (Samsung OSG)
Khan (Samsung OSG) <sh...@kernel.org> --- tools/testing/selftests/lib.mk | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk index 1d2b48f2d481..e8f5f8b3abeb 100644 --- a/tools/testing/selftests/

[PATCH] MAINTAINERS: Update email address in MAINTAINERS entries

2018-05-01 Thread Shuah Khan (Samsung OSG)
Updating email address in MAINTAINERS file due to IT infrastructure changes at Samsung. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- MAINTAINERS | 3 --- 1 file changed, 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 92be777d060a..f9346c412fc6

[REBASED PATCH 2/2] usbip: usbip_host: run rebind from exit when module is removed

2018-04-30 Thread Shuah Khan (Samsung OSG)
the devices to their original drivers. This includes cleanup changes and moving device_attach() code to a common routine to be called from rebind_store() and usbip_host_exit(). Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- drivers/usb/usbip/stub_dev.c | 6 + drive

[REBASED PATCH 1/2] usbip: usbip_host: delete device from busid_table after rebind

2018-04-30 Thread Shuah Khan (Samsung OSG)
. Signed-off-by: Shuah Khan (Samsung OSG) <sh...@kernel.org> --- drivers/usb/usbip/stub_main.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/usbip/stub_main.c b/drivers/usb/usbip/stub_main.c index d41d0cdeec0f..fb46bd62d538 100644 --- a/drivers/usb/usbip/stub_main.c