diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-02-24 23:11:39 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 17:54:23 -0400 |
commit | 4bf0438332d5173836fdc2d6471fec526d0a14a8 (patch) | |
tree | f645d631bc74361993babac09fa94509e6088a46 | |
parent | 9752ef46c6d32b7ccf10b874f00e433844db2b1a (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.c | 33 | ||||
-rw-r--r-- | drivers/staging/p9auth/p9auth.h | 35 |
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 | |||
51 | struct cap_node { | ||
52 | char data[CAP_NODE_SIZE]; | ||
53 | struct list_head list; | ||
54 | }; | ||
55 | |||
56 | struct 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 | |||
64 | int cap_trim(struct cap_dev *); | ||
65 | ssize_t cap_write(struct file *, const char __user *, size_t, loff_t *); | ||
66 | char *cap_hash(char *plain_text, unsigned int plain_text_size, char *key, unsigned int key_size); | ||
67 | void hex_dump(unsigned char * buf, unsigned int len); | ||
37 | 68 | ||
38 | int cap_major = CAP_MAJOR; | 69 | int cap_major = CAP_MAJOR; |
39 | int cap_minor = 0; | 70 | int 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 | |||
15 | struct cap_node { | ||
16 | char data[CAP_NODE_SIZE]; | ||
17 | struct list_head list; | ||
18 | }; | ||
19 | |||
20 | struct 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 | |||
28 | extern int cap_major; | ||
29 | extern int cap_nr_devs; | ||
30 | extern int cap_node_size; | ||
31 | |||
32 | int cap_trim(struct cap_dev *); | ||
33 | ssize_t cap_write(struct file *, const char __user *, size_t, loff_t *); | ||
34 | char *cap_hash(char *plain_text, unsigned int plain_text_size, char *key, unsigned int key_size); | ||
35 | void hex_dump(unsigned char * buf, unsigned int len); | ||