• A
    [PATCH] enum safety (sata_qstor) · 0420dd12
    Al Viro 提交于
    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: NAl Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
    0420dd12
sata_qstor.c 19.4 KB