Commit b1bdb691 authored by David Howells's avatar David Howells Committed by David S. Miller

[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: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 47051a21
...@@ -128,6 +128,8 @@ csum_partial_copy_from_user(const void __user *src, void *dst, ...@@ -128,6 +128,8 @@ csum_partial_copy_from_user(const void __user *src, void *dst,
return (__force __wsum)result; return (__force __wsum)result;
} }
EXPORT_SYMBOL(csum_partial_copy_from_user);
__wsum __wsum
csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum) csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum)
{ {
......
...@@ -2020,6 +2020,7 @@ config AFS_FS ...@@ -2020,6 +2020,7 @@ config AFS_FS
tristate "Andrew File System support (AFS) (EXPERIMENTAL)" tristate "Andrew File System support (AFS) (EXPERIMENTAL)"
depends on INET && EXPERIMENTAL depends on INET && EXPERIMENTAL
select AF_RXRPC select AF_RXRPC
select KEYS
help help
If you say Y here, you will get an experimental Andrew File System If you say Y here, you will get an experimental Andrew File System
driver. It currently only supports unsecured read-only AFS access. driver. It currently only supports unsecured read-only AFS access.
......
...@@ -367,7 +367,7 @@ struct afs_uuid { ...@@ -367,7 +367,7 @@ struct afs_uuid {
u32 time_low; /* low part of timestamp */ u32 time_low; /* low part of timestamp */
u16 time_mid; /* mid part of timestamp */ u16 time_mid; /* mid part of timestamp */
u16 time_hi_and_version; /* high part of timestamp and version */ u16 time_hi_and_version; /* high part of timestamp and version */
#define AFS_UUID_TO_UNIX_TIME 0x01b21dd213814000 #define AFS_UUID_TO_UNIX_TIME 0x01b21dd213814000ULL
#define AFS_UUID_TIMEHI_MASK 0x0fff #define AFS_UUID_TIMEHI_MASK 0x0fff
#define AFS_UUID_VERSION_TIME 0x1000 /* time-based UUID */ #define AFS_UUID_VERSION_TIME 0x1000 /* time-based UUID */
#define AFS_UUID_VERSION_NAME 0x3000 /* name-based UUID */ #define AFS_UUID_VERSION_NAME 0x3000 /* name-based UUID */
......
...@@ -772,7 +772,7 @@ int afs_extract_data(struct afs_call *call, struct sk_buff *skb, ...@@ -772,7 +772,7 @@ int afs_extract_data(struct afs_call *call, struct sk_buff *skb,
if (call->offset < count) { if (call->offset < count) {
if (last) { if (last) {
_leave(" = -EBADMSG [%d < %lu]", call->offset, count); _leave(" = -EBADMSG [%d < %zu]", call->offset, count);
return -EBADMSG; return -EBADMSG;
} }
_leave(" = -EAGAIN"); _leave(" = -EAGAIN");
......
...@@ -243,7 +243,7 @@ static int afs_read_rtm(struct afs_rtm_desc *desc) ...@@ -243,7 +243,7 @@ static int afs_read_rtm(struct afs_rtm_desc *desc)
desc->datalen = kernel_recvmsg(desc->nlsock, &msg, iov, 1, desc->datalen = kernel_recvmsg(desc->nlsock, &msg, iov, 1,
desc->datamax, 0); desc->datamax, 0);
if (desc->datalen < 0) { if (desc->datalen < 0) {
_leave(" = %ld [recv]", desc->datalen); _leave(" = %zd [recv]", desc->datalen);
return desc->datalen; return desc->datalen;
} }
......
...@@ -30,6 +30,11 @@ config AF_RXRPC_DEBUG ...@@ -30,6 +30,11 @@ config AF_RXRPC_DEBUG
config RXKAD config RXKAD
tristate "RxRPC Kerberos security" tristate "RxRPC Kerberos security"
depends on AF_RXRPC && KEYS depends on AF_RXRPC && KEYS
select CRYPTO
select CRYPTO_MANAGER
select CRYPTO_BLKCIPHER
select CRYPTO_PCBC
select CRYPTO_FCRYPT
help help
Provide kerberos 4 and AFS kaserver security handling for AF_RXRPC Provide kerberos 4 and AFS kaserver security handling for AF_RXRPC
through the use of the key retention service. through the use of the key retention service.
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <linux/ctype.h> #include <linux/ctype.h>
#include <net/sock.h> #include <net/sock.h>
#include <net/af_rxrpc.h> #include <net/af_rxrpc.h>
#define rxrpc_debug rxkad_debug
#include "ar-internal.h" #include "ar-internal.h"
#define RXKAD_VERSION 2 #define RXKAD_VERSION 2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment