lkml.org 
[lkml]   [2015]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] xtensa: Fix execdomain removal
On Sat, Apr 11, 2015 at 07:19:51PM -0700, Guenter Roeck wrote:
> The removal of exexdomain changes pointer offsets into the thread_info
> structure.
...
> -#define TI_EXEC_DOMAIN 0x00000004
> -#define TI_FLAGS 0x00000008
> +#define TI_FLAGS 0x00000004

Hmm. If these have to be maintained by hand, perhaps they can be
BUILD_BUG_ON'd in some appropriate C file? e.g.,

BUILD_BUG_ON(TI_FLAGS != offsetof(struct thread_info, flags));

Jeff


\
 
 \ /
  Last update: 2015-04-12 17:21    [W:0.047 / U:1.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site