From: Matthew Wilcox Date: Tue, 28 Mar 2006 16:03:44 +0000 (-0500) Subject: [SCSI] Mark div_10M array const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=76789f01768bb4cef706f4c9e7e2f3f4eb8c1431;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [SCSI] Mark div_10M array const Patch below is one out of a large series to mark kernel data const when possible, goal is to use .rodata and avoid false sharing Signed-off-by: Arjan van de Ven Signed-off-by: Matthew Wilcox Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd.c b/drivers/scsi/sym53c8xx_2/sym_hipd.c index a95b262bbe89..b2ac482caae8 100644 --- a/drivers/scsi/sym53c8xx_2/sym_hipd.c +++ b/drivers/scsi/sym53c8xx_2/sym_hipd.c @@ -472,7 +472,7 @@ static int sym_getpciclock (struct sym_hcb *np) * calculations more simple. */ #define _5M 5000000 -static u32 div_10M[] = {2*_5M, 3*_5M, 4*_5M, 6*_5M, 8*_5M, 12*_5M, 16*_5M}; +static const u32 div_10M[] = {2*_5M, 3*_5M, 4*_5M, 6*_5M, 8*_5M, 12*_5M, 16*_5M}; /* * Get clock factor and sync divisor for a given