diff options
author | cem <cem@FreeBSD.org> | 2015-11-09 16:50:42 +0000 |
---|---|---|
committer | cem <cem@FreeBSD.org> | 2015-11-09 16:50:42 +0000 |
commit | 81ddf1e4ee32e244d8252d9aee03ef29b875b28e (patch) | |
tree | 0b4c3a458c8326b2e4286d03ee6000c40861e4f6 /sys/compat | |
parent | 3b4605608b04b3a91b69ea133f19fab2f8b38879 (diff) | |
download | FreeBSD-src-81ddf1e4ee32e244d8252d9aee03ef29b875b28e.zip FreeBSD-src-81ddf1e4ee32e244d8252d9aee03ef29b875b28e.tar.gz |
linuxkpi/sysfs.h: Cast arg2 through intptr_t to avoid GCC warning
The code compiles fine under Clang, but GCC on PPC is less permissive about
integer and pointer sizes. (An intmax_t is clearly *large enough* to hold a
pointer value.)
Another follow-up to r290475.
Reported by: jhibbits
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/sysfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/sysfs.h b/sys/compat/linuxkpi/common/include/linux/sysfs.h index a102d43..68c6e92 100644 --- a/sys/compat/linuxkpi/common/include/linux/sysfs.h +++ b/sys/compat/linuxkpi/common/include/linux/sysfs.h @@ -80,7 +80,7 @@ sysctl_handle_attr(SYSCTL_HANDLER_ARGS) ssize_t len; kobj = arg1; - attr = (struct attribute *)arg2; + attr = (struct attribute *)(intptr_t)arg2; if (kobj->ktype == NULL || kobj->ktype->sysfs_ops == NULL) return (ENODEV); buf = (char *)get_zeroed_page(GFP_KERNEL); |