summaryrefslogtreecommitdiffstats
path: root/ncr-int.h
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-07 03:16:36 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-07 03:16:36 +0200
commitc7915b5bd657e7e86caed1fe34e4fa2278769285 (patch)
treefe11ed95737414ed3ffcfac751e452c108e087b3 /ncr-int.h
parentec81bc91006efb7516ad16fd551a290cf634822b (diff)
downloadcryptodev-linux-c7915b5bd657e7e86caed1fe34e4fa2278769285.tar.gz
cryptodev-linux-c7915b5bd657e7e86caed1fe34e4fa2278769285.tar.xz
cryptodev-linux-c7915b5bd657e7e86caed1fe34e4fa2278769285.zip
Use a struct mutex for session_item_st.mem_mutex
Suggested by scripts/checkpatch.pl
Diffstat (limited to 'ncr-int.h')
-rw-r--r--ncr-int.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ncr-int.h b/ncr-int.h
index e79747c..06c5e62 100644
--- a/ncr-int.h
+++ b/ncr-int.h
@@ -1,6 +1,7 @@
#ifndef NCR_INT_H
# define NCR_INT_H
+#include <linux/mutex.h>
#include "ncr.h"
#include <asm/atomic.h>
#include "cryptodev_int.h"
@@ -48,7 +49,7 @@ struct session_item_st {
struct page **pages;
unsigned array_size;
unsigned available_pages;
- struct semaphore mem_mutex; /* down when the
+ struct mutex mem_mutex; /* down when the
* values above are changed.
*/