From: kernel test robot <lkp@intel.com>
To: Mayur Kumar <kmayur809@gmail.com>, Ulf Hansson <ulfh@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org,
Mayur Kumar <kmayur809@gmail.com>
Subject: Re: [PATCH] mmc: core: add MMC_QUIRK_BROKEN_WRITE_ZEROES for ESMT eMMC
Date: Sat, 8 Aug 2026 18:56:36 +0800 [thread overview]
Message-ID: <202608081816.H4q7m1Wl-lkp@intel.com> (raw)
In-Reply-To: <20260725185129.43397-1-kmayur809@gmail.com>
Hi Mayur,
kernel test robot noticed the following build errors:
[auto build test ERROR on linus/master]
[also build test ERROR on v7.2-rc6 next-20260807]
[cannot apply to ulf-hansson-mmc-mirror/next]
[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/Mayur-Kumar/mmc-core-add-MMC_QUIRK_BROKEN_WRITE_ZEROES-for-ESMT-eMMC/20260807-212705
base: linus/master
patch link: https://lore.kernel.org/r/20260725185129.43397-1-kmayur809%40gmail.com
patch subject: [PATCH] mmc: core: add MMC_QUIRK_BROKEN_WRITE_ZEROES for ESMT eMMC
config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20260808/202608081816.H4q7m1Wl-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 12df34b8469b8095359de8c249cb1b2753fadeea)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260808/202608081816.H4q7m1Wl-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/202608081816.H4q7m1Wl-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/mmc/core/queue.c:195:23: error: use of undeclared identifier 'MMC_QUIRK_BROKEN_WRITE_ZEROS'
195 | !(card->quirks & MMC_QUIRK_BROKEN_WRITE_ZEROS))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
vim +/MMC_QUIRK_BROKEN_WRITE_ZEROS +195 drivers/mmc/core/queue.c
176
177 static void mmc_queue_setup_discard(struct mmc_card *card,
178 struct queue_limits *lim)
179 {
180 unsigned max_discard;
181
182 max_discard = mmc_calc_max_discard(card);
183 if (!max_discard)
184 return;
185
186 lim->max_hw_discard_sectors = max_discard;
187 if (mmc_card_can_secure_erase_trim(card)) {
188 if (mmc_card_fixed_secure_erase_trim_time(card))
189 lim->max_secure_erase_sectors = UINT_MAX >> card->erase_shift;
190 else
191 lim->max_secure_erase_sectors = max_discard;
192 }
193
194 if (mmc_card_can_trim(card) && card->erased_byte == 0 &&
> 195 !(card->quirks & MMC_QUIRK_BROKEN_WRITE_ZEROS))
196 lim->max_write_zeroes_sectors = max_discard;
197
198 /* granularity must not be greater than max. discard */
199 if (card->pref_erase > max_discard)
200 lim->discard_granularity = SECTOR_SIZE;
201 else
202 lim->discard_granularity = card->pref_erase << 9;
203 }
204
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
parent reply other threads:[~2026-08-08 10:57 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20260725185129.43397-1-kmayur809@gmail.com>]
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=202608081816.H4q7m1Wl-lkp@intel.com \
--to=lkp@intel.com \
--cc=kmayur809@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=ulfh@kernel.org \
/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