From: Florian Westphal <fw@strlen.de>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [jkirsher-next-queue:dev-queue 1901/1959] include/linux/kernel.h:47:38: warning: division by zero
Date: Sat, 1 Aug 2020 16:41:02 +0200 [thread overview]
Message-ID: <20200801144102.GI5271@breakpoint.cc> (raw)
In-Reply-To: <202008012237.F1NJb2jD%lkp@intel.com>
kernel test robot <lkp@intel.com> wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue.git dev-queue
> head: 9217a41c8ac7e1ca23399f9af7455f1085df9594
> commit: 9466a1ccebbe54ac57fb8a89c2b4b854826546a8 [1901/1959] mptcp: enable JOIN requests even if cookies are in use
> config: parisc-randconfig-c004-20200731 (attached as .config)
> compiler: hppa-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
> git checkout 9466a1ccebbe54ac57fb8a89c2b4b854826546a8
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All warnings (new ones prefixed by >>):
>
> In file included from include/linux/skbuff.h:13,
> from net/mptcp/syncookies.c:2:
> net/mptcp/syncookies.c: In function 'mptcp_join_cookie_init':
> >> include/linux/kernel.h:47:38: warning: division by zero [-Wdiv-by-zero]
> 47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
I forgot ARRAY_SIZE can't be used for spinlock_t arrays because they are
0 on UP. I've sumitted a build fix.
WARNING: multiple messages have this Message-ID (diff)
From: Florian Westphal <fw@strlen.de>
To: kbuild-all@lists.01.org
Subject: Re: [jkirsher-next-queue:dev-queue 1901/1959] include/linux/kernel.h:47:38: warning: division by zero
Date: Sat, 01 Aug 2020 16:41:02 +0200 [thread overview]
Message-ID: <20200801144102.GI5271@breakpoint.cc> (raw)
In-Reply-To: <202008012237.F1NJb2jD%lkp@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1435 bytes --]
kernel test robot <lkp@intel.com> wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue.git dev-queue
> head: 9217a41c8ac7e1ca23399f9af7455f1085df9594
> commit: 9466a1ccebbe54ac57fb8a89c2b4b854826546a8 [1901/1959] mptcp: enable JOIN requests even if cookies are in use
> config: parisc-randconfig-c004-20200731 (attached as .config)
> compiler: hppa-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
> git checkout 9466a1ccebbe54ac57fb8a89c2b4b854826546a8
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All warnings (new ones prefixed by >>):
>
> In file included from include/linux/skbuff.h:13,
> from net/mptcp/syncookies.c:2:
> net/mptcp/syncookies.c: In function 'mptcp_join_cookie_init':
> >> include/linux/kernel.h:47:38: warning: division by zero [-Wdiv-by-zero]
> 47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
I forgot ARRAY_SIZE can't be used for spinlock_t arrays because they are
0 on UP. I've sumitted a build fix.
next prev parent reply other threads:[~2020-08-01 14:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-01 14:09 [Intel-wired-lan] [jkirsher-next-queue:dev-queue 1901/1959] include/linux/kernel.h:47:38: warning: division by zero kernel test robot
2020-08-01 14:09 ` kernel test robot
2020-08-01 14:41 ` Florian Westphal [this message]
2020-08-01 14:41 ` Florian Westphal
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=20200801144102.GI5271@breakpoint.cc \
--to=fw@strlen.de \
--cc=intel-wired-lan@osuosl.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.