From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [arnd-playground:y2038-endgame 87/88] fs/compat_ioctl.c:316:23: sparse: sparse: expected ; at end of declaration
Date: Fri, 08 Nov 2019 21:59:02 +0800 [thread overview]
Message-ID: <201911082155.xOGLeo7z%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 6570 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git y2038-endgame
head: 6f76dcc2f041801fc5ce6e418ef8912a24244436
commit: f3fe428cb97091033eb9eeb4262fa57ed341a027 [87/88] y2038: remove unused time32 interfaces
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-21-gb31adac-dirty
git checkout f3fe428cb97091033eb9eeb4262fa57ed341a027
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> fs/compat_ioctl.c:316:23: sparse: sparse: expected ; at end of declaration
fs/compat_ioctl.c:316:23: sparse: sparse: Expected } at end of struct-union-enum-specifier
fs/compat_ioctl.c:316:23: sparse: sparse: got xmit_idle
fs/compat_ioctl.c:317:23: sparse: sparse: Expected ; at end of declaration
fs/compat_ioctl.c:317:23: sparse: sparse: got recv_idle
fs/compat_ioctl.c:318:1: sparse: sparse: Expected ; at the end of type declaration
fs/compat_ioctl.c:318:1: sparse: sparse: got }
fs/compat_ioctl.c:335:21: sparse: sparse: no member 'xmit_idle' in struct ppp_idle32
fs/compat_ioctl.c:335:21: sparse: sparse: no member 'xmit_idle' in struct ppp_idle32
fs/compat_ioctl.c:335:21: sparse: sparse: no member 'xmit_idle' in struct ppp_idle32
fs/compat_ioctl.c:335:21: sparse: sparse: no member 'xmit_idle' in struct ppp_idle32
fs/compat_ioctl.c:335:21: sparse: sparse: no member 'xmit_idle' in struct ppp_idle32
fs/compat_ioctl.c:335:21: sparse: sparse: no member 'xmit_idle' in struct ppp_idle32
fs/compat_ioctl.c:335:21: sparse: sparse: no member 'xmit_idle' in struct ppp_idle32
fs/compat_ioctl.c:335:21: sparse: sparse: no member 'xmit_idle' in struct ppp_idle32
fs/compat_ioctl.c:335:21: sparse: sparse: no member 'xmit_idle' in struct ppp_idle32
fs/compat_ioctl.c:335:21: sparse: sparse: no member 'xmit_idle' in struct ppp_idle32
fs/compat_ioctl.c:335:21: sparse: sparse: no member 'xmit_idle' in struct ppp_idle32
fs/compat_ioctl.c:335:21: sparse: sparse: no member 'xmit_idle' in struct ppp_idle32
fs/compat_ioctl.c:335:21: sparse: sparse: no member 'xmit_idle' in struct ppp_idle32
>> fs/compat_ioctl.c:335:21: sparse: sparse: incompatible types for 'case' statement
>> fs/compat_ioctl.c:335:21: sparse: sparse: incompatible types for 'case' statement
>> fs/compat_ioctl.c:335:21: sparse: sparse: incompatible types for 'case' statement
>> fs/compat_ioctl.c:335:21: sparse: sparse: incompatible types for 'case' statement
fs/compat_ioctl.c:336:21: sparse: sparse: no member 'recv_idle' in struct ppp_idle32
fs/compat_ioctl.c:336:21: sparse: sparse: no member 'recv_idle' in struct ppp_idle32
fs/compat_ioctl.c:336:21: sparse: sparse: no member 'recv_idle' in struct ppp_idle32
fs/compat_ioctl.c:336:21: sparse: sparse: no member 'recv_idle' in struct ppp_idle32
fs/compat_ioctl.c:336:21: sparse: sparse: no member 'recv_idle' in struct ppp_idle32
fs/compat_ioctl.c:336:21: sparse: sparse: no member 'recv_idle' in struct ppp_idle32
fs/compat_ioctl.c:336:21: sparse: sparse: no member 'recv_idle' in struct ppp_idle32
fs/compat_ioctl.c:336:21: sparse: sparse: no member 'recv_idle' in struct ppp_idle32
fs/compat_ioctl.c:336:21: sparse: sparse: no member 'recv_idle' in struct ppp_idle32
fs/compat_ioctl.c:336:21: sparse: sparse: no member 'recv_idle' in struct ppp_idle32
fs/compat_ioctl.c:336:21: sparse: sparse: no member 'recv_idle' in struct ppp_idle32
fs/compat_ioctl.c:336:21: sparse: sparse: no member 'recv_idle' in struct ppp_idle32
fs/compat_ioctl.c:336:21: sparse: sparse: no member 'recv_idle' in struct ppp_idle32
fs/compat_ioctl.c:336:21: sparse: sparse: incompatible types for 'case' statement
fs/compat_ioctl.c:336:21: sparse: sparse: incompatible types for 'case' statement
fs/compat_ioctl.c:336:21: sparse: sparse: incompatible types for 'case' statement
fs/compat_ioctl.c:336:21: sparse: sparse: incompatible types for 'case' statement
vim +316 fs/compat_ioctl.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 314
^1da177e4c3f41 Linus Torvalds 2005-04-16 315 struct ppp_idle32 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @316 compat_time_t xmit_idle;
^1da177e4c3f41 Linus Torvalds 2005-04-16 317 compat_time_t recv_idle;
^1da177e4c3f41 Linus Torvalds 2005-04-16 318 };
^1da177e4c3f41 Linus Torvalds 2005-04-16 319 #define PPPIOCGIDLE32 _IOR('t', 63, struct ppp_idle32)
^1da177e4c3f41 Linus Torvalds 2005-04-16 320
66cf191f3eae45 Al Viro 2016-01-07 321 static int ppp_gidle(struct file *file, unsigned int cmd,
43c6e7b97f9ea0 Arnd Bergmann 2009-11-14 322 struct ppp_idle32 __user *idle32)
^1da177e4c3f41 Linus Torvalds 2005-04-16 323 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 324 struct ppp_idle __user *idle;
^1da177e4c3f41 Linus Torvalds 2005-04-16 325 __kernel_time_t xmit, recv;
^1da177e4c3f41 Linus Torvalds 2005-04-16 326 int err;
^1da177e4c3f41 Linus Torvalds 2005-04-16 327
^1da177e4c3f41 Linus Torvalds 2005-04-16 328 idle = compat_alloc_user_space(sizeof(*idle));
^1da177e4c3f41 Linus Torvalds 2005-04-16 329
66cf191f3eae45 Al Viro 2016-01-07 330 err = do_ioctl(file, PPPIOCGIDLE, (unsigned long) idle);
^1da177e4c3f41 Linus Torvalds 2005-04-16 331
^1da177e4c3f41 Linus Torvalds 2005-04-16 332 if (!err) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 333 if (get_user(xmit, &idle->xmit_idle) ||
^1da177e4c3f41 Linus Torvalds 2005-04-16 334 get_user(recv, &idle->recv_idle) ||
^1da177e4c3f41 Linus Torvalds 2005-04-16 @335 put_user(xmit, &idle32->xmit_idle) ||
^1da177e4c3f41 Linus Torvalds 2005-04-16 336 put_user(recv, &idle32->recv_idle))
^1da177e4c3f41 Linus Torvalds 2005-04-16 337 err = -EFAULT;
^1da177e4c3f41 Linus Torvalds 2005-04-16 338 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 339 return err;
^1da177e4c3f41 Linus Torvalds 2005-04-16 340 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 341
:::::: The code at line 316 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation
reply other threads:[~2019-11-08 13:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=201911082155.xOGLeo7z%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.