Patch "selftest: af_unix: Fix kselftest compilation warnings" has been added to the 6.10-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

    selftest: af_unix: Fix kselftest compilation warnings

to the 6.10-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:
     selftest-af_unix-fix-kselftest-compilation-warnings.patch
and it can be found in the queue-6.10 subdirectory.

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



commit 94c888fc5e011ff2bf2b291f1f85ae46a62435c7
Author: Abhinav Jain <jain.abhinav177@xxxxxxxxx>
Date:   Wed Aug 14 13:37:43 2024 +0530

    selftest: af_unix: Fix kselftest compilation warnings
    
    [ Upstream commit 6c569b77f0300f8a9960277c7094fa0f128eb811 ]
    
    Change expected_buf from (const void *) to (const char *)
    in function __recvpair().
    This change fixes the below warnings during test compilation:
    
    ```
    In file included from msg_oob.c:14:
    msg_oob.c: In function ‘__recvpair’:
    
    ../../kselftest_harness.h:106:40: warning: format ‘%s’ expects argument
    of type ‘char *’,but argument 6 has type ‘const void *’ [-Wformat=]
    
    ../../kselftest_harness.h:101:17: note: in expansion of macro ‘__TH_LOG’
    msg_oob.c:235:17: note: in expansion of macro ‘TH_LOG’
    
    ../../kselftest_harness.h:106:40: warning: format ‘%s’ expects argument
    of type ‘char *’,but argument 6 has type ‘const void *’ [-Wformat=]
    
    ../../kselftest_harness.h:101:17: note: in expansion of macro ‘__TH_LOG’
    msg_oob.c:259:25: note: in expansion of macro ‘TH_LOG’
    ```
    
    Fixes: d098d77232c3 ("selftest: af_unix: Add msg_oob.c.")
    Signed-off-by: Abhinav Jain <jain.abhinav177@xxxxxxxxx>
    Reviewed-by: Kuniyuki Iwashima <kuniyu@xxxxxxxxxx>
    Link: https://patch.msgid.link/20240814080743.1156166-1-jain.abhinav177@xxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/net/af_unix/msg_oob.c b/tools/testing/selftests/net/af_unix/msg_oob.c
index 16d0c172eaebe..535eb2c3d7d1c 100644
--- a/tools/testing/selftests/net/af_unix/msg_oob.c
+++ b/tools/testing/selftests/net/af_unix/msg_oob.c
@@ -209,7 +209,7 @@ static void __sendpair(struct __test_metadata *_metadata,
 
 static void __recvpair(struct __test_metadata *_metadata,
 		       FIXTURE_DATA(msg_oob) *self,
-		       const void *expected_buf, int expected_len,
+		       const char *expected_buf, int expected_len,
 		       int buf_len, int flags)
 {
 	int i, ret[2], recv_errno[2], expected_errno = 0;




[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