Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760850AbYFYQ3c (ORCPT ); Wed, 25 Jun 2008 12:29:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760286AbYFYQ1u (ORCPT ); Wed, 25 Jun 2008 12:27:50 -0400 Received: from smtp6.pp.htv.fi ([213.243.153.40]:42954 "EHLO smtp6.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760275AbYFYQ1s (ORCPT ); Wed, 25 Jun 2008 12:27:48 -0400 Date: Wed, 25 Jun 2008 19:25:44 +0300 From: Adrian Bunk To: Hannes Reinecke , James Bottomley Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Andrew Morton Subject: [2.6 patch] make struct scsi_{host,target}_type static Message-ID: <20080625162544.GJ10285@cs181140183.pp.htv.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1386 Lines: 46 This patch makes the needlessly global struct scsi_{host,target}_type static. Signed-off-by: Adrian Bunk --- This patch has been sent on: - 5 May 2008 drivers/scsi/hosts.c | 2 +- drivers/scsi/scsi_scan.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 8d16370bca9037f8ab45eecb676adf8794438b21 diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c index 3690360..497ca68 100644 --- a/drivers/scsi/hosts.c +++ b/drivers/scsi/hosts.c @@ -290,7 +290,7 @@ static void scsi_host_dev_release(struct device *dev) kfree(shost); } -struct device_type scsi_host_type = { +static struct device_type scsi_host_type = { .name = "scsi_host", .release = scsi_host_dev_release, }; diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index a00eee6..196fe3a 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c @@ -346,7 +346,7 @@ static void scsi_target_dev_release(struct device *dev) put_device(parent); } -struct device_type scsi_target_type = { +static struct device_type scsi_target_type = { .name = "scsi_target", .release = scsi_target_dev_release, }; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/