Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp291496yba; Sat, 20 Apr 2019 02:39:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyd/xISEhVfvJhFfA7Es5T7K4hy6Jac83Fc0gr5HCnrCakYOBMqdJ7fDCMZ42AmnXh8yK1u X-Received: by 2002:a17:902:5a3:: with SMTP id f32mr6031785plf.82.1555753187478; Sat, 20 Apr 2019 02:39:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555753187; cv=none; d=google.com; s=arc-20160816; b=Fas40P+bORelJFhA516bOOGy6BJKK3hS5WOPtnm19JAuyFUHf461jcah48nIjnvDQQ dsFAKfUcyhDKnvO+G6Rl83dk3wDHDlkQ4tGAvjF/1m75hEq6lT/3xvrxGyiOH3UQzsfL JRZw5uPG5iS7NOUmMuSHOcuFEJGglER3iP1NapgtEvVRoPiqorC7AgXZMKYlyQPJXDAf 1rs3e5Vk6s7ZBMHNJP4xacxNmL/BL0feaxgQftQZ/SJFGXohwumnNffN8Q5SfvbwB5PP tZ9u7hMpF+FCtcST9AB8p/7NEIFEbb4n7DsqQ1cLAu+AHu1GOx0WY6G8fSzXGAoV56X2 EoRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Q57p66LPcdYfdO90eqFwMvSEOgN+PIcBPuBP8MpEoqw=; b=g76vRO8Wtjdj7rDh/ZWGKR796JYSGJXj4Dw/ooUbuYITbW+L1J4gwZxVyTH81i14hc h+PUoglpLVxBMWlVxb/N5QJhNZETBeKp/381N0xExUJbhrfVzNxMN4N2ZwqpyyNgLH8D GSkYiqs/XKzeWDoKPwxSQGfTfmI2ffIoixqj2RimkilzhngLmtlWT/rIMft3t1wKSkOy n8Y8K/Y3nFrxtw2yGPaB2+7NNZnj0CdDgajCfUMDbD9QXyW/h+DlYTlw+BRylUIOlznY tTHn5CvJMmWrtpvEkY658g/ofKn+2DXVvgiL3D0z+rtpc/k8uq0sHTtq3EZQckT/l8LN miKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x13si7470853pll.96.2019.04.20.02.39.32; Sat, 20 Apr 2019 02:39:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726893AbfDTJim (ORCPT + 99 others); Sat, 20 Apr 2019 05:38:42 -0400 Received: from mga12.intel.com ([192.55.52.136]:5108 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725920AbfDTJil (ORCPT ); Sat, 20 Apr 2019 05:38:41 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Apr 2019 02:38:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,373,1549958400"; d="scan'208";a="163501398" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 20 Apr 2019 02:38:38 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1hHmSD-000HC2-VJ; Sat, 20 Apr 2019 17:38:38 +0800 Date: Sat, 20 Apr 2019 17:37:54 +0800 From: kbuild test robot To: Nick Crews Cc: kbuild-all@01.org, bleung@chromium.org, sre@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, dlaurie@chromium.org, lamzin@google.com, bartfab@google.com, derat@google.com, dtor@google.com, sjg@chromium.org, jchwong@chromium.org, Nick Crews Subject: Re: [PATCH v5] power_supply: platform/chrome: wilco_ec: Add charging config driver Message-ID: <201904201756.6pNuTXy5%lkp@intel.com> References: <20190418233838.149545-1-ncrews@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190418233838.149545-1-ncrews@chromium.org> X-Patchwork-Hint: ignore User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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