From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian Bunk Subject: [2.6 patch] drivers/video/fbsysfs.c: make a struct static Date: Mon, 18 Apr 2005 01:25:28 +0200 Message-ID: <20050417232528.GV3625@stusta.de> Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] helo=sc8-sf-mx2.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1DNJ8y-00069V-NW for linux-fbdev-devel@lists.sourceforge.net; Sun, 17 Apr 2005 16:25:36 -0700 Received: from emailhub.stusta.mhn.de ([141.84.69.5] helo=mailout.stusta.mhn.de) by sc8-sf-mx2.sourceforge.net with smtp (Exim 4.41) id 1DNJ8w-0000Ko-W9 for linux-fbdev-devel@lists.sourceforge.net; Sun, 17 Apr 2005 16:25:36 -0700 Content-Disposition: inline Sender: linux-fbdev-devel-admin@lists.sourceforge.net Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: adaplas@pol.net, James Simmons Cc: linux-fbdev-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org This patch makes a needlessly global struct static. Signed-off-by: Adrian Bunk --- linux-2.6.12-rc2-mm3-full/drivers/video/fbsysfs.c.old 2005-04-18 00:40:01.000000000 +0200 +++ linux-2.6.12-rc2-mm3-full/drivers/video/fbsysfs.c 2005-04-18 00:40:09.000000000 +0200 @@ -354,7 +354,7 @@ fb_info->var.xoffset); } -struct class_device_attribute class_device_attrs[] = { +static struct class_device_attribute class_device_attrs[] = { __ATTR(bits_per_pixel, S_IRUGO|S_IWUSR, show_bpp, store_bpp), __ATTR(blank, S_IRUGO|S_IWUSR, show_blank, store_blank), __ATTR(color_map, S_IRUGO|S_IWUSR, show_cmap, store_cmap), ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click