diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2021-09-14 13:08:47 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-09-16 11:09:04 +0200 |
commit | be830389bd49d3f1f8737bd45513361628641c08 (patch) | |
tree | 8b729b769a5aee0c4449b85a5d168b4050c57604 /sound | |
parent | ALSA: hda/realtek: Quirks to enable speaker output for Lenovo Legion 7i 15IMH... (diff) | |
download | linux-be830389bd49d3f1f8737bd45513361628641c08.tar.xz linux-be830389bd49d3f1f8737bd45513361628641c08.zip |
ALSA: pcxhr: "fix" PCXHR_REG_TO_PORT definition
The following preprocessor directive is non-compliant:
#undef PCXHR_REG_TO_PORT(x)
gcc warns about extra tokens but nobody sees them as they are under if
branch which is never parsed.
Make it an #error, it is not clear to me what the author meant.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Link: https://lore.kernel.org/r/YUCCv47sm4zf9OVO@localhost.localdomain
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/pcxhr/pcxhr_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/pcxhr/pcxhr_core.c b/sound/pci/pcxhr/pcxhr_core.c index 87d24224c042..23f253effb4f 100644 --- a/sound/pci/pcxhr/pcxhr_core.c +++ b/sound/pci/pcxhr/pcxhr_core.c @@ -52,7 +52,7 @@ #define PCXHR_DSP 2 #if (PCXHR_DSP_OFFSET_MAX > PCXHR_PLX_OFFSET_MIN) -#undef PCXHR_REG_TO_PORT(x) +#error PCXHR_REG_TO_PORT(x) #else #define PCXHR_REG_TO_PORT(x) ((x)>PCXHR_DSP_OFFSET_MAX ? PCXHR_PLX : PCXHR_DSP) #endif |