]> git.karo-electronics.de Git - linux-beck.git/commitdiff
arm64: uapi: expose our struct ucontext to the uapi headers
authorWill Deacon <will.deacon@arm.com>
Fri, 16 Jan 2015 13:52:14 +0000 (13:52 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 23 Jan 2015 18:07:49 +0000 (18:07 +0000)
arm64 defines its own ucontext structure which is incompatible with the
struct defined (and exposed to userspace by) the asm-generic headers.

glibc carries its own struct definition that is compatible with the
arm64 definition, but we should expose our format in the uapi headers in
case other libraries want to make use of the ucontext pushed as part of
an arm64 sigframe.

This patch moves the arm64 asm/ucontext.h to the uapi headers, along
with the necessary #include of linux/types.h.

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Marcus Shawcroft <marcus.shawcroft@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/uapi/asm/Kbuild
arch/arm64/include/uapi/asm/ucontext.h [moved from arch/arm64/include/asm/ucontext.h with 88% similarity]

index 942376d37d220fc359c6afc35ef3004c9a2074a2..825b0fe51c2b41643dd38e05dd52f4fe2c48707e 100644 (file)
@@ -18,4 +18,5 @@ header-y += siginfo.h
 header-y += signal.h
 header-y += stat.h
 header-y += statfs.h
+header-y += ucontext.h
 header-y += unistd.h
similarity index 88%
rename from arch/arm64/include/asm/ucontext.h
rename to arch/arm64/include/uapi/asm/ucontext.h
index 42e04c87742837e1e204492a3a675dfae29fea4f..791de8e89e359dcda635382ab69023303df61e6d 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-#ifndef __ASM_UCONTEXT_H
-#define __ASM_UCONTEXT_H
+#ifndef _UAPI__ASM_UCONTEXT_H
+#define _UAPI__ASM_UCONTEXT_H
+
+#include <linux/types.h>
 
 struct ucontext {
        unsigned long     uc_flags;
@@ -27,4 +29,4 @@ struct ucontext {
        struct sigcontext uc_mcontext;
 };
 
-#endif /* __ASM_UCONTEXT_H */
+#endif /* _UAPI__ASM_UCONTEXT_H */