Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9915697rwp; Thu, 20 Jul 2023 11:35:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlHDFSOIlzRgm2kQaDK/Uf1MFEGfPe6xozzFpfVb+IQAW1VGfW/dfOD49zX6SX7dTqtwBnHK X-Received: by 2002:a17:906:9bcb:b0:99b:5a73:4d09 with SMTP id de11-20020a1709069bcb00b0099b5a734d09mr1366223ejc.43.1689878146721; Thu, 20 Jul 2023 11:35:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689878146; cv=none; d=google.com; s=arc-20160816; b=suGX714vHnX0ht7CzOf8dC4KBrlS87+Zn1YS1/RmPBp3Aw0NRcs99tcc0baibuZJMR 9ypL303KVJKcaZgyzsa4NZjy+XItxBMbHm1YkAtV6boh8eHevSoluH7w1VFDpDEiq6bZ 2lNLdWLWghSrZ8EKpzvjzur39evXiFh5sXo9yEYGp2OUMuF2xbGTLDF78EBZNwDUs/f8 ZFnGYzzFtZmQDJLHQO4c75Kx2CxqJ9+HEooMQuJ1GsdQHwKmnDCrvCEjxAM014uW1Ggx Dbh/w547mhiNzAgTLUksd4a+I8Hy7BTZ2X+v2zvBnxYdbQXSBu3EV2AqkcezJxR2P6uz cHlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ub8IM9IIpJdGldd/Tk4vC144kn1L1tR0BTGAisawwj8=; fh=LjdMi5Q/s6wy8/1ZwUy+dOM34HfkeghMgh0e4DEx8TU=; b=CT665tvG6Upd1ouhD5/qlO5KSidKs5A67w1xqbMMKIoET2dlq6ynfJSCotV5sdJnLQ WYUNw51WNPGAa3FmnrjwkWMMJiGeGVdK6BH/P5csNYX1SPMTJsGsLNnIXHHUr9rMbZLq 1nNUcTP6ZUncm1y6++8Bn55fxbRWFubv1is+ttsaeMtGg5bP0oIinIWxsK9Mbl1QhnC+ CDraMxgk7ejcfp1c7eTOy7QQ/XNdhyWfBkBQNReBC7kFgYHztwQbP6doLhMijzNbkP0a f61VEmmfTGC1hi3T1+tQEN1XlLpc4AYGNrVaCdmgLW5YmIvl0r1wvH+G97TqSMEHJiaX CAzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DcXaQbPQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gf4-20020a170906e20400b0098e444cba76si1012418ejb.91.2023.07.20.11.35.21; Thu, 20 Jul 2023 11:35:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DcXaQbPQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231962AbjGTR4F (ORCPT + 99 others); Thu, 20 Jul 2023 13:56:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229729AbjGTR4E (ORCPT ); Thu, 20 Jul 2023 13:56:04 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24010AA; Thu, 20 Jul 2023 10:56:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689875763; x=1721411763; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=iL50poPhWixSZw5c9wunh0Q5sHAL8gX8tQJ8vL5IFtI=; b=DcXaQbPQ8wezVY257W0EI/LryGcm3TTL232c4qmfbXo5tsfJiCfLlAuW ssn6dxCT4TazYaApkoGkfnwvRTrMNPRuvt+NdHtb70dmsVZABMSNLcCX4 tcc/Bj+4+7E4BpkXBkv4IEVE4njXxkLo5E9Sf5eilNMM6DZeWYy1IFZsI z/76zM39UiTOvvVAP9rRvYfEY1dzahuCUbs6KfTR/XoJOu6nv68GuXF/3 gDi9JCJkTQOtuwNK748Av8XmgrGCrRQrmTG5dR6r2oDO8rcXvCXwwqRLT CKDOGehQQU1FggPZhcs6SOPG1QJx7yMc50z36RQrmYPpjhaxGTLQ9qJok w==; X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="351704674" X-IronPort-AV: E=Sophos;i="6.01,219,1684825200"; d="scan'208";a="351704674" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2023 10:56:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="789897110" X-IronPort-AV: E=Sophos;i="6.01,219,1684825200"; d="scan'208";a="789897110" Received: from lkp-server02.sh.intel.com (HELO 36946fcf73d7) ([10.239.97.151]) by fmsmga008.fm.intel.com with ESMTP; 20 Jul 2023 10:56:00 -0700 Received: from kbuild by 36946fcf73d7 with local (Exim 4.96) (envelope-from ) id 1qMXsK-0006LN-35; Thu, 20 Jul 2023 17:55:51 +0000 Date: Fri, 21 Jul 2023 01:55:38 +0800 From: kernel test robot To: alina_yu@richtek.com, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, alina_yu@richtek.com Subject: Re: [PATCH v4 2/2] regulator: rtq2208: Add Richtek RTQ2208 SubPMIC driver Message-ID: <202307210139.6iUpmzwe-lkp@intel.com> References: <1689758686-14409-3-git-send-email-alina_yu@richtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1689758686-14409-3-git-send-email-alina_yu@richtek.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, kernel test robot noticed the following build errors: [auto build test ERROR on broonie-regulator/for-next] [also build test ERROR on linus/master v6.5-rc2 next-20230720] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/alina_yu-richtek-com/regulator-dt-bindings-rtq2208-Add-Richtek-RTQ2208-SubPMIC/20230719-172722 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next patch link: https://lore.kernel.org/r/1689758686-14409-3-git-send-email-alina_yu%40richtek.com patch subject: [PATCH v4 2/2] regulator: rtq2208: Add Richtek RTQ2208 SubPMIC driver config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20230721/202307210139.6iUpmzwe-lkp@intel.com/config) compiler: s390-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230721/202307210139.6iUpmzwe-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202307210139.6iUpmzwe-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/regulator/rtq2208-regulator.c: In function 'rtq2208_set_ramp_delay': >> drivers/regulator/rtq2208-regulator.c:154:15: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration] 154 | val = FIELD_PREP(RTQ2208_BUCK_RSPUP_MASK, sel) | FIELD_PREP(RTQ2208_BUCK_RSPDN_MASK, sel); | ^~~~~~~~~~ cc1: some warnings being treated as errors vim +/FIELD_PREP +154 drivers/regulator/rtq2208-regulator.c 124 125 static int rtq2208_set_ramp_delay(struct regulator_dev *rdev, int ramp_delay) 126 { 127 const struct regulator_desc *rdesc = rdev->desc; 128 unsigned int sel = 0, val; 129 130 ramp_delay = max(ramp_delay, RTQ2208_RAMP_VALUE_MIN_uV); 131 ramp_delay = min(ramp_delay, RTQ2208_RAMP_VALUE_MAX_uV); 132 133 ramp_delay /= RTQ2208_RAMP_VALUE_MIN_uV; 134 135 /* 136 * fls(ramp_delay) - 1: doing LSB shift, let it starts from 0 137 * 138 * RTQ2208_BUCK_RAMP_SEL_MASK - sel: doing descending order shifting. 139 * Because the relation of seleltion and value is like that 140 * 141 * seletion: value 142 * 000: 64mv 143 * 001: 32mv 144 * ... 145 * 111: 0.5mv 146 * 147 * For example, if I would like to select 64mv, the fls(ramp_delay) - 1 will be 0b111, 148 * and I need to use 0b111 - sel to do the shifting 149 */ 150 151 sel = fls(ramp_delay) - 1; 152 sel = RTQ2208_BUCK_RAMP_SEL_MASK - sel; 153 > 154 val = FIELD_PREP(RTQ2208_BUCK_RSPUP_MASK, sel) | FIELD_PREP(RTQ2208_BUCK_RSPDN_MASK, sel); 155 156 return regmap_update_bits(rdev->regmap, rdesc->ramp_reg, 157 RTQ2208_BUCK_RSPUP_MASK | RTQ2208_BUCK_RSPDN_MASK, val); 158 } 159 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki