Commit e7c799e7 authored by Daniel Baluta's avatar Daniel Baluta Committed by Mark Brown

ASoC: SOF: compr: Mark snd_compress_ops static

Functions won't be directly used outside of compress.c file
so mark them as static.

This will also fix warnings reported by kernel test robot:

>> sound/soc/sof/compress.c:91:5: warning: no previous prototype for
function 'sof_compr_open' [-Wmissing-prototypes]
   int sof_compr_open(struct snd_soc_component *component,
       ^
   sound/soc/sof/compress.c:91:1: note: declare 'static' if the function
is not intended to be used outside of this translation unit
   int sof_compr_open(struct snd_soc_component *component,

Fixes: 6324cf90 ("SoC: SOF: compr: Add compress ops implementation")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarDaniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20220211082631.179735-1-daniel.baluta@oss.nxp.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 695c1059
......@@ -89,7 +89,7 @@ static int create_page_table(struct snd_soc_component *component,
spcm->stream[dir].page_table.area, size);
}
int sof_compr_open(struct snd_soc_component *component,
static int sof_compr_open(struct snd_soc_component *component,
struct snd_compr_stream *cstream)
{
struct snd_soc_pcm_runtime *rtd = cstream->private_data;
......@@ -125,7 +125,7 @@ int sof_compr_open(struct snd_soc_component *component,
return 0;
}
int sof_compr_free(struct snd_soc_component *component,
static int sof_compr_free(struct snd_soc_component *component,
struct snd_compr_stream *cstream)
{
struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
......@@ -159,7 +159,7 @@ int sof_compr_free(struct snd_soc_component *component,
return ret;
}
int sof_compr_set_params(struct snd_soc_component *component,
static int sof_compr_set_params(struct snd_soc_component *component,
struct snd_compr_stream *cstream, struct snd_compr_params *params)
{
struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
......@@ -222,7 +222,7 @@ int sof_compr_set_params(struct snd_soc_component *component,
return 0;
}
int sof_compr_get_params(struct snd_soc_component *component,
static int sof_compr_get_params(struct snd_soc_component *component,
struct snd_compr_stream *cstream, struct snd_codec *params)
{
/* TODO: we don't query the supported codecs for now, if the
......@@ -231,7 +231,7 @@ int sof_compr_get_params(struct snd_soc_component *component,
return 0;
}
int sof_compr_trigger(struct snd_soc_component *component,
static int sof_compr_trigger(struct snd_soc_component *component,
struct snd_compr_stream *cstream, int cmd)
{
struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
......@@ -271,7 +271,7 @@ int sof_compr_trigger(struct snd_soc_component *component,
&reply, sizeof(reply));
}
int sof_compr_copy(struct snd_soc_component *component,
static int sof_compr_copy(struct snd_soc_component *component,
struct snd_compr_stream *cstream,
char __user *buf, size_t count)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment