Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/configure b/configure
- index 885d5eb..4c5745b 100755
- --- a/configure
- +++ b/configure
- @@ -14471,7 +14471,7 @@ main (void)
- {
- int (*fsync) (struct file *, struct dentry *, int) = NULL;
- - struct file_operations fops __attribute__ ((unused));
- + file_operations_no_const fops __attribute__ ((unused));
- fops.fsync = fsync;
- @@ -14535,7 +14535,7 @@ main (void)
- {
- int (*fsync) (struct file *, int) = NULL;
- - struct file_operations fops __attribute__ ((unused));
- + file_operations_no_const fops __attribute__ ((unused));
- fops.fsync = fsync;
- @@ -14599,7 +14599,7 @@ main (void)
- {
- int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
- - struct file_operations fops __attribute__ ((unused));
- + file_operations_no_const fops __attribute__ ((unused));
- fops.fsync = fsync;
- @@ -14661,12 +14661,14 @@ cat >>conftest.$ac_ext <<_ACEOF
- #include <linux/fs.h>
- +typedef struct super_operations __attribute__ ((no_const)) super_operations_no_const;
- +
- int
- main (void)
- {
- void (*evict_inode) (struct inode *) = NULL;
- - struct super_operations sops __attribute__ ((unused)) = {
- + super_operations_no_const sops __attribute__ ((unused)) = {
- .evict_inode = evict_inode,
- };
- @@ -19241,7 +19243,7 @@ main (void)
- {
- int (*fsync) (struct file *, struct dentry *, int) = NULL;
- - struct file_operations fops __attribute__ ((unused));
- + file_operations_no_const fops __attribute__ ((unused));
- fops.fsync = fsync;
- @@ -19305,7 +19307,7 @@ main (void)
- {
- int (*fsync) (struct file *, int) = NULL;
- - struct file_operations fops __attribute__ ((unused));
- + file_operations_no_const fops __attribute__ ((unused));
- fops.fsync = fsync;
- @@ -19369,7 +19371,7 @@ main (void)
- {
- int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
- - struct file_operations fops __attribute__ ((unused));
- + file_operations_no_const fops __attribute__ ((unused));
- fops.fsync = fsync;
- @@ -19431,12 +19433,14 @@ cat >>conftest.$ac_ext <<_ACEOF
- #include <linux/fs.h>
- +typedef struct super_operations __attribute__ ((no_const)) super_operations_no_const;
- +
- int
- main (void)
- {
- void (*evict_inode) (struct inode *) = NULL;
- - struct super_operations sops __attribute__ ((unused)) = {
- + super_operations_no_const sops __attribute__ ((unused)) = {
- .evict_inode = evict_inode,
- };
- diff --git a/include/sys/zfs_acl.h b/include/sys/zfs_acl.h
- index b6ed439..7c3d85e 100644
- --- a/include/sys/zfs_acl.h
- +++ b/include/sys/zfs_acl.h
- @@ -139,7 +139,7 @@ typedef struct acl_ops {
- int (*ace_mask_off)(void); /* off of access mask in ace */
- int (*ace_data)(void *acep, void **datap);
- /* ptr to data if any */
- -} acl_ops_t;
- +} __attribute__((no_const)) acl_ops_t;
- /*
- * A zfs_acl_t structure is composed of a list of zfs_acl_node_t's.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement