[android-common:android-mainline-tracking 363/836] fs/incfs/vfs.c:1151:24: error: passing argument 1 of 'notify_change' from incompatible pointer type
by kernel test robot
tree: https://android.googlesource.com/kernel/common android-mainline-tracking
head: 74f61c888eeeb9cbc57d44c61fafe32df9b3da51
commit: 89ffdf7c41d70eb8163de7ae21560fdc541240da [363/836] ANDROID: Incremental fs: Make files writeable
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android-mainline-tracking
git checkout 89ffdf7c41d70eb8163de7ae21560fdc541240da
# 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(a)intel.com>
Note: the android-common/android-mainline-tracking HEAD 74f61c888eeeb9cbc57d44c61fafe32df9b3da51 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
from include/linux/genhd.h:19,
from include/linux/blkdev.h:8,
from fs/incfs/vfs.c:6:
include/linux/fs.h:1779:5: note: declared here
1779 | int vfs_link(struct dentry *, struct user_namespace *, struct inode *,
| ^~~~~~~~
fs/incfs/vfs.c: In function 'incfs_unlink':
fs/incfs/vfs.c:1063:21: error: passing argument 1 of 'vfs_unlink' from incompatible pointer type [-Werror=incompatible-pointer-types]
1063 | error = vfs_unlink(pinode, dentry, NULL);
| ^~~~~~
| |
| struct inode *
In file included from include/linux/huge_mm.h:8,
from include/linux/mm.h:707,
from include/linux/bvec.h:14,
from include/linux/blk_types.h:10,
from include/linux/genhd.h:19,
from include/linux/blkdev.h:8,
from fs/incfs/vfs.c:6:
include/linux/fs.h:1782:16: note: expected 'struct user_namespace *' but argument is of type 'struct inode *'
1782 | int vfs_unlink(struct user_namespace *, struct inode *, struct dentry *,
| ^~~~~~~~~~~~~~~~~~~~~~~
fs/incfs/vfs.c:1063:29: error: passing argument 2 of 'vfs_unlink' from incompatible pointer type [-Werror=incompatible-pointer-types]
1063 | error = vfs_unlink(pinode, dentry, NULL);
| ^~~~~~
| |
| struct dentry *
In file included from include/linux/huge_mm.h:8,
from include/linux/mm.h:707,
from include/linux/bvec.h:14,
from include/linux/blk_types.h:10,
from include/linux/genhd.h:19,
from include/linux/blkdev.h:8,
from fs/incfs/vfs.c:6:
include/linux/fs.h:1782:41: note: expected 'struct inode *' but argument is of type 'struct dentry *'
1782 | int vfs_unlink(struct user_namespace *, struct inode *, struct dentry *,
| ^~~~~~~~~~~~~~
fs/incfs/vfs.c:1063:10: error: too few arguments to function 'vfs_unlink'
1063 | error = vfs_unlink(pinode, dentry, NULL);
| ^~~~~~~~~~
In file included from include/linux/huge_mm.h:8,
from include/linux/mm.h:707,
from include/linux/bvec.h:14,
from include/linux/blk_types.h:10,
from include/linux/genhd.h:19,
from include/linux/blkdev.h:8,
from fs/incfs/vfs.c:6:
include/linux/fs.h:1782:5: note: declared here
1782 | int vfs_unlink(struct user_namespace *, struct inode *, struct dentry *,
| ^~~~~~~~~~
fs/incfs/vfs.c: In function 'incfs_rmdir':
fs/incfs/vfs.c:1077:20: error: passing argument 1 of 'vfs_rmdir' from incompatible pointer type [-Werror=incompatible-pointer-types]
1077 | error = vfs_rmdir(pinode, dentry);
| ^~~~~~
| |
| struct inode *
In file included from include/linux/huge_mm.h:8,
from include/linux/mm.h:707,
from include/linux/bvec.h:14,
from include/linux/blk_types.h:10,
from include/linux/genhd.h:19,
from include/linux/blkdev.h:8,
from fs/incfs/vfs.c:6:
include/linux/fs.h:1781:15: note: expected 'struct user_namespace *' but argument is of type 'struct inode *'
1781 | int vfs_rmdir(struct user_namespace *, struct inode *, struct dentry *);
| ^~~~~~~~~~~~~~~~~~~~~~~
fs/incfs/vfs.c:1077:28: error: passing argument 2 of 'vfs_rmdir' from incompatible pointer type [-Werror=incompatible-pointer-types]
1077 | error = vfs_rmdir(pinode, dentry);
| ^~~~~~
| |
| struct dentry *
In file included from include/linux/huge_mm.h:8,
from include/linux/mm.h:707,
from include/linux/bvec.h:14,
from include/linux/blk_types.h:10,
from include/linux/genhd.h:19,
from include/linux/blkdev.h:8,
from fs/incfs/vfs.c:6:
include/linux/fs.h:1781:40: note: expected 'struct inode *' but argument is of type 'struct dentry *'
1781 | int vfs_rmdir(struct user_namespace *, struct inode *, struct dentry *);
| ^~~~~~~~~~~~~~
fs/incfs/vfs.c:1077:10: error: too few arguments to function 'vfs_rmdir'
1077 | error = vfs_rmdir(pinode, dentry);
| ^~~~~~~~~
In file included from include/linux/huge_mm.h:8,
from include/linux/mm.h:707,
from include/linux/bvec.h:14,
from include/linux/blk_types.h:10,
from include/linux/genhd.h:19,
from include/linux/blkdev.h:8,
from fs/incfs/vfs.c:6:
include/linux/fs.h:1781:5: note: declared here
1781 | int vfs_rmdir(struct user_namespace *, struct inode *, struct dentry *);
| ^~~~~~~~~
fs/incfs/vfs.c: In function 'dir_relative_path_resolve':
fs/incfs/vfs.c:1116:2: error: implicit declaration of function 'ksys_close'; did you mean 'ksys_chown'? [-Werror=implicit-function-declaration]
1116 | ksys_close(dir_fd);
| ^~~~~~~~~~
| ksys_chown
fs/incfs/vfs.c: In function 'chmod':
>> fs/incfs/vfs.c:1151:24: error: passing argument 1 of 'notify_change' from incompatible pointer type [-Werror=incompatible-pointer-types]
1151 | error = notify_change(dentry, &newattrs, &delegated_inode);
| ^~~~~~
| |
| struct dentry *
In file included from include/linux/huge_mm.h:8,
from include/linux/mm.h:707,
from include/linux/bvec.h:14,
from include/linux/blk_types.h:10,
from include/linux/genhd.h:19,
from include/linux/blkdev.h:8,
from fs/incfs/vfs.c:6:
include/linux/fs.h:2865:19: note: expected 'struct user_namespace *' but argument is of type 'struct dentry *'
2865 | int notify_change(struct user_namespace *, struct dentry *,
| ^~~~~~~~~~~~~~~~~~~~~~~
fs/incfs/vfs.c:1151:32: error: passing argument 2 of 'notify_change' from incompatible pointer type [-Werror=incompatible-pointer-types]
1151 | error = notify_change(dentry, &newattrs, &delegated_inode);
| ^~~~~~~~~
| |
| struct iattr *
In file included from include/linux/huge_mm.h:8,
from include/linux/mm.h:707,
from include/linux/bvec.h:14,
from include/linux/blk_types.h:10,
from include/linux/genhd.h:19,
from include/linux/blkdev.h:8,
from fs/incfs/vfs.c:6:
include/linux/fs.h:2865:44: note: expected 'struct dentry *' but argument is of type 'struct iattr *'
2865 | int notify_change(struct user_namespace *, struct dentry *,
| ^~~~~~~~~~~~~~~
fs/incfs/vfs.c:1151:43: error: passing argument 3 of 'notify_change' from incompatible pointer type [-Werror=incompatible-pointer-types]
1151 | error = notify_change(dentry, &newattrs, &delegated_inode);
| ^~~~~~~~~~~~~~~~
| |
| struct inode **
In file included from include/linux/huge_mm.h:8,
from include/linux/mm.h:707,
from include/linux/bvec.h:14,
from include/linux/blk_types.h:10,
from include/linux/genhd.h:19,
from include/linux/blkdev.h:8,
from fs/incfs/vfs.c:6:
include/linux/fs.h:2866:5: note: expected 'struct iattr *' but argument is of type 'struct inode **'
2866 | struct iattr *, struct inode **);
| ^~~~~~~~~~~~~~
>> fs/incfs/vfs.c:1151:10: error: too few arguments to function 'notify_change'
1151 | error = notify_change(dentry, &newattrs, &delegated_inode);
| ^~~~~~~~~~~~~
In file included from include/linux/huge_mm.h:8,
from include/linux/mm.h:707,
from include/linux/bvec.h:14,
from include/linux/blk_types.h:10,
from include/linux/genhd.h:19,
from include/linux/blkdev.h:8,
from fs/incfs/vfs.c:6:
include/linux/fs.h:2865:5: note: declared here
2865 | int notify_change(struct user_namespace *, struct dentry *,
| ^~~~~~~~~~~~~
fs/incfs/vfs.c: In function 'ioctl_create_file':
fs/incfs/vfs.c:1261:21: error: passing argument 1 of 'vfs_create' from incompatible pointer type [-Werror=incompatible-pointer-types]
1261 | error = vfs_create(index_dir_inode, index_file_dentry, args.mode | 0222,
| ^~~~~~~~~~~~~~~
| |
| struct inode *
In file included from include/linux/huge_mm.h:8,
from include/linux/mm.h:707,
from include/linux/bvec.h:14,
from include/linux/blk_types.h:10,
from include/linux/genhd.h:19,
from include/linux/blkdev.h:8,
from fs/incfs/vfs.c:6:
include/linux/fs.h:1771:16: note: expected 'struct user_namespace *' but argument is of type 'struct inode *'
1771 | int vfs_create(struct user_namespace *, struct inode *,
| ^~~~~~~~~~~~~~~~~~~~~~~
fs/incfs/vfs.c:1261:38: error: passing argument 2 of 'vfs_create' from incompatible pointer type [-Werror=incompatible-pointer-types]
1261 | error = vfs_create(index_dir_inode, index_file_dentry, args.mode | 0222,
| ^~~~~~~~~~~~~~~~~
| |
| struct dentry *
In file included from include/linux/huge_mm.h:8,
from include/linux/mm.h:707,
from include/linux/bvec.h:14,
from include/linux/blk_types.h:10,
from include/linux/genhd.h:19,
from include/linux/blkdev.h:8,
from fs/incfs/vfs.c:6:
include/linux/fs.h:1771:41: note: expected 'struct inode *' but argument is of type 'struct dentry *'
1771 | int vfs_create(struct user_namespace *, struct inode *,
| ^~~~~~~~~~~~~~
fs/incfs/vfs.c:1261:67: warning: passing argument 3 of 'vfs_create' makes pointer from integer without a cast [-Wint-conversion]
1261 | error = vfs_create(index_dir_inode, index_file_dentry, args.mode | 0222,
| ~~~~~~~~~~^~~~~~
| |
| int
In file included from include/linux/huge_mm.h:8,
from include/linux/mm.h:707,
from include/linux/bvec.h:14,
from include/linux/blk_types.h:10,
from include/linux/genhd.h:19,
from include/linux/blkdev.h:8,
from fs/incfs/vfs.c:6:
include/linux/fs.h:1772:9: note: expected 'struct dentry *' but argument is of type 'int'
1772 | struct dentry *, umode_t, bool);
| ^~~~~~~~~~~~~~~
fs/incfs/vfs.c:1261:10: error: too few arguments to function 'vfs_create'
1261 | error = vfs_create(index_dir_inode, index_file_dentry, args.mode | 0222,
| ^~~~~~~~~~
In file included from include/linux/huge_mm.h:8,
from include/linux/mm.h:707,
from include/linux/bvec.h:14,
from include/linux/blk_types.h:10,
from include/linux/genhd.h:19,
from include/linux/blkdev.h:8,
from fs/incfs/vfs.c:6:
include/linux/fs.h:1771:5: note: declared here
1771 | int vfs_create(struct user_namespace *, struct inode *,
| ^~~~~~~~~~
fs/incfs/vfs.c:1279:23: error: passing argument 1 of 'vfs_setxattr' from incompatible pointer type [-Werror=incompatible-pointer-types]
1279 | error = vfs_setxattr(index_file_dentry, INCFS_XATTR_ID_NAME,
| ^~~~~~~~~~~~~~~~~
| |
| struct dentry *
In file included from fs/incfs/vfs.c:17:
include/linux/xattr.h:63:18: note: expected 'struct user_namespace *' but argument is of type 'struct dentry *'
63 | int vfs_setxattr(struct user_namespace *, struct dentry *, const char *,
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from fs/incfs/vfs.c:19:
include/uapi/linux/incrementalfs.h:33:29: error: passing argument 2 of 'vfs_setxattr' from incompatible pointer type [-Werror=incompatible-pointer-types]
33 | #define INCFS_XATTR_ID_NAME (XATTR_USER_PREFIX "incfs.id")
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| char *
fs/incfs/vfs.c:1279:42: note: in expansion of macro 'INCFS_XATTR_ID_NAME'
1279 | error = vfs_setxattr(index_file_dentry, INCFS_XATTR_ID_NAME,
| ^~~~~~~~~~~~~~~~~~~
In file included from fs/incfs/vfs.c:17:
include/linux/xattr.h:63:43: note: expected 'struct dentry *' but argument is of type 'char *'
63 | int vfs_setxattr(struct user_namespace *, struct dentry *, const char *,
| ^~~~~~~~~~~~~~~
fs/incfs/vfs.c:1280:16: warning: passing argument 4 of 'vfs_setxattr' makes pointer from integer without a cast [-Wint-conversion]
1280 | file_id_str, strlen(file_id_str), XATTR_CREATE);
| ^~~~~~~~~~~~~~~~~~~
| |
| size_t {aka long unsigned int}
In file included from fs/incfs/vfs.c:17:
include/linux/xattr.h:64:4: note: expected 'const void *' but argument is of type 'size_t' {aka 'long unsigned int'}
vim +/notify_change +1151 fs/incfs/vfs.c
1083
1084 static int dir_relative_path_resolve(
1085 struct mount_info *mi,
1086 const char __user *relative_path,
1087 struct path *result_path)
1088 {
1089 struct path *base_path = &mi->mi_backing_dir_path;
1090 int dir_fd = get_unused_fd_flags(0);
1091 struct file *dir_f = NULL;
1092 int error = 0;
1093
1094 if (dir_fd < 0)
1095 return dir_fd;
1096
1097 dir_f = dentry_open(base_path, O_RDONLY | O_NOATIME, mi->mi_owner);
1098
1099 if (IS_ERR(dir_f)) {
1100 error = PTR_ERR(dir_f);
1101 goto out;
1102 }
1103 fd_install(dir_fd, dir_f);
1104
1105 if (!relative_path) {
1106 /* No relative path given, just return the base dir. */
1107 *result_path = *base_path;
1108 path_get(result_path);
1109 goto out;
1110 }
1111
1112 error = user_path_at_empty(dir_fd, relative_path,
1113 LOOKUP_FOLLOW | LOOKUP_DIRECTORY, result_path, NULL);
1114
1115 out:
> 1116 ksys_close(dir_fd);
1117 if (error)
1118 pr_debug("incfs: %s %d\n", __func__, error);
1119 return error;
1120 }
1121
1122 static int validate_name(char *file_name)
1123 {
1124 struct mem_range name = range(file_name, strlen(file_name));
1125 int i = 0;
1126
1127 if (name.len > INCFS_MAX_NAME_LEN)
1128 return -ENAMETOOLONG;
1129
1130 if (incfs_equal_ranges(pending_reads_file_name_range, name))
1131 return -EINVAL;
1132
1133 for (i = 0; i < name.len; i++)
1134 if (name.data[i] == '/')
1135 return -EINVAL;
1136
1137 return 0;
1138 }
1139
1140 static int chmod(struct dentry *dentry, umode_t mode)
1141 {
1142 struct inode *inode = dentry->d_inode;
1143 struct inode *delegated_inode = NULL;
1144 struct iattr newattrs;
1145 int error;
1146
1147 retry_deleg:
1148 inode_lock(inode);
1149 newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO);
1150 newattrs.ia_valid = ATTR_MODE | ATTR_CTIME;
> 1151 error = notify_change(dentry, &newattrs, &delegated_inode);
1152 inode_unlock(inode);
1153 if (delegated_inode) {
1154 error = break_deleg_wait(&delegated_inode);
1155 if (!error)
1156 goto retry_deleg;
1157 }
1158 return error;
1159 }
1160
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
arch/csky/kernel/module.c:43:1: warning: 'inline' is not at beginning of declaration
by kernel test robot
Hi Julian,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 52e44129fba5cfc4e351fdb5e45849afc74d9a53
commit: 7d37cb2c912dc5c25ffac784a4f9b98c06c6bd08 lib: fix kconfig dependency on ARCH_WANT_FRAME_POINTERS
date: 26 hours ago
config: csky-randconfig-r013-20210411 (attached as .config)
compiler: csky-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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 7d37cb2c912dc5c25ffac784a4f9b98c06c6bd08
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=csky
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> arch/csky/kernel/module.c:43:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration]
43 | static void inline jsri_2_lrw_jsr(uint32_t *location)
| ^~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
vim +/inline +43 arch/csky/kernel/module.c
f553aa1c13cbc2 Guo Ren 2019-01-08 27
f553aa1c13cbc2 Guo Ren 2019-01-08 28 static void jsri_2_lrw_jsr(uint32_t *location)
f553aa1c13cbc2 Guo Ren 2019-01-08 29 {
70c25259537c07 Guo Ren 2019-01-10 30 uint16_t *location_tmp = (uint16_t *)location;
f553aa1c13cbc2 Guo Ren 2019-01-08 31
f553aa1c13cbc2 Guo Ren 2019-01-08 32 if (IS_BSR32(*location_tmp, *(location_tmp + 1)))
f553aa1c13cbc2 Guo Ren 2019-01-08 33 return;
f553aa1c13cbc2 Guo Ren 2019-01-08 34
f553aa1c13cbc2 Guo Ren 2019-01-08 35 if (IS_JSRI32(*location_tmp, *(location_tmp + 1))) {
f553aa1c13cbc2 Guo Ren 2019-01-08 36 /* jsri 0x... --> lrw r26, 0x... */
f553aa1c13cbc2 Guo Ren 2019-01-08 37 CHANGE_JSRI_TO_LRW(location);
f553aa1c13cbc2 Guo Ren 2019-01-08 38 /* lsli r0, r0 --> jsr r26 */
f553aa1c13cbc2 Guo Ren 2019-01-08 39 SET_JSR32_R26(location + 1);
f553aa1c13cbc2 Guo Ren 2019-01-08 40 }
f553aa1c13cbc2 Guo Ren 2019-01-08 41 }
f553aa1c13cbc2 Guo Ren 2019-01-08 42 #else
f553aa1c13cbc2 Guo Ren 2019-01-08 @43 static void inline jsri_2_lrw_jsr(uint32_t *location)
f553aa1c13cbc2 Guo Ren 2019-01-08 44 {
f553aa1c13cbc2 Guo Ren 2019-01-08 45 return;
f553aa1c13cbc2 Guo Ren 2019-01-08 46 }
9d056df0924edb Guo Ren 2018-09-05 47 #endif
9d056df0924edb Guo Ren 2018-09-05 48
:::::: The code at line 43 was first introduced by commit
:::::: f553aa1c13cbc29aaf420349a28fc33ca98440e5 csky: fixup relocation error with 807 & 860
:::::: TO: Guo Ren <ren_guo(a)c-sky.com>
:::::: CC: Guo Ren <ren_guo(a)c-sky.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[sashal-linux-stable:queue-5.4 36/42] net/sched/act_api.c:914:16: error: use of undeclared identifier 'TCA_ACT_HW_STATS_ANY'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: ccb3e3ddfae0c4a0ca4ec34699a965637f2c15e0
commit: 7bc0ce12818fb941334ac54afe37de4e6787a57e [36/42] net_sched: fix RTNL deadlock again caused by request_module()
config: x86_64-randconfig-a013-20210411 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9829f5e6b1bca9b61efc629770d28bb9014dec45)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout 7bc0ce12818fb941334ac54afe37de4e6787a57e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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/sched/act_api.c:914:16: error: use of undeclared identifier 'TCA_ACT_HW_STATS_ANY'
u8 hw_stats = TCA_ACT_HW_STATS_ANY;
^
>> net/sched/act_api.c:934:14: error: implicit declaration of function 'tcf_action_hw_stats_get' [-Werror,-Wimplicit-function-declaration]
hw_stats = tcf_action_hw_stats_get(tb[TCA_ACT_HW_STATS]);
^
>> net/sched/act_api.c:934:41: error: use of undeclared identifier 'TCA_ACT_HW_STATS'; did you mean 'TCA_ACT_STATS'?
hw_stats = tcf_action_hw_stats_get(tb[TCA_ACT_HW_STATS]);
^~~~~~~~~~~~~~~~
TCA_ACT_STATS
include/uapi/linux/pkt_cls.h:16:2: note: 'TCA_ACT_STATS' declared here
TCA_ACT_STATS,
^
>> net/sched/act_api.c:935:10: error: use of undeclared identifier 'TCA_ACT_FLAGS'
if (tb[TCA_ACT_FLAGS])
^
net/sched/act_api.c:936:34: error: use of undeclared identifier 'TCA_ACT_FLAGS'
flags = nla_get_bitfield32(tb[TCA_ACT_FLAGS]);
^
5 errors generated.
vim +/TCA_ACT_HW_STATS_ANY +914 net/sched/act_api.c
906
907 struct tc_action *tcf_action_init_1(struct net *net, struct tcf_proto *tp,
908 struct nlattr *nla, struct nlattr *est,
909 char *name, int ovr, int bind,
910 struct tc_action_ops *a_o, bool rtnl_held,
911 struct netlink_ext_ack *extack)
912 {
913 struct nla_bitfield32 flags = { 0, 0 };
> 914 u8 hw_stats = TCA_ACT_HW_STATS_ANY;
915 struct nlattr *tb[TCA_ACT_MAX + 1];
916 struct tc_cookie *cookie = NULL;
917 struct tc_action *a;
918 int err;
919
920 /* backward compatibility for policer */
921 if (name == NULL) {
922 err = nla_parse_nested_deprecated(tb, TCA_ACT_MAX, nla,
923 tcf_action_policy, extack);
924 if (err < 0)
925 return ERR_PTR(err);
926 if (tb[TCA_ACT_COOKIE]) {
927 cookie = nla_memdup_cookie(tb);
928 if (!cookie) {
929 NL_SET_ERR_MSG(extack, "No memory to generate TC cookie");
930 err = -ENOMEM;
931 goto err_out;
932 }
933 }
> 934 hw_stats = tcf_action_hw_stats_get(tb[TCA_ACT_HW_STATS]);
> 935 if (tb[TCA_ACT_FLAGS])
936 flags = nla_get_bitfield32(tb[TCA_ACT_FLAGS]);
937
938 err = a_o->init(net, tb[TCA_ACT_OPTIONS], est, &a, ovr, bind,
939 rtnl_held, tp, extack);
940 } else {
941 err = a_o->init(net, nla, est, &a, ovr, bind, rtnl_held,
942 tp, extack);
943 }
944 if (err < 0)
945 goto err_out;
946
947 if (!name && tb[TCA_ACT_COOKIE])
948 tcf_set_action_cookie(&a->act_cookie, cookie);
949
950 /* module count goes up only when brand new policy is created
951 * if it exists and is only bound to in a_o->init() then
952 * ACT_P_CREATED is not returned (a zero is).
953 */
954 if (err != ACT_P_CREATED)
955 module_put(a_o->owner);
956
957 return a;
958
959 err_out:
960 if (cookie) {
961 kfree(cookie->data);
962 kfree(cookie);
963 }
964 return ERR_PTR(err);
965 }
966
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
drivers/bus/mhi/core/pm.c:740:6: warning: stack frame size of 1408 bytes in function 'mhi_pm_st_worker'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 52e44129fba5cfc4e351fdb5e45849afc74d9a53
commit: 556bbb442bbb44f429dbaa9f8b48e0b4cda6e088 bus: mhi: core: Separate system error and power down handling
date: 5 months ago
config: powerpc-randconfig-r024-20210411 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project dd453a1389b6a7e6d9214b449d3c54981b1a89b6)
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
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 556bbb442bbb44f429dbaa9f8b48e0b4cda6e088
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/bus/mhi/core/pm.c:740:6: warning: stack frame size of 1408 bytes in function 'mhi_pm_st_worker' [-Wframe-larger-than=]
void mhi_pm_st_worker(struct work_struct *work)
^
1 warning generated.
vim +/mhi_pm_st_worker +740 drivers/bus/mhi/core/pm.c
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 738
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 739 /* Device State Transition worker */
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 @740 void mhi_pm_st_worker(struct work_struct *work)
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 741 {
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 742 struct state_transition *itr, *tmp;
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 743 LIST_HEAD(head);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 744 struct mhi_controller *mhi_cntrl = container_of(work,
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 745 struct mhi_controller,
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 746 st_worker);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 747 struct device *dev = &mhi_cntrl->mhi_dev->dev;
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 748
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 749 spin_lock_irq(&mhi_cntrl->transition_lock);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 750 list_splice_tail_init(&mhi_cntrl->transition_list, &head);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 751 spin_unlock_irq(&mhi_cntrl->transition_lock);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 752
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 753 list_for_each_entry_safe(itr, tmp, &head, node) {
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 754 list_del(&itr->node);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 755 dev_dbg(dev, "Handling state transition: %s\n",
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 756 TO_DEV_STATE_TRANS_STR(itr->state));
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 757
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 758 switch (itr->state) {
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 759 case DEV_ST_TRANSITION_PBL:
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 760 write_lock_irq(&mhi_cntrl->pm_lock);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 761 if (MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state))
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 762 mhi_cntrl->ee = mhi_get_exec_env(mhi_cntrl);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 763 write_unlock_irq(&mhi_cntrl->pm_lock);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 764 if (MHI_IN_PBL(mhi_cntrl->ee))
560e3a045961ed Bhaumik Bhatt 2020-05-21 765 mhi_fw_load_handler(mhi_cntrl);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 766 break;
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 767 case DEV_ST_TRANSITION_SBL:
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 768 write_lock_irq(&mhi_cntrl->pm_lock);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 769 mhi_cntrl->ee = MHI_EE_SBL;
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 770 write_unlock_irq(&mhi_cntrl->pm_lock);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 771 /*
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 772 * The MHI devices are only created when the client
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 773 * device switches its Execution Environment (EE) to
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 774 * either SBL or AMSS states
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 775 */
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 776 mhi_create_devices(mhi_cntrl);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 777 break;
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 778 case DEV_ST_TRANSITION_MISSION_MODE:
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 779 mhi_pm_mission_mode_transition(mhi_cntrl);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 780 break;
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 781 case DEV_ST_TRANSITION_READY:
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 782 mhi_ready_state_transition(mhi_cntrl);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 783 break;
bc7ccce5a5192c Hemant Kumar 2020-05-21 784 case DEV_ST_TRANSITION_SYS_ERR:
556bbb442bbb44 Bhaumik Bhatt 2020-11-09 785 mhi_pm_sys_error_transition(mhi_cntrl);
bc7ccce5a5192c Hemant Kumar 2020-05-21 786 break;
3c1bd0047124f5 Hemant Kumar 2020-05-21 787 case DEV_ST_TRANSITION_DISABLE:
3c1bd0047124f5 Hemant Kumar 2020-05-21 788 mhi_pm_disable_transition
3c1bd0047124f5 Hemant Kumar 2020-05-21 789 (mhi_cntrl, MHI_PM_SHUTDOWN_PROCESS);
3c1bd0047124f5 Hemant Kumar 2020-05-21 790 break;
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 791 default:
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 792 break;
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 793 }
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 794 kfree(itr);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 795 }
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 796 }
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 797
:::::: The code at line 740 was first introduced by commit
:::::: a6e2e3522f29141b95c1ef8580c665a3582b3e66 bus: mhi: core: Add support for PM state transitions
:::::: TO: Manivannan Sadhasivam <manivannan.sadhasivam(a)linaro.org>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[sashal-linux-stable:queue-4.14 1/1] drivers/net/virtio_net.c:348:21: error: use of undeclared identifier 'metasize'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-4.14
head: baa67d3d69c44ce8c5d720cb707244cb006dc253
commit: baa67d3d69c44ce8c5d720cb707244cb006dc253 [1/1] virtio_net: Do not pull payload in skb->head
config: x86_64-randconfig-a014-20210411 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 00ef28ef21f0a46059203c5aa96e9febe1192e43)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-4.14
git checkout baa67d3d69c44ce8c5d720cb707244cb006dc253
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 >>):
>> drivers/net/virtio_net.c:348:21: error: use of undeclared identifier 'metasize'
copy = ETH_HLEN + metasize;
^
1 error generated.
vim +/metasize +348 drivers/net/virtio_net.c
307
308 /* Called from bottom half context */
309 static struct sk_buff *page_to_skb(struct virtnet_info *vi,
310 struct receive_queue *rq,
311 struct page *page, unsigned int offset,
312 unsigned int len, unsigned int truesize,
313 bool hdr_valid)
314 {
315 struct sk_buff *skb;
316 struct virtio_net_hdr_mrg_rxbuf *hdr;
317 unsigned int copy, hdr_len, hdr_padded_len;
318 char *p;
319
320 p = page_address(page) + offset;
321
322 /* copy small packet so we can reuse these pages for small data */
323 skb = napi_alloc_skb(&rq->napi, GOOD_COPY_LEN);
324 if (unlikely(!skb))
325 return NULL;
326
327 hdr = skb_vnet_hdr(skb);
328
329 hdr_len = vi->hdr_len;
330 if (vi->mergeable_rx_bufs)
331 hdr_padded_len = sizeof(*hdr);
332 else
333 hdr_padded_len = sizeof(struct padded_vnet_hdr);
334
335 if (hdr_valid)
336 memcpy(hdr, p, hdr_len);
337
338 len -= hdr_len;
339 offset += hdr_padded_len;
340 p += hdr_padded_len;
341
342 /* Copy all frame if it fits skb->head, otherwise
343 * we let virtio_net_hdr_to_skb() and GRO pull headers as needed.
344 */
345 if (len <= skb_tailroom(skb))
346 copy = len;
347 else
> 348 copy = ETH_HLEN + metasize;
349 skb_put_data(skb, p, copy);
350
351 len -= copy;
352 offset += copy;
353
354 if (vi->mergeable_rx_bufs) {
355 if (len)
356 skb_add_rx_frag(skb, 0, page, offset, len, truesize);
357 else
358 put_page(page);
359 return skb;
360 }
361
362 /*
363 * Verify that we can indeed put this data into a skb.
364 * This is here to handle cases when the device erroneously
365 * tries to receive more than is possible. This is usually
366 * the case of a broken device.
367 */
368 if (unlikely(len > MAX_SKB_FRAGS * PAGE_SIZE)) {
369 net_dbg_ratelimited("%s: too much data\n", skb->dev->name);
370 dev_kfree_skb(skb);
371 return NULL;
372 }
373 BUG_ON(offset >= PAGE_SIZE);
374 while (len) {
375 unsigned int frag_size = min((unsigned)PAGE_SIZE - offset, len);
376 skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, page, offset,
377 frag_size, truesize);
378 len -= frag_size;
379 page = (struct page *)page->private;
380 offset = 0;
381 }
382
383 if (page)
384 give_pages(rq, page);
385
386 return skb;
387 }
388
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
drivers/media/platform/omap/omap_vout.c:979:37: warning: cast to pointer from integer of different size
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 52e44129fba5cfc4e351fdb5e45849afc74d9a53
commit: a19f228b8dd9a67e8de4ebd4eac8a4c94ec39d1a media: Kconfig: not all V4L2 platform drivers are for camera
date: 12 months ago
config: arc-randconfig-r025-20210411 (attached as .config)
compiler: arceb-elf-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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout a19f228b8dd9a67e8de4ebd4eac8a4c94ec39d1a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/media/platform/omap/omap_vout.c: In function 'omap_vout_vb2_prepare':
>> drivers/media/platform/omap/omap_vout.c:979:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
979 | vout->queued_buf_addr[vb->index] = (u8 *)buf_phy_addr;
| ^
drivers/media/platform/omap/omap_vout.c: In function 'omap_vout_create_video_devices':
drivers/media/platform/omap/omap_vout.c:1479:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1479 | vout->fbuf.base = (void *)info.paddr;
| ^
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for VIDEO_OV7670
Depends on MEDIA_SUPPORT && MEDIA_CAMERA_SUPPORT && I2C && VIDEO_V4L2
Selected by
- VIDEO_CAFE_CCIC && MEDIA_SUPPORT && MEDIA_PLATFORM_SUPPORT && V4L_PLATFORM_DRIVERS && PCI && I2C && VIDEO_V4L2 && COMMON_CLK
- VIDEO_MMP_CAMERA && MEDIA_SUPPORT && MEDIA_PLATFORM_SUPPORT && V4L_PLATFORM_DRIVERS && I2C && VIDEO_V4L2 && (ARCH_MMP || COMPILE_TEST && COMMON_CLK
vim +979 drivers/media/platform/omap/omap_vout.c
5c7ab6348e7b3f drivers/media/video/omap/omap_vout.c Vaibhav Hiremath 2010-04-11 961
256acbebdc3b2d drivers/media/platform/omap/omap_vout.c Hans Verkuil 2019-07-30 962 static int omap_vout_vb2_prepare(struct vb2_buffer *vb)
5c7ab6348e7b3f drivers/media/video/omap/omap_vout.c Vaibhav Hiremath 2010-04-11 963 {
256acbebdc3b2d drivers/media/platform/omap/omap_vout.c Hans Verkuil 2019-07-30 964 struct omap_vout_device *vout = vb2_get_drv_priv(vb->vb2_queue);
256acbebdc3b2d drivers/media/platform/omap/omap_vout.c Hans Verkuil 2019-07-30 965 struct omapvideo_info *ovid = &vout->vid_info;
256acbebdc3b2d drivers/media/platform/omap/omap_vout.c Hans Verkuil 2019-07-30 966 struct omap_vout_buffer *voutbuf = vb2_to_omap_vout_buffer(vb);
256acbebdc3b2d drivers/media/platform/omap/omap_vout.c Hans Verkuil 2019-07-30 967 dma_addr_t buf_phy_addr = vb2_dma_contig_plane_dma_addr(vb, 0);
5c7ab6348e7b3f drivers/media/video/omap/omap_vout.c Vaibhav Hiremath 2010-04-11 968
256acbebdc3b2d drivers/media/platform/omap/omap_vout.c Hans Verkuil 2019-07-30 969 if (vb2_plane_size(vb, 0) < vout->pix.sizeimage) {
256acbebdc3b2d drivers/media/platform/omap/omap_vout.c Hans Verkuil 2019-07-30 970 v4l2_dbg(1, debug, &vout->vid_dev->v4l2_dev,
256acbebdc3b2d drivers/media/platform/omap/omap_vout.c Hans Verkuil 2019-07-30 971 "%s data will not fit into plane (%lu < %u)\n",
256acbebdc3b2d drivers/media/platform/omap/omap_vout.c Hans Verkuil 2019-07-30 972 __func__, vb2_plane_size(vb, 0), vout->pix.sizeimage);
5c7ab6348e7b3f drivers/media/video/omap/omap_vout.c Vaibhav Hiremath 2010-04-11 973 return -EINVAL;
5c7ab6348e7b3f drivers/media/video/omap/omap_vout.c Vaibhav Hiremath 2010-04-11 974 }
5c7ab6348e7b3f drivers/media/video/omap/omap_vout.c Vaibhav Hiremath 2010-04-11 975
256acbebdc3b2d drivers/media/platform/omap/omap_vout.c Hans Verkuil 2019-07-30 976 vb2_set_plane_payload(vb, 0, vout->pix.sizeimage);
256acbebdc3b2d drivers/media/platform/omap/omap_vout.c Hans Verkuil 2019-07-30 977 voutbuf->vbuf.field = V4L2_FIELD_NONE;
5c7ab6348e7b3f drivers/media/video/omap/omap_vout.c Vaibhav Hiremath 2010-04-11 978
256acbebdc3b2d drivers/media/platform/omap/omap_vout.c Hans Verkuil 2019-07-30 @979 vout->queued_buf_addr[vb->index] = (u8 *)buf_phy_addr;
256acbebdc3b2d drivers/media/platform/omap/omap_vout.c Hans Verkuil 2019-07-30 980 if (ovid->rotation_type == VOUT_ROT_VRFB)
256acbebdc3b2d drivers/media/platform/omap/omap_vout.c Hans Verkuil 2019-07-30 981 return omap_vout_prepare_vrfb(vout, vb);
256acbebdc3b2d drivers/media/platform/omap/omap_vout.c Hans Verkuil 2019-07-30 982 return 0;
5c7ab6348e7b3f drivers/media/video/omap/omap_vout.c Vaibhav Hiremath 2010-04-11 983 }
5c7ab6348e7b3f drivers/media/video/omap/omap_vout.c Vaibhav Hiremath 2010-04-11 984
:::::: The code at line 979 was first introduced by commit
:::::: 256acbebdc3b2ddfad4a5b1aa99488fad34b0f0d media: omap_vout: convert to vb2
:::::: TO: Hans Verkuil <hverkuil-cisco(a)xs4all.nl>
:::::: CC: Mauro Carvalho Chehab <mchehab+samsung(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [PATCH v4 08/11] pinctrl: Ingenic: Add pinctrl driver for JZ4750.
by kernel test robot
Hi "周琰杰,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on pinctrl/devel]
[also build test ERROR on robh/for-next linus/master v5.12-rc6 next-20210409]
[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/Zhou-Yanjie/Fix-bugs-and-add-sup...
base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
config: sh-allmodconfig (attached as .config)
compiler: sh4-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
# https://github.com/0day-ci/linux/commit/76f684ad7bcc8b973c1a622beb0c12cf1...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Zhou-Yanjie/Fix-bugs-and-add-support-for-new-Ingenic-SoCs/20210411-025656
git checkout 76f684ad7bcc8b973c1a622beb0c12cf13e7ba10
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the linux-review/Zhou-Yanjie/Fix-bugs-and-add-support-for-new-Ingenic-SoCs/20210411-025656 HEAD f620590a49d7d82d9e111928ccb3d435768a62e4 builds fine.
It only hurts bisectibility.
All error/warnings (new ones prefixed by >>):
>> drivers/pinctrl/pinctrl-ingenic.c:2882:3: error: field name not in record or union initializer
2882 | .compatible = "ingenic,jz4760-pinctrl",
| ^
drivers/pinctrl/pinctrl-ingenic.c:2882:3: note: (near initialization for 'ingenic_pinctrl_of_match')
drivers/pinctrl/pinctrl-ingenic.c:2883:3: error: field name not in record or union initializer
2883 | .data = IF_ENABLED(CONFIG_MACH_JZ4760, &jz4760_chip_info)
| ^
drivers/pinctrl/pinctrl-ingenic.c:2883:3: note: (near initialization for 'ingenic_pinctrl_of_match')
In file included from <command-line>:
>> include/linux/kconfig.h:79:33: warning: initialization of 'char' from 'const struct ingenic_chip_info *' makes integer from pointer without a cast [-Wint-conversion]
79 | #define IF_ENABLED(option, ptr) (IS_ENABLED(option) ? (ptr) : NULL)
| ^
drivers/pinctrl/pinctrl-ingenic.c:2883:11: note: in expansion of macro 'IF_ENABLED'
2883 | .data = IF_ENABLED(CONFIG_MACH_JZ4760, &jz4760_chip_info)
| ^~~~~~~~~~
include/linux/kconfig.h:79:33: note: (near initialization for 'ingenic_pinctrl_of_match[5].name[0]')
79 | #define IF_ENABLED(option, ptr) (IS_ENABLED(option) ? (ptr) : NULL)
| ^
drivers/pinctrl/pinctrl-ingenic.c:2883:11: note: in expansion of macro 'IF_ENABLED'
2883 | .data = IF_ENABLED(CONFIG_MACH_JZ4760, &jz4760_chip_info)
| ^~~~~~~~~~
>> drivers/pinctrl/pinctrl-ingenic.c:2865:63: warning: missing braces around initializer [-Wmissing-braces]
2865 | static const struct of_device_id ingenic_pinctrl_of_match[] = {
| ^
>> drivers/pinctrl/pinctrl-ingenic.c:2885:2: error: expected identifier or '(' before '{' token
2885 | {
| ^
drivers/pinctrl/pinctrl-ingenic.c:2888:3: error: expected identifier or '(' before ',' token
2888 | },
| ^
drivers/pinctrl/pinctrl-ingenic.c:2892:3: error: expected identifier or '(' before ',' token
2892 | },
| ^
drivers/pinctrl/pinctrl-ingenic.c:2896:3: error: expected identifier or '(' before ',' token
2896 | },
| ^
drivers/pinctrl/pinctrl-ingenic.c:2900:3: error: expected identifier or '(' before ',' token
2900 | },
| ^
drivers/pinctrl/pinctrl-ingenic.c:2904:3: error: expected identifier or '(' before ',' token
2904 | },
| ^
drivers/pinctrl/pinctrl-ingenic.c:2908:3: error: expected identifier or '(' before ',' token
2908 | },
| ^
drivers/pinctrl/pinctrl-ingenic.c:2912:3: error: expected identifier or '(' before ',' token
2912 | },
| ^
drivers/pinctrl/pinctrl-ingenic.c:2913:20: error: expected identifier or '(' before ',' token
2913 | { /* sentinel */ },
| ^
drivers/pinctrl/pinctrl-ingenic.c:1901:39: warning: 'x1830_chip_info' defined but not used [-Wunused-const-variable=]
1901 | static const struct ingenic_chip_info x1830_chip_info = {
| ^~~~~~~~~~~~~~~
drivers/pinctrl/pinctrl-ingenic.c:1695:39: warning: 'x1500_chip_info' defined but not used [-Wunused-const-variable=]
1695 | static const struct ingenic_chip_info x1500_chip_info = {
| ^~~~~~~~~~~~~~~
drivers/pinctrl/pinctrl-ingenic.c:1592:39: warning: 'x1000_chip_info' defined but not used [-Wunused-const-variable=]
1592 | static const struct ingenic_chip_info x1000_chip_info = {
| ^~~~~~~~~~~~~~~
drivers/pinctrl/pinctrl-ingenic.c:1379:39: warning: 'jz4780_chip_info' defined but not used [-Wunused-const-variable=]
1379 | static const struct ingenic_chip_info jz4780_chip_info = {
| ^~~~~~~~~~~~~~~~
drivers/pinctrl/pinctrl-ingenic.c:1119:39: warning: 'jz4770_chip_info' defined but not used [-Wunused-const-variable=]
1119 | static const struct ingenic_chip_info jz4770_chip_info = {
| ^~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
Selected by
- SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
- SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC
vim +2882 drivers/pinctrl/pinctrl-ingenic.c
b5c23aa4653796 Paul Cercueil 2017-05-12 2864
baf15647387e82 Paul Cercueil 2020-01-07 @2865 static const struct of_device_id ingenic_pinctrl_of_match[] = {
c6de2661f69f58 周琰杰 (Zhou Yanjie 2021-04-11 2866) {
c6de2661f69f58 周琰杰 (Zhou Yanjie 2021-04-11 2867) .compatible = "ingenic,jz4730-pinctrl",
c6de2661f69f58 周琰杰 (Zhou Yanjie 2021-04-11 2868) .data = IF_ENABLED(CONFIG_MACH_JZ4730, &jz4730_chip_info)
c6de2661f69f58 周琰杰 (Zhou Yanjie 2021-04-11 2869) },
9aa351784e6962 Paul Cercueil 2020-12-13 2870 {
9aa351784e6962 Paul Cercueil 2020-12-13 2871 .compatible = "ingenic,jz4740-pinctrl",
9aa351784e6962 Paul Cercueil 2020-12-13 2872 .data = IF_ENABLED(CONFIG_MACH_JZ4740, &jz4740_chip_info)
9aa351784e6962 Paul Cercueil 2020-12-13 2873 },
9aa351784e6962 Paul Cercueil 2020-12-13 2874 {
9aa351784e6962 Paul Cercueil 2020-12-13 2875 .compatible = "ingenic,jz4725b-pinctrl",
9aa351784e6962 Paul Cercueil 2020-12-13 2876 .data = IF_ENABLED(CONFIG_MACH_JZ4725B, &jz4725b_chip_info)
9aa351784e6962 Paul Cercueil 2020-12-13 2877 },
9aa351784e6962 Paul Cercueil 2020-12-13 2878 {
76f684ad7bcc8b 周琰杰 (Zhou Yanjie 2021-04-11 2879) .compatible = "ingenic,jz4750-pinctrl",
76f684ad7bcc8b 周琰杰 (Zhou Yanjie 2021-04-11 2880) .data = IF_ENABLED(CONFIG_MACH_JZ4750, &jz4750_chip_info)
76f684ad7bcc8b 周琰杰 (Zhou Yanjie 2021-04-11 2881) },
9aa351784e6962 Paul Cercueil 2020-12-13 @2882 .compatible = "ingenic,jz4760-pinctrl",
9aa351784e6962 Paul Cercueil 2020-12-13 @2883 .data = IF_ENABLED(CONFIG_MACH_JZ4760, &jz4760_chip_info)
9aa351784e6962 Paul Cercueil 2020-12-13 2884 },
9aa351784e6962 Paul Cercueil 2020-12-13 @2885 {
9aa351784e6962 Paul Cercueil 2020-12-13 2886 .compatible = "ingenic,jz4760b-pinctrl",
9aa351784e6962 Paul Cercueil 2020-12-13 2887 .data = IF_ENABLED(CONFIG_MACH_JZ4760, &jz4760_chip_info)
9aa351784e6962 Paul Cercueil 2020-12-13 2888 },
9aa351784e6962 Paul Cercueil 2020-12-13 2889 {
9aa351784e6962 Paul Cercueil 2020-12-13 2890 .compatible = "ingenic,jz4770-pinctrl",
9aa351784e6962 Paul Cercueil 2020-12-13 2891 .data = IF_ENABLED(CONFIG_MACH_JZ4770, &jz4770_chip_info)
9aa351784e6962 Paul Cercueil 2020-12-13 2892 },
9aa351784e6962 Paul Cercueil 2020-12-13 2893 {
9aa351784e6962 Paul Cercueil 2020-12-13 2894 .compatible = "ingenic,jz4780-pinctrl",
9aa351784e6962 Paul Cercueil 2020-12-13 2895 .data = IF_ENABLED(CONFIG_MACH_JZ4780, &jz4780_chip_info)
9aa351784e6962 Paul Cercueil 2020-12-13 2896 },
9aa351784e6962 Paul Cercueil 2020-12-13 2897 {
9aa351784e6962 Paul Cercueil 2020-12-13 2898 .compatible = "ingenic,x1000-pinctrl",
9aa351784e6962 Paul Cercueil 2020-12-13 2899 .data = IF_ENABLED(CONFIG_MACH_X1000, &x1000_chip_info)
9aa351784e6962 Paul Cercueil 2020-12-13 2900 },
9aa351784e6962 Paul Cercueil 2020-12-13 2901 {
9aa351784e6962 Paul Cercueil 2020-12-13 2902 .compatible = "ingenic,x1000e-pinctrl",
9aa351784e6962 Paul Cercueil 2020-12-13 2903 .data = IF_ENABLED(CONFIG_MACH_X1000, &x1000_chip_info)
9aa351784e6962 Paul Cercueil 2020-12-13 2904 },
9aa351784e6962 Paul Cercueil 2020-12-13 2905 {
9aa351784e6962 Paul Cercueil 2020-12-13 2906 .compatible = "ingenic,x1500-pinctrl",
9aa351784e6962 Paul Cercueil 2020-12-13 2907 .data = IF_ENABLED(CONFIG_MACH_X1500, &x1500_chip_info)
9aa351784e6962 Paul Cercueil 2020-12-13 2908 },
9aa351784e6962 Paul Cercueil 2020-12-13 2909 {
9aa351784e6962 Paul Cercueil 2020-12-13 2910 .compatible = "ingenic,x1830-pinctrl",
9aa351784e6962 Paul Cercueil 2020-12-13 2911 .data = IF_ENABLED(CONFIG_MACH_X1830, &x1830_chip_info)
9aa351784e6962 Paul Cercueil 2020-12-13 2912 },
9aa351784e6962 Paul Cercueil 2020-12-13 2913 { /* sentinel */ },
baf15647387e82 Paul Cercueil 2020-01-07 2914 };
baf15647387e82 Paul Cercueil 2020-01-07 2915
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [PATCH v2] USB:ohci:fix ohci interruption problem
by kernel test robot
Hi Longfang,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on usb/usb-testing]
[also build test ERROR on v5.12-rc6 next-20210409]
[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/Longfang-Liu/USB-ohci-fix-ohci-i...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: i386-randconfig-a012-20210411 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/fa57a31f84453b32378ba3d1410e7a549...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Longfang-Liu/USB-ohci-fix-ohci-interruption-problem/20210409-155150
git checkout fa57a31f84453b32378ba3d1410e7a549b5d397d
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 >>):
>> drivers/usb/core/hcd-pci.c:624:13: error: 'hcd_pci_freeze' undeclared here (not in a function); did you mean 'hcd_pci_resume'?
624 | .freeze = hcd_pci_freeze,
| ^~~~~~~~~~~~~~
| hcd_pci_resume
vim +624 drivers/usb/core/hcd-pci.c
618
619 const struct dev_pm_ops usb_hcd_pci_pm_ops = {
620 .suspend = hcd_pci_suspend,
621 .suspend_noirq = hcd_pci_suspend_noirq,
622 .resume_noirq = hcd_pci_resume_noirq,
623 .resume = hcd_pci_resume,
> 624 .freeze = hcd_pci_freeze,
625 .freeze_noirq = check_root_hub_suspended,
626 .thaw_noirq = NULL,
627 .thaw = NULL,
628 .poweroff = hcd_pci_suspend,
629 .poweroff_noirq = hcd_pci_suspend_noirq,
630 .restore_noirq = hcd_pci_resume_noirq,
631 .restore = hcd_pci_restore,
632 .runtime_suspend = hcd_pci_runtime_suspend,
633 .runtime_resume = hcd_pci_runtime_resume,
634 };
635 EXPORT_SYMBOL_GPL(usb_hcd_pci_pm_ops);
636
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months