From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932444AbWEJDAQ (ORCPT ); Tue, 9 May 2006 23:00:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932440AbWEJC5V (ORCPT ); Tue, 9 May 2006 22:57:21 -0400 Received: from gateway-1237.mvista.com ([63.81.120.158]:8254 "EHLO dwalker1.mvista.com") by vger.kernel.org with ESMTP id S932444AbWEJC4w (ORCPT ); Tue, 9 May 2006 22:56:52 -0400 Date: Tue, 9 May 2006 19:55:56 -0700 Message-Id: <200605100255.k4A2tuuf031655@dwalker1.mvista.com> From: Daniel Walker To: akpm@osdl.org CC: linux-kernel@vger.kernel.org Subject: [PATCH -mm] BusLogic gcc 4.1 warning fixes Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org I just commented out BusLogic_AbortCommand because the code that uses it is commented out the same way .. It could just be removed . Fixes the following warnings, drivers/scsi/BusLogic.c: In function 'BusLogic_init': drivers/scsi/BusLogic.c:2302: warning: ignoring return value of 'scsi_add_host', declared with attribute warn_unused_result drivers/scsi/BusLogic.c: At top level: drivers/scsi/BusLogic.c:2963: warning: 'BusLogic_AbortCommand' defined but not used Signed-Off-By: Daniel Walker Index: linux-2.6.16/drivers/scsi/BusLogic.c =================================================================== --- linux-2.6.16.orig/drivers/scsi/BusLogic.c +++ linux-2.6.16/drivers/scsi/BusLogic.c @@ -2299,7 +2299,8 @@ static int __init BusLogic_init(void) scsi_host_put(Host); } else { BusLogic_InitializeHostStructure(HostAdapter, Host); - scsi_add_host(Host, HostAdapter->PCI_Device ? &HostAdapter->PCI_Device->dev : NULL); + if (scsi_add_host(Host, HostAdapter->PCI_Device ? &HostAdapter->PCI_Device->dev : NULL)) + return -ENODEV; scsi_scan_host(Host); BusLogicHostAdapterCount++; } @@ -2955,6 +2956,7 @@ static int BusLogic_QueueCommand(struct } +#if 0 /* BusLogic_AbortCommand aborts Command if possible. */ @@ -3025,6 +3027,7 @@ static int BusLogic_AbortCommand(struct return SUCCESS; } +#endif /* BusLogic_ResetHostAdapter resets Host Adapter if possible, marking all currently executing SCSI Commands as having been Reset.