X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=kernel%2Finclude%2Fasm-generic%2Fsiginfo.h;fp=kernel%2Finclude%2Fasm-generic%2Fsiginfo.h;h=a2508a8f9a9ce266677a3176d74d56ee10ae5129;hb=52f993b8e89487ec9ee15a7fb4979e0f09a45b27;hp=3d1a3af5cf595ccc4e2c9fc5f0060edca1d96272;hpb=c189ccac5702322ed843fe17057035b7222a59b6;p=kvmfornfv.git diff --git a/kernel/include/asm-generic/siginfo.h b/kernel/include/asm-generic/siginfo.h index 3d1a3af5c..a2508a8f9 100644 --- a/kernel/include/asm-generic/siginfo.h +++ b/kernel/include/asm-generic/siginfo.h @@ -17,21 +17,6 @@ struct siginfo; void do_schedule_next_timer(struct siginfo *info); -#ifndef HAVE_ARCH_COPY_SIGINFO - -#include - -static inline void copy_siginfo(struct siginfo *to, struct siginfo *from) -{ - if (from->si_code < 0) - memcpy(to, from, sizeof(*to)); - else - /* _sigchld is currently the largest know union member */ - memcpy(to, from, __ARCH_SI_PREAMBLE_SIZE + sizeof(from->_sifields._sigchld)); -} - -#endif - extern int copy_siginfo_to_user(struct siginfo __user *to, const struct siginfo *from); #endif