From: shijie001@208suo.com
To: perex@perex.cz, tiwai@suse.com
Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: [PATCH] ALSA: gus: Fix errors in gus_mem.c
Date: Tue, 18 Jul 2023 09:02:11 +0800 [thread overview]
Message-ID: <49700e1a2452104bb89fcdca291fd429@208suo.com> (raw)
In-Reply-To: <tencent_A8FDB76658AA971B46D1614E4FE8F214FE08@qq.com>
The following checkpatch errors are removed:
ERROR: trailing whitespace
ERROR: "foo * bar" should be "foo *bar"
Signed-off-by: Jie Shi <shijie001@208suo.com>
---
sound/isa/gus/gus_mem.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/sound/isa/gus/gus_mem.c b/sound/isa/gus/gus_mem.c
index 3e56c01c4544..00c73c0b068f 100644
--- a/sound/isa/gus/gus_mem.c
+++ b/sound/isa/gus/gus_mem.c
@@ -11,11 +11,11 @@
#include <sound/info.h>
#ifdef CONFIG_SND_DEBUG
-static void snd_gf1_mem_info_read(struct snd_info_entry *entry,
+static void snd_gf1_mem_info_read(struct snd_info_entry *entry,
struct snd_info_buffer *buffer);
#endif
-void snd_gf1_mem_lock(struct snd_gf1_mem * alloc, int xup)
+void snd_gf1_mem_lock(struct snd_gf1_mem *alloc, int xup)
{
if (!xup) {
mutex_lock(&alloc->memory_mutex);
@@ -67,7 +67,7 @@ snd_gf1_mem_xalloc(struct snd_gf1_mem *alloc, struct
snd_gf1_mem_block *block,
return nblock;
}
-int snd_gf1_mem_xfree(struct snd_gf1_mem * alloc, struct
snd_gf1_mem_block * block)
+int snd_gf1_mem_xfree(struct snd_gf1_mem *alloc, struct
snd_gf1_mem_block *block)
{
if (block->share) { /* ok.. shared block */
block->share--;
@@ -97,7 +97,7 @@ int snd_gf1_mem_xfree(struct snd_gf1_mem * alloc,
struct snd_gf1_mem_block * blo
return 0;
}
-static struct snd_gf1_mem_block *snd_gf1_mem_look(struct snd_gf1_mem *
alloc,
+static struct snd_gf1_mem_block *snd_gf1_mem_look(struct snd_gf1_mem
*alloc,
unsigned int address)
{
struct snd_gf1_mem_block *block;
@@ -110,7 +110,7 @@ static struct snd_gf1_mem_block
*snd_gf1_mem_look(struct snd_gf1_mem * alloc,
return NULL;
}
-static struct snd_gf1_mem_block *snd_gf1_mem_share(struct snd_gf1_mem *
alloc,
+static struct snd_gf1_mem_block *snd_gf1_mem_share(struct snd_gf1_mem
*alloc,
unsigned int *share_id)
{
struct snd_gf1_mem_block *block;
@@ -125,8 +125,8 @@ static struct snd_gf1_mem_block
*snd_gf1_mem_share(struct snd_gf1_mem * alloc,
return NULL;
}
-static int snd_gf1_mem_find(struct snd_gf1_mem * alloc,
- struct snd_gf1_mem_block * block,
+static int snd_gf1_mem_find(struct snd_gf1_mem *alloc,
+ struct snd_gf1_mem_block *block,
unsigned int size, int w_16, int align)
{
struct snd_gf1_bank_info *info = w_16 ? alloc->banks_16 :
alloc->banks_8;
@@ -177,7 +177,7 @@ static int snd_gf1_mem_find(struct snd_gf1_mem *
alloc,
return -ENOMEM;
}
-struct snd_gf1_mem_block *snd_gf1_mem_alloc(struct snd_gf1_mem * alloc,
int owner,
+struct snd_gf1_mem_block *snd_gf1_mem_alloc(struct snd_gf1_mem *alloc,
int owner,
char *name, int size, int w_16, int align,
unsigned int *share_id)
{
@@ -210,7 +210,7 @@ struct snd_gf1_mem_block *snd_gf1_mem_alloc(struct
snd_gf1_mem * alloc, int owne
return nblock;
}
-int snd_gf1_mem_free(struct snd_gf1_mem * alloc, unsigned int address)
+int snd_gf1_mem_free(struct snd_gf1_mem *alloc, unsigned int address)
{
int result;
struct snd_gf1_mem_block *block;
@@ -226,7 +226,7 @@ int snd_gf1_mem_free(struct snd_gf1_mem * alloc,
unsigned int address)
return -EINVAL;
}
-int snd_gf1_mem_init(struct snd_gus_card * gus)
+int snd_gf1_mem_init(struct snd_gus_card *gus)
{
struct snd_gf1_mem *alloc;
struct snd_gf1_mem_block block;
@@ -255,7 +255,7 @@ int snd_gf1_mem_init(struct snd_gus_card * gus)
return 0;
}
-int snd_gf1_mem_done(struct snd_gus_card * gus)
+int snd_gf1_mem_done(struct snd_gus_card *gus)
{
struct snd_gf1_mem *alloc;
struct snd_gf1_mem_block *block, *nblock;
@@ -271,7 +271,7 @@ int snd_gf1_mem_done(struct snd_gus_card * gus)
}
#ifdef CONFIG_SND_DEBUG
-static void snd_gf1_mem_info_read(struct snd_info_entry *entry,
+static void snd_gf1_mem_info_read(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{
struct snd_gus_card *gus;
next parent reply other threads:[~2023-07-18 6:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <tencent_A8FDB76658AA971B46D1614E4FE8F214FE08@qq.com>
2023-07-18 1:02 ` shijie001 [this message]
2023-07-18 5:53 ` [PATCH] ALSA: gus: Fix errors in gus_mem.c Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49700e1a2452104bb89fcdca291fd429@208suo.com \
--to=shijie001@208suo.com \
--cc=alsa-devel@alsa-project.org \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox