Commit b429dd5998d6037e0057564f3894f56aff64d661

Authored by Justin P. Mattock
Committed by Jeff Garzik
1 parent acad76272c

[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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -1042,7 +1042,7 @@
1042 1042  
1043 1043 VPRINTK("ENTER\n");
1044 1044  
1045   - WARN_ON(ATA_MAX_QUEUE > AHCI_MAX_CMDS);
  1045 + WARN_ON((int)ATA_MAX_QUEUE > AHCI_MAX_CMDS);
1046 1046  
1047 1047 if (!printed_version++)
1048 1048 dev_printk(KERN_DEBUG, &pdev->dev, "version " DRV_VERSION "\n");