[BLOCK] mark some block/ variables cons

the patch below marks various read-only variables in block/* as const,
so that gcc can optimize the use of them; eg gcc will replace the use by
the value directly now and will even remove the memory usage of these.

Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Jens Axboe <axboe@suse.de>
This commit is contained in:
Arjan van de Ven
2006-01-06 09:46:02 +01:00
committed by Jens Axboe
parent 80cfd548ee
commit 64100099ed
4 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ EXPORT_SYMBOL(scsi_command_size);
static int sg_get_version(int __user *p)
{
static int sg_version_num = 30527;
static const int sg_version_num = 30527;
return put_user(sg_version_num, p);
}