From: Richard Knutsson Subject: [PATCH][SCSI] megaraid: Convert from "scsi.h" to (and friends) Date: Sun, 6 Jan 2008 20:03:35 +0100 (MET) Message-ID: <20080106190335.28212.90140.sendpatchset@thinktank.campus.ltu.se> Return-path: Received: from gepetto.dc.ltu.se ([130.240.42.40]:39830 "EHLO gepetto.dc.ltu.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752677AbYAFTDl (ORCPT ); Sun, 6 Jan 2008 14:03:41 -0500 Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: megaraidlinux@lsi.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Richard Knutsson Convert glue-include "scsi.h" to (and friends). (binary sizes) allyesconfig: before: 260132 after: 260048 allmodconfig: before: 261740 after: 261656 Signed-off-by: Richard Knutsson --- Do not have the hardware, but since it compiles I hope it is alright. diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c index 66c6520..9f1e2c5 100644 --- a/drivers/scsi/megaraid.c +++ b/drivers/scsi/megaraid.c @@ -48,8 +48,9 @@ #include #include -#include "scsi.h" +#include #include +#include #include "megaraid.h" @@ -1955,7 +1956,7 @@ megaraid_abort_and_reset(adapter_t *adapter, Scsi_Cmnd *cmd, int aor) cmd->device->id, cmd->device->lun); if(list_empty(&adapter->pending_list)) - return FALSE; + return false; list_for_each_safe(pos, next, &adapter->pending_list) { @@ -1978,7 +1979,7 @@ megaraid_abort_and_reset(adapter_t *adapter, Scsi_Cmnd *cmd, int aor) (aor==SCB_ABORT) ? "ABORTING":"RESET", cmd->serial_number, scb->idx); - return FALSE; + return false; } else { @@ -2003,12 +2004,12 @@ megaraid_abort_and_reset(adapter_t *adapter, Scsi_Cmnd *cmd, int aor) list_add_tail(SCSI_LIST(cmd), &adapter->completed_list); - return TRUE; + return true; } } } - return FALSE; + return false; } static inline int