lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue, 21 Dec 2021 13:37:59 +0800
From:   kernel test robot <lkp@...el.com>
To:     Anand Ashok Dumbre <anand.ashok.dumbre@...inx.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Jonathan Cameron <Jonathan.Cameron@...wei.com>,
        Manish Narani <manish.narani@...inx.com>
Subject: [jic23-iio:togreg 100/103] drivers/iio/adc/xilinx-ams.c:621
 ams_get_pl_scale() warn: inconsistent indenting

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
head:   d37e6bb10a086d7d7695122e03e6431eb0ea503a
commit: 18834cbc79f73f2814d8388de9eea5bbaddcc3d6 [100/103] iio: adc: Add Xilinx AMS driver
config: s390-randconfig-m031-20211220 (https://download.01.org/0day-ci/archive/20211221/202112211357.E8JZJON6-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

smatch warnings:
drivers/iio/adc/xilinx-ams.c:621 ams_get_pl_scale() warn: inconsistent indenting

vim +621 drivers/iio/adc/xilinx-ams.c

   591	
   592	static int ams_get_pl_scale(struct ams *ams, int address)
   593	{
   594		int val, regval;
   595	
   596		switch (address) {
   597		case AMS_SUPPLY1:
   598		case AMS_SUPPLY2:
   599		case AMS_SUPPLY3:
   600		case AMS_SUPPLY4:
   601		case AMS_SUPPLY5:
   602		case AMS_SUPPLY6:
   603		case AMS_VCCAMS:
   604		case AMS_VREFP:
   605		case AMS_VREFN:
   606			val = AMS_SUPPLY_SCALE_3VOLT_mV;
   607			break;
   608		case AMS_SUPPLY7:
   609			regval = readl(ams->pl_base + AMS_REG_CONFIG4);
   610			if (FIELD_GET(AMS_VUSER0_MASK, regval))
   611				val = AMS_SUPPLY_SCALE_6VOLT_mV;
   612			else
   613				val = AMS_SUPPLY_SCALE_3VOLT_mV;
   614			break;
   615		case AMS_SUPPLY8:
   616			regval = readl(ams->pl_base + AMS_REG_CONFIG4);
   617			if (FIELD_GET(AMS_VUSER1_MASK, regval))
   618				val = AMS_SUPPLY_SCALE_6VOLT_mV;
   619			else
   620				val = AMS_SUPPLY_SCALE_3VOLT_mV;
 > 621						break;
   622		case AMS_SUPPLY9:
   623			regval = readl(ams->pl_base + AMS_REG_CONFIG4);
   624			if (FIELD_GET(AMS_VUSER2_MASK, regval))
   625				val = AMS_SUPPLY_SCALE_6VOLT_mV;
   626			else
   627				val = AMS_SUPPLY_SCALE_3VOLT_mV;
   628			break;
   629		case AMS_SUPPLY10:
   630			regval = readl(ams->pl_base + AMS_REG_CONFIG4);
   631			if (FIELD_GET(AMS_VUSER3_MASK, regval))
   632				val = AMS_SUPPLY_SCALE_6VOLT_mV;
   633			else
   634				val = AMS_SUPPLY_SCALE_3VOLT_mV;
   635			break;
   636		case AMS_VP_VN:
   637		case AMS_REG_VAUX(0) ... AMS_REG_VAUX(15):
   638			val = AMS_SUPPLY_SCALE_1VOLT_mV;
   639			break;
   640		default:
   641			val = AMS_SUPPLY_SCALE_1VOLT_mV;
   642			break;
   643		}
   644	
   645		return val;
   646	}
   647	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ