Skip to contentSkip to conversation

ALSA: trident: Fix build error

PATCH Applied YueHaibing 2 participants 2 messages Jun 12, 2021 Sound

lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 ALSA: trident: Fix build error

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")
---
 sound/pci/trident/trident_memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/pci/trident/trident_memory.c +1 -1
index f831ec02702f..4ad3855101c9 100644
@@ -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;
 	}
Signature · 1 line
2.17.1
Applied
#1 lore raw
Quoted 9 lines · YueHaibing

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")

Thanks, applied.

Takashi