ALSA: rawmidi: Make internal functions local static

__snd_rawmidi_transmit_peek() and __snd_rawmidi_transmit_ack() are
never called from the outside.  Let's make them local static and
unexport them.

Link: https://lore.kernel.org/r/20220617144051.18985-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2022-06-17 16:40:47 +02:00
parent f777316e52
commit cd76175a2b
2 changed files with 6 additions and 11 deletions

View File

@ -156,10 +156,6 @@ int snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream,
int snd_rawmidi_transmit_ack(struct snd_rawmidi_substream *substream, int count); int snd_rawmidi_transmit_ack(struct snd_rawmidi_substream *substream, int count);
int snd_rawmidi_transmit(struct snd_rawmidi_substream *substream, int snd_rawmidi_transmit(struct snd_rawmidi_substream *substream,
unsigned char *buffer, int count); unsigned char *buffer, int count);
int __snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream,
unsigned char *buffer, int count);
int __snd_rawmidi_transmit_ack(struct snd_rawmidi_substream *substream,
int count);
int snd_rawmidi_proceed(struct snd_rawmidi_substream *substream); int snd_rawmidi_proceed(struct snd_rawmidi_substream *substream);
/* main midi functions */ /* main midi functions */

View File

@ -1258,7 +1258,7 @@ int snd_rawmidi_transmit_empty(struct snd_rawmidi_substream *substream)
} }
EXPORT_SYMBOL(snd_rawmidi_transmit_empty); EXPORT_SYMBOL(snd_rawmidi_transmit_empty);
/** /*
* __snd_rawmidi_transmit_peek - copy data from the internal buffer * __snd_rawmidi_transmit_peek - copy data from the internal buffer
* @substream: the rawmidi substream * @substream: the rawmidi substream
* @buffer: the buffer pointer * @buffer: the buffer pointer
@ -1266,8 +1266,8 @@ EXPORT_SYMBOL(snd_rawmidi_transmit_empty);
* *
* This is a variant of snd_rawmidi_transmit_peek() without spinlock. * This is a variant of snd_rawmidi_transmit_peek() without spinlock.
*/ */
int __snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream, static int __snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream,
unsigned char *buffer, int count) unsigned char *buffer, int count)
{ {
int result, count1; int result, count1;
struct snd_rawmidi_runtime *runtime = substream->runtime; struct snd_rawmidi_runtime *runtime = substream->runtime;
@ -1304,7 +1304,6 @@ int __snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream,
__skip: __skip:
return result; return result;
} }
EXPORT_SYMBOL(__snd_rawmidi_transmit_peek);
/** /**
* snd_rawmidi_transmit_peek - copy data from the internal buffer * snd_rawmidi_transmit_peek - copy data from the internal buffer
@ -1334,14 +1333,15 @@ int snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream,
} }
EXPORT_SYMBOL(snd_rawmidi_transmit_peek); EXPORT_SYMBOL(snd_rawmidi_transmit_peek);
/** /*
* __snd_rawmidi_transmit_ack - acknowledge the transmission * __snd_rawmidi_transmit_ack - acknowledge the transmission
* @substream: the rawmidi substream * @substream: the rawmidi substream
* @count: the transferred count * @count: the transferred count
* *
* This is a variant of __snd_rawmidi_transmit_ack() without spinlock. * This is a variant of __snd_rawmidi_transmit_ack() without spinlock.
*/ */
int __snd_rawmidi_transmit_ack(struct snd_rawmidi_substream *substream, int count) static int __snd_rawmidi_transmit_ack(struct snd_rawmidi_substream *substream,
int count)
{ {
struct snd_rawmidi_runtime *runtime = substream->runtime; struct snd_rawmidi_runtime *runtime = substream->runtime;
@ -1361,7 +1361,6 @@ int __snd_rawmidi_transmit_ack(struct snd_rawmidi_substream *substream, int coun
} }
return count; return count;
} }
EXPORT_SYMBOL(__snd_rawmidi_transmit_ack);
/** /**
* snd_rawmidi_transmit_ack - acknowledge the transmission * snd_rawmidi_transmit_ack - acknowledge the transmission