From: kernel test robot <lkp@intel.com>
To: Zheng Yongjun <zhengyongjun3@huawei.com>,
jason.wessel@windriver.com, daniel.thompson@linaro.org,
kgdb-bugreport@lists.sourceforge.net,
linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, dianders@chromium.org,
Zheng Yongjun <zhengyongjun3@huawei.com>
Subject: Re: [PATCH -next] misc: use DIV_ROUND_UP macro to do calculation
Date: Tue, 29 Dec 2020 10:41:33 +0800 [thread overview]
Message-ID: <202012291047.WfIHp8hU-lkp@intel.com> (raw)
In-Reply-To: <20201222133344.19753-1-zhengyongjun3@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 4240 bytes --]
Hi Zheng,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on next-20201222]
url: https://github.com/0day-ci/linux/commits/Zheng-Yongjun/misc-use-DIV_ROUND_UP-macro-to-do-calculation/20201222-220138
base: 6c3eb1b174c07bcaa927003e8bc91e81ab1d5a9e
config: microblaze-randconfig-r022-20201221 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/5b74808b6866933e6adc4d6475429e77c3ccbb23
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Zheng-Yongjun/misc-use-DIV_ROUND_UP-macro-to-do-calculation/20201222-220138
git checkout 5b74808b6866933e6adc4d6475429e77c3ccbb23
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze
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 >>):
In file included from include/vdso/const.h:5,
from include/linux/const.h:4,
from include/linux/bits.h:5,
from include/linux/bitops.h:6,
from include/linux/kernel.h:11,
from drivers/misc/kgdbts.c:85:
>> drivers/misc/kgdbts.c:143:31: error: expected ')' before 'i'
143 | sizeof(unsigned long)i)];
| ^
include/uapi/linux/const.h:34:46: note: in definition of macro '__KERNEL_DIV_ROUND_UP'
34 | #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
| ^
drivers/misc/kgdbts.c:142:38: note: in expansion of macro 'DIV_ROUND_UP'
142 | static unsigned long kgdbts_gdb_regs[DIV_ROUND_UP(NUMREGBYTES,
| ^~~~~~~~~~~~
include/uapi/linux/const.h:34:45: note: to match this '('
34 | #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
| ^
include/linux/math.h:36:22: note: in expansion of macro '__KERNEL_DIV_ROUND_UP'
36 | #define DIV_ROUND_UP __KERNEL_DIV_ROUND_UP
| ^~~~~~~~~~~~~~~~~~~~~
drivers/misc/kgdbts.c:142:38: note: in expansion of macro 'DIV_ROUND_UP'
142 | static unsigned long kgdbts_gdb_regs[DIV_ROUND_UP(NUMREGBYTES,
| ^~~~~~~~~~~~
>> drivers/misc/kgdbts.c:143:31: error: expected ')' before 'i'
143 | sizeof(unsigned long)i)];
| ^
include/uapi/linux/const.h:34:57: note: in definition of macro '__KERNEL_DIV_ROUND_UP'
34 | #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
| ^
drivers/misc/kgdbts.c:142:38: note: in expansion of macro 'DIV_ROUND_UP'
142 | static unsigned long kgdbts_gdb_regs[DIV_ROUND_UP(NUMREGBYTES,
| ^~~~~~~~~~~~
include/uapi/linux/const.h:34:56: note: to match this '('
34 | #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
| ^
include/linux/math.h:36:22: note: in expansion of macro '__KERNEL_DIV_ROUND_UP'
36 | #define DIV_ROUND_UP __KERNEL_DIV_ROUND_UP
| ^~~~~~~~~~~~~~~~~~~~~
drivers/misc/kgdbts.c:142:38: note: in expansion of macro 'DIV_ROUND_UP'
142 | static unsigned long kgdbts_gdb_regs[DIV_ROUND_UP(NUMREGBYTES,
| ^~~~~~~~~~~~
vim +143 drivers/misc/kgdbts.c
140
141 /* Storage for the registers, in GDB format. */
142 static unsigned long kgdbts_gdb_regs[DIV_ROUND_UP(NUMREGBYTES,
> 143 sizeof(unsigned long)i)];
144 static struct pt_regs kgdbts_regs;
145
---
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: 35984 bytes --]
prev parent reply other threads:[~2020-12-29 2:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-22 13:33 [PATCH -next] misc: use DIV_ROUND_UP macro to do calculation Zheng Yongjun
2020-12-22 17:11 ` Daniel Thompson
2020-12-29 2:41 ` kernel test robot [this message]
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=202012291047.WfIHp8hU-lkp@intel.com \
--to=lkp@intel.com \
--cc=daniel.thompson@linaro.org \
--cc=dianders@chromium.org \
--cc=jason.wessel@windriver.com \
--cc=kbuild-all@lists.01.org \
--cc=kgdb-bugreport@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=zhengyongjun3@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;
as well as URLs for NNTP newsgroup(s).