Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] ALSA: trident: Fix build error
@ 2021-06-12  3:34 YueHaibing
  2021-06-12  7:30 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: YueHaibing @ 2021-06-12  3:34 UTC (permalink / raw)
  To: perex, tiwai; +Cc: alsa-devel, YueHaibing, linux-kernel

sound/pci/trident/trident_memory.c: In function ‘set_tlb_bus’:
sound/pci/trident/trident_memory.c:85:35: error: ‘pagetr’ undeclared (first use in this function); did you mean ‘page’?
  for (i = 0; i < UNIT_PAGES; i++, pagetr++) {
                                   ^~~~~~
                                   page

Fixes: 74fb98311c4e ("ALSA: trident: Drop shadow TLB pointer table")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/pci/trident/trident_memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/pci/trident/trident_memory.c b/sound/pci/trident/trident_memory.c
index f831ec02702f..4ad3855101c9 100644
--- a/sound/pci/trident/trident_memory.c
+++ b/sound/pci/trident/trident_memory.c
@@ -82,7 +82,7 @@ static inline void set_tlb_bus(struct snd_trident *trident, int page,
 {
 	int i;
 	page *= UNIT_PAGES;
-	for (i = 0; i < UNIT_PAGES; i++, pagetr++) {
+	for (i = 0; i < UNIT_PAGES; i++, page++) {
 		__set_tlb_bus(trident, page, addr);
 		addr += SNDRV_TRIDENT_PAGE_SIZE;
 	}
-- 
2.17.1


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

* Re: [PATCH -next] ALSA: trident: Fix build error
  2021-06-12  3:34 [PATCH -next] ALSA: trident: Fix build error YueHaibing
@ 2021-06-12  7:30 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2021-06-12  7:30 UTC (permalink / raw)
  To: YueHaibing; +Cc: linux-kernel, alsa-devel, tiwai

On Sat, 12 Jun 2021 05:34:58 +0200,
YueHaibing wrote:
> 
> sound/pci/trident/trident_memory.c: In function ‘set_tlb_bus’:
> sound/pci/trident/trident_memory.c:85:35: error: ‘pagetr’ undeclared (first use in this function); did you mean ‘page’?
>   for (i = 0; i < UNIT_PAGES; i++, pagetr++) {
>                                    ^~~~~~
>                                    page
> 
> Fixes: 74fb98311c4e ("ALSA: trident: Drop shadow TLB pointer table")
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>

Thanks, applied.


Takashi

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

end of thread, other threads:[~2021-06-12  7:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-12  3:34 [PATCH -next] ALSA: trident: Fix build error YueHaibing
2021-06-12  7:30 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox