From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266557AbUGKKy0 (ORCPT ); Sun, 11 Jul 2004 06:54:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266561AbUGKKy0 (ORCPT ); Sun, 11 Jul 2004 06:54:26 -0400 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:55715 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S266557AbUGKKyP (ORCPT ); Sun, 11 Jul 2004 06:54:15 -0400 Date: Sun, 11 Jul 2004 11:54:13 +0100 From: viro@parcelfarce.linux.theplanet.co.uk To: Geert Uytterhoeven Cc: Linus Torvalds , Roman Zippel , Linux Kernel Development Subject: Re: [PATCH] Use NULL instead of integer 0 in security/selinux/ Message-ID: <20040711105413.GT12308@parcelfarce.linux.theplanet.co.uk> References: <20040707122525.X1924@build.pdx.osdl.net> <20040707202746.1da0568b.davem@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 11, 2004 at 12:29:51PM +0200, Geert Uytterhoeven wrote: > But why does sparse complain about > > p->thread.fs = get_fs().seg; > > with > > linux-m68k-2.6.7/arch/m68k/kernel/process.c:265:23: warning: expected lvalue for member dereference > > ? Looks valid to me? It is valid and should be left alone. sparse doesn't handle that area and unless somebody feels heroic it will stay that way. Note that there are very scary critters in that part of language - among other things it contains such fun as arrays that can't be converted to pointers in normal way, etc. (arrays that have no address, while we are at it).