Skip to content

Commit

Permalink
compat: ARM64: always include asm-generic/compat.h
Browse files Browse the repository at this point in the history
In order to use compat_* type defininitions in device drivers
outside of CONFIG_COMPAT, move the inclusion of asm-generic/compat.h
ahead of the #ifdef.

All other architectures already do this.

Acked-by: Will Deacon <will@kernel.org>
Reviewed-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Arnd Bergmann committed Jan 3, 2020
1 parent fd69884 commit 556d687
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/arm64/include/asm/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
*/
#ifndef __ASM_COMPAT_H
#define __ASM_COMPAT_H

#include <asm-generic/compat.h>

#ifdef CONFIG_COMPAT

/*
Expand All @@ -13,8 +16,6 @@
#include <linux/sched.h>
#include <linux/sched/task_stack.h>

#include <asm-generic/compat.h>

#define COMPAT_USER_HZ 100
#ifdef __AARCH64EB__
#define COMPAT_UTS_MACHINE "armv8b\0\0"
Expand Down

0 comments on commit 556d687

Please sign in to comment.