Linux SpacemiT device drivers
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ze Huang <huang.ze@linux.dev>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>, Yixun Lan <dlan@gentoo.org>,
	Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
	Philipp Zabel <p.zabel@pengutronix.de>
Cc: oe-kbuild-all@lists.linux.dev, linux-usb@vger.kernel.org,
	devicetree@vger.kernel.org, linux-riscv@lists.infradead.org,
	spacemit@lists.linux.dev, linux-kernel@vger.kernel.org,
	Ze Huang <huang.ze@linux.dev>
Subject: Re: [PATCH v5 2/2] usb: dwc3: add generic driver to support flattened
Date: Sun, 6 Jul 2025 02:46:11 +0800	[thread overview]
Message-ID: <202507060206.iiBP6CQi-lkp@intel.com> (raw)
In-Reply-To: <20250705-dwc3_generic-v5-2-9dbc53ea53d2@linux.dev>

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@intel.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

  reply	other threads:[~2025-07-05 18:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-05 13:01 [PATCH v5 0/2] Add SpacemiT K1 USB3.0 host controller support Ze Huang
2025-07-05 13:01 ` [PATCH v5 1/2] dt-bindings: usb: dwc3: add support for SpacemiT K1 Ze Huang
2025-07-05 13:10   ` Ze Huang
2025-07-06  7:54     ` Krzysztof Kozlowski
2025-07-05 13:01 ` [PATCH v5 2/2] usb: dwc3: add generic driver to support flattened Ze Huang
2025-07-05 18:46   ` kernel test robot [this message]
2025-07-11 23:37   ` Thinh Nguyen
2025-07-12  7:30     ` Ze Huang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202507060206.iiBP6CQi-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Thinh.Nguyen@synopsys.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlan@gentoo.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=huang.ze@linux.dev \
    --cc=krzk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    --cc=spacemit@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox