From: Takashi Iwai Subject: Re: [PATCH] ALSA: hda/tegra: iomem fixups for sparse warnings Date: Wed, 22 Jun 2016 15:20:40 +0200 Message-ID: References: <1466533112-3262-1-git-send-email-ben.dooks@codethink.co.uk> <20160622123551.GE26943@ulmo.ba.sec> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20160622123551.GE26943@ulmo.ba.sec> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Thierry Reding Cc: linux-kernel@lists.codethink.co.uk, Alexandre Courbot , alsa-devel@alsa-project.org, Stephen Warren , Ben Dooks , linux-tegra@vger.kernel.org List-Id: linux-tegra@vger.kernel.org On Wed, 22 Jun 2016 14:35:51 +0200, Thierry Reding wrote: > > On Tue, Jun 21, 2016 at 07:18:32PM +0100, Ben Dooks wrote: > > The readl/writel are not being passed __iomem annotated > > variables, so fix the following sparse warnings by adding > > __iomem in: > > > > sound/pci/hda/hda_tegra.c:120:9: warning: incorrect type in argument 2 (different address spaces) > > sound/pci/hda/hda_tegra.c:120:9: expected void volatile [noderef] *addr > > sound/pci/hda/hda_tegra.c:120:9: got unsigned int [usertype] *addr > > sound/pci/hda/hda_tegra.c:125:16: warning: incorrect type in argument 1 (different address spaces) > > sound/pci/hda/hda_tegra.c:125:16: expected void const volatile [noderef] *addr > > sound/pci/hda/hda_tegra.c:125:16: got unsigned int [usertype] *addr > > sound/pci/hda/hda_tegra.c:134:13: warning: incorrect type in argument 1 (different address spaces) > > sound/pci/hda/hda_tegra.c:134:13: expected void const volatile [noderef] *addr > > sound/pci/hda/hda_tegra.c:134:13: got void *dword_addr > > sound/pci/hda/hda_tegra.c:137:9: warning: incorrect type in argument 2 (different address spaces) > > sound/pci/hda/hda_tegra.c:137:9: expected void volatile [noderef] *addr > > sound/pci/hda/hda_tegra.c:137:9: got void *dword_addr > > sound/pci/hda/hda_tegra.c:146:13: warning: incorrect type in argument 1 (different address spaces) > > sound/pci/hda/hda_tegra.c:146:13: expected void const volatile [noderef] *addr > > sound/pci/hda/hda_tegra.c:146:13: got void *dword_addr > > sound/pci/hda/hda_tegra.c:156:13: warning: incorrect type in argument 1 (different address spaces) > > sound/pci/hda/hda_tegra.c:156:13: expected void const volatile [noderef] *addr > > sound/pci/hda/hda_tegra.c:156:13: got void *dword_addr > > sound/pci/hda/hda_tegra.c:159:9: warning: incorrect type in argument 2 (different address spaces) > > sound/pci/hda/hda_tegra.c:159:9: expected void volatile [noderef] *addr > > sound/pci/hda/hda_tegra.c:159:9: got void *dword_addr > > sound/pci/hda/hda_tegra.c:168:13: warning: incorrect type in argument 1 (different address spaces) > > sound/pci/hda/hda_tegra.c:168:13: expected void const volatile [noderef] *addr > > sound/pci/hda/hda_tegra.c:168:13: got void *dword_addr > > sound/pci/hda/hda_tegra.c:173:23: warning: incorrect type in initializer (incompatible argument 2 (different address spaces)) > > sound/pci/hda/hda_tegra.c:173:23: expected void ( *reg_writel )( ... ) > > sound/pci/hda/hda_tegra.c:173:23: got void ( static [toplevel] * )( ... ) > > sound/pci/hda/hda_tegra.c:174:22: warning: incorrect type in initializer (incompatible argument 1 (different address spaces)) > > sound/pci/hda/hda_tegra.c:174:22: expected unsigned int ( *reg_readl )( ... ) > > sound/pci/hda/hda_tegra.c:174:22: got unsigned int ( static [toplevel] * )( ... ) > > sound/pci/hda/hda_tegra.c:175:23: warning: incorrect type in initializer (incompatible argument 2 (different address spaces)) > > sound/pci/hda/hda_tegra.c:175:23: expected void ( *reg_writew )( ... ) > > sound/pci/hda/hda_tegra.c:175:23: got void ( static [toplevel] * )( ... ) > > sound/pci/hda/hda_tegra.c:176:22: warning: incorrect type in initializer (incompatible argument 1 (different address spaces)) > > sound/pci/hda/hda_tegra.c:176:22: expected unsigned short ( *reg_readw )( ... ) > > sound/pci/hda/hda_tegra.c:176:22: got unsigned short ( static [toplevel] * )( ... ) > > sound/pci/hda/hda_tegra.c:177:23: warning: incorrect type in initializer (incompatible argument 2 (different address spaces)) > > sound/pci/hda/hda_tegra.c:177:23: expected void ( *reg_writeb )( ... ) > > sound/pci/hda/hda_tegra.c:177:23: got void ( static [toplevel] * )( ... ) > > sound/pci/hda/hda_tegra.c:178:22: warning: incorrect type in initializer (incompatible argument 1 (different address spaces)) > > sound/pci/hda/hda_tegra.c:178:22: expected unsigned char ( *reg_readb )( ... ) > > sound/pci/hda/hda_tegra.c:178:22: got unsigned char ( static [toplevel] * )( ... ) > > > > Signed-off-by: Ben Dooks > > --- > > Cc: Jaroslav Kysela > > Cc: Takashi Iwai > > Cc: Stephen Warren > > Cc: Thierry Reding > > Cc: Alexandre Courbot > > Cc: alsa-devel@alsa-project.org > > Cc: linux-tegra@vger.kernel.org > > --- > > sound/pci/hda/hda_tegra.c | 20 ++++++++++---------- > > 1 file changed, 10 insertions(+), 10 deletions(-) > > Takashi's already applid it, but fwiw: > > Acked-by: Thierry Reding I forgot to push (while being in a conference), so now I could merge your ack, too ;) thanks, Takashi