From: kernel test robot <lkp@intel.com>
To: Bart Van Assche <bvanassche@acm.org>,
"Martin K . Petersen" <martin.petersen@oracle.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-scsi@vger.kernel.org, Bart Van Assche <bvanassche@acm.org>,
"James E.J. Bottomley" <James.Bottomley@hansenpartnership.com>,
Peter Wang <peter.wang@mediatek.com>,
Avri Altman <avri.altman@sandisk.com>,
Bean Huo <beanhuo@micron.com>,
Adrian Hunter <adrian.hunter@intel.com>,
"Bao D. Nguyen" <quic_nguyenb@quicinc.com>
Subject: Re: [PATCH 3/7] ufs: core: Redirect clock gating to RPM
Date: Sat, 17 Jan 2026 10:05:16 +0800 [thread overview]
Message-ID: <202601170903.r8uLs14E-lkp@intel.com> (raw)
In-Reply-To: <20260116182628.3255116-4-bvanassche@acm.org>
Hi Bart,
kernel test robot noticed the following build errors:
[auto build test ERROR on jejb-scsi/for-next]
[also build test ERROR on mkp-scsi/for-next linus/master v6.19-rc5 next-20260116]
[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/Bart-Van-Assche/ufs-core-Change-the-type-of-an-ufshcd_clkgate_delay_set-argument/20260117-022907
base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
patch link: https://lore.kernel.org/r/20260116182628.3255116-4-bvanassche%40acm.org
patch subject: [PATCH 3/7] ufs: core: Redirect clock gating to RPM
config: hexagon-randconfig-002-20260117 (https://download.01.org/0day-ci/archive/20260117/202601170903.r8uLs14E-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9b8addffa70cee5b2acc5454712d9cf78ce45710)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260117/202601170903.r8uLs14E-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/202601170903.r8uLs14E-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/ufs/core/ufshcd.c:2120:22: error: no member named 'use_autosuspend' in 'struct dev_pm_info'
2120 | if (!rpm_dev->power.use_autosuspend)
| ~~~~~~~~~~~~~~ ^
>> drivers/ufs/core/ufshcd.c:2123:48: error: no member named 'autosuspend_delay' in 'struct dev_pm_info'
2123 | return sysfs_emit(buf, "%u\n", rpm_dev->power.autosuspend_delay);
| ~~~~~~~~~~~~~~ ^
drivers/ufs/core/ufshcd.c:2143:22: error: no member named 'use_autosuspend' in 'struct dev_pm_info'
2143 | if (!rpm_dev->power.use_autosuspend)
| ~~~~~~~~~~~~~~ ^
>> drivers/ufs/core/ufshcd.c:2158:57: error: no member named 'runtime_auto' in 'struct dev_pm_info'
2158 | return sysfs_emit(buf, "%d\n", ufs_rpm_dev(hba)->power.runtime_auto);
| ~~~~~~~~~~~~~~~~~~~~~~~ ^
drivers/ufs/core/ufshcd.c:10656:44: warning: shift count >= width of type [-Wshift-count-overflow]
10656 | if (!dma_set_mask_and_coherent(hba->dev, DMA_BIT_MASK(64)))
| ^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:93:54: note: expanded from macro 'DMA_BIT_MASK'
93 | #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
| ^ ~~~
1 warning and 4 errors generated.
vim +2120 drivers/ufs/core/ufshcd.c
2113
2114 static ssize_t ufshcd_clkgate_delay_show(struct device *dev,
2115 struct device_attribute *attr, char *buf)
2116 {
2117 struct ufs_hba *hba = dev_get_drvdata(dev);
2118 struct device *rpm_dev = ufs_rpm_dev(hba);
2119
> 2120 if (!rpm_dev->power.use_autosuspend)
2121 return -EIO;
2122
> 2123 return sysfs_emit(buf, "%u\n", rpm_dev->power.autosuspend_delay);
2124 }
2125
2126 void ufshcd_clkgate_delay_set(struct ufs_hba *hba, unsigned long value)
2127 {
2128 struct device *rpm_dev = ufs_rpm_dev(hba);
2129
2130 device_lock(rpm_dev);
2131 pm_runtime_set_autosuspend_delay(rpm_dev, value);
2132 device_unlock(rpm_dev);
2133 }
2134 EXPORT_SYMBOL_GPL(ufshcd_clkgate_delay_set);
2135
2136 static ssize_t ufshcd_clkgate_delay_store(struct device *dev,
2137 struct device_attribute *attr, const char *buf, size_t count)
2138 {
2139 struct ufs_hba *hba = dev_get_drvdata(dev);
2140 struct device *rpm_dev = ufs_rpm_dev(hba);
2141 unsigned long value;
2142
2143 if (!rpm_dev->power.use_autosuspend)
2144 return -EIO;
2145
2146 if (kstrtoul(buf, 0, &value))
2147 return -EINVAL;
2148
2149 ufshcd_clkgate_delay_set(hba, value);
2150 return count;
2151 }
2152
2153 static ssize_t ufshcd_clkgate_enable_show(struct device *dev,
2154 struct device_attribute *attr, char *buf)
2155 {
2156 struct ufs_hba *hba = dev_get_drvdata(dev);
2157
> 2158 return sysfs_emit(buf, "%d\n", ufs_rpm_dev(hba)->power.runtime_auto);
2159 }
2160
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-01-17 2:05 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-16 18:26 [PATCH 0/7] ufs: Remove the clock gating code Bart Van Assche
2026-01-16 18:26 ` [PATCH 1/7] ufs: core: Change the type of an ufshcd_clkgate_delay_set() argument Bart Van Assche
2026-01-16 18:26 ` [PATCH 2/7] ufs: host: mediatek: Use ufshcd_clkgate_delay_set() Bart Van Assche
2026-01-16 18:26 ` [PATCH 3/7] ufs: core: Redirect clock gating to RPM Bart Van Assche
2026-01-17 2:05 ` kernel test robot [this message]
2026-01-17 2:16 ` kernel test robot
2026-01-16 18:26 ` [PATCH 4/7] ufs: core: Switch from " Bart Van Assche
2026-01-16 18:26 ` [PATCH 5/7] ufs: core: Remove unused code and data structures Bart Van Assche
2026-01-17 2:16 ` kernel test robot
2026-01-16 18:26 ` [PATCH 6/7] ufs: core: Remove superfluous ufshcd_{hold,release}() calls Bart Van Assche
2026-01-16 18:26 ` [PATCH 7/7] ufs: core: Remove ufshcd_{hold,release}() calls from the I/O path Bart Van Assche
2026-01-22 17:30 ` [PATCH 0/7] ufs: Remove the clock gating code Manivannan Sadhasivam
2026-01-23 7:26 ` Peter Wang (王信友)
2026-01-23 23:27 ` Bart Van Assche
2026-01-26 3:44 ` Peter Wang (王信友)
2026-01-26 22:27 ` Bart Van Assche
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=202601170903.r8uLs14E-lkp@intel.com \
--to=lkp@intel.com \
--cc=James.Bottomley@hansenpartnership.com \
--cc=adrian.hunter@intel.com \
--cc=avri.altman@sandisk.com \
--cc=beanhuo@micron.com \
--cc=bvanassche@acm.org \
--cc=linux-scsi@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=martin.petersen@oracle.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=peter.wang@mediatek.com \
--cc=quic_nguyenb@quicinc.com \
/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