From: Al Viro Date: Fri, 21 Oct 2005 05:46:02 +0000 (+0100) Subject: [PATCH] enum safety (sata_qstor) X-Git-Tag: v2.6.15-rc1~732^2~6^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0420dd121d395e76f6b80fe232e7b4bc6a046f18;p=pandora-kernel.git [PATCH] enum safety (sata_qstor) sata_qstor strays into a nasty area - gcc handling of wide enums is full of bugs that got fixed between gcc versions creating portability nightmare. Single-member enums are safe, so are ones that stay within the range of int or unsigned int. Anything beyond that is asking for trouble. Declaration of constants split in two enums, taking the ~0UL one into a separate enum. Signed-off-by: Al Viro Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed