Skip to content

Commit 37ed398

Browse files
perexgtiwai
authored andcommitted
ALSA: hda: controller code - do not export static functions
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> Cc: <stable@vger.kernel.org> # v3.15+ Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 70372a7 commit 37ed398

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
@@ -961,7 +961,6 @@ static int azx_alloc_cmd_io(struct azx *chip)
961961
dev_err(chip->card->dev, "cannot allocate CORB/RIRB\n");
962962
return err;
963963
}
964-
EXPORT_SYMBOL_GPL(azx_alloc_cmd_io);
965964

966965
static void azx_init_cmd_io(struct azx *chip)
967966
{
@@ -1026,7 +1025,6 @@ static void azx_init_cmd_io(struct azx *chip)
10261025
azx_writeb(chip, RIRBCTL, AZX_RBCTL_DMA_EN | AZX_RBCTL_IRQ_EN);
10271026
spin_unlock_irq(&chip->reg_lock);
10281027
}
1029-
EXPORT_SYMBOL_GPL(azx_init_cmd_io);
10301028

10311029
static void azx_free_cmd_io(struct azx *chip)
10321030
{
@@ -1036,7 +1034,6 @@ static void azx_free_cmd_io(struct azx *chip)
10361034
azx_writeb(chip, CORBCTL, 0);
10371035
spin_unlock_irq(&chip->reg_lock);
10381036
}
1039-
EXPORT_SYMBOL_GPL(azx_free_cmd_io);
10401037

10411038
static unsigned int azx_command_addr(u32 cmd)
10421039
{
@@ -1316,7 +1313,6 @@ static int azx_send_cmd(struct hda_bus *bus, unsigned int val)
13161313
else
13171314
return azx_corb_send_cmd(bus, val);
13181315
}
1319-
EXPORT_SYMBOL_GPL(azx_send_cmd);
13201316

13211317
/* get a response */
13221318
static unsigned int azx_get_response(struct hda_bus *bus,
@@ -1330,7 +1326,6 @@ static unsigned int azx_get_response(struct hda_bus *bus,
13301326
else
13311327
return azx_rirb_get_response(bus, addr);
13321328
}
1333-
EXPORT_SYMBOL_GPL(azx_get_response);
13341329

13351330
#ifdef CONFIG_SND_HDA_DSP_LOADER
13361331
/*

0 commit comments

Comments
 (0)