Hi Henry,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net/master]
[also build test ERROR on net-next/master linus/master ipvs/master v5.9-rc5
next-20200917]
[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/Henry-Ptasinski/net-sctp-Fix-IPv...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git
5f6857e808a8bd078296575b417c4b9d160b9779
config: arm64-randconfig-r026-20200917 (attached as .config)
compiler: aarch64-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
net/sctp/socket.c: In function 'sctp_copy_descendant':
> net/sctp/socket.c:9226:27: error: invalid application of
'sizeof' to incomplete type 'struct sctp6_sock'
9226 |
ancestor_size += sizeof(struct sctp6_sock);
| ^~~~~~
#
https://github.com/0day-ci/linux/commit/3d29e6e42f7bbc9671df460a4e8250710...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Henry-Ptasinski/net-sctp-Fix-IPv6-ancestor_size-calc-in-sctp_copy_descendant/20200918-100033
git checkout 3d29e6e42f7bbc9671df460a4e8250710db5fd28
vim +9226 net/sctp/socket.c
9219
9220 static inline void sctp_copy_descendant(struct sock *sk_to,
9221 const struct sock *sk_from)
9222 {
9223 size_t ancestor_size = sizeof(struct inet_sock);
9224
9225 if (sk_from->sk_family == PF_INET6)
9226 ancestor_size += sizeof(struct sctp6_sock);
9227 else
9228 ancestor_size += sizeof(struct sctp_sock);
9229
9230 ancestor_size -= offsetof(struct sctp_sock, pd_lobby);
9231
9232 __inet_sk_copy_descendant(sk_to, sk_from, ancestor_size);
9233 }
9234
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org