]> xenbits.xensource.com Git - people/royger/linux-2.6.18-xen.git/commitdiff
xen: vscsi >2TB build fix
authorKeir Fraser <keir@xen.org>
Wed, 26 Jan 2011 11:37:23 +0000 (11:37 +0000)
committerKeir Fraser <keir@xen.org>
Wed, 26 Jan 2011 11:37:23 +0000 (11:37 +0000)
MAINTENANCE_{IN,OUT} got introduced only in 2.6.19, but I failed to
notice that because we have this backported to our 2.6.16-based
kernels.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
drivers/xen/scsiback/emulate.c

index d6b9ec98798acf22d01cff7c0f23e68313f59f30..a0dcec647274d67f2116164130726989c7c04947 100644 (file)
@@ -452,8 +452,10 @@ void scsiback_emulation_init(void)
        /*NO_EMULATE(PERSISTENT_RESERVE_IN); *//*0x5e*/
        /*NO_EMULATE(PERSISTENT_RESERVE_OUT); *//*0x5f*/
        /*           REPORT_LUNS             *//*0xa0*//*Full emulaiton*/
+#ifdef MAINTENANCE_IN
        NO_EMULATE(MAINTENANCE_IN);           /*0xa3*/ /* IFT alua */
        NO_EMULATE(MAINTENANCE_OUT);       /*0xa4*/ /* IFT alua */
+#endif
        NO_EMULATE(MOVE_MEDIUM);           /*0xa5*/ /* ch */
        NO_EMULATE(EXCHANGE_MEDIUM);       /*0xa6*/ /* ch */
        /*NO_EMULATE(READ_12);               *//*0xa8*/