Patch "selftests/harness: use 1024 in place of LINE_MAX" has been added to the 6.9-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    selftests/harness: use 1024 in place of LINE_MAX

to the 6.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     selftests-harness-use-1024-in-place-of-line_max.patch
and it can be found in the queue-6.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 20fb151a0b2993b59d2a7beee99c3f3411e5e073
Author: Tao Su <tao1.su@xxxxxxxxxxxxxxx>
Date:   Thu May 9 13:31:13 2024 +0800

    selftests/harness: use 1024 in place of LINE_MAX
    
    [ Upstream commit 28d2188709d9c19a7c4601c6870edd9fa0527379 ]
    
    Android was seeing a compilation error because its C library does not
    define LINE_MAX.  Since LINE_MAX is only used to determine the size of
    test_name[] and 1024 should be enough for the test name, use 1024 instead
    of LINE_MAX.
    
    Link: https://lkml.kernel.org/r/20240509053113.43462-3-tao1.su@xxxxxxxxxxxxxxx
    Fixes: 38c957f07038 ("selftests: kselftest_harness: generate test name once")
    Signed-off-by: Tao Su <tao1.su@xxxxxxxxxxxxxxx>
    Reviewed-by: Simon Horman <horms@xxxxxxxxxx>
    Cc: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx>
    Cc: Bongsu Jeon <bongsu.jeon@xxxxxxxxxxx>
    Cc: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
    Cc: David S. Miller <davem@xxxxxxxxxxxxx>
    Cc: Edward Liaw <edliaw@xxxxxxxxxx>
    Cc: Eric Dumazet <edumazet@xxxxxxxxxx>
    Cc: Ivan Orlov <ivan.orlov0322@xxxxxxxxx>
    Cc: Jakub Kicinski <kuba@xxxxxxxxxx>
    Cc: Jarkko Sakkinen <jarkko@xxxxxxxxxx>
    Cc: Jaroslav Kysela <perex@xxxxxxxx>
    Cc: Mark Brown <broonie@xxxxxxxxxx>
    Cc: Paolo Abeni <pabeni@xxxxxxxxxx>
    Cc: Paolo Bonzini <pbonzini@xxxxxxxxxx>
    Cc: Sean Christopherson <seanjc@xxxxxxxxxx>
    Cc: Shuah Khan <shuah@xxxxxxxxxx>
    Cc: Takashi Iwai <tiwai@xxxxxxxx>
    Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/kselftest_harness.h b/tools/testing/selftests/kselftest_harness.h
index e8d79e0210831..b634969cbb6f1 100644
--- a/tools/testing/selftests/kselftest_harness.h
+++ b/tools/testing/selftests/kselftest_harness.h
@@ -56,7 +56,6 @@
 #include <asm/types.h>
 #include <ctype.h>
 #include <errno.h>
-#include <limits.h>
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdio.h>
@@ -1217,7 +1216,7 @@ void __run_test(struct __fixture_metadata *f,
 		struct __test_metadata *t)
 {
 	struct __test_xfail *xfail;
-	char test_name[LINE_MAX];
+	char test_name[1024];
 	const char *diagnostic;
 
 	/* reset test struct */




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux