From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <17368.19509.43692.401946@cargo.ozlabs.ibm.com> Date: Thu, 26 Jan 2006 15:12:37 +1100 From: Paul Mackerras To: mita@miraclelinux.com (Akinobu Mita) Subject: Re: [PATCH 5/6] fix warning on test_ti_thread_flag() In-Reply-To: <20060126035004.GA11543@miraclelinux.com> References: <200601252002.k0PK2Mg31276@unix-os.sc.intel.com> <20060126035004.GA11543@miraclelinux.com> Cc: linux-m68k@vger.kernel.org, linux-ia64@vger.kernel.org, ultralinux@vger.kernel.org, Andi Kleen , Linux Kernel Development , Linux/PPC Development , "Chen, Kenneth W" , 'Geert Uytterhoeven' , sparclinux@vger.kernel.org, linux390@de.ibm.com, linuxsh-dev@lists.sourceforge.net, parisc-linux@parisc-linux.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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.