Re: [PATCH 5.5 284/367] compat: scsi: sg: fix v3 compat read/write interface

Arnd Bergmann
2020-02-10T15:58:15Z

On Mon, Feb 10, 2020 at 4:41 PM Naresh Kamboju
<naresh.kamboju@linaro.org> wrote:
>
> The arm64 architecture 64k page size enabled build failed on stable rc 5.5
> CONFIG_ARM64_64K_PAGES=y
> CROSS_COMPILE=aarch64-linux-gnu-
> Toolchain gcc-9
>
> In file included from ../block/scsi_ioctl.c:23:
> ../include/scsi/sg.h:75:2: error: unknown type name ‘compat_int_t’
> compat_int_t interface_id; /* [i] 'S' for SCSI generic (required) */
> ^~~~~~~~~~~~
> ../include/scsi/sg.h:76:2: error: unknown type name ‘compat_int_t’
> compat_int_t dxfer_direction; /* [i] data transfer direction */
> ^~~~~~~~~~~~
>
> ...
> ../include/scsi/sg.h:97:2: error: unknown type name ‘compat_uint_t’
> compat_uint_t info; /* [o] auxiliary information */

Hi Naresh,

Does it work if you backport 071aaa43513a ("compat: ARM64: always include
asm-generic/compat.h")?

Arnd