The NEED_IOCTL32 symbol needs to protect the entire if block, not just
the conditionals.
Change-Id: Ie33860b1d5677cec19ed19aa1ccc1ce0a26824ff
Reviewed-on: http://gerrit.openafs.org/2270
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
#else
#error Not done for this linux type
#endif
-#endif /* NEED_IOCTL32 */
{
if (copy_from_user(&sysargs32, (void *)arg,
sizeof(struct afsprocdata32)))
(unsigned long)sysargs32.param2,
(unsigned long)sysargs32.param3,
(unsigned long)sysargs32.param4);
- } else {
+ } else
+#endif /* NEED_IOCTL32 */
+ {
if (copy_from_user(&sysargs, (void *)arg, sizeof(struct afsprocdata)))
return -EFAULT;