Skip to content

Commit a64b890

Browse files
author
Al Viro
committed
coredump.h: move CONFIG_COREDUMP-only stuff inside the ifdef
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent d0f1088 commit a64b890

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

include/linux/coredump.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@
77
#include <linux/fs.h>
88
#include <asm/siginfo.h>
99

10+
#ifdef CONFIG_COREDUMP
1011
struct core_vma_metadata {
1112
unsigned long start, end;
1213
unsigned long flags;
1314
unsigned long dump_size;
1415
};
1516

17+
extern int core_uses_pid;
18+
extern char core_pattern[];
19+
extern unsigned int core_pipe_limit;
20+
1621
/*
1722
* These are the only things you should do on a core-file: use only these
1823
* functions to write out all the necessary info.
@@ -27,14 +32,9 @@ int dump_user_range(struct coredump_params *cprm, unsigned long start,
2732
int dump_vma_snapshot(struct coredump_params *cprm, int *vma_count,
2833
struct core_vma_metadata **vma_meta,
2934
size_t *vma_data_size_ptr);
30-
#ifdef CONFIG_COREDUMP
3135
extern void do_coredump(const kernel_siginfo_t *siginfo);
3236
#else
3337
static inline void do_coredump(const kernel_siginfo_t *siginfo) {}
3438
#endif
3539

36-
extern int core_uses_pid;
37-
extern char core_pattern[];
38-
extern unsigned int core_pipe_limit;
39-
4040
#endif /* _LINUX_COREDUMP_H */

0 commit comments

Comments
 (0)