From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261879AbUEAS5t (ORCPT ); Sat, 1 May 2004 14:57:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261880AbUEAS5t (ORCPT ); Sat, 1 May 2004 14:57:49 -0400 Received: from fw.osdl.org ([65.172.181.6]:57050 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S261879AbUEAS5r (ORCPT ); Sat, 1 May 2004 14:57:47 -0400 Date: Sat, 1 May 2004 11:57:17 -0700 (PDT) From: Linus Torvalds To: Andreas Schwab cc: Adrian Bunk , Eyal Lebedinsky , Gerd Knorr , Kernel Mailing List Subject: Re: 2.6.6-rc3: gcc 2.95: cx88 __ucmpdi2 error In-Reply-To: Message-ID: References: <408F9BD8.8000203@eyal.emu.id.au> <20040501112432.GE2541@fs.tum.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 1 May 2004, Andreas Schwab wrote: > > dev->tvnorm->id is __u64. > > linux/videodev2.h:typedef __u64 v4l2_std_id; Ahh. And maybe this only happens for the "switch()" statement, which would explain why gcc-2.95 doesn't have problem with a lot of other 64-bit uses in the kernel. A simple fix might be to just cast it down to a long, since the high bits seem to be unused. I assume that would fix it. Alternatively, what about making the "switch()" just be a series of if-statements? Linus