Merge to Fedora kernel-2.6.18-1.2224_FC5 patched with stable patch-2.6.18.1-vs2.0...
[linux-2.6.git] / fs / afs / cmservice.c
index 0a57fd7..f87d5a7 100644 (file)
@@ -24,7 +24,7 @@
 #include "internal.h"
 
 static unsigned afscm_usage;           /* AFS cache manager usage count */
-static struct rw_semaphore afscm_sem;  /* AFS cache manager start/stop semaphore */
+static DECLARE_RWSEM(afscm_sem);       /* AFS cache manager start/stop semaphore */
 
 static int afscm_new_call(struct rxrpc_call *call);
 static void afscm_attention(struct rxrpc_call *call);
@@ -94,7 +94,7 @@ static struct rxrpc_service AFSCM_service = {
        .error_func     = afscm_error,
        .aemap_func     = afscm_aemap,
        .ops_begin      = &AFSCM_ops[0],
-       .ops_end        = &AFSCM_ops[sizeof(AFSCM_ops) / sizeof(AFSCM_ops[0])],
+       .ops_end        = &AFSCM_ops[ARRAY_SIZE(AFSCM_ops)],
 };
 
 static DECLARE_COMPLETION(kafscmd_alive);
@@ -118,7 +118,7 @@ static int kafscmd(void *arg)
        _SRXAFSCM_xxxx_t func;
        int die;
 
-       printk("kAFS: Started kafscmd %d\n", current->pid);
+       printk(KERN_INFO "kAFS: Started kafscmd %d\n", current->pid);
 
        daemonize("kafscmd");