diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Kconfig.debug | 7 | ||||
| -rw-r--r-- | lib/iov_iter.c | 4 | ||||
| -rw-r--r-- | lib/test_vmalloc.c | 6 |
3 files changed, 11 insertions, 6 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 0d9e81779e37..d5a4a4036d2f 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
| @@ -753,9 +753,9 @@ endmenu # "Memory Debugging" | |||
| 753 | config ARCH_HAS_KCOV | 753 | config ARCH_HAS_KCOV |
| 754 | bool | 754 | bool |
| 755 | help | 755 | help |
| 756 | KCOV does not have any arch-specific code, but currently it is enabled | 756 | An architecture should select this when it can successfully |
| 757 | only for x86_64. KCOV requires testing on other archs, and most likely | 757 | build and run with CONFIG_KCOV. This typically requires |
| 758 | disabling of instrumentation for some early boot code. | 758 | disabling instrumentation for some early boot code. |
| 759 | 759 | ||
| 760 | config CC_HAS_SANCOV_TRACE_PC | 760 | config CC_HAS_SANCOV_TRACE_PC |
| 761 | def_bool $(cc-option,-fsanitize-coverage=trace-pc) | 761 | def_bool $(cc-option,-fsanitize-coverage=trace-pc) |
| @@ -1929,6 +1929,7 @@ config TEST_KMOD | |||
| 1929 | depends on m | 1929 | depends on m |
| 1930 | depends on BLOCK && (64BIT || LBDAF) # for XFS, BTRFS | 1930 | depends on BLOCK && (64BIT || LBDAF) # for XFS, BTRFS |
| 1931 | depends on NETDEVICES && NET_CORE && INET # for TUN | 1931 | depends on NETDEVICES && NET_CORE && INET # for TUN |
| 1932 | depends on BLOCK | ||
| 1932 | select TEST_LKM | 1933 | select TEST_LKM |
| 1933 | select XFS_FS | 1934 | select XFS_FS |
| 1934 | select TUN | 1935 | select TUN |
diff --git a/lib/iov_iter.c b/lib/iov_iter.c index ea36dc355da1..b396d328a764 100644 --- a/lib/iov_iter.c +++ b/lib/iov_iter.c | |||
| @@ -1528,6 +1528,7 @@ EXPORT_SYMBOL(csum_and_copy_to_iter); | |||
| 1528 | size_t hash_and_copy_to_iter(const void *addr, size_t bytes, void *hashp, | 1528 | size_t hash_and_copy_to_iter(const void *addr, size_t bytes, void *hashp, |
| 1529 | struct iov_iter *i) | 1529 | struct iov_iter *i) |
| 1530 | { | 1530 | { |
| 1531 | #ifdef CONFIG_CRYPTO | ||
| 1531 | struct ahash_request *hash = hashp; | 1532 | struct ahash_request *hash = hashp; |
| 1532 | struct scatterlist sg; | 1533 | struct scatterlist sg; |
| 1533 | size_t copied; | 1534 | size_t copied; |
| @@ -1537,6 +1538,9 @@ size_t hash_and_copy_to_iter(const void *addr, size_t bytes, void *hashp, | |||
| 1537 | ahash_request_set_crypt(hash, &sg, NULL, copied); | 1538 | ahash_request_set_crypt(hash, &sg, NULL, copied); |
| 1538 | crypto_ahash_update(hash); | 1539 | crypto_ahash_update(hash); |
| 1539 | return copied; | 1540 | return copied; |
| 1541 | #else | ||
| 1542 | return 0; | ||
| 1543 | #endif | ||
| 1540 | } | 1544 | } |
| 1541 | EXPORT_SYMBOL(hash_and_copy_to_iter); | 1545 | EXPORT_SYMBOL(hash_and_copy_to_iter); |
| 1542 | 1546 | ||
diff --git a/lib/test_vmalloc.c b/lib/test_vmalloc.c index 83cdcaa82bf6..f832b095afba 100644 --- a/lib/test_vmalloc.c +++ b/lib/test_vmalloc.c | |||
| @@ -383,14 +383,14 @@ static void shuffle_array(int *arr, int n) | |||
| 383 | static int test_func(void *private) | 383 | static int test_func(void *private) |
| 384 | { | 384 | { |
| 385 | struct test_driver *t = private; | 385 | struct test_driver *t = private; |
| 386 | cpumask_t newmask = CPU_MASK_NONE; | ||
| 387 | int random_array[ARRAY_SIZE(test_case_array)]; | 386 | int random_array[ARRAY_SIZE(test_case_array)]; |
| 388 | int index, i, j, ret; | 387 | int index, i, j, ret; |
| 389 | ktime_t kt; | 388 | ktime_t kt; |
| 390 | u64 delta; | 389 | u64 delta; |
| 391 | 390 | ||
| 392 | cpumask_set_cpu(t->cpu, &newmask); | 391 | ret = set_cpus_allowed_ptr(current, cpumask_of(t->cpu)); |
| 393 | set_cpus_allowed_ptr(current, &newmask); | 392 | if (ret < 0) |
| 393 | pr_err("Failed to set affinity to %d CPU\n", t->cpu); | ||
| 394 | 394 | ||
| 395 | for (i = 0; i < ARRAY_SIZE(test_case_array); i++) | 395 | for (i = 0; i < ARRAY_SIZE(test_case_array); i++) |
| 396 | random_array[i] = i; | 396 | random_array[i] = i; |
