Re: [PATCH 1/2] [lsm] introduce a new hook to query LSM for functionality
by kernel test robot
Hi Olga,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on nfs/linux-next]
[also build test ERROR on pcmoore-selinux/next linus/master security/next-testing v5.10-rc3 next-20201113]
[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/Olga-Kornievskaia/introduce-a-ne...
base: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git linux-next
config: mips-allyesconfig (attached as .config)
compiler: mips-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/0a59499b0fcef78631c9a8619f330ae47...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Olga-Kornievskaia/introduce-a-new-hook-to-query-LSM-for-functionality/20201106-013417
git checkout 0a59499b0fcef78631c9a8619f330ae47802742f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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 >>):
include/linux/lsm_hook_defs.h: In function 'bpf_lsm_func_query_vfs':
>> include/linux/lsm_hook_defs.h:260:34: error: parameter name omitted
260 | LSM_HOOK(int, 0, func_query_vfs, unsigned int)
| ^~~~~~~~~~~~
kernel/bpf/bpf_lsm.c:21:29: note: in definition of macro 'LSM_HOOK'
21 | noinline RET bpf_lsm_##NAME(__VA_ARGS__) \
| ^~~~~~~~~~~
vim +260 include/linux/lsm_hook_defs.h
107
108 /* Needed for inode based security check */
109 LSM_HOOK(int, 0, path_notify, const struct path *path, u64 mask,
110 unsigned int obj_type)
111 LSM_HOOK(int, 0, inode_alloc_security, struct inode *inode)
112 LSM_HOOK(void, LSM_RET_VOID, inode_free_security, struct inode *inode)
113 LSM_HOOK(int, 0, inode_init_security, struct inode *inode,
114 struct inode *dir, const struct qstr *qstr, const char **name,
115 void **value, size_t *len)
116 LSM_HOOK(int, 0, inode_create, struct inode *dir, struct dentry *dentry,
117 umode_t mode)
118 LSM_HOOK(int, 0, inode_link, struct dentry *old_dentry, struct inode *dir,
119 struct dentry *new_dentry)
120 LSM_HOOK(int, 0, inode_unlink, struct inode *dir, struct dentry *dentry)
121 LSM_HOOK(int, 0, inode_symlink, struct inode *dir, struct dentry *dentry,
122 const char *old_name)
123 LSM_HOOK(int, 0, inode_mkdir, struct inode *dir, struct dentry *dentry,
124 umode_t mode)
125 LSM_HOOK(int, 0, inode_rmdir, struct inode *dir, struct dentry *dentry)
126 LSM_HOOK(int, 0, inode_mknod, struct inode *dir, struct dentry *dentry,
127 umode_t mode, dev_t dev)
128 LSM_HOOK(int, 0, inode_rename, struct inode *old_dir, struct dentry *old_dentry,
129 struct inode *new_dir, struct dentry *new_dentry)
130 LSM_HOOK(int, 0, inode_readlink, struct dentry *dentry)
131 LSM_HOOK(int, 0, inode_follow_link, struct dentry *dentry, struct inode *inode,
132 bool rcu)
133 LSM_HOOK(int, 0, inode_permission, struct inode *inode, int mask)
134 LSM_HOOK(int, 0, inode_setattr, struct dentry *dentry, struct iattr *attr)
135 LSM_HOOK(int, 0, inode_getattr, const struct path *path)
136 LSM_HOOK(int, 0, inode_setxattr, struct dentry *dentry, const char *name,
137 const void *value, size_t size, int flags)
138 LSM_HOOK(void, LSM_RET_VOID, inode_post_setxattr, struct dentry *dentry,
139 const char *name, const void *value, size_t size, int flags)
140 LSM_HOOK(int, 0, inode_getxattr, struct dentry *dentry, const char *name)
141 LSM_HOOK(int, 0, inode_listxattr, struct dentry *dentry)
142 LSM_HOOK(int, 0, inode_removexattr, struct dentry *dentry, const char *name)
143 LSM_HOOK(int, 0, inode_need_killpriv, struct dentry *dentry)
144 LSM_HOOK(int, 0, inode_killpriv, struct dentry *dentry)
145 LSM_HOOK(int, -EOPNOTSUPP, inode_getsecurity, struct inode *inode,
146 const char *name, void **buffer, bool alloc)
147 LSM_HOOK(int, -EOPNOTSUPP, inode_setsecurity, struct inode *inode,
148 const char *name, const void *value, size_t size, int flags)
149 LSM_HOOK(int, 0, inode_listsecurity, struct inode *inode, char *buffer,
150 size_t buffer_size)
151 LSM_HOOK(void, LSM_RET_VOID, inode_getsecid, struct inode *inode, u32 *secid)
152 LSM_HOOK(int, 0, inode_copy_up, struct dentry *src, struct cred **new)
153 LSM_HOOK(int, -EOPNOTSUPP, inode_copy_up_xattr, const char *name)
154 LSM_HOOK(int, 0, kernfs_init_security, struct kernfs_node *kn_dir,
155 struct kernfs_node *kn)
156 LSM_HOOK(int, 0, file_permission, struct file *file, int mask)
157 LSM_HOOK(int, 0, file_alloc_security, struct file *file)
158 LSM_HOOK(void, LSM_RET_VOID, file_free_security, struct file *file)
159 LSM_HOOK(int, 0, file_ioctl, struct file *file, unsigned int cmd,
160 unsigned long arg)
161 LSM_HOOK(int, 0, mmap_addr, unsigned long addr)
162 LSM_HOOK(int, 0, mmap_file, struct file *file, unsigned long reqprot,
163 unsigned long prot, unsigned long flags)
164 LSM_HOOK(int, 0, file_mprotect, struct vm_area_struct *vma,
165 unsigned long reqprot, unsigned long prot)
166 LSM_HOOK(int, 0, file_lock, struct file *file, unsigned int cmd)
167 LSM_HOOK(int, 0, file_fcntl, struct file *file, unsigned int cmd,
168 unsigned long arg)
169 LSM_HOOK(void, LSM_RET_VOID, file_set_fowner, struct file *file)
170 LSM_HOOK(int, 0, file_send_sigiotask, struct task_struct *tsk,
171 struct fown_struct *fown, int sig)
172 LSM_HOOK(int, 0, file_receive, struct file *file)
173 LSM_HOOK(int, 0, file_open, struct file *file)
174 LSM_HOOK(int, 0, task_alloc, struct task_struct *task,
175 unsigned long clone_flags)
176 LSM_HOOK(void, LSM_RET_VOID, task_free, struct task_struct *task)
177 LSM_HOOK(int, 0, cred_alloc_blank, struct cred *cred, gfp_t gfp)
178 LSM_HOOK(void, LSM_RET_VOID, cred_free, struct cred *cred)
179 LSM_HOOK(int, 0, cred_prepare, struct cred *new, const struct cred *old,
180 gfp_t gfp)
181 LSM_HOOK(void, LSM_RET_VOID, cred_transfer, struct cred *new,
182 const struct cred *old)
183 LSM_HOOK(void, LSM_RET_VOID, cred_getsecid, const struct cred *c, u32 *secid)
184 LSM_HOOK(int, 0, kernel_act_as, struct cred *new, u32 secid)
185 LSM_HOOK(int, 0, kernel_create_files_as, struct cred *new, struct inode *inode)
186 LSM_HOOK(int, 0, kernel_module_request, char *kmod_name)
187 LSM_HOOK(int, 0, kernel_load_data, enum kernel_load_data_id id, bool contents)
188 LSM_HOOK(int, 0, kernel_post_load_data, char *buf, loff_t size,
189 enum kernel_load_data_id id, char *description)
190 LSM_HOOK(int, 0, kernel_read_file, struct file *file,
191 enum kernel_read_file_id id, bool contents)
192 LSM_HOOK(int, 0, kernel_post_read_file, struct file *file, char *buf,
193 loff_t size, enum kernel_read_file_id id)
194 LSM_HOOK(int, 0, task_fix_setuid, struct cred *new, const struct cred *old,
195 int flags)
196 LSM_HOOK(int, 0, task_fix_setgid, struct cred *new, const struct cred * old,
197 int flags)
198 LSM_HOOK(int, 0, task_setpgid, struct task_struct *p, pid_t pgid)
199 LSM_HOOK(int, 0, task_getpgid, struct task_struct *p)
200 LSM_HOOK(int, 0, task_getsid, struct task_struct *p)
201 LSM_HOOK(void, LSM_RET_VOID, task_getsecid, struct task_struct *p, u32 *secid)
202 LSM_HOOK(int, 0, task_setnice, struct task_struct *p, int nice)
203 LSM_HOOK(int, 0, task_setioprio, struct task_struct *p, int ioprio)
204 LSM_HOOK(int, 0, task_getioprio, struct task_struct *p)
205 LSM_HOOK(int, 0, task_prlimit, const struct cred *cred,
206 const struct cred *tcred, unsigned int flags)
207 LSM_HOOK(int, 0, task_setrlimit, struct task_struct *p, unsigned int resource,
208 struct rlimit *new_rlim)
209 LSM_HOOK(int, 0, task_setscheduler, struct task_struct *p)
210 LSM_HOOK(int, 0, task_getscheduler, struct task_struct *p)
211 LSM_HOOK(int, 0, task_movememory, struct task_struct *p)
212 LSM_HOOK(int, 0, task_kill, struct task_struct *p, struct kernel_siginfo *info,
213 int sig, const struct cred *cred)
214 LSM_HOOK(int, -ENOSYS, task_prctl, int option, unsigned long arg2,
215 unsigned long arg3, unsigned long arg4, unsigned long arg5)
216 LSM_HOOK(void, LSM_RET_VOID, task_to_inode, struct task_struct *p,
217 struct inode *inode)
218 LSM_HOOK(int, 0, ipc_permission, struct kern_ipc_perm *ipcp, short flag)
219 LSM_HOOK(void, LSM_RET_VOID, ipc_getsecid, struct kern_ipc_perm *ipcp,
220 u32 *secid)
221 LSM_HOOK(int, 0, msg_msg_alloc_security, struct msg_msg *msg)
222 LSM_HOOK(void, LSM_RET_VOID, msg_msg_free_security, struct msg_msg *msg)
223 LSM_HOOK(int, 0, msg_queue_alloc_security, struct kern_ipc_perm *perm)
224 LSM_HOOK(void, LSM_RET_VOID, msg_queue_free_security,
225 struct kern_ipc_perm *perm)
226 LSM_HOOK(int, 0, msg_queue_associate, struct kern_ipc_perm *perm, int msqflg)
227 LSM_HOOK(int, 0, msg_queue_msgctl, struct kern_ipc_perm *perm, int cmd)
228 LSM_HOOK(int, 0, msg_queue_msgsnd, struct kern_ipc_perm *perm,
229 struct msg_msg *msg, int msqflg)
230 LSM_HOOK(int, 0, msg_queue_msgrcv, struct kern_ipc_perm *perm,
231 struct msg_msg *msg, struct task_struct *target, long type, int mode)
232 LSM_HOOK(int, 0, shm_alloc_security, struct kern_ipc_perm *perm)
233 LSM_HOOK(void, LSM_RET_VOID, shm_free_security, struct kern_ipc_perm *perm)
234 LSM_HOOK(int, 0, shm_associate, struct kern_ipc_perm *perm, int shmflg)
235 LSM_HOOK(int, 0, shm_shmctl, struct kern_ipc_perm *perm, int cmd)
236 LSM_HOOK(int, 0, shm_shmat, struct kern_ipc_perm *perm, char __user *shmaddr,
237 int shmflg)
238 LSM_HOOK(int, 0, sem_alloc_security, struct kern_ipc_perm *perm)
239 LSM_HOOK(void, LSM_RET_VOID, sem_free_security, struct kern_ipc_perm *perm)
240 LSM_HOOK(int, 0, sem_associate, struct kern_ipc_perm *perm, int semflg)
241 LSM_HOOK(int, 0, sem_semctl, struct kern_ipc_perm *perm, int cmd)
242 LSM_HOOK(int, 0, sem_semop, struct kern_ipc_perm *perm, struct sembuf *sops,
243 unsigned nsops, int alter)
244 LSM_HOOK(int, 0, netlink_send, struct sock *sk, struct sk_buff *skb)
245 LSM_HOOK(void, LSM_RET_VOID, d_instantiate, struct dentry *dentry,
246 struct inode *inode)
247 LSM_HOOK(int, -EINVAL, getprocattr, struct task_struct *p, char *name,
248 char **value)
249 LSM_HOOK(int, -EINVAL, setprocattr, const char *name, void *value, size_t size)
250 LSM_HOOK(int, 0, ismaclabel, const char *name)
251 LSM_HOOK(int, -EOPNOTSUPP, secid_to_secctx, u32 secid, char **secdata,
252 u32 *seclen)
253 LSM_HOOK(int, 0, secctx_to_secid, const char *secdata, u32 seclen, u32 *secid)
254 LSM_HOOK(void, LSM_RET_VOID, release_secctx, char *secdata, u32 seclen)
255 LSM_HOOK(void, LSM_RET_VOID, inode_invalidate_secctx, struct inode *inode)
256 LSM_HOOK(int, 0, inode_notifysecctx, struct inode *inode, void *ctx, u32 ctxlen)
257 LSM_HOOK(int, 0, inode_setsecctx, struct dentry *dentry, void *ctx, u32 ctxlen)
258 LSM_HOOK(int, 0, inode_getsecctx, struct inode *inode, void **ctx,
259 u32 *ctxlen)
> 260 LSM_HOOK(int, 0, func_query_vfs, unsigned int)
261
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
ERROR: modpost: "vchiq_mmal_port_set_format" undefined!
by kernel test robot
Hi Jacopo,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f01c30de86f1047e9bae1b1b1417b0ce8dcd15b1
commit: b18ee53ad297264a79cf4ea566663f20786b6455 staging: bcm2835: Break MMAL support out from camera
date: 5 months ago
config: arm64-randconfig-r024-20201113 (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
# 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 b18ee53ad297264a79cf4ea566663f20786b6455
# 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 >>, old ones prefixed by <<):
>> ERROR: modpost: "vchiq_mmal_port_set_format" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_port_disable" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_port_parameter_set" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_component_finalise" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_port_connect_tunnel" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_component_enable" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_finalise" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_component_init" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_component_disable" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "mmal_vchi_buffer_init" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_port_enable" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_version" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_submit_buffer" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_init" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "mmal_vchi_buffer_cleanup" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_port_parameter_get" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[linux-stable-rc:linux-5.4.y 2956/3216] fs/cifs/inode.c:2613:1: warning: stack frame size of 1032 bytes in function 'cifs_setattr'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
head: 28fe0e171c2042692c2cf71df3e8cb4ad78d40da
commit: e2dca8845c37923200751b9b3f87d6d7320dc07f [2956/3216] cifs: handle -EINTR in cifs_setattr
config: mips-randconfig-r012-20201113 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 9e0c35655b6e8186baef8840b26ba4090503b554)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.4.y
git checkout e2dca8845c37923200751b9b3f87d6d7320dc07f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
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 >>):
>> fs/cifs/inode.c:2613:1: warning: stack frame size of 1032 bytes in function 'cifs_setattr' [-Wframe-larger-than=]
cifs_setattr(struct dentry *direntry, struct iattr *attrs)
^
1 warning generated.
vim +/cifs_setattr +2613 fs/cifs/inode.c
^1da177e4c3f415 Linus Torvalds 2005-04-16 2611
0510eeb7367aca0 Jeff Layton 2008-08-02 2612 int
0510eeb7367aca0 Jeff Layton 2008-08-02 @2613 cifs_setattr(struct dentry *direntry, struct iattr *attrs)
0510eeb7367aca0 Jeff Layton 2008-08-02 2614 {
fc64005c93090c0 Al Viro 2016-04-10 2615 struct cifs_sb_info *cifs_sb = CIFS_SB(direntry->d_sb);
96daf2b09178d8e Steve French 2011-05-27 2616 struct cifs_tcon *pTcon = cifs_sb_master_tcon(cifs_sb);
e2dca8845c37923 Ronnie Sahlberg 2020-10-09 2617 int rc, retries = 0;
0510eeb7367aca0 Jeff Layton 2008-08-02 2618
e2dca8845c37923 Ronnie Sahlberg 2020-10-09 2619 do {
0510eeb7367aca0 Jeff Layton 2008-08-02 2620 if (pTcon->unix_ext)
e2dca8845c37923 Ronnie Sahlberg 2020-10-09 2621 rc = cifs_setattr_unix(direntry, attrs);
e2dca8845c37923 Ronnie Sahlberg 2020-10-09 2622 else
e2dca8845c37923 Ronnie Sahlberg 2020-10-09 2623 rc = cifs_setattr_nounix(direntry, attrs);
e2dca8845c37923 Ronnie Sahlberg 2020-10-09 2624 retries++;
e2dca8845c37923 Ronnie Sahlberg 2020-10-09 2625 } while (is_retryable_error(rc) && retries < 2);
0510eeb7367aca0 Jeff Layton 2008-08-02 2626
0510eeb7367aca0 Jeff Layton 2008-08-02 2627 /* BB: add cifs_setattr_legacy for really old servers */
e2dca8845c37923 Ronnie Sahlberg 2020-10-09 2628 return rc;
0510eeb7367aca0 Jeff Layton 2008-08-02 2629 }
0510eeb7367aca0 Jeff Layton 2008-08-02 2630
:::::: The code at line 2613 was first introduced by commit
:::::: 0510eeb7367aca017c6320d04cfd9cbc3b5dd992 turn cifs_setattr into a multiplexor that calls the correct function
:::::: TO: Jeff Layton <jlayton(a)redhat.com>
:::::: CC: Steve French <sfrench(a)us.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH 2/2] drm/mediatek: Use struct dma_buf_map in GEM vmap ops
by kernel test robot
Hi Thomas,
I love your patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.10-rc3]
[cannot apply to next-20201113]
[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/Thomas-Zimmermann/drm-Build-fixe...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git f8394f232b1eab649ce2df5c5f15b0e528c92091
config: arm64-randconfig-r006-20201113 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 9a85643cd357e412cff69067bb5c4840e228c2ab)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/1e81f225d3ffc9e951faab8deb96ef620...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Thomas-Zimmermann/drm-Build-fixes-for-msm-and-mediatek/20201109-183736
git checkout 1e81f225d3ffc9e951faab8deb96ef6209db7742
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/mediatek/mtk_drm_crtc.c:23:
>> drivers/gpu/drm/mediatek/mtk_drm_gem.h:48:63: warning: declaration of 'struct dma_buf_map' will not be visible outside of this function [-Wvisibility]
int mtk_drm_gem_prime_vmap(struct drm_gem_object *obj, struct dma_buf_map *map);
^
drivers/gpu/drm/mediatek/mtk_drm_gem.h:49:66: warning: declaration of 'struct dma_buf_map' will not be visible outside of this function [-Wvisibility]
void mtk_drm_gem_prime_vunmap(struct drm_gem_object *obj, struct dma_buf_map *map);
^
2 warnings generated.
--
In file included from drivers/gpu/drm/mediatek/mtk_drm_drv.c:32:
>> drivers/gpu/drm/mediatek/mtk_drm_gem.h:48:63: warning: declaration of 'struct dma_buf_map' will not be visible outside of this function [-Wvisibility]
int mtk_drm_gem_prime_vmap(struct drm_gem_object *obj, struct dma_buf_map *map);
^
drivers/gpu/drm/mediatek/mtk_drm_gem.h:49:66: warning: declaration of 'struct dma_buf_map' will not be visible outside of this function [-Wvisibility]
void mtk_drm_gem_prime_vunmap(struct drm_gem_object *obj, struct dma_buf_map *map);
^
drivers/gpu/drm/mediatek/mtk_drm_drv.c:316:24: warning: no previous prototype for function 'mtk_drm_gem_prime_import' [-Wmissing-prototypes]
struct drm_gem_object *mtk_drm_gem_prime_import(struct drm_device *dev,
^
drivers/gpu/drm/mediatek/mtk_drm_drv.c:316:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct drm_gem_object *mtk_drm_gem_prime_import(struct drm_device *dev,
^
static
drivers/gpu/drm/mediatek/mtk_drm_drv.c:337:20: error: incompatible function pointer types initializing 'void *(*)(struct drm_gem_object *)' with an expression of type 'int (struct drm_gem_object *, struct dma_buf_map *)' [-Werror,-Wincompatible-function-pointer-types]
.gem_prime_vmap = mtk_drm_gem_prime_vmap,
^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/mediatek/mtk_drm_drv.c:338:22: error: incompatible function pointer types initializing 'void (*)(struct drm_gem_object *, void *)' with an expression of type 'void (struct drm_gem_object *, struct dma_buf_map *)' [-Werror,-Wincompatible-function-pointer-types]
.gem_prime_vunmap = mtk_drm_gem_prime_vunmap,
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/mediatek/mtk_drm_drv.c:500:15: warning: cast to smaller integer type 'enum mtk_ddp_comp_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
comp_type = (enum mtk_ddp_comp_type)of_id->data;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings and 2 errors generated.
--
In file included from drivers/gpu/drm/mediatek/mtk_drm_gem.c:14:
>> drivers/gpu/drm/mediatek/mtk_drm_gem.h:48:63: warning: declaration of 'struct dma_buf_map' will not be visible outside of this function [-Wvisibility]
int mtk_drm_gem_prime_vmap(struct drm_gem_object *obj, struct dma_buf_map *map);
^
drivers/gpu/drm/mediatek/mtk_drm_gem.h:49:66: warning: declaration of 'struct dma_buf_map' will not be visible outside of this function [-Wvisibility]
void mtk_drm_gem_prime_vunmap(struct drm_gem_object *obj, struct dma_buf_map *map);
^
drivers/gpu/drm/mediatek/mtk_drm_gem.c:232:63: warning: declaration of 'struct dma_buf_map' will not be visible outside of this function [-Wvisibility]
int mtk_drm_gem_prime_vmap(struct drm_gem_object *obj, struct dma_buf_map *map)
^
drivers/gpu/drm/mediatek/mtk_drm_gem.c:232:5: error: conflicting types for 'mtk_drm_gem_prime_vmap'
int mtk_drm_gem_prime_vmap(struct drm_gem_object *obj, struct dma_buf_map *map)
^
drivers/gpu/drm/mediatek/mtk_drm_gem.h:48:5: note: previous declaration is here
int mtk_drm_gem_prime_vmap(struct drm_gem_object *obj, struct dma_buf_map *map);
^
drivers/gpu/drm/mediatek/mtk_drm_gem.c:259:2: error: implicit declaration of function 'dma_buf_map_set_vaddr' [-Werror,-Wimplicit-function-declaration]
dma_buf_map_set_vaddr(map, mtk_gem->kvaddr);
^
drivers/gpu/drm/mediatek/mtk_drm_gem.c:264:66: warning: declaration of 'struct dma_buf_map' will not be visible outside of this function [-Wvisibility]
void mtk_drm_gem_prime_vunmap(struct drm_gem_object *obj, struct dma_buf_map *map)
^
drivers/gpu/drm/mediatek/mtk_drm_gem.c:264:6: error: conflicting types for 'mtk_drm_gem_prime_vunmap'
void mtk_drm_gem_prime_vunmap(struct drm_gem_object *obj, struct dma_buf_map *map)
^
drivers/gpu/drm/mediatek/mtk_drm_gem.h:49:6: note: previous declaration is here
void mtk_drm_gem_prime_vunmap(struct drm_gem_object *obj, struct dma_buf_map *map);
^
drivers/gpu/drm/mediatek/mtk_drm_gem.c:267:19: error: incomplete definition of type 'struct dma_buf_map'
void *vaddr = map->vaddr;
~~~^
drivers/gpu/drm/mediatek/mtk_drm_gem.c:264:66: note: forward declaration of 'struct dma_buf_map'
void mtk_drm_gem_prime_vunmap(struct drm_gem_object *obj, struct dma_buf_map *map)
^
4 warnings and 4 errors generated.
vim +48 drivers/gpu/drm/mediatek/mtk_drm_gem.h
36
37 void mtk_drm_gem_free_object(struct drm_gem_object *gem);
38 struct mtk_drm_gem_obj *mtk_drm_gem_create(struct drm_device *dev, size_t size,
39 bool alloc_kmap);
40 int mtk_drm_gem_dumb_create(struct drm_file *file_priv, struct drm_device *dev,
41 struct drm_mode_create_dumb *args);
42 int mtk_drm_gem_mmap(struct file *filp, struct vm_area_struct *vma);
43 int mtk_drm_gem_mmap_buf(struct drm_gem_object *obj,
44 struct vm_area_struct *vma);
45 struct sg_table *mtk_gem_prime_get_sg_table(struct drm_gem_object *obj);
46 struct drm_gem_object *mtk_gem_prime_import_sg_table(struct drm_device *dev,
47 struct dma_buf_attachment *attach, struct sg_table *sg);
> 48 int mtk_drm_gem_prime_vmap(struct drm_gem_object *obj, struct dma_buf_map *map);
49 void mtk_drm_gem_prime_vunmap(struct drm_gem_object *obj, struct dma_buf_map *map);
50
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [Intel-gfx] [PATCH 15/27] drm/i915/pxp: Destroy all type0 sessions upon teardown
by kernel test robot
Hi Sean,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on next-20201113]
[also build test WARNING on v5.10-rc3]
[cannot apply to drm-intel/for-linux-next char-misc/char-misc-testing v5.10-rc3 v5.10-rc2 v5.10-rc1]
[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/Sean-Z-Huang/drm-i915-pxp-Introd...
base: 92edc4aef86780a8ad01b092c6d6630bb3cb423d
config: x86_64-randconfig-a004-20201113 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 9a85643cd357e412cff69067bb5c4840e228c2ab)
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://github.com/0day-ci/linux/commit/b2c5c38f134701a462cb7e880c4cebcd7...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sean-Z-Huang/drm-i915-pxp-Introduce-Intel-PXP-component/20201114-094926
git checkout b2c5c38f134701a462cb7e880c4cebcd79e1d8c6
# 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 warnings (new ones prefixed by >>):
drivers/gpu/drm/i915/pxp/intel_pxp_sm.c:175:5: warning: no previous prototype for function 'pxp_sm_reg_read' [-Wmissing-prototypes]
int pxp_sm_reg_read(struct drm_i915_private *i915, u32 offset, u32 *regval)
^
drivers/gpu/drm/i915/pxp/intel_pxp_sm.c:175:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int pxp_sm_reg_read(struct drm_i915_private *i915, u32 offset, u32 *regval)
^
static
>> drivers/gpu/drm/i915/pxp/intel_pxp_sm.c:1146:5: warning: no previous prototype for function 'intel_pxp_sm_destroy_all_sw_sessions' [-Wmissing-prototypes]
int intel_pxp_sm_destroy_all_sw_sessions(struct drm_i915_private *i915, int session_type)
^
drivers/gpu/drm/i915/pxp/intel_pxp_sm.c:1146:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int intel_pxp_sm_destroy_all_sw_sessions(struct drm_i915_private *i915, int session_type)
^
static
2 warnings generated.
vim +/intel_pxp_sm_destroy_all_sw_sessions +1146 drivers/gpu/drm/i915/pxp/intel_pxp_sm.c
1145
> 1146 int intel_pxp_sm_destroy_all_sw_sessions(struct drm_i915_private *i915, int session_type)
1147 {
1148 int ret = 0;
1149 struct pxp_protected_session *current_session, *n;
1150
1151 list_for_each_entry_safe(current_session, n, pxp_session_list(i915, session_type), session_list) {
1152 ret = pxp_set_pxp_tag(i915, session_type, current_session->session_index, PROTECTION_MODE_NONE);
1153 if (ret)
1154 drm_dbg(&i915->drm, "Failed to pxp_set_pxp_tag()\n");
1155
1156 list_del(¤t_session->session_list);
1157 kfree(current_session);
1158 }
1159
1160 return ret;
1161 }
1162
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[RFC PATCH] drm/i915/pxp: intel_pxp_sm_destroy_all_sw_sessions() can be static
by kernel test robot
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
intel_pxp_sm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/pxp/intel_pxp_sm.c b/drivers/gpu/drm/i915/pxp/intel_pxp_sm.c
index 37fe2e5af88dcb..79dd930f1c0d8b 100644
--- a/drivers/gpu/drm/i915/pxp/intel_pxp_sm.c
+++ b/drivers/gpu/drm/i915/pxp/intel_pxp_sm.c
@@ -1143,7 +1143,7 @@ int pxp_sm_terminate_protected_session_unsafe(struct drm_i915_private *i915, int
return ret;
}
-int intel_pxp_sm_destroy_all_sw_sessions(struct drm_i915_private *i915, int session_type)
+static int intel_pxp_sm_destroy_all_sw_sessions(struct drm_i915_private *i915, int session_type)
{
int ret = 0;
struct pxp_protected_session *current_session, *n;
1 year, 10 months
Re: [Intel-gfx] [PATCH 15/27] drm/i915/pxp: Destroy all type0 sessions upon teardown
by kernel test robot
Hi Sean,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on next-20201113]
[also build test WARNING on v5.10-rc3]
[cannot apply to drm-intel/for-linux-next char-misc/char-misc-testing v5.10-rc3 v5.10-rc2 v5.10-rc1]
[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/Sean-Z-Huang/drm-i915-pxp-Introd...
base: 92edc4aef86780a8ad01b092c6d6630bb3cb423d
config: i386-randconfig-s001-20201114 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-107-gaf3512a6-dirty
# https://github.com/0day-ci/linux/commit/b2c5c38f134701a462cb7e880c4cebcd7...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sean-Z-Huang/drm-i915-pxp-Introduce-Intel-PXP-component/20201114-094926
git checkout b2c5c38f134701a462cb7e880c4cebcd79e1d8c6
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
drivers/gpu/drm/i915/pxp/intel_pxp_sm.c:175:5: sparse: sparse: symbol 'pxp_sm_reg_read' was not declared. Should it be static?
>> drivers/gpu/drm/i915/pxp/intel_pxp_sm.c:1146:5: sparse: sparse: symbol 'intel_pxp_sm_destroy_all_sw_sessions' was not declared. Should it be static?
Please review and possibly fold the followup patch.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH] mm/shmem.c: make shmem_mapping() inline
by kernel test robot
Hi Hui,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on mmotm/master]
url: https://github.com/0day-ci/linux/commits/Hui-Su/mm-shmem-c-make-shmem_map...
base: git://git.cmpxchg.org/linux-mmotm.git master
config: arm-randconfig-s032-20201113 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-107-gaf3512a6-dirty
# https://github.com/0day-ci/linux/commit/0434762d5523a3d702cd589a7f8e3771f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Hui-Su/mm-shmem-c-make-shmem_mapping-inline/20201113-215549
git checkout 0434762d5523a3d702cd589a7f8e3771fee7b3b2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
mm/filemap.c: note: in included file:
>> include/linux/shmem_fs.h:66:33: sparse: sparse: marked inline, but without a definition
>> include/linux/shmem_fs.h:66:33: sparse: sparse: marked inline, but without a definition
>> include/linux/shmem_fs.h:66:33: sparse: sparse: marked inline, but without a definition
--
mm/truncate.c: note: in included file:
>> include/linux/shmem_fs.h:66:33: sparse: sparse: marked inline, but without a definition
>> include/linux/shmem_fs.h:66:33: sparse: sparse: marked inline, but without a definition
>> include/linux/shmem_fs.h:66:33: sparse: sparse: marked inline, but without a definition
--
mm/memfd.c: note: in included file:
>> include/linux/shmem_fs.h:66:33: sparse: sparse: marked inline, but without a definition
vim +66 include/linux/shmem_fs.h
48
49 /*
50 * Functions in mm/shmem.c called directly from elsewhere:
51 */
52 extern const struct fs_parameter_description shmem_fs_parameters;
53 extern int shmem_init(void);
54 extern int shmem_init_fs_context(struct fs_context *fc);
55 extern struct file *shmem_file_setup(const char *name,
56 loff_t size, unsigned long flags);
57 extern struct file *shmem_kernel_file_setup(const char *name, loff_t size,
58 unsigned long flags);
59 extern struct file *shmem_file_setup_with_mnt(struct vfsmount *mnt,
60 const char *name, loff_t size, unsigned long flags);
61 extern int shmem_zero_setup(struct vm_area_struct *);
62 extern unsigned long shmem_get_unmapped_area(struct file *, unsigned long addr,
63 unsigned long len, unsigned long pgoff, unsigned long flags);
64 extern int shmem_lock(struct file *file, int lock, struct user_struct *user);
65 #ifdef CONFIG_SHMEM
> 66 extern inline bool shmem_mapping(struct address_space *mapping);
67 #else
68 static inline bool shmem_mapping(struct address_space *mapping)
69 {
70 return false;
71 }
72 #endif /* CONFIG_SHMEM */
73 extern void shmem_unlock_mapping(struct address_space *mapping);
74 extern struct page *shmem_read_mapping_page_gfp(struct address_space *mapping,
75 pgoff_t index, gfp_t gfp_mask);
76 extern void shmem_truncate_range(struct inode *inode, loff_t start, loff_t end);
77 extern int shmem_unuse(unsigned int type, bool frontswap,
78 unsigned long *fs_pages_to_unuse);
79
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months