Skip to content

Commit

Permalink
asm-generic headers: uaccess.h to conditionally define segment_eq()
Browse files Browse the repository at this point in the history
This is because mm_segment_t is exported by arch code, while seqment_eq
assumes it will have .seg element.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
  • Loading branch information
Vineet Gupta committed Feb 11, 2013
1 parent 14e968b commit 10a6007
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/asm-generic/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* address space, e.g. all NOMMU machines.
*/
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/string.h>

#include <asm/segment.h>
Expand All @@ -32,7 +31,9 @@ static inline void set_fs(mm_segment_t fs)
}
#endif

#ifndef segment_eq
#define segment_eq(a, b) ((a).seg == (b).seg)
#endif

#define VERIFY_READ 0
#define VERIFY_WRITE 1
Expand Down

0 comments on commit 10a6007

Please sign in to comment.