[libata] ahci: Fix warning: comparison between 'enum <anonymous>' and 'enum <anonymous>'
authorJustin P. Mattock <justinmattock@gmail.com>
Sat, 3 Jul 2010 14:29:25 +0000 (07:29 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Sun, 1 Aug 2010 23:36:03 +0000 (19:36 -0400)
commitb429dd5998d6037e0057564f3894f56aff64d661
tree1d1074e068a47c8ee9e0d37d5df27c904fab2ef3
parentacad76272c6df8ea1900da334764c05a528598c3
[libata] ahci: Fix warning: comparison between 'enum <anonymous>' and 'enum <anonymous>'

The below patch casts ATA_MAX_QUEUE to int because GCC will
give a warning message about the two different enum blocks:
  CC      drivers/ata/ahci.o
drivers/ata/ahci.c: In function 'ahci_init_one':
drivers/ata/ahci.c:1045:2: warning: comparison between 'enum <anonymous>' and 'enum <anonymous>'

Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/ahci.c