Skip to content

Commit fc30e76

Browse files
perexgsashalevin
authored andcommitted
ALSA: hda: controller code - do not export static functions
commit 37ed398 upstream. It is a bad idea to export static functions. GCC for some platforms shows errors like: error: __ksymtab_azx_get_response causes a section type conflict Signed-off-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
1 parent c78962a commit fc30e76

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎sound/pci/hda/hda_controller.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,6 @@ static int azx_alloc_cmd_io(struct azx *chip)
957957
dev_err(chip->card->dev, "cannot allocate CORB/RIRB\n");
958958
return err;
959959
}
960-
EXPORT_SYMBOL_GPL(azx_alloc_cmd_io);
961960

962961
static void azx_init_cmd_io(struct azx *chip)
963962
{
@@ -1022,7 +1021,6 @@ static void azx_init_cmd_io(struct azx *chip)
10221021
azx_writeb(chip, RIRBCTL, AZX_RBCTL_DMA_EN | AZX_RBCTL_IRQ_EN);
10231022
spin_unlock_irq(&chip->reg_lock);
10241023
}
1025-
EXPORT_SYMBOL_GPL(azx_init_cmd_io);
10261024

10271025
static void azx_free_cmd_io(struct azx *chip)
10281026
{
@@ -1032,7 +1030,6 @@ static void azx_free_cmd_io(struct azx *chip)
10321030
azx_writeb(chip, CORBCTL, 0);
10331031
spin_unlock_irq(&chip->reg_lock);
10341032
}
1035-
EXPORT_SYMBOL_GPL(azx_free_cmd_io);
10361033

10371034
static unsigned int azx_command_addr(u32 cmd)
10381035
{
@@ -1312,7 +1309,6 @@ static int azx_send_cmd(struct hda_bus *bus, unsigned int val)
13121309
else
13131310
return azx_corb_send_cmd(bus, val);
13141311
}
1315-
EXPORT_SYMBOL_GPL(azx_send_cmd);
13161312

13171313
/* get a response */
13181314
static unsigned int azx_get_response(struct hda_bus *bus,
@@ -1326,7 +1322,6 @@ static unsigned int azx_get_response(struct hda_bus *bus,
13261322
else
13271323
return azx_rirb_get_response(bus, addr);
13281324
}
1329-
EXPORT_SYMBOL_GPL(azx_get_response);
13301325

13311326
#ifdef CONFIG_SND_HDA_DSP_LOADER
13321327
/*

0 commit comments

Comments
 (0)