linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] staging/vc04_services: initialize cache line size properly
@ 2017-03-01 22:50 Arnd Bergmann
  2017-03-01 22:50 ` [PATCH 2/2] staging/vc04_services: add CONFIG_OF dependency Arnd Bergmann
  2017-03-02  1:59 ` [PATCH 1/2] staging/vc04_services: initialize cache line size properly Michael Zoran
  0 siblings, 2 replies; 4+ messages in thread
From: Arnd Bergmann @ 2017-03-01 22:50 UTC (permalink / raw)
  To: linux-arm-kernel

While debugging another problem I noticed that g_cache_line_size gets set
to sizeof(CACHE_LINE_SIZE), which is sizeof(int) or 4, while presumably
CACHE_LINE_SIZE (e.g. 32) was meant.

This initializes it the way it was meant.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c
index 3aeffcb9c87e..b0e9eb6ff73f 100644
--- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c
+++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c
@@ -78,7 +78,7 @@ struct vchiq_pagelist_info {
 };
 
 static void __iomem *g_regs;
-static unsigned int g_cache_line_size = sizeof(CACHE_LINE_SIZE);
+static unsigned int g_cache_line_size = CACHE_LINE_SIZE;
 static unsigned int g_fragments_size;
 static char *g_fragments_base;
 static char *g_free_fragments;
-- 
2.9.0

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

end of thread, other threads:[~2017-03-06 12:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-01 22:50 [PATCH 1/2] staging/vc04_services: initialize cache line size properly Arnd Bergmann
2017-03-01 22:50 ` [PATCH 2/2] staging/vc04_services: add CONFIG_OF dependency Arnd Bergmann
2017-03-02  1:59 ` [PATCH 1/2] staging/vc04_services: initialize cache line size properly Michael Zoran
2017-03-06 12:53   ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).