From mboxrd@z Thu Jan 1 00:00:00 1970 From: mita@miraclelinux.com (Akinobu Mita) Date: Wed, 25 Jan 2006 11:34:46 +0000 Subject: [PATCH 5/6] fix warning on test_ti_thread_flag() Message-Id: <20060125113446.GF18584@miraclelinux.com> List-Id: References: <20060125112625.GA18584@miraclelinux.com> In-Reply-To: <20060125112625.GA18584@miraclelinux.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-kernel@vger.kernel.org Cc: Richard Henderson , Ivan Kokshaysky , Russell King , Ian Molton , dev-etrax@axis.com, David Howells , Yoshinori Sato , Linus Torvalds , linux-ia64@vger.kernel.org, Hirokazu Takata , linux-m68k@vger.kernel.org, Greg Ungerer , linux-mips@linux-mips.org, parisc-linux@parisc-linux.org, linuxppc-dev@ozlabs.org, linux390@de.ibm.com, linuxsh-dev@lists.sourceforge.net, linuxsh-shmedia-dev@lists.sourceforge.net, sparclinux@vger.kernel.org, ultralinux@vger.kernel.org, Miles Bader , Andi Kleen , Chris Zankel If the arechitecture is - BITS_PER_LONG = 64 - struct thread_info.flag 32 is bits - second argument of test_bit() was void * Then compiler print error message on test_ti_thread_flags() in include/linux/thread_info.h Signed-off-by: Akinobu Mita --- thread_info.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: 2.6-git/include/linux/thread_info.h =================================--- 2.6-git.orig/include/linux/thread_info.h 2006-01-25 19:07:12.000000000 +0900 +++ 2.6-git/include/linux/thread_info.h 2006-01-25 19:14:26.000000000 +0900 @@ -49,7 +49,7 @@ static inline int test_ti_thread_flag(struct thread_info *ti, int flag) { - return test_bit(flag,&ti->flags); + return test_bit(flag, (void *)&ti->flags); } #define set_thread_flag(flag) \ From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 25 Jan 2006 11:31:03 +0000 (GMT) Received: from ns.miraclelinux.com ([219.118.163.66]:2971 "EHLO mail01.miraclelinux.com") by ftp.linux-mips.org with ESMTP id S8133495AbWAYLaS (ORCPT ); Wed, 25 Jan 2006 11:30:18 +0000 Received: from mail01 (localhost.localdomain [127.0.0.1]) by mail01.miraclelinux.com (Postfix) with ESMTP id 076E831C1AC; Wed, 25 Jan 2006 20:34:41 +0900 (JST) Received: from localhost.localdomain (sshgate.miraclelinux.com []) by mail01.miraclelinux.com ([10.1.0.10]); Wed, 25 Jan 2006 11:34:40 +0000 Received: by localhost.localdomain (Postfix, from userid 1000) id E25C3420196; Wed, 25 Jan 2006 20:34:46 +0900 (JST) Date: Wed, 25 Jan 2006 20:34:46 +0900 To: linux-kernel@vger.kernel.org Cc: Richard Henderson , Ivan Kokshaysky , Russell King , Ian Molton , dev-etrax@axis.com, David Howells , Yoshinori Sato , Linus Torvalds , linux-ia64@vger.kernel.org, Hirokazu Takata , linux-m68k@lists.linux-m68k.org, Greg Ungerer , linux-mips@linux-mips.org, parisc-linux@parisc-linux.org, linuxppc-dev@ozlabs.org, linux390@de.ibm.com, linuxsh-dev@lists.sourceforge.net, linuxsh-shmedia-dev@lists.sourceforge.net, sparclinux@vger.kernel.org, ultralinux@vger.kernel.org, Miles Bader , Andi Kleen , Chris Zankel Subject: [PATCH 5/6] fix warning on test_ti_thread_flag() Message-ID: <20060125113446.GF18584@miraclelinux.com> References: <20060125112625.GA18584@miraclelinux.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060125112625.GA18584@miraclelinux.com> User-Agent: Mutt/1.5.9i From: mita@miraclelinux.com (Akinobu Mita) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 10131 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: mita@miraclelinux.com Precedence: bulk X-list: linux-mips If the arechitecture is - BITS_PER_LONG == 64 - struct thread_info.flag 32 is bits - second argument of test_bit() was void * Then compiler print error message on test_ti_thread_flags() in include/linux/thread_info.h Signed-off-by: Akinobu Mita --- thread_info.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: 2.6-git/include/linux/thread_info.h =================================================================== --- 2.6-git.orig/include/linux/thread_info.h 2006-01-25 19:07:12.000000000 +0900 +++ 2.6-git/include/linux/thread_info.h 2006-01-25 19:14:26.000000000 +0900 @@ -49,7 +49,7 @@ static inline int test_ti_thread_flag(struct thread_info *ti, int flag) { - return test_bit(flag,&ti->flags); + return test_bit(flag, (void *)&ti->flags); } #define set_thread_flag(flag) \ From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail01.miraclelinux.com (ns.miraclelinux.com [219.118.163.66]) by ozlabs.org (Postfix) with ESMTP id D7B4F68AA6 for ; Wed, 25 Jan 2006 22:34:41 +1100 (EST) Date: Wed, 25 Jan 2006 20:34:46 +0900 To: linux-kernel@vger.kernel.org Subject: [PATCH 5/6] fix warning on test_ti_thread_flag() Message-ID: <20060125113446.GF18584@miraclelinux.com> References: <20060125112625.GA18584@miraclelinux.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20060125112625.GA18584@miraclelinux.com> From: mita@miraclelinux.com (Akinobu Mita) Cc: linux-mips@linux-mips.org, linux-ia64@vger.kernel.org, Ian Molton , David Howells , linuxppc-dev@ozlabs.org, Greg Ungerer , sparclinux@vger.kernel.org, Miles Bader , Linus Torvalds , Yoshinori Sato , Hirokazu Takata , linuxsh-shmedia-dev@lists.sourceforge.net, linux-m68k@lists.linux-m68k.org, Ivan Kokshaysky , Richard Henderson , Chris Zankel , dev-etrax@axis.com, ultralinux@vger.kernel.org, Andi Kleen , linuxsh-dev@lists.sourceforge.net, linux390@de.ibm.com, Russell King , parisc-linux@parisc-linux.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , If the arechitecture is - BITS_PER_LONG == 64 - struct thread_info.flag 32 is bits - second argument of test_bit() was void * Then compiler print error message on test_ti_thread_flags() in include/linux/thread_info.h Signed-off-by: Akinobu Mita --- thread_info.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: 2.6-git/include/linux/thread_info.h =================================================================== --- 2.6-git.orig/include/linux/thread_info.h 2006-01-25 19:07:12.000000000 +0900 +++ 2.6-git/include/linux/thread_info.h 2006-01-25 19:14:26.000000000 +0900 @@ -49,7 +49,7 @@ static inline int test_ti_thread_flag(struct thread_info *ti, int flag) { - return test_bit(flag,&ti->flags); + return test_bit(flag, (void *)&ti->flags); } #define set_thread_flag(flag) \ From mboxrd@z Thu Jan 1 00:00:00 1970 From: mita@miraclelinux.com (Akinobu Mita) Date: Wed, 25 Jan 2006 11:34:46 +0000 Subject: [PATCH 5/6] fix warning on test_ti_thread_flag() Message-Id: <20060125113446.GF18584@miraclelinux.com> List-Id: References: <20060125112625.GA18584@miraclelinux.com> In-Reply-To: <20060125112625.GA18584@miraclelinux.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-kernel@vger.kernel.org Cc: Richard Henderson , Ivan Kokshaysky , Russell King , Ian Molton , dev-etrax@axis.com, David Howells , Yoshinori Sato , Linus Torvalds , linux-ia64@vger.kernel.org, Hirokazu Takata , linux-m68k@lists.linux-m68k.org, Greg Ungerer , linux-mips@linux-mips.org, parisc-linux@parisc-linux.org, linuxppc-dev@ozlabs.org, linux390@de.ibm.com, linuxsh-dev@lists.sourceforge.net, linuxsh-shmedia-dev@lists.sourceforge.net, sparclinux@vger.kernel.org, ultralinux@vger.kernel.org, Miles Bader , Andi Kleen , Chris Zankel If the arechitecture is - BITS_PER_LONG = 64 - struct thread_info.flag 32 is bits - second argument of test_bit() was void * Then compiler print error message on test_ti_thread_flags() in include/linux/thread_info.h Signed-off-by: Akinobu Mita --- thread_info.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: 2.6-git/include/linux/thread_info.h =================================--- 2.6-git.orig/include/linux/thread_info.h 2006-01-25 19:07:12.000000000 +0900 +++ 2.6-git/include/linux/thread_info.h 2006-01-25 19:14:26.000000000 +0900 @@ -49,7 +49,7 @@ static inline int test_ti_thread_flag(struct thread_info *ti, int flag) { - return test_bit(flag,&ti->flags); + return test_bit(flag, (void *)&ti->flags); } #define set_thread_flag(flag) \ From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751153AbWAYLeo (ORCPT ); Wed, 25 Jan 2006 06:34:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751147AbWAYLeo (ORCPT ); Wed, 25 Jan 2006 06:34:44 -0500 Received: from ns.miraclelinux.com ([219.118.163.66]:2203 "EHLO mail01.miraclelinux.com") by vger.kernel.org with ESMTP id S1751144AbWAYLem (ORCPT ); Wed, 25 Jan 2006 06:34:42 -0500 Date: Wed, 25 Jan 2006 20:34:46 +0900 To: linux-kernel@vger.kernel.org Cc: Richard Henderson , Ivan Kokshaysky , Russell King , Ian Molton , dev-etrax@axis.com, David Howells , Yoshinori Sato , Linus Torvalds , linux-ia64@vger.kernel.org, Hirokazu Takata , linux-m68k@vger.kernel.org, Greg Ungerer , linux-mips@linux-mips.org, parisc-linux@parisc-linux.org, linuxppc-dev@ozlabs.org, linux390@de.ibm.com, linuxsh-dev@lists.sourceforge.net, linuxsh-shmedia-dev@lists.sourceforge.net, sparclinux@vger.kernel.org, ultralinux@vger.kernel.org, Miles Bader , Andi Kleen , Chris Zankel Subject: [PATCH 5/6] fix warning on test_ti_thread_flag() Message-ID: <20060125113446.GF18584@miraclelinux.com> References: <20060125112625.GA18584@miraclelinux.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060125112625.GA18584@miraclelinux.com> User-Agent: Mutt/1.5.9i From: mita@miraclelinux.com (Akinobu Mita) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org If the arechitecture is - BITS_PER_LONG == 64 - struct thread_info.flag 32 is bits - second argument of test_bit() was void * Then compiler print error message on test_ti_thread_flags() in include/linux/thread_info.h Signed-off-by: Akinobu Mita --- thread_info.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: 2.6-git/include/linux/thread_info.h =================================================================== --- 2.6-git.orig/include/linux/thread_info.h 2006-01-25 19:07:12.000000000 +0900 +++ 2.6-git/include/linux/thread_info.h 2006-01-25 19:14:26.000000000 +0900 @@ -49,7 +49,7 @@ static inline int test_ti_thread_flag(struct thread_info *ti, int flag) { - return test_bit(flag,&ti->flags); + return test_bit(flag, (void *)&ti->flags); } #define set_thread_flag(flag) \