wok-current annotate linux/stuff/aufs4-standalone.patch @ rev 25701

Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author Stanislas Leduc <shann@slitaz.org>
date Fri Apr 19 12:48:51 2024 +0000 (2 months ago)
parents
children
rev   line source
shann@25629 1 SPDX-License-Identifier: GPL-2.0
shann@25629 2 aufs4.19 standalone patch
shann@25629 3
shann@25629 4 diff --git a/fs/dcache.c b/fs/dcache.c
shann@25629 5 index 9f57bd87bce5a..328a13662ca2e 100644
shann@25629 6 --- a/fs/dcache.c
shann@25629 7 +++ b/fs/dcache.c
shann@25629 8 @@ -1343,6 +1343,7 @@ void d_walk(struct dentry *parent, void *data,
shann@25629 9 seq = 1;
shann@25629 10 goto again;
shann@25629 11 }
shann@25629 12 +EXPORT_SYMBOL_GPL(d_walk);
shann@25629 13
shann@25629 14 struct check_mount {
shann@25629 15 struct vfsmount *mnt;
shann@25629 16 @@ -2837,6 +2838,7 @@ void d_exchange(struct dentry *dentry1, struct dentry *dentry2)
shann@25629 17
shann@25629 18 write_sequnlock(&rename_lock);
shann@25629 19 }
shann@25629 20 +EXPORT_SYMBOL_GPL(d_exchange);
shann@25629 21
shann@25629 22 /**
shann@25629 23 * d_ancestor - search for an ancestor
shann@25629 24 diff --git a/fs/exec.c b/fs/exec.c
shann@25629 25 index 1ebf6e5a521d9..a72c294657eae 100644
shann@25629 26 --- a/fs/exec.c
shann@25629 27 +++ b/fs/exec.c
shann@25629 28 @@ -109,6 +109,7 @@ bool path_noexec(const struct path *path)
shann@25629 29 return (path->mnt->mnt_flags & MNT_NOEXEC) ||
shann@25629 30 (path->mnt->mnt_sb->s_iflags & SB_I_NOEXEC);
shann@25629 31 }
shann@25629 32 +EXPORT_SYMBOL_GPL(path_noexec);
shann@25629 33
shann@25629 34 #ifdef CONFIG_USELIB
shann@25629 35 /*
shann@25629 36 diff --git a/fs/fcntl.c b/fs/fcntl.c
shann@25629 37 index d4da10be555c9..fbc70ac63462f 100644
shann@25629 38 --- a/fs/fcntl.c
shann@25629 39 +++ b/fs/fcntl.c
shann@25629 40 @@ -85,6 +85,7 @@ int setfl(int fd, struct file *filp, unsigned long arg)
shann@25629 41 out:
shann@25629 42 return error;
shann@25629 43 }
shann@25629 44 +EXPORT_SYMBOL_GPL(setfl);
shann@25629 45
shann@25629 46 static void f_modown(struct file *filp, struct pid *pid, enum pid_type type,
shann@25629 47 int force)
shann@25629 48 diff --git a/fs/file_table.c b/fs/file_table.c
shann@25629 49 index e49af4caf15d9..569020fd1fb38 100644
shann@25629 50 --- a/fs/file_table.c
shann@25629 51 +++ b/fs/file_table.c
shann@25629 52 @@ -161,6 +161,7 @@ struct file *alloc_empty_file(int flags, const struct cred *cred)
shann@25629 53 }
shann@25629 54 return ERR_PTR(-ENFILE);
shann@25629 55 }
shann@25629 56 +EXPORT_SYMBOL_GPL(alloc_empty_file);
shann@25629 57
shann@25629 58 /*
shann@25629 59 * Variant of alloc_empty_file() that doesn't check and modify nr_files.
shann@25629 60 @@ -323,6 +324,7 @@ void flush_delayed_fput(void)
shann@25629 61 {
shann@25629 62 delayed_fput(NULL);
shann@25629 63 }
shann@25629 64 +EXPORT_SYMBOL_GPL(flush_delayed_fput);
shann@25629 65
shann@25629 66 static DECLARE_DELAYED_WORK(delayed_fput_work, delayed_fput);
shann@25629 67
shann@25629 68 @@ -365,6 +367,7 @@ void __fput_sync(struct file *file)
shann@25629 69 }
shann@25629 70
shann@25629 71 EXPORT_SYMBOL(fput);
shann@25629 72 +EXPORT_SYMBOL_GPL(__fput_sync);
shann@25629 73
shann@25629 74 void __init files_init(void)
shann@25629 75 {
shann@25629 76 diff --git a/fs/inode.c b/fs/inode.c
shann@25629 77 index fa6ae6a217fbd..69d4a6cded14b 100644
shann@25629 78 --- a/fs/inode.c
shann@25629 79 +++ b/fs/inode.c
shann@25629 80 @@ -1666,6 +1666,7 @@ int update_time(struct inode *inode, struct timespec64 *time, int flags)
shann@25629 81
shann@25629 82 return update_time(inode, time, flags);
shann@25629 83 }
shann@25629 84 +EXPORT_SYMBOL_GPL(update_time);
shann@25629 85
shann@25629 86 /**
shann@25629 87 * touch_atime - update the access time
shann@25629 88 diff --git a/fs/namespace.c b/fs/namespace.c
shann@25629 89 index 72c93f3e86478..c49803ce04b8b 100644
shann@25629 90 --- a/fs/namespace.c
shann@25629 91 +++ b/fs/namespace.c
shann@25629 92 @@ -437,6 +437,7 @@ void __mnt_drop_write(struct vfsmount *mnt)
shann@25629 93 mnt_dec_writers(real_mount(mnt));
shann@25629 94 preempt_enable();
shann@25629 95 }
shann@25629 96 +EXPORT_SYMBOL_GPL(__mnt_drop_write);
shann@25629 97
shann@25629 98 /**
shann@25629 99 * mnt_drop_write - give up write access to a mount
shann@25629 100 @@ -775,6 +776,7 @@ int is_current_mnt_ns(struct vfsmount *mnt)
shann@25629 101 {
shann@25629 102 return check_mnt(real_mount(mnt));
shann@25629 103 }
shann@25629 104 +EXPORT_SYMBOL_GPL(is_current_mnt_ns);
shann@25629 105
shann@25629 106 /*
shann@25629 107 * vfsmount lock must be held for write
shann@25629 108 @@ -1832,6 +1834,7 @@ int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg,
shann@25629 109 }
shann@25629 110 return 0;
shann@25629 111 }
shann@25629 112 +EXPORT_SYMBOL_GPL(iterate_mounts);
shann@25629 113
shann@25629 114 static void cleanup_group_ids(struct mount *mnt, struct mount *end)
shann@25629 115 {
shann@25629 116 diff --git a/fs/notify/group.c b/fs/notify/group.c
shann@25629 117 index c03b836628769..94d210ca384a6 100644
shann@25629 118 --- a/fs/notify/group.c
shann@25629 119 +++ b/fs/notify/group.c
shann@25629 120 @@ -112,6 +112,7 @@ void fsnotify_get_group(struct fsnotify_group *group)
shann@25629 121 {
shann@25629 122 refcount_inc(&group->refcnt);
shann@25629 123 }
shann@25629 124 +EXPORT_SYMBOL_GPL(fsnotify_get_group);
shann@25629 125
shann@25629 126 /*
shann@25629 127 * Drop a reference to a group. Free it if it's through.
shann@25629 128 @@ -121,6 +122,7 @@ void fsnotify_put_group(struct fsnotify_group *group)
shann@25629 129 if (refcount_dec_and_test(&group->refcnt))
shann@25629 130 fsnotify_final_destroy_group(group);
shann@25629 131 }
shann@25629 132 +EXPORT_SYMBOL_GPL(fsnotify_put_group);
shann@25629 133
shann@25629 134 /*
shann@25629 135 * Create a new fsnotify_group and hold a reference for the group returned.
shann@25629 136 @@ -150,6 +152,7 @@ struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops)
shann@25629 137
shann@25629 138 return group;
shann@25629 139 }
shann@25629 140 +EXPORT_SYMBOL_GPL(fsnotify_alloc_group);
shann@25629 141
shann@25629 142 int fsnotify_fasync(int fd, struct file *file, int on)
shann@25629 143 {
shann@25629 144 diff --git a/fs/notify/mark.c b/fs/notify/mark.c
shann@25629 145 index 59cdb27826def..ce365c73f4fea 100644
shann@25629 146 --- a/fs/notify/mark.c
shann@25629 147 +++ b/fs/notify/mark.c
shann@25629 148 @@ -263,6 +263,7 @@ void fsnotify_put_mark(struct fsnotify_mark *mark)
shann@25629 149 queue_delayed_work(system_unbound_wq, &reaper_work,
shann@25629 150 FSNOTIFY_REAPER_DELAY);
shann@25629 151 }
shann@25629 152 +EXPORT_SYMBOL_GPL(fsnotify_put_mark);
shann@25629 153
shann@25629 154 /*
shann@25629 155 * Get mark reference when we found the mark via lockless traversal of object
shann@25629 156 @@ -417,6 +418,7 @@ void fsnotify_destroy_mark(struct fsnotify_mark *mark,
shann@25629 157 mutex_unlock(&group->mark_mutex);
shann@25629 158 fsnotify_free_mark(mark);
shann@25629 159 }
shann@25629 160 +EXPORT_SYMBOL_GPL(fsnotify_destroy_mark);
shann@25629 161
shann@25629 162 /*
shann@25629 163 * Sorting function for lists of fsnotify marks.
shann@25629 164 @@ -632,6 +634,7 @@ int fsnotify_add_mark(struct fsnotify_mark *mark, fsnotify_connp_t *connp,
shann@25629 165 mutex_unlock(&group->mark_mutex);
shann@25629 166 return ret;
shann@25629 167 }
shann@25629 168 +EXPORT_SYMBOL_GPL(fsnotify_add_mark);
shann@25629 169
shann@25629 170 /*
shann@25629 171 * Given a list of marks, find the mark associated with given group. If found
shann@25629 172 @@ -754,6 +757,7 @@ void fsnotify_init_mark(struct fsnotify_mark *mark,
shann@25629 173 fsnotify_get_group(group);
shann@25629 174 mark->group = group;
shann@25629 175 }
shann@25629 176 +EXPORT_SYMBOL_GPL(fsnotify_init_mark);
shann@25629 177
shann@25629 178 /*
shann@25629 179 * Destroy all marks in destroy_list, waits for SRCU period to finish before
shann@25629 180 diff --git a/fs/open.c b/fs/open.c
shann@25629 181 index 0285ce7dbd515..cb81623a8b09e 100644
shann@25629 182 --- a/fs/open.c
shann@25629 183 +++ b/fs/open.c
shann@25629 184 @@ -64,6 +64,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
shann@25629 185 inode_unlock(dentry->d_inode);
shann@25629 186 return ret;
shann@25629 187 }
shann@25629 188 +EXPORT_SYMBOL_GPL(do_truncate);
shann@25629 189
shann@25629 190 long vfs_truncate(const struct path *path, loff_t length)
shann@25629 191 {
shann@25629 192 diff --git a/fs/read_write.c b/fs/read_write.c
shann@25629 193 index 45e3e7a0d4e64..f802a3865acf4 100644
shann@25629 194 --- a/fs/read_write.c
shann@25629 195 +++ b/fs/read_write.c
shann@25629 196 @@ -459,6 +459,7 @@ ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos)
shann@25629 197
shann@25629 198 return ret;
shann@25629 199 }
shann@25629 200 +EXPORT_SYMBOL_GPL(vfs_read);
shann@25629 201
shann@25629 202 static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos)
shann@25629 203 {
shann@25629 204 @@ -499,6 +500,7 @@ vfs_readf_t vfs_readf(struct file *file)
shann@25629 205 return new_sync_read;
shann@25629 206 return ERR_PTR(-ENOSYS); /* doesn't have ->read(|_iter)() op */
shann@25629 207 }
shann@25629 208 +EXPORT_SYMBOL_GPL(vfs_readf);
shann@25629 209
shann@25629 210 vfs_writef_t vfs_writef(struct file *file)
shann@25629 211 {
shann@25629 212 @@ -510,6 +512,7 @@ vfs_writef_t vfs_writef(struct file *file)
shann@25629 213 return new_sync_write;
shann@25629 214 return ERR_PTR(-ENOSYS); /* doesn't have ->write(|_iter)() op */
shann@25629 215 }
shann@25629 216 +EXPORT_SYMBOL_GPL(vfs_writef);
shann@25629 217
shann@25629 218 ssize_t __kernel_write(struct file *file, const void *buf, size_t count, loff_t *pos)
shann@25629 219 {
shann@25629 220 @@ -579,6 +582,7 @@ ssize_t vfs_write(struct file *file, const char __user *buf, size_t count, loff_
shann@25629 221
shann@25629 222 return ret;
shann@25629 223 }
shann@25629 224 +EXPORT_SYMBOL_GPL(vfs_write);
shann@25629 225
shann@25629 226 static inline loff_t file_pos_read(struct file *file)
shann@25629 227 {
shann@25629 228 diff --git a/fs/splice.c b/fs/splice.c
shann@25629 229 index 1dd7f96b22dc4..a5e3bcba0ea26 100644
shann@25629 230 --- a/fs/splice.c
shann@25629 231 +++ b/fs/splice.c
shann@25629 232 @@ -851,6 +851,7 @@ long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
shann@25629 233
shann@25629 234 return splice_write(pipe, out, ppos, len, flags);
shann@25629 235 }
shann@25629 236 +EXPORT_SYMBOL_GPL(do_splice_from);
shann@25629 237
shann@25629 238 /*
shann@25629 239 * Attempt to initiate a splice from a file to a pipe.
shann@25629 240 @@ -880,6 +881,7 @@ long do_splice_to(struct file *in, loff_t *ppos,
shann@25629 241
shann@25629 242 return splice_read(in, ppos, pipe, len, flags);
shann@25629 243 }
shann@25629 244 +EXPORT_SYMBOL_GPL(do_splice_to);
shann@25629 245
shann@25629 246 /**
shann@25629 247 * splice_direct_to_actor - splices data directly between two non-pipes
shann@25629 248 diff --git a/fs/sync.c b/fs/sync.c
shann@25629 249 index 28607828e96f2..ffd7ea43831ea 100644
shann@25629 250 --- a/fs/sync.c
shann@25629 251 +++ b/fs/sync.c
shann@25629 252 @@ -39,6 +39,7 @@ int __sync_filesystem(struct super_block *sb, int wait)
shann@25629 253 sb->s_op->sync_fs(sb, wait);
shann@25629 254 return __sync_blockdev(sb->s_bdev, wait);
shann@25629 255 }
shann@25629 256 +EXPORT_SYMBOL_GPL(__sync_filesystem);
shann@25629 257
shann@25629 258 /*
shann@25629 259 * Write out and wait upon all dirty data associated with this
shann@25629 260 diff --git a/fs/xattr.c b/fs/xattr.c
shann@25629 261 index 0d6a6a4af8616..7ce4701b7289d 100644
shann@25629 262 --- a/fs/xattr.c
shann@25629 263 +++ b/fs/xattr.c
shann@25629 264 @@ -295,6 +295,7 @@ vfs_getxattr_alloc(struct dentry *dentry, const char *name, char **xattr_value,
shann@25629 265 *xattr_value = value;
shann@25629 266 return error;
shann@25629 267 }
shann@25629 268 +EXPORT_SYMBOL_GPL(vfs_getxattr_alloc);
shann@25629 269
shann@25629 270 ssize_t
shann@25629 271 __vfs_getxattr(struct dentry *dentry, struct inode *inode, const char *name,
shann@25629 272 diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
shann@25629 273 index fa6f5599a2a5e..7ac19efdac047 100644
shann@25629 274 --- a/kernel/locking/lockdep.c
shann@25629 275 +++ b/kernel/locking/lockdep.c
shann@25629 276 @@ -151,6 +151,7 @@ inline struct lock_class *lockdep_hlock_class(struct held_lock *hlock)
shann@25629 277 }
shann@25629 278 return lock_classes + hlock->class_idx - 1;
shann@25629 279 }
shann@25629 280 +EXPORT_SYMBOL_GPL(lockdep_hlock_class);
shann@25629 281 #define hlock_class(hlock) lockdep_hlock_class(hlock)
shann@25629 282
shann@25629 283 #ifdef CONFIG_LOCK_STAT
shann@25629 284 diff --git a/kernel/task_work.c b/kernel/task_work.c
shann@25629 285 index 0fef395662a6e..83fb1ecfc33de 100644
shann@25629 286 --- a/kernel/task_work.c
shann@25629 287 +++ b/kernel/task_work.c
shann@25629 288 @@ -116,3 +116,4 @@ void task_work_run(void)
shann@25629 289 } while (work);
shann@25629 290 }
shann@25629 291 }
shann@25629 292 +EXPORT_SYMBOL_GPL(task_work_run);
shann@25629 293 diff --git a/security/device_cgroup.c b/security/device_cgroup.c
shann@25629 294 index cd97929fac663..20c59b2e3b261 100644
shann@25629 295 --- a/security/device_cgroup.c
shann@25629 296 +++ b/security/device_cgroup.c
shann@25629 297 @@ -824,3 +824,4 @@ int __devcgroup_check_permission(short type, u32 major, u32 minor,
shann@25629 298
shann@25629 299 return 0;
shann@25629 300 }
shann@25629 301 +EXPORT_SYMBOL_GPL(__devcgroup_check_permission);
shann@25629 302 diff --git a/security/security.c b/security/security.c
shann@25629 303 index 736e78da1ab9d..c67016362c13e 100644
shann@25629 304 --- a/security/security.c
shann@25629 305 +++ b/security/security.c
shann@25629 306 @@ -542,6 +542,7 @@ int security_path_rmdir(const struct path *dir, struct dentry *dentry)
shann@25629 307 return 0;
shann@25629 308 return call_int_hook(path_rmdir, 0, dir, dentry);
shann@25629 309 }
shann@25629 310 +EXPORT_SYMBOL_GPL(security_path_rmdir);
shann@25629 311
shann@25629 312 int security_path_unlink(const struct path *dir, struct dentry *dentry)
shann@25629 313 {
shann@25629 314 @@ -558,6 +559,7 @@ int security_path_symlink(const struct path *dir, struct dentry *dentry,
shann@25629 315 return 0;
shann@25629 316 return call_int_hook(path_symlink, 0, dir, dentry, old_name);
shann@25629 317 }
shann@25629 318 +EXPORT_SYMBOL_GPL(security_path_symlink);
shann@25629 319
shann@25629 320 int security_path_link(struct dentry *old_dentry, const struct path *new_dir,
shann@25629 321 struct dentry *new_dentry)
shann@25629 322 @@ -566,6 +568,7 @@ int security_path_link(struct dentry *old_dentry, const struct path *new_dir,
shann@25629 323 return 0;
shann@25629 324 return call_int_hook(path_link, 0, old_dentry, new_dir, new_dentry);
shann@25629 325 }
shann@25629 326 +EXPORT_SYMBOL_GPL(security_path_link);
shann@25629 327
shann@25629 328 int security_path_rename(const struct path *old_dir, struct dentry *old_dentry,
shann@25629 329 const struct path *new_dir, struct dentry *new_dentry,
shann@25629 330 @@ -593,6 +596,7 @@ int security_path_truncate(const struct path *path)
shann@25629 331 return 0;
shann@25629 332 return call_int_hook(path_truncate, 0, path);
shann@25629 333 }
shann@25629 334 +EXPORT_SYMBOL_GPL(security_path_truncate);
shann@25629 335
shann@25629 336 int security_path_chmod(const struct path *path, umode_t mode)
shann@25629 337 {
shann@25629 338 @@ -600,6 +604,7 @@ int security_path_chmod(const struct path *path, umode_t mode)
shann@25629 339 return 0;
shann@25629 340 return call_int_hook(path_chmod, 0, path, mode);
shann@25629 341 }
shann@25629 342 +EXPORT_SYMBOL_GPL(security_path_chmod);
shann@25629 343
shann@25629 344 int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid)
shann@25629 345 {
shann@25629 346 @@ -607,6 +612,7 @@ int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid)
shann@25629 347 return 0;
shann@25629 348 return call_int_hook(path_chown, 0, path, uid, gid);
shann@25629 349 }
shann@25629 350 +EXPORT_SYMBOL_GPL(security_path_chown);
shann@25629 351
shann@25629 352 int security_path_chroot(const struct path *path)
shann@25629 353 {
shann@25629 354 @@ -707,6 +713,7 @@ int security_inode_permission(struct inode *inode, int mask)
shann@25629 355 return 0;
shann@25629 356 return call_int_hook(inode_permission, 0, inode, mask);
shann@25629 357 }
shann@25629 358 +EXPORT_SYMBOL_GPL(security_inode_permission);
shann@25629 359
shann@25629 360 int security_inode_setattr(struct dentry *dentry, struct iattr *attr)
shann@25629 361 {
shann@25629 362 @@ -878,6 +885,7 @@ int security_file_permission(struct file *file, int mask)
shann@25629 363
shann@25629 364 return fsnotify_perm(file, mask);
shann@25629 365 }
shann@25629 366 +EXPORT_SYMBOL_GPL(security_file_permission);
shann@25629 367
shann@25629 368 int security_file_alloc(struct file *file)
shann@25629 369 {
shann@25629 370 @@ -937,6 +945,7 @@ int security_mmap_file(struct file *file, unsigned long prot,
shann@25629 371 return ret;
shann@25629 372 return ima_file_mmap(file, prot);
shann@25629 373 }
shann@25629 374 +EXPORT_SYMBOL_GPL(security_mmap_file);
shann@25629 375
shann@25629 376 int security_mmap_addr(unsigned long addr)
shann@25629 377 {