All of lore.kernel.org
 help / color / mirror / Atom feed
* [phy:next 74/75] drivers/phy/qualcomm/phy-qcom-qmp-combo.c:2004:2: error: use of undeclared identifier 'Return'
@ 2022-07-06 22:36 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-06 22:36 UTC (permalink / raw)
  To: Kuogee Hsieh
  Cc: llvm, kbuild-all, Vinod Koul, Kishon, linux-kernel, Stephen Boyd,
	Douglas Anderson

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.git next
head:   fa384dd8b9b8dd3621b8f91c849386a4295d1b01
commit: 6bd9a9be5d732e7697804cba075f11a12dfa6bd3 [74/75] phy: qcom-qmp: add regulator_set_load to dp phy
config: riscv-buildonly-randconfig-r006-20220706 (https://download.01.org/0day-ci/archive/20220707/202207070605.0xk0pmxE-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project f553287b588916de09c66e3e32bf75e5060f967f)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.git/commit/?id=6bd9a9be5d732e7697804cba075f11a12dfa6bd3
        git remote add phy https://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.git
        git fetch --no-tags phy next
        git checkout 6bd9a9be5d732e7697804cba075f11a12dfa6bd3
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/phy/qualcomm/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/phy/qualcomm/phy-qcom-qmp-combo.c:2004:2: error: use of undeclared identifier 'Return'
           Return 0;
           ^
   1 error generated.


vim +/Return +2004 drivers/phy/qualcomm/phy-qcom-qmp-combo.c

  1974	
  1975	static int qcom_qmp_phy_combo_vreg_init(struct device *dev, const struct qmp_phy_cfg *cfg)
  1976	{
  1977		struct qcom_qmp *qmp = dev_get_drvdata(dev);
  1978		int num = cfg->num_vregs;
  1979		int ret, i;
  1980	
  1981		qmp->vregs = devm_kcalloc(dev, num, sizeof(*qmp->vregs), GFP_KERNEL);
  1982		if (!qmp->vregs)
  1983			return -ENOMEM;
  1984	
  1985		for (i = 0; i < num; i++)
  1986			qmp->vregs[i].supply = cfg->vreg_list[i].name;
  1987	
  1988		ret = devm_regulator_bulk_get(dev, num, qmp->vregs);
  1989		if (ret) {
  1990			dev_err(dev, "failed at devm_regulator_bulk_get\n");
  1991			return ret;
  1992		}
  1993	
  1994		for (i = 0; i < num; i++) {
  1995			ret = regulator_set_load(qmp->vregs[i].consumer,
  1996						cfg->vreg_list[i].enable_load);
  1997			if (ret) {
  1998				dev_err(dev, "failed to set load at %s\n",
  1999					qmp->vregs[i].supply);
  2000				return ret;
  2001			}
  2002		}
  2003	
> 2004		Return 0;
  2005	}
  2006	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-06 22:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-06 22:36 [phy:next 74/75] drivers/phy/qualcomm/phy-qcom-qmp-combo.c:2004:2: error: use of undeclared identifier 'Return' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.