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>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <201904201756.6pNuTXy5%lkp@intel.com>
Date:   Sat, 20 Apr 2019 17:37:54 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Nick Crews <ncrews@...omium.org>
Cc:     kbuild-all@...org, bleung@...omium.org, sre@...nel.org,
        linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org,
        dlaurie@...omium.org, lamzin@...gle.com, bartfab@...gle.com,
        derat@...gle.com, dtor@...gle.com, sjg@...omium.org,
        jchwong@...omium.org, Nick Crews <ncrews@...omium.org>
Subject: Re: [PATCH v5] power_supply: platform/chrome: wilco_ec: Add charging
 config driver

Hi Nick,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.1-rc5 next-20190418]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Nick-Crews/power_supply-platform-chrome-wilco_ec-Add-charging-config-driver/20190420-041913
reproduce:
        # apt-get install sparse
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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



sparse warnings: (new ones prefixed by >>)

   drivers/power/supply/wilco-charger.c:46:14: sparse: undefined identifier 'POWER_SUPPLY_CHARGE_TYPE_STANDARD'
   drivers/power/supply/wilco-charger.c:48:14: sparse: undefined identifier 'POWER_SUPPLY_CHARGE_TYPE_ADAPTIVE'
   drivers/power/supply/wilco-charger.c:50:14: sparse: undefined identifier 'POWER_SUPPLY_CHARGE_TYPE_CUSTOM'
>> drivers/power/supply/wilco-charger.c:46:14: sparse: incompatible types for 'case' statement
   drivers/power/supply/wilco-charger.c:48:14: sparse: incompatible types for 'case' statement
   drivers/power/supply/wilco-charger.c:50:14: sparse: incompatible types for 'case' statement
   drivers/power/supply/wilco-charger.c:66:24: sparse: undefined identifier 'POWER_SUPPLY_CHARGE_TYPE_STANDARD'
   drivers/power/supply/wilco-charger.c:68:24: sparse: undefined identifier 'POWER_SUPPLY_CHARGE_TYPE_ADAPTIVE'
   drivers/power/supply/wilco-charger.c:70:24: sparse: undefined identifier 'POWER_SUPPLY_CHARGE_TYPE_CUSTOM'
   drivers/power/supply/wilco-charger.c:78:9: sparse: undefined identifier 'POWER_SUPPLY_PROP_CHARGE_CONTROL_START_THRESHOLD'
   drivers/power/supply/wilco-charger.c:79:9: sparse: undefined identifier 'POWER_SUPPLY_PROP_CHARGE_CONTROL_END_THRESHOLD'
   drivers/power/supply/wilco-charger.c:95:14: sparse: undefined identifier 'POWER_SUPPLY_PROP_CHARGE_CONTROL_START_THRESHOLD'
   drivers/power/supply/wilco-charger.c:98:14: sparse: undefined identifier 'POWER_SUPPLY_PROP_CHARGE_CONTROL_END_THRESHOLD'
   drivers/power/supply/wilco-charger.c:95:14: sparse: incompatible types for 'case' statement
   drivers/power/supply/wilco-charger.c:98:14: sparse: incompatible types for 'case' statement
   drivers/power/supply/wilco-charger.c:132:14: sparse: undefined identifier 'POWER_SUPPLY_PROP_CHARGE_CONTROL_START_THRESHOLD'
   drivers/power/supply/wilco-charger.c:138:14: sparse: undefined identifier 'POWER_SUPPLY_PROP_CHARGE_CONTROL_END_THRESHOLD'
   drivers/power/supply/wilco-charger.c:132:14: sparse: incompatible types for 'case' statement
   drivers/power/supply/wilco-charger.c:138:14: sparse: incompatible types for 'case' statement
   drivers/power/supply/wilco-charger.c:46:14: sparse: Expected constant expression in case statement
   drivers/power/supply/wilco-charger.c:48:14: sparse: Expected constant expression in case statement
   drivers/power/supply/wilco-charger.c:50:14: sparse: Expected constant expression in case statement
   drivers/power/supply/wilco-charger.c:95:14: sparse: Expected constant expression in case statement
   drivers/power/supply/wilco-charger.c:98:14: sparse: Expected constant expression in case statement
   drivers/power/supply/wilco-charger.c:132:14: sparse: Expected constant expression in case statement
   drivers/power/supply/wilco-charger.c:138:14: sparse: Expected constant expression in case statement

vim +/case +46 drivers/power/supply/wilco-charger.c

    37	
    38	/* Convert from POWER_SUPPLY_PROP_CHARGE_TYPE value to the EC's charge mode */
    39	static enum charge_mode psp_val_to_charge_mode(int psp_val)
    40	{
    41		switch (psp_val) {
    42		case POWER_SUPPLY_CHARGE_TYPE_TRICKLE:
    43			return CHARGE_MODE_AC;
    44		case POWER_SUPPLY_CHARGE_TYPE_FAST:
    45			return CHARGE_MODE_EXP;
  > 46		case POWER_SUPPLY_CHARGE_TYPE_STANDARD:
    47			return CHARGE_MODE_STD;
    48		case POWER_SUPPLY_CHARGE_TYPE_ADAPTIVE:
    49			return CHARGE_MODE_AUTO;
    50		case POWER_SUPPLY_CHARGE_TYPE_CUSTOM:
    51			return CHARGE_MODE_CUSTOM;
    52		default:
    53			return CHARGE_MODE_ILLEGAL;
    54		}
    55	}
    56	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ