Skip to contentSkip to conversation

update-comment-about-gzip-scratch-size.patch added to -mm tree

DISCUSSION Alexey Dobriyan 2 participants 2 messages May 27, 2005 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

arch/ppc/boot/openfirmware/chrpmain.c

Quoted 11 lines · On Saturday 28 May 2005 01:50, [email protected] wrote:

From: Olaf Hering <[email protected]>

fix a comment about the array size.

arch/ppc/boot/openfirmware/chrpmain.c renamed from arch/ppc/boot/openfirmware/chrpmain.c~update-comment-about-gzip-scratch-size +1 -1
 
 #define SCRATCH_SIZE	(128 << 10)
 
-static char scratch[SCRATCH_SIZE];	/* 1MB of scratch space for gunzip */
+static char scratch[SCRATCH_SIZE];	/* 128k of scratch space for gunzip */

How about this?

Remove incorrect size from comment. scratch size is defined two lines above.

arch/ppc/boot/openfirmware/chrpmain.c +1 -1
@@ -39,7 +39,7 @@ char *avail_high;
 
 #define SCRATCH_SIZE	(128 << 10)
 
-static char scratch[SCRATCH_SIZE];	/* 1MB of scratch space for gunzip */
+static char scratch[SCRATCH_SIZE];	/* scratch space for gunzip */
 
 typedef void (*kernel_start_t)(int, int, void *, unsigned int, unsigned int);
 
#2 lore raw
Quoted 8 lines · Alexey Dobriyan
Quoted 6 lines · On Saturday 28 May 2005 01:50, [email protected] wrote:

From: Olaf Hering <[email protected]>

fix a comment about the array size.

arch/ppc/boot/openfirmware/chrpmain.c renamed from arch/ppc/boot/openfirmware/chrpmain.c~update-comment-about-gzip-scratch-size +0 -0
Quoted 6 lines

arch/ppc/boot/openfirmware/chrpmain.c

Quoted 4 lines

#define SCRATCH_SIZE (128 << 10)

arch/ppc/boot/openfirmware/chrpmain.c renamed from arch/ppc/boot/openfirmware/chrpmain.c~update-comment-about-gzip-scratch-size +1 -1
-static char scratch[SCRATCH_SIZE];	/* 1MB of scratch space for gunzip */
+static char scratch[SCRATCH_SIZE];	/* 128k of scratch space for gunzip */

How about this?

Better remove the comment.
Or replace it with an URL to /. where we annouce the existence of scratch space for gzip.