From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH rdma-next v3 4/4] RDMA/uverbs: Expose the new GID query API to user space
Date: Fri, 25 Sep 2020 04:51:55 +0800 [thread overview]
Message-ID: <202009250450.VYsoy5X2%lkp@intel.com> (raw)
In-Reply-To: <20200923165015.2491894-5-leon@kernel.org>
[-- Attachment #1: Type: text/plain, Size: 4218 bytes --]
Hi Leon,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on rdma/for-next]
[also build test ERROR on v5.9-rc6 next-20200924]
[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/Leon-Romanovsky/Query-GID-table-API/20200924-005056
base: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
config: x86_64-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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 drivers/infiniband/core/uverbs_std_types_device.c:6:
include/linux/overflow.h: In function 'array_size':
>> include/linux/overflow.h:258:10: error: 'SIZE_MAX' undeclared (first use in this function)
258 | return SIZE_MAX;
| ^~~~~~~~
include/linux/overflow.h:6:1: note: 'SIZE_MAX' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
5 | #include <linux/compiler.h>
+++ |+#include <stdint.h>
6 |
include/linux/overflow.h:258:10: note: each undeclared identifier is reported only once for each function it appears in
258 | return SIZE_MAX;
| ^~~~~~~~
include/linux/overflow.h: In function 'array3_size':
include/linux/overflow.h:280:10: error: 'SIZE_MAX' undeclared (first use in this function)
280 | return SIZE_MAX;
| ^~~~~~~~
include/linux/overflow.h:280:10: note: 'SIZE_MAX' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
include/linux/overflow.h: In function '__ab_c_size':
include/linux/overflow.h:296:10: error: 'SIZE_MAX' undeclared (first use in this function)
296 | return SIZE_MAX;
| ^~~~~~~~
include/linux/overflow.h:296:10: note: 'SIZE_MAX' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
# https://github.com/0day-ci/linux/commit/061c6cfb4cc62f86ad694a30a3f404723e099c7d
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Leon-Romanovsky/Query-GID-table-API/20200924-005056
git checkout 061c6cfb4cc62f86ad694a30a3f404723e099c7d
vim +/SIZE_MAX +258 include/linux/overflow.h
0c66847793d198 Jason Gunthorpe 2018-08-01 241
610b15c50e86eb Kees Cook 2018-05-07 242 /**
610b15c50e86eb Kees Cook 2018-05-07 243 * array_size() - Calculate size of 2-dimensional array.
610b15c50e86eb Kees Cook 2018-05-07 244 *
610b15c50e86eb Kees Cook 2018-05-07 245 * @a: dimension one
610b15c50e86eb Kees Cook 2018-05-07 246 * @b: dimension two
610b15c50e86eb Kees Cook 2018-05-07 247 *
610b15c50e86eb Kees Cook 2018-05-07 248 * Calculates size of 2-dimensional array: @a * @b.
610b15c50e86eb Kees Cook 2018-05-07 249 *
610b15c50e86eb Kees Cook 2018-05-07 250 * Returns: number of bytes needed to represent the array or SIZE_MAX on
610b15c50e86eb Kees Cook 2018-05-07 251 * overflow.
610b15c50e86eb Kees Cook 2018-05-07 252 */
610b15c50e86eb Kees Cook 2018-05-07 253 static inline __must_check size_t array_size(size_t a, size_t b)
610b15c50e86eb Kees Cook 2018-05-07 254 {
610b15c50e86eb Kees Cook 2018-05-07 255 size_t bytes;
610b15c50e86eb Kees Cook 2018-05-07 256
610b15c50e86eb Kees Cook 2018-05-07 257 if (check_mul_overflow(a, b, &bytes))
610b15c50e86eb Kees Cook 2018-05-07 @258 return SIZE_MAX;
610b15c50e86eb Kees Cook 2018-05-07 259
610b15c50e86eb Kees Cook 2018-05-07 260 return bytes;
610b15c50e86eb Kees Cook 2018-05-07 261 }
610b15c50e86eb Kees Cook 2018-05-07 262
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 45564 bytes --]
next prev parent reply other threads:[~2020-09-24 20:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-23 16:50 [PATCH rdma-next v3 0/4] Query GID table API Leon Romanovsky
2020-09-23 16:50 ` [PATCH rdma-next v3 1/4] RDMA/core: Change rdma_get_gid_attr returned error code Leon Romanovsky
2020-09-23 16:50 ` [PATCH rdma-next v3 2/4] RDMA/core: Modify enum ib_gid_type and enum rdma_network_type Leon Romanovsky
2020-09-23 16:50 ` [PATCH rdma-next v3 3/4] RDMA/core: Introduce new GID table query API Leon Romanovsky
2020-10-02 0:03 ` Jason Gunthorpe
2020-10-02 11:16 ` Leon Romanovsky
2020-09-23 16:50 ` [PATCH rdma-next v3 4/4] RDMA/uverbs: Expose the new GID query API to user space Leon Romanovsky
2020-09-24 20:51 ` kernel test robot [this message]
2020-10-02 0:32 ` [PATCH rdma-next v3 0/4] Query GID table API Jason Gunthorpe
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=202009250450.VYsoy5X2%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.