aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-10-10 16:04:49 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-10-10 16:04:49 -0400
commitabb5a14fa20fdd400995926134b7be9eb8ce6048 (patch)
tree085add41cae3193b8c8293d25b453fd1ecae0c19 /drivers
parent911f9dab301e8583143c7e75b552eadd434ea0a8 (diff)
parente55f1d1d13e7f1c364672d667d78fd1f640ab9f9 (diff)
Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull misc vfs updates from Al Viro: "Assorted misc bits and pieces. There are several single-topic branches left after this (rename2 series from Miklos, current_time series from Deepa Dinamani, xattr series from Andreas, uaccess stuff from from me) and I'd prefer to send those separately" * 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (39 commits) proc: switch auxv to use of __mem_open() hpfs: support FIEMAP cifs: get rid of unused arguments of CIFSSMBWrite() posix_acl: uapi header split posix_acl: xattr representation cleanups fs/aio.c: eliminate redundant loads in put_aio_ring_file fs/internal.h: add const to ns_dentry_operations declaration compat: remove compat_printk() fs/buffer.c: make __getblk_slow() static proc: unsigned file descriptors fs/file: more unsigned file descriptors fs: compat: remove redundant check of nr_segs cachefiles: Fix attempt to read i_blocks after deleting file [ver #2] cifs: don't use memcpy() to copy struct iov_iter get rid of separate multipage fault-in primitives fs: Avoid premature clearing of capabilities fs: Give dentry to inode_change_ok() instead of inode fuse: Propagate dentry down to inode_change_ok() ceph: Propagate dentry down to inode_change_ok() xfs: Propagate dentry down to inode_change_ok() ...
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/armada/armada_gem.c2
-rw-r--r--drivers/gpu/drm/drm_debugfs.c4
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c6
-rw-r--r--drivers/gpu/drm/i915/i915_gem_execbuffer.c2
-rw-r--r--drivers/gpu/drm/msm/msm_perf.c4
-rw-r--r--drivers/gpu/drm/msm/msm_rd.c4
-rw-r--r--drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c6
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c16
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c4
-rw-r--r--drivers/staging/lustre/lustre/include/lustre_acl.h6
-rw-r--r--drivers/staging/lustre/lustre/llite/file.c4
-rw-r--r--drivers/staging/lustre/lustre/llite/llite_lib.c2
-rw-r--r--drivers/staging/lustre/lustre/ptlrpc/wiretest.c44
13 files changed, 47 insertions, 57 deletions
diff --git a/drivers/gpu/drm/armada/armada_gem.c b/drivers/gpu/drm/armada/armada_gem.c
index cb8f0347b934..ff843160c600 100644
--- a/drivers/gpu/drm/armada/armada_gem.c
+++ b/drivers/gpu/drm/armada/armada_gem.c
@@ -387,7 +387,7 @@ int armada_gem_pwrite_ioctl(struct drm_device *dev, void *data,
387 if (!access_ok(VERIFY_READ, ptr, args->size)) 387 if (!access_ok(VERIFY_READ, ptr, args->size))
388 return -EFAULT; 388 return -EFAULT;
389 389
390 ret = fault_in_multipages_readable(ptr, args->size); 390 ret = fault_in_pages_readable(ptr, args->size);
391 if (ret) 391 if (ret)
392 return ret; 392 return ret;
393 393
diff --git a/drivers/gpu/drm/drm_debugfs.c b/drivers/gpu/drm/drm_debugfs.c
index fa10cef2ba37..1205790ed960 100644
--- a/drivers/gpu/drm/drm_debugfs.c
+++ b/drivers/gpu/drm/drm_debugfs.c
@@ -104,8 +104,8 @@ int drm_debugfs_create_files(const struct drm_info_list *files, int count,
104 ent = debugfs_create_file(files[i].name, S_IFREG | S_IRUGO, 104 ent = debugfs_create_file(files[i].name, S_IFREG | S_IRUGO,
105 root, tmp, &drm_debugfs_fops); 105 root, tmp, &drm_debugfs_fops);
106 if (!ent) { 106 if (!ent) {
107 DRM_ERROR("Cannot create /sys/kernel/debug/dri/%s/%s\n", 107 DRM_ERROR("Cannot create /sys/kernel/debug/dri/%pd/%s\n",
108 root->d_name.name, files[i].name); 108 root, files[i].name);
109 kfree(tmp); 109 kfree(tmp);
110 ret = -1; 110 ret = -1;
111 goto fail; 111 goto fail;
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index a77ce9983f69..ccf56c60e6e8 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -675,7 +675,7 @@ i915_gem_gtt_pread(struct drm_device *dev,
675 675
676 mutex_unlock(&dev->struct_mutex); 676 mutex_unlock(&dev->struct_mutex);
677 if (likely(!i915.prefault_disable)) { 677 if (likely(!i915.prefault_disable)) {
678 ret = fault_in_multipages_writeable(user_data, remain); 678 ret = fault_in_pages_writeable(user_data, remain);
679 if (ret) { 679 if (ret) {
680 mutex_lock(&dev->struct_mutex); 680 mutex_lock(&dev->struct_mutex);
681 goto out_unpin; 681 goto out_unpin;
@@ -803,7 +803,7 @@ i915_gem_shmem_pread(struct drm_device *dev,
803 mutex_unlock(&dev->struct_mutex); 803 mutex_unlock(&dev->struct_mutex);
804 804
805 if (likely(!i915.prefault_disable) && !prefaulted) { 805 if (likely(!i915.prefault_disable) && !prefaulted) {
806 ret = fault_in_multipages_writeable(user_data, remain); 806 ret = fault_in_pages_writeable(user_data, remain);
807 /* Userspace is tricking us, but we've already clobbered 807 /* Userspace is tricking us, but we've already clobbered
808 * its pages with the prefault and promised to write the 808 * its pages with the prefault and promised to write the
809 * data up to the first fault. Hence ignore any errors 809 * data up to the first fault. Hence ignore any errors
@@ -1267,7 +1267,7 @@ i915_gem_pwrite_ioctl(struct drm_device *dev, void *data,
1267 return -EFAULT; 1267 return -EFAULT;
1268 1268
1269 if (likely(!i915.prefault_disable)) { 1269 if (likely(!i915.prefault_disable)) {
1270 ret = fault_in_multipages_readable(u64_to_user_ptr(args->data_ptr), 1270 ret = fault_in_pages_readable(u64_to_user_ptr(args->data_ptr),
1271 args->size); 1271 args->size);
1272 if (ret) 1272 if (ret)
1273 return -EFAULT; 1273 return -EFAULT;
diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
index b35e5b6475b2..72628edda376 100644
--- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c
+++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
@@ -1048,7 +1048,7 @@ validate_exec_list(struct drm_device *dev,
1048 return -EFAULT; 1048 return -EFAULT;
1049 1049
1050 if (likely(!i915.prefault_disable)) { 1050 if (likely(!i915.prefault_disable)) {
1051 if (fault_in_multipages_readable(ptr, length)) 1051 if (fault_in_pages_readable(ptr, length))
1052 return -EFAULT; 1052 return -EFAULT;
1053 } 1053 }
1054 } 1054 }
diff --git a/drivers/gpu/drm/msm/msm_perf.c b/drivers/gpu/drm/msm/msm_perf.c
index 17fe4e53e0d1..1627294575cb 100644
--- a/drivers/gpu/drm/msm/msm_perf.c
+++ b/drivers/gpu/drm/msm/msm_perf.c
@@ -229,8 +229,8 @@ int msm_perf_debugfs_init(struct drm_minor *minor)
229 perf->ent = debugfs_create_file("perf", S_IFREG | S_IRUGO, 229 perf->ent = debugfs_create_file("perf", S_IFREG | S_IRUGO,
230 minor->debugfs_root, perf, &perf_debugfs_fops); 230 minor->debugfs_root, perf, &perf_debugfs_fops);
231 if (!perf->ent) { 231 if (!perf->ent) {
232 DRM_ERROR("Cannot create /sys/kernel/debug/dri/%s/perf\n", 232 DRM_ERROR("Cannot create /sys/kernel/debug/dri/%pd/perf\n",
233 minor->debugfs_root->d_name.name); 233 minor->debugfs_root);
234 goto fail; 234 goto fail;
235 } 235 }
236 236
diff --git a/drivers/gpu/drm/msm/msm_rd.c b/drivers/gpu/drm/msm/msm_rd.c
index 3a5fdfcd67ae..8487f461f05f 100644
--- a/drivers/gpu/drm/msm/msm_rd.c
+++ b/drivers/gpu/drm/msm/msm_rd.c
@@ -243,8 +243,8 @@ int msm_rd_debugfs_init(struct drm_minor *minor)
243 rd->ent = debugfs_create_file("rd", S_IFREG | S_IRUGO, 243 rd->ent = debugfs_create_file("rd", S_IFREG | S_IRUGO,
244 minor->debugfs_root, rd, &rd_debugfs_fops); 244 minor->debugfs_root, rd, &rd_debugfs_fops);
245 if (!rd->ent) { 245 if (!rd->ent) {
246 DRM_ERROR("Cannot create /sys/kernel/debug/dri/%s/rd\n", 246 DRM_ERROR("Cannot create /sys/kernel/debug/dri/%pd/rd\n",
247 minor->debugfs_root->d_name.name); 247 minor->debugfs_root);
248 goto fail; 248 goto fail;
249 } 249 }
250 250
diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c b/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c
index f6591c83d636..affe760c8c22 100644
--- a/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c
+++ b/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c
@@ -2422,14 +2422,12 @@ int iwl_dbgfs_register(struct iwl_priv *priv, struct dentry *dbgfs_dir)
2422 */ 2422 */
2423 if (priv->mac80211_registered) { 2423 if (priv->mac80211_registered) {
2424 char buf[100]; 2424 char buf[100];
2425 struct dentry *mac80211_dir, *dev_dir, *root_dir; 2425 struct dentry *mac80211_dir, *dev_dir;
2426 2426
2427 dev_dir = dbgfs_dir->d_parent; 2427 dev_dir = dbgfs_dir->d_parent;
2428 root_dir = dev_dir->d_parent;
2429 mac80211_dir = priv->hw->wiphy->debugfsdir; 2428 mac80211_dir = priv->hw->wiphy->debugfsdir;
2430 2429
2431 snprintf(buf, 100, "../../%s/%s", root_dir->d_name.name, 2430 snprintf(buf, 100, "../../%pd2", dev_dir);
2432 dev_dir->d_name.name);
2433 2431
2434 if (!debugfs_create_symlink("iwlwifi", mac80211_dir, buf)) 2432 if (!debugfs_create_symlink("iwlwifi", mac80211_dir, buf))
2435 goto err; 2433 goto err;
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
index 2d6f44fbaf62..f4d75ffe3d8a 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
@@ -1571,8 +1571,8 @@ void iwl_mvm_vif_dbgfs_register(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
1571 mvmvif->dbgfs_dir = debugfs_create_dir("iwlmvm", dbgfs_dir); 1571 mvmvif->dbgfs_dir = debugfs_create_dir("iwlmvm", dbgfs_dir);
1572 1572
1573 if (!mvmvif->dbgfs_dir) { 1573 if (!mvmvif->dbgfs_dir) {
1574 IWL_ERR(mvm, "Failed to create debugfs directory under %s\n", 1574 IWL_ERR(mvm, "Failed to create debugfs directory under %pd\n",
1575 dbgfs_dir->d_name.name); 1575 dbgfs_dir);
1576 return; 1576 return;
1577 } 1577 }
1578 1578
@@ -1627,17 +1627,15 @@ void iwl_mvm_vif_dbgfs_register(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
1627 * find 1627 * find
1628 * netdev:wlan0 -> ../../../ieee80211/phy0/netdev:wlan0/iwlmvm/ 1628 * netdev:wlan0 -> ../../../ieee80211/phy0/netdev:wlan0/iwlmvm/
1629 */ 1629 */
1630 snprintf(buf, 100, "../../../%s/%s/%s/%s", 1630 snprintf(buf, 100, "../../../%pd3/%pd",
1631 dbgfs_dir->d_parent->d_parent->d_name.name, 1631 dbgfs_dir,
1632 dbgfs_dir->d_parent->d_name.name, 1632 mvmvif->dbgfs_dir);
1633 dbgfs_dir->d_name.name,
1634 mvmvif->dbgfs_dir->d_name.name);
1635 1633
1636 mvmvif->dbgfs_slink = debugfs_create_symlink(dbgfs_dir->d_name.name, 1634 mvmvif->dbgfs_slink = debugfs_create_symlink(dbgfs_dir->d_name.name,
1637 mvm->debugfs_dir, buf); 1635 mvm->debugfs_dir, buf);
1638 if (!mvmvif->dbgfs_slink) 1636 if (!mvmvif->dbgfs_slink)
1639 IWL_ERR(mvm, "Can't create debugfs symbolic link under %s\n", 1637 IWL_ERR(mvm, "Can't create debugfs symbolic link under %pd\n",
1640 dbgfs_dir->d_name.name); 1638 dbgfs_dir);
1641 return; 1639 return;
1642err: 1640err:
1643 IWL_ERR(mvm, "Can't create debugfs entity\n"); 1641 IWL_ERR(mvm, "Can't create debugfs entity\n");
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
index 539d718df797..07da4efe8458 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
@@ -1748,9 +1748,7 @@ int iwl_mvm_dbgfs_register(struct iwl_mvm *mvm, struct dentry *dbgfs_dir)
1748 * Create a symlink with mac80211. It will be removed when mac80211 1748 * Create a symlink with mac80211. It will be removed when mac80211
1749 * exists (before the opmode exists which removes the target.) 1749 * exists (before the opmode exists which removes the target.)
1750 */ 1750 */
1751 snprintf(buf, 100, "../../%s/%s", 1751 snprintf(buf, 100, "../../%pd2", dbgfs_dir->d_parent);
1752 dbgfs_dir->d_parent->d_parent->d_name.name,
1753 dbgfs_dir->d_parent->d_name.name);
1754 if (!debugfs_create_symlink("iwlwifi", mvm->hw->wiphy->debugfsdir, buf)) 1752 if (!debugfs_create_symlink("iwlwifi", mvm->hw->wiphy->debugfsdir, buf))
1755 goto err; 1753 goto err;
1756 1754
diff --git a/drivers/staging/lustre/lustre/include/lustre_acl.h b/drivers/staging/lustre/lustre/include/lustre_acl.h
index fecabe139b1f..9786f6caaade 100644
--- a/drivers/staging/lustre/lustre/include/lustre_acl.h
+++ b/drivers/staging/lustre/lustre/include/lustre_acl.h
@@ -38,8 +38,8 @@
38#include <linux/posix_acl_xattr.h> 38#include <linux/posix_acl_xattr.h>
39 39
40#define LUSTRE_POSIX_ACL_MAX_ENTRIES 32 40#define LUSTRE_POSIX_ACL_MAX_ENTRIES 32
41#define LUSTRE_POSIX_ACL_MAX_SIZE \ 41#define LUSTRE_POSIX_ACL_MAX_SIZE \
42 (sizeof(posix_acl_xattr_header) + \ 42 (sizeof(struct posix_acl_xattr_header) + \
43 LUSTRE_POSIX_ACL_MAX_ENTRIES * sizeof(posix_acl_xattr_entry)) 43 LUSTRE_POSIX_ACL_MAX_ENTRIES * sizeof(struct posix_acl_xattr_entry))
44 44
45#endif 45#endif
diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c
index d56863ff5866..65c945d8bae2 100644
--- a/drivers/staging/lustre/lustre/llite/file.c
+++ b/drivers/staging/lustre/lustre/llite/file.c
@@ -1121,8 +1121,8 @@ ll_file_io_generic(const struct lu_env *env, struct vvp_io_args *args,
1121 struct cl_io *io; 1121 struct cl_io *io;
1122 ssize_t result; 1122 ssize_t result;
1123 1123
1124 CDEBUG(D_VFSTRACE, "file: %s, type: %d ppos: %llu, count: %zu\n", 1124 CDEBUG(D_VFSTRACE, "file: %pD, type: %d ppos: %llu, count: %zu\n",
1125 file->f_path.dentry->d_name.name, iot, *ppos, count); 1125 file, iot, *ppos, count);
1126 1126
1127restart: 1127restart:
1128 io = vvp_env_thread_io(env); 1128 io = vvp_env_thread_io(env);
diff --git a/drivers/staging/lustre/lustre/llite/llite_lib.c b/drivers/staging/lustre/lustre/llite/llite_lib.c
index 6bb41b09172e..e5c62f4ce3d8 100644
--- a/drivers/staging/lustre/lustre/llite/llite_lib.c
+++ b/drivers/staging/lustre/lustre/llite/llite_lib.c
@@ -1459,7 +1459,7 @@ int ll_setattr_raw(struct dentry *dentry, struct iattr *attr, bool hsm_import)
1459 attr->ia_valid |= ATTR_MTIME | ATTR_CTIME; 1459 attr->ia_valid |= ATTR_MTIME | ATTR_CTIME;
1460 } 1460 }
1461 1461
1462 /* POSIX: check before ATTR_*TIME_SET set (from inode_change_ok) */ 1462 /* POSIX: check before ATTR_*TIME_SET set (from setattr_prepare) */
1463 if (attr->ia_valid & TIMES_SET_FLAGS) { 1463 if (attr->ia_valid & TIMES_SET_FLAGS) {
1464 if ((!uid_eq(current_fsuid(), inode->i_uid)) && 1464 if ((!uid_eq(current_fsuid(), inode->i_uid)) &&
1465 !capable(CFS_CAP_FOWNER)) 1465 !capable(CFS_CAP_FOWNER))
diff --git a/drivers/staging/lustre/lustre/ptlrpc/wiretest.c b/drivers/staging/lustre/lustre/ptlrpc/wiretest.c
index e5945e2ccc49..b05b1f935e4c 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/wiretest.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/wiretest.c
@@ -3742,32 +3742,28 @@ void lustre_assert_wire_constants(void)
3742 CLASSERT(FIEMAP_EXTENT_NET == 0x80000000); 3742 CLASSERT(FIEMAP_EXTENT_NET == 0x80000000);
3743 3743
3744 /* Checks for type posix_acl_xattr_entry */ 3744 /* Checks for type posix_acl_xattr_entry */
3745 LASSERTF((int)sizeof(posix_acl_xattr_entry) == 8, "found %lld\n", 3745 LASSERTF((int)sizeof(struct posix_acl_xattr_entry) == 8, "found %lld\n",
3746 (long long)(int)sizeof(posix_acl_xattr_entry)); 3746 (long long)(int)sizeof(struct posix_acl_xattr_entry));
3747 LASSERTF((int)offsetof(posix_acl_xattr_entry, e_tag) == 0, "found %lld\n", 3747 LASSERTF((int)offsetof(struct posix_acl_xattr_entry, e_tag) == 0, "found %lld\n",
3748 (long long)(int)offsetof(posix_acl_xattr_entry, e_tag)); 3748 (long long)(int)offsetof(struct posix_acl_xattr_entry, e_tag));
3749 LASSERTF((int)sizeof(((posix_acl_xattr_entry *)0)->e_tag) == 2, "found %lld\n", 3749 LASSERTF((int)sizeof(((struct posix_acl_xattr_entry *)0)->e_tag) == 2, "found %lld\n",
3750 (long long)(int)sizeof(((posix_acl_xattr_entry *)0)->e_tag)); 3750 (long long)(int)sizeof(((struct posix_acl_xattr_entry *)0)->e_tag));
3751 LASSERTF((int)offsetof(posix_acl_xattr_entry, e_perm) == 2, "found %lld\n", 3751 LASSERTF((int)offsetof(struct posix_acl_xattr_entry, e_perm) == 2, "found %lld\n",
3752 (long long)(int)offsetof(posix_acl_xattr_entry, e_perm)); 3752 (long long)(int)offsetof(struct posix_acl_xattr_entry, e_perm));
3753 LASSERTF((int)sizeof(((posix_acl_xattr_entry *)0)->e_perm) == 2, "found %lld\n", 3753 LASSERTF((int)sizeof(((struct posix_acl_xattr_entry *)0)->e_perm) == 2, "found %lld\n",
3754 (long long)(int)sizeof(((posix_acl_xattr_entry *)0)->e_perm)); 3754 (long long)(int)sizeof(((struct posix_acl_xattr_entry *)0)->e_perm));
3755 LASSERTF((int)offsetof(posix_acl_xattr_entry, e_id) == 4, "found %lld\n", 3755 LASSERTF((int)offsetof(struct posix_acl_xattr_entry, e_id) == 4, "found %lld\n",
3756 (long long)(int)offsetof(posix_acl_xattr_entry, e_id)); 3756 (long long)(int)offsetof(struct posix_acl_xattr_entry, e_id));
3757 LASSERTF((int)sizeof(((posix_acl_xattr_entry *)0)->e_id) == 4, "found %lld\n", 3757 LASSERTF((int)sizeof(((struct posix_acl_xattr_entry *)0)->e_id) == 4, "found %lld\n",
3758 (long long)(int)sizeof(((posix_acl_xattr_entry *)0)->e_id)); 3758 (long long)(int)sizeof(((struct posix_acl_xattr_entry *)0)->e_id));
3759 3759
3760 /* Checks for type posix_acl_xattr_header */ 3760 /* Checks for type posix_acl_xattr_header */
3761 LASSERTF((int)sizeof(posix_acl_xattr_header) == 4, "found %lld\n", 3761 LASSERTF((int)sizeof(struct posix_acl_xattr_header) == 4, "found %lld\n",
3762 (long long)(int)sizeof(posix_acl_xattr_header)); 3762 (long long)(int)sizeof(struct posix_acl_xattr_header));
3763 LASSERTF((int)offsetof(posix_acl_xattr_header, a_version) == 0, "found %lld\n", 3763 LASSERTF((int)offsetof(struct posix_acl_xattr_header, a_version) == 0, "found %lld\n",
3764 (long long)(int)offsetof(posix_acl_xattr_header, a_version)); 3764 (long long)(int)offsetof(struct posix_acl_xattr_header, a_version));
3765 LASSERTF((int)sizeof(((posix_acl_xattr_header *)0)->a_version) == 4, "found %lld\n", 3765 LASSERTF((int)sizeof(((struct posix_acl_xattr_header *)0)->a_version) == 4, "found %lld\n",
3766 (long long)(int)sizeof(((posix_acl_xattr_header *)0)->a_version)); 3766 (long long)(int)sizeof(((struct posix_acl_xattr_header *)0)->a_version));
3767 LASSERTF((int)offsetof(posix_acl_xattr_header, a_entries) == 4, "found %lld\n",
3768 (long long)(int)offsetof(posix_acl_xattr_header, a_entries));
3769 LASSERTF((int)sizeof(((posix_acl_xattr_header *)0)->a_entries) == 0, "found %lld\n",
3770 (long long)(int)sizeof(((posix_acl_xattr_header *)0)->a_entries));
3771 3767
3772 /* Checks for struct link_ea_header */ 3768 /* Checks for struct link_ea_header */
3773 LASSERTF((int)sizeof(struct link_ea_header) == 24, "found %lld\n", 3769 LASSERTF((int)sizeof(struct link_ea_header) == 24, "found %lld\n",