From: Stefan Metzmacher Date: Tue, 28 Oct 2025 10:11:16 +0000 (+0100) Subject: smb: smbdirect: let smbdirect_internal.h define pr_fmt without SMBDIRECT_USE_INLINE_C... X-Git-Tag: v7.1-rc1~128^2~91 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e4bf7fadd4a608cace7604b720483f051f8176f;p=thirdparty%2Flinux.git 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 --- 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"