diff mbox series

ALSA: pci/korg1212: completely remove 'set but not used' warnings

Message ID 20210804185442.274057-1-pierre-louis.bossart@linux.intel.com
State Accepted
Commit ddddc0d4c76aabd15eddbd905d4bf009f2f30725
Headers show
Series ALSA: pci/korg1212: completely remove 'set but not used' warnings | expand

Commit Message

Pierre-Louis Bossart Aug. 4, 2021, 6:54 p.m. UTC
Commit 6cdc01ebdfb0 ("ALSA: pci/korg1212: remove 'set but not used'
warnings") missed one __maybe_unused, add to enable make W=1 sound/
compilation with x86_64 allmodconfig

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
---
 sound/pci/korg1212/korg1212.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Takashi Iwai Aug. 5, 2021, 6:23 a.m. UTC | #1
On Wed, 04 Aug 2021 20:54:42 +0200,
Pierre-Louis Bossart wrote:
> 
> Commit 6cdc01ebdfb0 ("ALSA: pci/korg1212: remove 'set but not used'
> warnings") missed one __maybe_unused, add to enable make W=1 sound/
> compilation with x86_64 allmodconfig
> 
> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>

Thanks, applied.


Takashi
diff mbox series

Patch

diff --git a/sound/pci/korg1212/korg1212.c b/sound/pci/korg1212/korg1212.c
index 49ed2bfaf11f..5c9e240ff6a9 100644
--- a/sound/pci/korg1212/korg1212.c
+++ b/sound/pci/korg1212/korg1212.c
@@ -2094,7 +2094,7 @@  static int snd_korg1212_create(struct snd_card *card, struct pci_dev *pci)
 {
         int err, rc;
         unsigned int i;
-	unsigned iomem_size;
+	__maybe_unused unsigned iomem_size;
 	__maybe_unused unsigned ioport_size;
 	__maybe_unused unsigned iomem2_size;
 	struct snd_korg1212 *korg1212 = card->private_data;