From: kernel test robot <lkp@intel.com>
To: Guohua Zhong <zhongguohua1@huawei.com>,
patrick@baymotion.com, joern@lazybastard.org,
miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com
Cc: wangle6@huawei.com, young.liuyang@huawei.com,
kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
linux-mtd@lists.infradead.org, nixiaoming@huawei.com
Subject: Re: [PATCH] phram: Allow the user to set the erase page size.
Date: Tue, 24 Nov 2020 17:12:04 +0800 [thread overview]
Message-ID: <202011241736.9OeWc6hQ-lkp@intel.com> (raw)
In-Reply-To: <20201124061053.10812-1-zhongguohua1@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 3344 bytes --]
Hi Guohua,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.10-rc5 next-20201123]
[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]
url: https://github.com/0day-ci/linux/commits/Guohua-Zhong/phram-Allow-the-user-to-set-the-erase-page-size/20201124-141421
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git d5beb3140f91b1c8a3d41b14d729aefa4dcc58bc
config: i386-randconfig-r034-20201124 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/6ec7a653a663b6a638f767aa844a685fdd1463d2
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Guohua-Zhong/phram-Allow-the-user-to-set-the-erase-page-size/20201124-141421
git checkout 6ec7a653a663b6a638f767aa844a685fdd1463d2
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
ld: drivers/mtd/devices/phram.o: in function `phram_setup':
>> drivers/mtd/devices/phram.c:266: undefined reference to `__umoddi3'
vim +266 drivers/mtd/devices/phram.c
215
216 static int phram_setup(const char *val)
217 {
218 char buf[64 + 20 + 20 + 20], *str = buf;
219 char *token[4];
220 char *name;
221 uint64_t start;
222 uint64_t len;
223 uint64_t erasesize = PAGE_SIZE;
224 int i, ret;
225
226 if (strnlen(val, sizeof(buf)) >= sizeof(buf))
227 parse_err("parameter too long\n");
228
229 strcpy(str, val);
230 kill_final_newline(str);
231
232 for (i = 0; i < 4; i++)
233 token[i] = strsep(&str, ",");
234
235 if (str)
236 parse_err("too many arguments\n");
237
238 if (!token[2])
239 parse_err("not enough arguments\n");
240
241 ret = parse_name(&name, token[0]);
242 if (ret)
243 return ret;
244
245 ret = parse_num64(&start, token[1]);
246 if (ret) {
247 parse_err("illegal start address\n");
248 goto error;
249 }
250
251 ret = parse_num64(&len, token[2]);
252 if (ret) {
253 parse_err("illegal device length\n");
254 goto error;
255 }
256
257 if (token[3]) {
258 ret = parse_num64(&erasesize, token[3]);
259 if (ret) {
260 parse_err("illegal erasesize\n");
261 goto error;
262 }
263 }
264
265 if (len == 0 || erasesize == 0 || erasesize > len
> 266 || erasesize > UINT_MAX || len % erasesize != 0) {
267 parse_err("illegal erasesize or len\n");
268 goto error;
269 }
270
271 ret = register_device(name, start, len, (uint32_t)erasesize);
272 if (ret)
273 goto error;
274
275 pr_info("%s device: %#llx at %#llx for erasesize %#llx\n", name, len, start, erasesize);
276 return 0;
277
278 error:
279 kfree(name);
280 return ret;
281 }
282
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36654 bytes --]
[-- Attachment #3: Type: text/plain, Size: 144 bytes --]
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
next prev parent reply other threads:[~2020-11-24 9:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-24 6:10 [PATCH] phram: Allow the user to set the erase page size Guohua Zhong
2020-11-24 8:51 ` kernel test robot
2020-11-24 14:27 ` Guohua Zhong
2020-11-24 9:12 ` kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-02-15 20:35 Patrick O'Grady
2013-02-15 19:42 ` Jörn Engel
2013-03-02 15:16 ` Artem Bityutskiy
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=202011241736.9OeWc6hQ-lkp@intel.com \
--to=lkp@intel.com \
--cc=joern@lazybastard.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=miquel.raynal@bootlin.com \
--cc=nixiaoming@huawei.com \
--cc=patrick@baymotion.com \
--cc=richard@nod.at \
--cc=vigneshr@ti.com \
--cc=wangle6@huawei.com \
--cc=young.liuyang@huawei.com \
--cc=zhongguohua1@huawei.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