You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[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:
committed by
Jens Axboe
parent
80cfd548ee
commit
64100099ed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user