From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262123AbVGJWAW (ORCPT ); Sun, 10 Jul 2005 18:00:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262108AbVGJV6q (ORCPT ); Sun, 10 Jul 2005 17:58:46 -0400 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:5263 "EHLO amd.ucw.cz") by vger.kernel.org with ESMTP id S262119AbVGJV5W (ORCPT ); Sun, 10 Jul 2005 17:57:22 -0400 Date: Sun, 10 Jul 2005 23:57:22 +0200 From: Pavel Machek To: Mike Waychison Cc: Wichert Akkerman , Bryan Henderson , Roman Zippel , Andrew Morton , bfields@fieldses.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linuxram@us.ibm.com, Miklos Szeredi , Pekka J Enberg , Alexander Viro Subject: Re: share/private/slave a subtree - define vs enum Message-ID: <20050710215722.GA12054@elf.ucw.cz> References: <20050708180302.GC1165@wiggy.net> <42CEC17D.8020309@waychison.com> <20050708181502.GD1165@wiggy.net> <42CEE0A7.8090006@waychison.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42CEE0A7.8090006@waychison.com> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi! > >>enums in C are (de?)promoted to integral types under most conditions, so > >>the type-checking is useless. > > > > > >It's a warning in gcc afaik and spare should complain as well. > > Check again. Check sparse with -Wbitwise and enum properly marked as bitwise... Pavel -- teflon -- maybe it is a trademark, but it should not be.