aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-02-24 23:11:39 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 17:54:23 -0400
commit4bf0438332d5173836fdc2d6471fec526d0a14a8 (patch)
treef645d631bc74361993babac09fa94509e6088a46
parent9752ef46c6d32b7ccf10b874f00e433844db2b1a (diff)
Staging: p9auth: remove unneeded header file
The p9auth.h file is not needed, move the stuff into p9auth.c file and delete it. Cc: Ashwin Ganti <ashwin.ganti@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/p9auth/p9auth.c33
-rw-r--r--drivers/staging/p9auth/p9auth.h35
2 files changed, 32 insertions, 36 deletions
diff --git a/drivers/staging/p9auth/p9auth.c b/drivers/staging/p9auth/p9auth.c
index 4f079faeb8a1..5824c7f88cca 100644
--- a/drivers/staging/p9auth/p9auth.c
+++ b/drivers/staging/p9auth/p9auth.c
@@ -33,7 +33,38 @@
33#include <linux/crypto.h> 33#include <linux/crypto.h>
34#include <linux/sched.h> 34#include <linux/sched.h>
35#include <linux/cred.h> 35#include <linux/cred.h>
36#include "p9auth.h" 36
37#ifndef CAP_MAJOR
38#define CAP_MAJOR 0
39#endif
40
41#ifndef CAP_NR_DEVS
42#define CAP_NR_DEVS 2 /* caphash and capuse */
43#endif
44
45#ifndef CAP_NODE_SIZE
46#define CAP_NODE_SIZE 20
47#endif
48
49#define MAX_DIGEST_SIZE 20
50
51struct cap_node {
52 char data[CAP_NODE_SIZE];
53 struct list_head list;
54};
55
56struct cap_dev {
57 struct cap_node *head;
58 int node_size;
59 unsigned long size;
60 struct semaphore sem;
61 struct cdev cdev;
62};
63
64int cap_trim(struct cap_dev *);
65ssize_t cap_write(struct file *, const char __user *, size_t, loff_t *);
66char *cap_hash(char *plain_text, unsigned int plain_text_size, char *key, unsigned int key_size);
67void hex_dump(unsigned char * buf, unsigned int len);
37 68
38int cap_major = CAP_MAJOR; 69int cap_major = CAP_MAJOR;
39int cap_minor = 0; 70int cap_minor = 0;
diff --git a/drivers/staging/p9auth/p9auth.h b/drivers/staging/p9auth/p9auth.h
deleted file mode 100644
index 285d1d8c9176..000000000000
--- a/drivers/staging/p9auth/p9auth.h
+++ /dev/null
@@ -1,35 +0,0 @@
1#ifndef CAP_MAJOR
2#define CAP_MAJOR 0
3#endif
4
5#ifndef CAP_NR_DEVS
6#define CAP_NR_DEVS 2 /* caphash and capuse */
7#endif
8
9#ifndef CAP_NODE_SIZE
10#define CAP_NODE_SIZE 20
11#endif
12
13#define MAX_DIGEST_SIZE 20
14
15struct cap_node {
16 char data[CAP_NODE_SIZE];
17 struct list_head list;
18};
19
20struct cap_dev {
21 struct cap_node *head;
22 int node_size;
23 unsigned long size;
24 struct semaphore sem;
25 struct cdev cdev;
26};
27
28extern int cap_major;
29extern int cap_nr_devs;
30extern int cap_node_size;
31
32int cap_trim(struct cap_dev *);
33ssize_t cap_write(struct file *, const char __user *, size_t, loff_t *);
34char *cap_hash(char *plain_text, unsigned int plain_text_size, char *key, unsigned int key_size);
35void hex_dump(unsigned char * buf, unsigned int len);