From: kernel test robot <lkp@intel.com>
To: Woody Lin <woodylin@google.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Todd Kjos <tkjos@android.com>
Cc: kbuild-all@lists.01.org, "Arve Hjønnevåg" <arve@android.com>,
"Martijn Coenen" <maco@android.com>,
"Joel Fernandes" <joel@joelfernandes.org>,
"Christian Brauner" <christian@brauner.io>,
"Hridya Valsaraju" <hridya@google.com>,
"Suren Baghdasaryan" <surenb@google.com>,
linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev
Subject: Re: [PATCH] ANDROID: staging: add userpanic-dev driver
Date: Thu, 26 Aug 2021 21:57:44 +0800 [thread overview]
Message-ID: <202108262128.xSDRVTrK-lkp@intel.com> (raw)
In-Reply-To: <20210826092854.58694-1-woodylin@google.com>
[-- Attachment #1: Type: text/plain, Size: 8296 bytes --]
Hi Woody,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on staging/staging-testing]
url: https://github.com/0day-ci/linux/commits/Woody-Lin/ANDROID-staging-add-userpanic-dev-driver/20210826-173040
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git a69bbd2f77a6e26b2b1c3d7fcc5c715169dc01c5
config: openrisc-randconfig-r032-20210826 (attached as .config)
compiler: or1k-linux-gcc (GCC) 11.2.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/89dde12be7959a5a75172d0609d344f104d80070
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Woody-Lin/ANDROID-staging-add-userpanic-dev-driver/20210826-173040
git checkout 89dde12be7959a5a75172d0609d344f104d80070
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=openrisc SHELL=/bin/bash drivers/staging/android/
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 >>):
drivers/staging/android/userpanic-dev.c: In function 'userpanic_device_ioctl':
drivers/staging/android/userpanic-dev.c:21:34: error: implicit declaration of function '_IOW' [-Werror=implicit-function-declaration]
21 | #define CRASH_INFO (_IOW('U', 179, struct userpanic_crash_info))
| ^~~~
drivers/staging/android/userpanic-dev.c:52:14: note: in expansion of macro 'CRASH_INFO'
52 | case CRASH_INFO:
| ^~~~~~~~~~
drivers/staging/android/userpanic-dev.c:21:49: error: expected expression before 'struct'
21 | #define CRASH_INFO (_IOW('U', 179, struct userpanic_crash_info))
| ^~~~~~
drivers/staging/android/userpanic-dev.c:52:14: note: in expansion of macro 'CRASH_INFO'
52 | case CRASH_INFO:
| ^~~~~~~~~~
drivers/staging/android/userpanic-dev.c:53:21: error: implicit declaration of function 'copy_from_user' [-Werror=implicit-function-declaration]
53 | if (copy_from_user(&crash_info, (void __user *)arg, sizeof(crash_info)))
| ^~~~~~~~~~~~~~
In file included from include/linux/printk.h:7,
from include/asm-generic/bug.h:22,
from ./arch/openrisc/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from drivers/staging/android/userpanic-dev.c:11:
include/linux/kern_levels.h:5:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:390:16: note: in expansion of macro 'KERN_ERR'
390 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/staging/android/userpanic-dev.c:61:25: note: in expansion of macro 'pr_err'
61 | pr_err("failed to strndup .title_uaddr: %d\n", PTR_ERR(title));
| ^~~~~~
include/linux/kern_levels.h:5:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:390:16: note: in expansion of macro 'KERN_ERR'
390 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/staging/android/userpanic-dev.c:69:33: note: in expansion of macro 'pr_err'
69 | pr_err("failed to strndup .msg_uaddr: %d\n", PTR_ERR(msg));
| ^~~~~~
drivers/staging/android/userpanic-dev.c: At top level:
drivers/staging/android/userpanic-dev.c:83:21: error: variable 'userpanic_device_fops' has initializer but incomplete type
83 | static const struct file_operations userpanic_device_fops = {
| ^~~~~~~~~~~~~~~
drivers/staging/android/userpanic-dev.c:84:10: error: 'const struct file_operations' has no member named 'owner'
84 | .owner = THIS_MODULE,
| ^~~~~
In file included from include/linux/linkage.h:7,
from include/linux/printk.h:8,
from include/asm-generic/bug.h:22,
from ./arch/openrisc/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from drivers/staging/android/userpanic-dev.c:11:
include/linux/export.h:19:21: warning: excess elements in struct initializer
19 | #define THIS_MODULE ((struct module *)0)
| ^
drivers/staging/android/userpanic-dev.c:84:27: note: in expansion of macro 'THIS_MODULE'
84 | .owner = THIS_MODULE,
| ^~~~~~~~~~~
include/linux/export.h:19:21: note: (near initialization for 'userpanic_device_fops')
19 | #define THIS_MODULE ((struct module *)0)
| ^
drivers/staging/android/userpanic-dev.c:84:27: note: in expansion of macro 'THIS_MODULE'
84 | .owner = THIS_MODULE,
| ^~~~~~~~~~~
drivers/staging/android/userpanic-dev.c:85:10: error: 'const struct file_operations' has no member named 'unlocked_ioctl'
85 | .unlocked_ioctl = userpanic_device_ioctl,
| ^~~~~~~~~~~~~~
>> drivers/staging/android/userpanic-dev.c:85:27: warning: excess elements in struct initializer
85 | .unlocked_ioctl = userpanic_device_ioctl,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/staging/android/userpanic-dev.c:85:27: note: (near initialization for 'userpanic_device_fops')
drivers/staging/android/userpanic-dev.c:86:10: error: 'const struct file_operations' has no member named 'compat_ioctl'
86 | .compat_ioctl = compat_ptr_ioctl,
| ^~~~~~~~~~~~
drivers/staging/android/userpanic-dev.c:86:27: error: 'compat_ptr_ioctl' undeclared here (not in a function)
86 | .compat_ioctl = compat_ptr_ioctl,
| ^~~~~~~~~~~~~~~~
drivers/staging/android/userpanic-dev.c:86:27: warning: excess elements in struct initializer
drivers/staging/android/userpanic-dev.c:86:27: note: (near initialization for 'userpanic_device_fops')
drivers/staging/android/userpanic-dev.c:83:37: error: storage size of 'userpanic_device_fops' isn't known
83 | static const struct file_operations userpanic_device_fops = {
| ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +85 drivers/staging/android/userpanic-dev.c
82
83 static const struct file_operations userpanic_device_fops = {
> 84 .owner = THIS_MODULE,
> 85 .unlocked_ioctl = userpanic_device_ioctl,
86 .compat_ioctl = compat_ptr_ioctl,
87 };
88
---
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: 27473 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH] ANDROID: staging: add userpanic-dev driver
Date: Thu, 26 Aug 2021 21:57:44 +0800 [thread overview]
Message-ID: <202108262128.xSDRVTrK-lkp@intel.com> (raw)
In-Reply-To: <20210826092854.58694-1-woodylin@google.com>
[-- Attachment #1: Type: text/plain, Size: 8434 bytes --]
Hi Woody,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on staging/staging-testing]
url: https://github.com/0day-ci/linux/commits/Woody-Lin/ANDROID-staging-add-userpanic-dev-driver/20210826-173040
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git a69bbd2f77a6e26b2b1c3d7fcc5c715169dc01c5
config: openrisc-randconfig-r032-20210826 (attached as .config)
compiler: or1k-linux-gcc (GCC) 11.2.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/89dde12be7959a5a75172d0609d344f104d80070
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Woody-Lin/ANDROID-staging-add-userpanic-dev-driver/20210826-173040
git checkout 89dde12be7959a5a75172d0609d344f104d80070
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=openrisc SHELL=/bin/bash drivers/staging/android/
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 >>):
drivers/staging/android/userpanic-dev.c: In function 'userpanic_device_ioctl':
drivers/staging/android/userpanic-dev.c:21:34: error: implicit declaration of function '_IOW' [-Werror=implicit-function-declaration]
21 | #define CRASH_INFO (_IOW('U', 179, struct userpanic_crash_info))
| ^~~~
drivers/staging/android/userpanic-dev.c:52:14: note: in expansion of macro 'CRASH_INFO'
52 | case CRASH_INFO:
| ^~~~~~~~~~
drivers/staging/android/userpanic-dev.c:21:49: error: expected expression before 'struct'
21 | #define CRASH_INFO (_IOW('U', 179, struct userpanic_crash_info))
| ^~~~~~
drivers/staging/android/userpanic-dev.c:52:14: note: in expansion of macro 'CRASH_INFO'
52 | case CRASH_INFO:
| ^~~~~~~~~~
drivers/staging/android/userpanic-dev.c:53:21: error: implicit declaration of function 'copy_from_user' [-Werror=implicit-function-declaration]
53 | if (copy_from_user(&crash_info, (void __user *)arg, sizeof(crash_info)))
| ^~~~~~~~~~~~~~
In file included from include/linux/printk.h:7,
from include/asm-generic/bug.h:22,
from ./arch/openrisc/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from drivers/staging/android/userpanic-dev.c:11:
include/linux/kern_levels.h:5:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:390:16: note: in expansion of macro 'KERN_ERR'
390 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/staging/android/userpanic-dev.c:61:25: note: in expansion of macro 'pr_err'
61 | pr_err("failed to strndup .title_uaddr: %d\n", PTR_ERR(title));
| ^~~~~~
include/linux/kern_levels.h:5:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:390:16: note: in expansion of macro 'KERN_ERR'
390 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/staging/android/userpanic-dev.c:69:33: note: in expansion of macro 'pr_err'
69 | pr_err("failed to strndup .msg_uaddr: %d\n", PTR_ERR(msg));
| ^~~~~~
drivers/staging/android/userpanic-dev.c: At top level:
drivers/staging/android/userpanic-dev.c:83:21: error: variable 'userpanic_device_fops' has initializer but incomplete type
83 | static const struct file_operations userpanic_device_fops = {
| ^~~~~~~~~~~~~~~
drivers/staging/android/userpanic-dev.c:84:10: error: 'const struct file_operations' has no member named 'owner'
84 | .owner = THIS_MODULE,
| ^~~~~
In file included from include/linux/linkage.h:7,
from include/linux/printk.h:8,
from include/asm-generic/bug.h:22,
from ./arch/openrisc/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from drivers/staging/android/userpanic-dev.c:11:
include/linux/export.h:19:21: warning: excess elements in struct initializer
19 | #define THIS_MODULE ((struct module *)0)
| ^
drivers/staging/android/userpanic-dev.c:84:27: note: in expansion of macro 'THIS_MODULE'
84 | .owner = THIS_MODULE,
| ^~~~~~~~~~~
include/linux/export.h:19:21: note: (near initialization for 'userpanic_device_fops')
19 | #define THIS_MODULE ((struct module *)0)
| ^
drivers/staging/android/userpanic-dev.c:84:27: note: in expansion of macro 'THIS_MODULE'
84 | .owner = THIS_MODULE,
| ^~~~~~~~~~~
drivers/staging/android/userpanic-dev.c:85:10: error: 'const struct file_operations' has no member named 'unlocked_ioctl'
85 | .unlocked_ioctl = userpanic_device_ioctl,
| ^~~~~~~~~~~~~~
>> drivers/staging/android/userpanic-dev.c:85:27: warning: excess elements in struct initializer
85 | .unlocked_ioctl = userpanic_device_ioctl,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/staging/android/userpanic-dev.c:85:27: note: (near initialization for 'userpanic_device_fops')
drivers/staging/android/userpanic-dev.c:86:10: error: 'const struct file_operations' has no member named 'compat_ioctl'
86 | .compat_ioctl = compat_ptr_ioctl,
| ^~~~~~~~~~~~
drivers/staging/android/userpanic-dev.c:86:27: error: 'compat_ptr_ioctl' undeclared here (not in a function)
86 | .compat_ioctl = compat_ptr_ioctl,
| ^~~~~~~~~~~~~~~~
drivers/staging/android/userpanic-dev.c:86:27: warning: excess elements in struct initializer
drivers/staging/android/userpanic-dev.c:86:27: note: (near initialization for 'userpanic_device_fops')
drivers/staging/android/userpanic-dev.c:83:37: error: storage size of 'userpanic_device_fops' isn't known
83 | static const struct file_operations userpanic_device_fops = {
| ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +85 drivers/staging/android/userpanic-dev.c
82
83 static const struct file_operations userpanic_device_fops = {
> 84 .owner = THIS_MODULE,
> 85 .unlocked_ioctl = userpanic_device_ioctl,
86 .compat_ioctl = compat_ptr_ioctl,
87 };
88
---
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: 27473 bytes --]
next prev parent reply other threads:[~2021-08-26 13:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-26 9:28 [PATCH] ANDROID: staging: add userpanic-dev driver Woody Lin
2021-08-26 9:48 ` Greg Kroah-Hartman
2021-08-26 10:23 ` Woody Lin
2021-08-26 10:54 ` Greg Kroah-Hartman
2021-08-27 3:51 ` Woody Lin
2021-08-27 7:14 ` Greg Kroah-Hartman
2021-09-01 8:56 ` Woody Lin
2021-08-26 10:01 ` Greg Kroah-Hartman
2021-08-26 13:06 ` kernel test robot
2021-08-26 13:06 ` kernel test robot
2021-08-26 13:57 ` kernel test robot [this message]
2021-08-26 13:57 ` kernel test robot
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=202108262128.xSDRVTrK-lkp@intel.com \
--to=lkp@intel.com \
--cc=arve@android.com \
--cc=christian@brauner.io \
--cc=gregkh@linuxfoundation.org \
--cc=hridya@google.com \
--cc=joel@joelfernandes.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=maco@android.com \
--cc=surenb@google.com \
--cc=tkjos@android.com \
--cc=woodylin@google.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 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.