kmod/core: make func->op an enum

This commit is contained in:
Josh Poimboeuf 2014-04-30 13:26:29 -05:00
parent 2f34cf9a89
commit ac22230761
2 changed files with 7 additions and 8 deletions

View File

@ -100,13 +100,6 @@ enum {
};
static atomic_t kpatch_state;
/* values for func->op */
enum {
KPATCH_OP_NONE,
KPATCH_OP_PATCH,
KPATCH_OP_UNPATCH,
};
static inline void kpatch_state_idle(void)
{

View File

@ -28,6 +28,12 @@
#include <linux/types.h>
#include <linux/module.h>
enum kpatch_op {
KPATCH_OP_NONE,
KPATCH_OP_PATCH,
KPATCH_OP_UNPATCH,
};
struct kpatch_func {
/* public */
unsigned long new_addr;
@ -37,7 +43,7 @@ struct kpatch_func {
/* private */
struct hlist_node node;
int op;
enum kpatch_op op;
};
struct kpatch_module {