diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-17 17:35:02 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-17 17:35:02 -0500 |
| commit | e2b74f232e84dfccd0047eb47545b1d028df8ff1 (patch) | |
| tree | 86dffe011c9b4049f2adfa7aa78ad92870c4dc9b /include | |
| parent | 9cd77374f0a9cbb7ec35a9aaeb6473755afe0e3e (diff) | |
| parent | 580c57f1076872ebc2427f898b927944ce170f2d (diff) | |
Merge branch 'akpm' (patches from Andrew)
Merge yet more updates from Andrew Morton:
- a pile of minor fs fixes and cleanups
- kexec updates
- random misc fixes in various places: vmcore, rbtree, eventfd, ipc, seccomp.
- a series of python-based kgdb helper scripts
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (58 commits)
seccomp: cap SECCOMP_RET_ERRNO data to MAX_ERRNO
samples/seccomp: improve label helper
ipc,sem: use current->state helpers
scripts/gdb: disable pagination while printing from breakpoint handler
scripts/gdb: define maintainer
scripts/gdb: convert CpuList to generator function
scripts/gdb: convert ModuleList to generator function
scripts/gdb: use a generator instead of iterator for task list
scripts/gdb: ignore byte-compiled python files
scripts/gdb: port to python3 / gdb7.7
scripts/gdb: add basic documentation
scripts/gdb: add lx-lsmod command
scripts/gdb: add class to iterate over CPU masks
scripts/gdb: add lx_current convenience function
scripts/gdb: add internal helper and convenience function for per-cpu lookup
scripts/gdb: add get_gdbserver_type helper
scripts/gdb: add internal helper and convenience function to retrieve thread_info
scripts/gdb: add is_target_arch helper
scripts/gdb: add helper and convenience function to look up tasks
scripts/gdb: add task iteration class
...
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/kexec.h | 22 | ||||
| -rw-r--r-- | include/linux/rbtree.h | 2 | ||||
| -rw-r--r-- | include/uapi/linux/kexec.h | 6 |
3 files changed, 17 insertions, 13 deletions
diff --git a/include/linux/kexec.h b/include/linux/kexec.h index 9d957b7ae095..e60a745ac198 100644 --- a/include/linux/kexec.h +++ b/include/linux/kexec.h | |||
| @@ -1,6 +1,19 @@ | |||
| 1 | #ifndef LINUX_KEXEC_H | 1 | #ifndef LINUX_KEXEC_H |
| 2 | #define LINUX_KEXEC_H | 2 | #define LINUX_KEXEC_H |
| 3 | 3 | ||
| 4 | #define IND_DESTINATION_BIT 0 | ||
| 5 | #define IND_INDIRECTION_BIT 1 | ||
| 6 | #define IND_DONE_BIT 2 | ||
| 7 | #define IND_SOURCE_BIT 3 | ||
| 8 | |||
| 9 | #define IND_DESTINATION (1 << IND_DESTINATION_BIT) | ||
| 10 | #define IND_INDIRECTION (1 << IND_INDIRECTION_BIT) | ||
| 11 | #define IND_DONE (1 << IND_DONE_BIT) | ||
| 12 | #define IND_SOURCE (1 << IND_SOURCE_BIT) | ||
| 13 | #define IND_FLAGS (IND_DESTINATION | IND_INDIRECTION | IND_DONE | IND_SOURCE) | ||
| 14 | |||
| 15 | #if !defined(__ASSEMBLY__) | ||
| 16 | |||
| 4 | #include <uapi/linux/kexec.h> | 17 | #include <uapi/linux/kexec.h> |
| 5 | 18 | ||
| 6 | #ifdef CONFIG_KEXEC | 19 | #ifdef CONFIG_KEXEC |
| @@ -64,10 +77,6 @@ | |||
| 64 | */ | 77 | */ |
| 65 | 78 | ||
| 66 | typedef unsigned long kimage_entry_t; | 79 | typedef unsigned long kimage_entry_t; |
| 67 | #define IND_DESTINATION 0x1 | ||
| 68 | #define IND_INDIRECTION 0x2 | ||
| 69 | #define IND_DONE 0x4 | ||
| 70 | #define IND_SOURCE 0x8 | ||
| 71 | 80 | ||
| 72 | struct kexec_segment { | 81 | struct kexec_segment { |
| 73 | /* | 82 | /* |
| @@ -122,8 +131,6 @@ struct kimage { | |||
| 122 | kimage_entry_t *entry; | 131 | kimage_entry_t *entry; |
| 123 | kimage_entry_t *last_entry; | 132 | kimage_entry_t *last_entry; |
| 124 | 133 | ||
| 125 | unsigned long destination; | ||
| 126 | |||
| 127 | unsigned long start; | 134 | unsigned long start; |
| 128 | struct page *control_code_page; | 135 | struct page *control_code_page; |
| 129 | struct page *swap_page; | 136 | struct page *swap_page; |
| @@ -313,4 +320,7 @@ struct task_struct; | |||
| 313 | static inline void crash_kexec(struct pt_regs *regs) { } | 320 | static inline void crash_kexec(struct pt_regs *regs) { } |
| 314 | static inline int kexec_should_crash(struct task_struct *p) { return 0; } | 321 | static inline int kexec_should_crash(struct task_struct *p) { return 0; } |
| 315 | #endif /* CONFIG_KEXEC */ | 322 | #endif /* CONFIG_KEXEC */ |
| 323 | |||
| 324 | #endif /* !defined(__ASSEBMLY__) */ | ||
| 325 | |||
| 316 | #endif /* LINUX_KEXEC_H */ | 326 | #endif /* LINUX_KEXEC_H */ |
diff --git a/include/linux/rbtree.h b/include/linux/rbtree.h index 57e75ae9910f..fb31765e935a 100644 --- a/include/linux/rbtree.h +++ b/include/linux/rbtree.h | |||
| @@ -51,7 +51,7 @@ struct rb_root { | |||
| 51 | 51 | ||
| 52 | #define RB_EMPTY_ROOT(root) ((root)->rb_node == NULL) | 52 | #define RB_EMPTY_ROOT(root) ((root)->rb_node == NULL) |
| 53 | 53 | ||
| 54 | /* 'empty' nodes are nodes that are known not to be inserted in an rbree */ | 54 | /* 'empty' nodes are nodes that are known not to be inserted in an rbtree */ |
| 55 | #define RB_EMPTY_NODE(node) \ | 55 | #define RB_EMPTY_NODE(node) \ |
| 56 | ((node)->__rb_parent_color == (unsigned long)(node)) | 56 | ((node)->__rb_parent_color == (unsigned long)(node)) |
| 57 | #define RB_CLEAR_NODE(node) \ | 57 | #define RB_CLEAR_NODE(node) \ |
diff --git a/include/uapi/linux/kexec.h b/include/uapi/linux/kexec.h index 6925f5b42f89..99048e501b88 100644 --- a/include/uapi/linux/kexec.h +++ b/include/uapi/linux/kexec.h | |||
| @@ -55,12 +55,6 @@ struct kexec_segment { | |||
| 55 | size_t memsz; | 55 | size_t memsz; |
| 56 | }; | 56 | }; |
| 57 | 57 | ||
| 58 | /* Load a new kernel image as described by the kexec_segment array | ||
| 59 | * consisting of passed number of segments at the entry-point address. | ||
| 60 | * The flags allow different useage types. | ||
| 61 | */ | ||
| 62 | extern int kexec_load(void *, size_t, struct kexec_segment *, | ||
| 63 | unsigned long int); | ||
| 64 | #endif /* __KERNEL__ */ | 58 | #endif /* __KERNEL__ */ |
| 65 | 59 | ||
| 66 | #endif /* _UAPILINUX_KEXEC_H */ | 60 | #endif /* _UAPILINUX_KEXEC_H */ |
