Re: [PATCH] xtensa: Fix execdomain removal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/12/2015 07:43 AM, Jeff Epler wrote:
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

Other architectures use either DEFINE or OFFSET macros to define
those flags, so that would probably be a better solution if something
more fancy is asked for. That should probably be a separate patch,
though.

Guenter

--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux