Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c34d9cd8 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

staging: lustre: remove typedef for module_t



Use "struct module" like the rest of the kernel, not a typedef.

Cc: Peng Tao <tao.peng@emc.com>
Cc: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 409ccba9
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -80,8 +80,6 @@ LL_PROC_PROTO(name) \
				 __##name);	     \
				 __##name);	     \
}
}


typedef struct module module_t;

/*
/*
 * Proc file system APIs
 * Proc file system APIs
 */
 */
+1 −3
Original line number Original line Diff line number Diff line
@@ -54,7 +54,6 @@ typedef struct proc_inode cfs_proc_inode_t;
typedef struct seq_file			 cfs_seq_file_t;
typedef struct seq_file			 cfs_seq_file_t;
typedef struct seq_operations		   cfs_seq_ops_t;
typedef struct seq_operations		   cfs_seq_ops_t;
typedef struct file_operations		  cfs_param_file_ops_t;
typedef struct file_operations		  cfs_param_file_ops_t;
typedef module_t			   *cfs_param_module_t;
typedef struct proc_dir_entry		   cfs_param_dentry_t;
typedef struct proc_dir_entry		   cfs_param_dentry_t;
typedef struct poll_table_struct		cfs_poll_table_t;
typedef struct poll_table_struct		cfs_poll_table_t;
#define CFS_PARAM_MODULE			THIS_MODULE
#define CFS_PARAM_MODULE			THIS_MODULE
@@ -115,11 +114,10 @@ typedef struct cfs_seq_operations {
	int   (*show) (cfs_seq_file_t *m, void *v);
	int   (*show) (cfs_seq_file_t *m, void *v);
} cfs_seq_ops_t;
} cfs_seq_ops_t;


typedef void *cfs_param_module_t;
typedef void *cfs_poll_table_t;
typedef void *cfs_poll_table_t;


typedef struct cfs_param_file_ops {
typedef struct cfs_param_file_ops {
	cfs_param_module_t owner;
	struct module *owner;
	int (*open) (cfs_inode_t *, struct file *);
	int (*open) (cfs_inode_t *, struct file *);
	loff_t (*llseek)(struct file *, loff_t, int);
	loff_t (*llseek)(struct file *, loff_t, int);
	int (*release) (cfs_inode_t *, cfs_param_file_t *);
	int (*release) (cfs_inode_t *, cfs_param_file_t *);
+1 −1
Original line number Original line Diff line number Diff line
@@ -54,7 +54,7 @@ typedef void (*fsfilt_cb_t)(struct obd_device *obd, __u64 last_rcvd,


struct fsfilt_operations {
struct fsfilt_operations {
	struct list_head fs_list;
	struct list_head fs_list;
	module_t *fs_owner;
	struct module *fs_owner;
	char   *fs_type;
	char   *fs_type;
	char   *(* fs_getlabel)(struct super_block *sb);
	char   *(* fs_getlabel)(struct super_block *sb);
	void   *(* fs_start)(struct inode *inode, int op, void *desc_private,
	void   *(* fs_start)(struct inode *inode, int op, void *desc_private,
+1 −1
Original line number Original line Diff line number Diff line
@@ -1131,7 +1131,7 @@ struct lu_context_key {
	/**
	/**
	 * Internal implementation detail: module for this key.
	 * Internal implementation detail: module for this key.
	 */
	 */
	module_t *lct_owner;
	struct module *lct_owner;
	/**
	/**
	 * References to this key. For debugging.
	 * References to this key. For debugging.
	 */
	 */
+2 −2
Original line number Original line Diff line number Diff line
@@ -1136,7 +1136,7 @@ struct ptlrpc_nrs_pol_conf {
	 * different module to the one the NRS framework is held within
	 * different module to the one the NRS framework is held within
	 * (currently ptlrpc), should set this field to THIS_MODULE.
	 * (currently ptlrpc), should set this field to THIS_MODULE.
	 */
	 */
	module_t			  *nc_owner;
	struct module			  *nc_owner;
	/**
	/**
	 * Policy registration flags; a bitmast of \e nrs_policy_flags
	 * Policy registration flags; a bitmast of \e nrs_policy_flags
	 */
	 */
@@ -1211,7 +1211,7 @@ struct ptlrpc_nrs_pol_desc {
	 *   then unregistration and lprocfs operations will be properly
	 *   then unregistration and lprocfs operations will be properly
	 *   serialized.
	 *   serialized.
	 */
	 */
	module_t			       *pd_owner;
	struct module			       *pd_owner;
	/**
	/**
	 * Bitmask of \e nrs_policy_flags
	 * Bitmask of \e nrs_policy_flags
	 */
	 */
Loading