Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753564AbdCAW7M (ORCPT ); Wed, 1 Mar 2017 17:59:12 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:63073 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753206AbdCAW6w (ORCPT ); Wed, 1 Mar 2017 17:58:52 -0500 From: Arnd Bergmann To: Greg Kroah-Hartman Cc: Arnd Bergmann , Stephen Warren , Lee Jones , Eric Anholt , Michael Zoran , Stefan Wahren , Daniel Stone , popcornmix , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] staging/vc04_services: initialize cache line size properly Date: Wed, 1 Mar 2017 23:50:18 +0100 Message-Id: <20170301225050.1298349-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:721l0wpqd3kif58asHnZpOMCalSWr4ZDaIUB+a2y9FStRKfW9z0 +LLolWBF3+zi8TrqNt4Ju/Sj/oB8pJsvMrWnF+ADVW5cjxvT/09PrShw9ihKC4dtW7+xSov Pco+p4HUZWasUR66t99NlS02SyRbQt6fgaYFBEJJAtsEnB2E5o7DSQABYTGnFvNgZWiCEnm cMiwBPplb68Cb1C9DbAWQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:FtGUCk4Uo58=:4jngGcT3vYfJ3s5WBz8QB2 afka8ntG+bKEXsXeEP7k+IFOBbi0jQqq9egsXy6Ts40WB94/5VRBCAfMjLXh0SwvYy3pu9/Bf SGQdMbQqkUtc/wQm5H8ehgDdcCmuivfvV0kApCRDl4vKSn2L+0OJx0OWlIHKo+3jP8f5oOLp/ pZahxcvZ3x1dwM6zdU/+PqDh0AVTuv8exY5wtmBJkEthGryN2QtTxHTPCGJVPklpke0uZHZYo x/8Ct8iwKOw6eNdhXt54Rv/np5YNw3N1d3ABvdAbpjtLI7VHYMPi0hKpEu03WNhNW0toV5uan bu+TORMTI3Kp8hgGIfNtlJTrdeVEs6937S1qyMfUpZ4xZJXWvSTjbY0mNikXYyaT1+8VJjYLP yrueiWFf37DjJXx1bdDGWruWNR2pGOKQydQrq1K827gMSkk0ruV4cp9SAopJps2S4P2rjmSFB ZId1kAFm1JNWd/oZ9R9nLrV9U17dKLQirNUoYxLz9ftYoOqgO9+oAOHrzb7mvHBMXTs8T0sIW Zu3pwFoC+xHot/Fhe1vhY4yhqcFH/IpGFZSVnZo9eOUBMNVRZbuESCbmsVvFVF3IJWqt1RK/e VXANwrimoUj1V2ykwm+A6mLe9rk6ZPf+hLggaCgvkr44A/H6FknIi96ekWrgr1VwGXtKlQaDT UPk5h53B8p9scMrXs0grsb4tCHZZGO8m+H1LszMa4YffEpAL8eHQ3cA4xRd/PPyU2mwg= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1054 Lines: 26 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 --- 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