Thread (4 messages) flat view 4 messages, 2 authors, 2015-06-05

Re: [PATCH v3] seccomp: add ptrace options for suspend/resume

From: Oleg Nesterov <hidden>
Date: 2015-06-05 23:49:00
Also in: lkml

On 06/05, Tycho Andersen wrote:
right thing to do, just leave out the definition of
may_suspend_seccomp all together, or add in another if defined() in
the header?
Just declare it unconditionally in .h. The kernel relies on this kind
of dead-code elimination anyway. For example, please look at
"extern void __put_user_bad(void)" in uaccess.h.

IOW,

	extern void undefined_func(void);

	if (0)
		undefined_func();

should be safe.
Maybe we will get rid of this pesky function all together though...
Yes ;)

Oleg.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help