Skip to contentSkip to conversation

cifsd: fix build error without CONFIG_OID_REGISTRY

PATCH In review Wei Yongjun 3 participants 3 messages May 20, 2021 – May 21, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cifsd: fix build error without CONFIG_OID_REGISTRY

Fix build error when CONFIG_OID_REGISTRY is not set:

mips-linux-gnu-ld: fs/cifsd/asn1.o: in function `gssapi_this_mech':
asn1.c:(.text+0xaa0): undefined reference to `sprint_oid'
mips-linux-gnu-ld: fs/cifsd/asn1.o: in function `neg_token_init_mech_type':
asn1.c:(.text+0xbec): undefined reference to `sprint_oid'

Fixes fad4161b5cd0 ("cifsd: decoding gss token using lib/asn1_decoder.c")
---
 fs/cifsd/Kconfig | 1 +
 1 file changed, 1 insertion(+)
fs/cifsd/Kconfig +1 -0
index 5316b1035fbe..e6448b04f46e 100644
@@ -18,6 +18,7 @@ config SMB_SERVER
 	select CRYPTO_CCM
 	select CRYPTO_GCM
 	select ASN1
+	select OID_REGISTRY
 	default n
 	help
 	  Choose Y here if you want to allow SMB3 compliant clients
#1 lore raw
Quoted 10 lines

Fix build error when CONFIG_OID_REGISTRY is not set:

mips-linux-gnu-ld: fs/cifsd/asn1.o: in function `gssapi_this_mech':
asn1.c:(.text+0xaa0): undefined reference to `sprint_oid'
mips-linux-gnu-ld: fs/cifsd/asn1.o: in function `neg_token_init_mech_type':
asn1.c:(.text+0xbec): undefined reference to `sprint_oid'

Fixes fad4161b5cd0 ("cifsd: decoding gss token using lib/asn1_decoder.c")

I will apply it. Thanks for your patch!

Hyunchul, You also need to add this change to your cifs patch.

Quoted 15 lines
---
 fs/cifsd/Kconfig | 1 +
 1 file changed, 1 insertion(+)
fs/cifsd/Kconfig +1 -0
@@ -18,6 +18,7 @@ config SMB_SERVER
 	select CRYPTO_CCM
 	select CRYPTO_GCM
 	select ASN1
+	select OID_REGISTRY
 	default n
 	help
 	  Choose Y here if you want to allow SMB3 compliant clients
#2 lore raw

2021년 5월 21일 (금) 오전 9:56, Namjae Jeon <[email protected]>님이 작성:

Quoted 8 lines
Quoted 8 lines

Fix build error when CONFIG_OID_REGISTRY is not set:

mips-linux-gnu-ld: fs/cifsd/asn1.o: in function `gssapi_this_mech':
asn1.c:(.text+0xaa0): undefined reference to `sprint_oid'
mips-linux-gnu-ld: fs/cifsd/asn1.o: in function `neg_token_init_mech_type':
asn1.c:(.text+0xbec): undefined reference to `sprint_oid'

Quoted 7 lines
Quoted 3 lines
Fixes fad4161b5cd0 ("cifsd: decoding gss token using lib/asn1_decoder.c")

I will apply it. Thanks for your patch!

Hyunchul, You also need to add this change to your cifs patch.

Okay, I will apply this.

Thanks,
Hyunchul

Quoted 17 lines
Quoted 15 lines
---
 fs/cifsd/Kconfig | 1 +
 1 file changed, 1 insertion(+)
fs/cifsd/Kconfig +1 -0
@@ -18,6 +18,7 @@ config SMB_SERVER
      select CRYPTO_CCM
      select CRYPTO_GCM
      select ASN1
+     select OID_REGISTRY
      default n
      help
        Choose Y here if you want to allow SMB3 compliant clients