Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6240703rwp; Mon, 17 Jul 2023 18:17:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlGT8rPN4Nju5oJZQtYKYfPTwpxGG79bsmViilEoYoXpltGEFdtmIdgokgVeXRXa5lEzCjtn X-Received: by 2002:aa7:c38f:0:b0:51d:8a53:d1f with SMTP id k15-20020aa7c38f000000b0051d8a530d1fmr12935196edq.8.1689643067645; Mon, 17 Jul 2023 18:17:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689643067; cv=none; d=google.com; s=arc-20160816; b=t4APh9R0+MY0evfYYUN69mxnKcuOggk2ZpBTiXWo2IU7QZsnVkVJsMiH+q97BsJa00 qdmxP9KPyeGLrocsi8+Kb4vvG2DWPkna4HePtb6Z8IhEbwNFZw+ey6UMcx8i9/U9Mt08 Dj9TUTNmkWMtSo2fIOTPoEILauMqtpq8BIGIWJo+y+2jqvNe8T9t0sujnpk16bsuet/L Dr5Ecj8MlSxiNSKpIMS/Gwup5F9oMT1TH1XiJrZ0T542Iohhz2waGTZ0Zum5Y4E/nuMW hRTT6tlkM5IVcOza5hJVFbsMTf+T4u3jcYK1pRK+PgIUqRx4OHD+chmOA+1mB8LvVnWr wnmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=kcnj52KVKJmAcJW5XYBQXMdIzQmJFgeNJII4huxOaGs=; fh=69zNe9oTHIO9ftzB4Qjil6x1yazCaRgQZh9N9EtNQ7Y=; b=Fw1cKD8jT+Tcd6wUvvJGhSD1xyfH7xRlINqc4zCmqjUBTWeehQ9N49vHpCCewwzU7E ibCAI1aMOksSUc1uorcokJX00q4jsdVDuVcvBM28QxSV9ChGZHrtn70OFB1qNGmfUvkc sv82nCgAtEwQTaL4AgvNLKqoZoRNgV5KY9+O2mlK+/Mhs22h01vmSdcTaJwyLmwgkm9o 6wxkwTCnmvFedGNC9auP6Nyqo2+1dtEdYmquJgL9KddoRaULvhV9X8WvgY1wLh3/P+bi OHDqC/M90koHD1jBcQd15Auw5BVBpPQcyCEvDjglq4LTAvPPtmHLmaQEEI3q6ayiu7/9 xbng== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=CJh2plWW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q18-20020a056402033200b0051e0591969dsi415752edw.345.2023.07.17.18.17.22; Mon, 17 Jul 2023 18:17:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=CJh2plWW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230081AbjGRBC0 (ORCPT + 99 others); Mon, 17 Jul 2023 21:02:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230070AbjGRBCY (ORCPT ); Mon, 17 Jul 2023 21:02:24 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82F5095 for ; Mon, 17 Jul 2023 18:02:17 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R4gdw558TzBQsl5 for ; Tue, 18 Jul 2023 09:02:12 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689642131; x=1692234132; bh=lRAf8pvgVJE37sbYG4AkQgI1mkz Em8ZxZlvvn5AiZxs=; b=CJh2plWWnXG1MKV0UKNjkuHRJ0wLe6z6hFnwFQQStU7 49O9PtNtbw42uTTAVyQtwY4aEmzsEcz9Ix6czkui+hE47HWfM7f4ls44TCnojvNl YEKamI8gehhEefX5af6rKJ16qwF68Rve/TjGOy3GKErh1rA6GmvM62x9cPiHmkB8 PLvi2gtCRd0LeO+vIROMxkIs9wkrTS09w6FptD481u53gwrfZUAMHvP6F62SmqdJ LMH9hA/o8WiLhFAWbW786EfddrtdNzBGcDZQJsHG2AKdyfCrxnCy/7t+iAc/cq88 L+0QMFaC8szF1CnUyumvx5/O1eg8WYszJdJlIpI2BQA== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id MomEJgrcTGG4 for ; Tue, 18 Jul 2023 09:02:11 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R4gdv4YTZzBQsl1; Tue, 18 Jul 2023 09:02:11 +0800 (CST) MIME-Version: 1.0 Date: Tue, 18 Jul 2023 09:02:11 +0800 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 In-Reply-To: References: User-Agent: Roundcube Webmail Message-ID: <49700e1a2452104bb89fcdca291fd429@208suo.com> X-Sender: shijie001@208suo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_BLOCKED,RDNS_NONE,SPF_HELO_FAIL,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following checkpatch errors are removed: ERROR: trailing whitespace ERROR: "foo * bar" should be "foo *bar" Signed-off-by: Jie Shi --- 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 #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;