From 5e4bf7fadd4a608cace7604b720483f051f8176f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 28 Oct 2025 11:11:16 +0100 Subject: [PATCH] smb: smbdirect: let smbdirect_internal.h define pr_fmt without SMBDIRECT_USE_INLINE_C_FILES When we move to smbdirect.ko we want log message prefixed with the module name. Note callers are still using smbdirect_socket_set_logging() in order to redirect the per connection logging to their own log functions. Cc: Steve French Cc: Tom Talpey Cc: Long Li Cc: Namjae Jeon Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Signed-off-by: Stefan Metzmacher Acked-by: Namjae Jeon Signed-off-by: Steve French --- fs/smb/common/smbdirect/smbdirect_internal.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/smb/common/smbdirect/smbdirect_internal.h b/fs/smb/common/smbdirect/smbdirect_internal.h index 9989fe96000da..63349ce3536cc 100644 --- a/fs/smb/common/smbdirect/smbdirect_internal.h +++ b/fs/smb/common/smbdirect/smbdirect_internal.h @@ -6,6 +6,10 @@ #ifndef __FS_SMB_COMMON_SMBDIRECT_INTERNAL_H__ #define __FS_SMB_COMMON_SMBDIRECT_INTERNAL_H__ +#ifndef SMBDIRECT_USE_INLINE_C_FILES +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt +#endif /* ! SMBDIRECT_USE_INLINE_C_FILES */ + #include "smbdirect.h" #include "smbdirect_pdu.h" #include "smbdirect_socket.h" -- 2.47.3