[patch] powerpc/ps3: Use hard coded values for LV1 device type

Sachin P. Sant sachinp at in.ibm.com
Sun Feb 8 04:41:28 EST 2009

Geoff Levand wrote:
> Change the PS3 platform code to use hard coded numbers for its
> LV1 device types.
> The PS3 platform code was incorrectly using some scsi block
> constants for the device type returned from the LV1 hypervisor.
> Fixes build errors like these when CONFIG_BLOCK=n:
>   In file included from include/scsi/scsi.h:12,
>                    from arch/powerpc/platforms/ps3/platform.h:25,
>                    from arch/powerpc/platforms/ps3/setup.c:36:
>   include/scsi/scsi_cmnd.h:27:25: warning: "BLK_MAX_CDB" is not defined
>   include/scsi/scsi_cmnd.h:28:3: error: #error MAX_COMMAND_SIZE can not be bigger than BLK_MAX_CDB
> Signed-off-by: Geoff Levand <geoffrey.levand at am.sony.com>
> ---
Thanks Geoff. This fixes the issue.

Tested-by : Sachin Sant <sachinp at in.ibm.com>


Sachin Sant
IBM Linux Technology Center
India Systems and Technology Labs
Bangalore, India

More information about the Linuxppc-dev mailing list