]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
MIPS: Fix uapi include in exported asm/siginfo.h
authorJames Hogan <james.hogan@imgtec.com>
Mon, 8 Feb 2016 18:43:51 +0000 (18:43 +0000)
committerKamal Mostafa <kamal@canonical.com>
Fri, 10 Jun 2016 13:32:25 +0000 (06:32 -0700)
commit127dabf6a1b7a03bc8b9880119cda44a254dbaac
treeaf5c43872593b9c28520a2afdb6a0eea47192bd0
parent26ac23ed539a13836184cb91aa658f05bec43815
MIPS: Fix uapi include in exported asm/siginfo.h

BugLink: http://bugs.launchpad.net/bugs/1590455
commit 987e5b834467c9251ca584febda65ef8f66351a9 upstream.

Since commit 8cb48fe169dd ("MIPS: Provide correct siginfo_t.si_stime"),
MIPS' uapi/asm/siginfo.h has included uapi/asm-generic/siginfo.h
directly before defining MIPS' struct siginfo, in order to get the
necessary definitions needed for the siginfo struct without the generic
copy_siginfo() hitting compiler errors due to struct siginfo not yet
being defined.

Now that the generic copy_siginfo() is moved out to linux/signal.h we
can safely include asm-generic/siginfo.h before defining the MIPS
specific struct siginfo, which avoids the uapi/ include as well as
breakage due to generic copy_siginfo() being defined before struct
siginfo.

Reported-by: Christopher Ferris <cferris@google.com>
Fixes: 8cb48fe169dd ("MIPS: Provide correct siginfo_t.si_stime")
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Petr Malat <oss@malat.biz>
Cc: linux-mips@linux-mips.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
arch/mips/include/uapi/asm/siginfo.h