Re: [PATCH 5/6] fix warning on test_ti_thread_flag()

Paul Mackerras <[email protected]>
Newsgroups gmane.linux.ports.sparc,gmane.linux.ports.ia64,gmane.linux.ports.ultrapenguin,gmane.linux.kernel,gmane.linux.ports.ppc.devel,gmane.linux.ports.sh.devel,gmane.linux.ports.hppa
Message-ID <[email protected]>
Akinobu Mita writes:

> I can fix this without changing the flags size for those architectures.
> 
> 1. Introduce *_le_bit() bit operations which takes void *addr
>    (already I have these functions in the scope of
>     HAVE_ARCH_EXT2_NON_ATOMIC_BITOPS in my patch)
> 
> 2. Change flags to __u8 flags[4] or __u8 flags[8] for each architectures.
> 
> 3. Use *_le_bit() in include/linux/thread_info.h

Please don't do this, you'll break the powerpc assembly code that
tests bits in thread_info()->flags.

Paul.
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.