mirror of https://github.com/dynup/kpatch
kmod/core: make func->op an enum
This commit is contained in:
parent
2f34cf9a89
commit
ac22230761
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue