[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202507060206.iiBP6CQi-lkp@intel.com>
Date: Sun, 6 Jul 2025 02:46:11 +0800
From: kernel test robot <lkp@...el.com>
To: Ze Huang <huang.ze@...ux.dev>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Yixun Lan <dlan@...too.org>,
Thinh Nguyen <Thinh.Nguyen@...opsys.com>,
Philipp Zabel <p.zabel@...gutronix.de>
Cc: oe-kbuild-all@...ts.linux.dev, linux-usb@...r.kernel.org,
devicetree@...r.kernel.org, linux-riscv@...ts.infradead.org,
spacemit@...ts.linux.dev, linux-kernel@...r.kernel.org,
Ze Huang <huang.ze@...ux.dev>
Subject: Re: [PATCH v5 2/2] usb: dwc3: add generic driver to support flattened
Hi Ze,
kernel test robot noticed the following build warnings:
[auto build test WARNING on d9946fe286439c2aeaa7953b8c316efe5b83d515]
url: https://github.com/intel-lab-lkp/linux/commits/Ze-Huang/dt-bindings-usb-dwc3-add-support-for-SpacemiT-K1/20250705-210419
base: d9946fe286439c2aeaa7953b8c316efe5b83d515
patch link: https://lore.kernel.org/r/20250705-dwc3_generic-v5-2-9dbc53ea53d2%40linux.dev
patch subject: [PATCH v5 2/2] usb: dwc3: add generic driver to support flattened
config: arc-randconfig-001-20250706 (https://download.01.org/0day-ci/archive/20250706/202507060206.iiBP6CQi-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250706/202507060206.iiBP6CQi-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 <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507060206.iiBP6CQi-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/usb/dwc3/dwc3-generic-plat.c:151:12: warning: 'dwc3_generic_runtime_idle' defined but not used [-Wunused-function]
static int dwc3_generic_runtime_idle(struct device *dev)
^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/usb/dwc3/dwc3-generic-plat.c:144:12: warning: 'dwc3_generic_runtime_resume' defined but not used [-Wunused-function]
static int dwc3_generic_runtime_resume(struct device *dev)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/usb/dwc3/dwc3-generic-plat.c:137:12: warning: 'dwc3_generic_runtime_suspend' defined but not used [-Wunused-function]
static int dwc3_generic_runtime_suspend(struct device *dev)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/usb/dwc3/dwc3-generic-plat.c:121:12: warning: 'dwc3_generic_resume' defined but not used [-Wunused-function]
static int dwc3_generic_resume(struct device *dev)
^~~~~~~~~~~~~~~~~~~
>> drivers/usb/dwc3/dwc3-generic-plat.c:107:12: warning: 'dwc3_generic_suspend' defined but not used [-Wunused-function]
static int dwc3_generic_suspend(struct device *dev)
^~~~~~~~~~~~~~~~~~~~
vim +/dwc3_generic_runtime_idle +151 drivers/usb/dwc3/dwc3-generic-plat.c
106
> 107 static int dwc3_generic_suspend(struct device *dev)
108 {
109 struct dwc3_generic *dwc3 = dev_get_drvdata(dev);
110 int ret;
111
112 ret = dwc3_pm_suspend(&dwc3->dwc);
113 if (ret)
114 return ret;
115
116 clk_bulk_disable_unprepare(dwc3->num_clocks, dwc3->clks);
117
118 return 0;
119 }
120
> 121 static int dwc3_generic_resume(struct device *dev)
122 {
123 struct dwc3_generic *dwc3 = dev_get_drvdata(dev);
124 int ret;
125
126 ret = clk_bulk_prepare_enable(dwc3->num_clocks, dwc3->clks);
127 if (ret)
128 return ret;
129
130 ret = dwc3_pm_resume(&dwc3->dwc);
131 if (ret)
132 return ret;
133
134 return 0;
135 }
136
> 137 static int dwc3_generic_runtime_suspend(struct device *dev)
138 {
139 struct dwc3_generic *dwc3 = dev_get_drvdata(dev);
140
141 return dwc3_runtime_suspend(&dwc3->dwc);
142 }
143
> 144 static int dwc3_generic_runtime_resume(struct device *dev)
145 {
146 struct dwc3_generic *dwc3 = dev_get_drvdata(dev);
147
148 return dwc3_runtime_resume(&dwc3->dwc);
149 }
150
> 151 static int dwc3_generic_runtime_idle(struct device *dev)
152 {
153 struct dwc3_generic *dwc3 = dev_get_drvdata(dev);
154
155 return dwc3_runtime_idle(&dwc3->dwc);
156 }
157
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists