Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[AF_RXRPC/AFS]: Arch-specific fixes.

Fixes for various arch compilation problems:

(*) Missing module exports.

(*) Variable name collision when rxkad and af_rxrpc both built in
(rxrpc_debug).

(*) Large constant representation problem (AFS_UUID_TO_UNIX_TIME).

(*) Configuration dependencies.

(*) printk() format warnings.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

David Howells and committed by
David S. Miller
b1bdb691 47051a21

+12 -3
+2
arch/ia64/lib/csum_partial_copy.c
··· 128 128 return (__force __wsum)result; 129 129 } 130 130 131 + EXPORT_SYMBOL(csum_partial_copy_from_user); 132 + 131 133 __wsum 132 134 csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum) 133 135 {
+1
fs/Kconfig
··· 2020 2020 tristate "Andrew File System support (AFS) (EXPERIMENTAL)" 2021 2021 depends on INET && EXPERIMENTAL 2022 2022 select AF_RXRPC 2023 + select KEYS 2023 2024 help 2024 2025 If you say Y here, you will get an experimental Andrew File System 2025 2026 driver. It currently only supports unsecured read-only AFS access.
+1 -1
fs/afs/internal.h
··· 367 367 u32 time_low; /* low part of timestamp */ 368 368 u16 time_mid; /* mid part of timestamp */ 369 369 u16 time_hi_and_version; /* high part of timestamp and version */ 370 - #define AFS_UUID_TO_UNIX_TIME 0x01b21dd213814000 370 + #define AFS_UUID_TO_UNIX_TIME 0x01b21dd213814000ULL 371 371 #define AFS_UUID_TIMEHI_MASK 0x0fff 372 372 #define AFS_UUID_VERSION_TIME 0x1000 /* time-based UUID */ 373 373 #define AFS_UUID_VERSION_NAME 0x3000 /* name-based UUID */
+1 -1
fs/afs/rxrpc.c
··· 772 772 773 773 if (call->offset < count) { 774 774 if (last) { 775 - _leave(" = -EBADMSG [%d < %lu]", call->offset, count); 775 + _leave(" = -EBADMSG [%d < %zu]", call->offset, count); 776 776 return -EBADMSG; 777 777 } 778 778 _leave(" = -EAGAIN");
+1 -1
fs/afs/use-rtnetlink.c
··· 243 243 desc->datalen = kernel_recvmsg(desc->nlsock, &msg, iov, 1, 244 244 desc->datamax, 0); 245 245 if (desc->datalen < 0) { 246 - _leave(" = %ld [recv]", desc->datalen); 246 + _leave(" = %zd [recv]", desc->datalen); 247 247 return desc->datalen; 248 248 } 249 249
+5
net/rxrpc/Kconfig
··· 30 30 config RXKAD 31 31 tristate "RxRPC Kerberos security" 32 32 depends on AF_RXRPC && KEYS 33 + select CRYPTO 34 + select CRYPTO_MANAGER 35 + select CRYPTO_BLKCIPHER 36 + select CRYPTO_PCBC 37 + select CRYPTO_FCRYPT 33 38 help 34 39 Provide kerberos 4 and AFS kaserver security handling for AF_RXRPC 35 40 through the use of the key retention service.
+1
net/rxrpc/rxkad.c
··· 18 18 #include <linux/ctype.h> 19 19 #include <net/sock.h> 20 20 #include <net/af_rxrpc.h> 21 + #define rxrpc_debug rxkad_debug 21 22 #include "ar-internal.h" 22 23 23 24 #define RXKAD_VERSION 2