All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] Serverworks IDE driver: missing static
  2002-05-22  9:10 [PATCH] Serverworks IDE driver: missing static Andrey Panin
@ 2002-05-22  8:06 ` Martin Dalecki
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Dalecki @ 2002-05-22  8:06 UTC (permalink / raw)
  To: Andrey Panin; +Cc: linux-kernel

Użytkownik Andrey Panin napisał:
> Hi,
> 
> svwks_tune_chipset() function contains 3 arrays which IMHO should be static.
> Attached patch fixed it, saving for me 48 bytes of code :))
> Compiles, but untested. Please consider applying.
> 
> Best regards.


Considered and applied of course.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] Serverworks IDE driver: missing static
@ 2002-05-22  9:10 Andrey Panin
  2002-05-22  8:06 ` Martin Dalecki
  0 siblings, 1 reply; 2+ messages in thread
From: Andrey Panin @ 2002-05-22  9:10 UTC (permalink / raw)
  To: Martin Dalecki; +Cc: linux-kernel


[-- Attachment #1.1: Type: text/plain, Size: 336 bytes --]

Hi,

svwks_tune_chipset() function contains 3 arrays which IMHO should be static.
Attached patch fixed it, saving for me 48 bytes of code :))
Compiles, but untested. Please consider applying.

Best regards.

-- 
Andrey Panin            | Embedded systems software engineer
pazke@orbita1.ru        | PGP key: wwwkeys.eu.pgp.net

[-- Attachment #1.2: patch-serverworks --]
[-- Type: text/plain, Size: 772 bytes --]

diff -urN -X /usr/share/dontdiff linux.vanilla/drivers/ide/serverworks.c linux/drivers/ide/serverworks.c
--- linux.vanilla/drivers/ide/serverworks.c	Tue May 21 01:55:59 2002
+++ linux/drivers/ide/serverworks.c	Wed May 22 03:36:04 2002
@@ -242,9 +242,9 @@
 
 static int svwks_tune_chipset(struct ata_device *drive, byte speed)
 {
-	byte udma_modes[]	= { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05 };
-	byte dma_modes[]	= { 0x77, 0x21, 0x20 };
-	byte pio_modes[]	= { 0x5d, 0x47, 0x34, 0x22, 0x20 };
+	static byte udma_modes[] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05 };
+	static byte dma_modes[]	= { 0x77, 0x21, 0x20 };
+	static byte pio_modes[]	= { 0x5d, 0x47, 0x34, 0x22, 0x20 };
 
 	struct ata_channel *hwif = drive->channel;
 	struct pci_dev *dev	= hwif->pci_dev;

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-22  9:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-22  9:10 [PATCH] Serverworks IDE driver: missing static Andrey Panin
2002-05-22  8:06 ` Martin Dalecki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.