[tj-libata:for-4.17 28/29] drivers/ata/ahci_imx.c:478:2: warning: enumeration value 'AHCI_IMX53' not handled in switch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tj/libata.git for-4.17
head:   9ab27d1d35fda0c5fce624083e92546a8545e7e5
commit: e5878732a521dd31ea6377875e49adc424503e5b [28/29] ahci: imx: add the imx6qp ahci sata support
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout e5878732a521dd31ea6377875e49adc424503e5b
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All warnings (new ones prefixed by >>):

   drivers/ata/ahci_imx.c: In function 'imx_sata_disable':
>> drivers/ata/ahci_imx.c:478:2: warning: enumeration value 'AHCI_IMX53' not handled in switch [-Wswitch]
     switch (imxpriv->type) {
     ^~~~~~

vim +/AHCI_IMX53 +478 drivers/ata/ahci_imx.c

   470	
   471	static void imx_sata_disable(struct ahci_host_priv *hpriv)
   472	{
   473		struct imx_ahci_priv *imxpriv = hpriv->plat_data;
   474	
   475		if (imxpriv->no_device)
   476			return;
   477	
 > 478		switch (imxpriv->type) {
   479		case AHCI_IMX6QP:
   480			regmap_update_bits(imxpriv->gpr, IOMUXC_GPR5,
   481					   IMX6Q_GPR5_SATA_SW_PD,
   482					   IMX6Q_GPR5_SATA_SW_PD);
   483			regmap_update_bits(imxpriv->gpr, IOMUXC_GPR13,
   484					   IMX6Q_GPR13_SATA_MPLL_CLK_EN,
   485					   !IMX6Q_GPR13_SATA_MPLL_CLK_EN);
   486			break;
   487	
   488		case AHCI_IMX6Q:
   489			regmap_update_bits(imxpriv->gpr, IOMUXC_GPR13,
   490					   IMX6Q_GPR13_SATA_MPLL_CLK_EN,
   491					   !IMX6Q_GPR13_SATA_MPLL_CLK_EN);
   492			break;
   493		}
   494	
   495		clk_disable_unprepare(imxpriv->sata_ref_clk);
   496	
   497		ahci_platform_disable_regulators(hpriv);
   498	}
   499	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux