From patchwork Thu Oct 24 18:40:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Curtis Malainey X-Patchwork-Id: 11210613 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B571B1575 for ; Thu, 24 Oct 2019 18:41:41 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B880E21925 for ; Thu, 24 Oct 2019 18:41:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="UOi2OKea"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="JSoipD/H" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B880E21925 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id AA6AA170A; Thu, 24 Oct 2019 20:40:48 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AA6AA170A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1571942498; bh=sdVPfaRjot9NuA8ZRyDdUAvhW6uQyc5r//qBWk3wj7s=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=UOi2OKeaR+3rrliUysDYYyS6r8LAEi1h3VMNJlEn2y3qxTEXRaLrcZnWI91iLUhmm VRaCfpB1LKud43em1lcEAnToGgbHdaJ+TAItRV0ZdTt5su8T+90Xlt/ccOhwcL5KAy sJAa2/WUWApkZ/60re1QPfWS+6pM6tQXozIDh7Vo= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 10C65F80367; Thu, 24 Oct 2019 20:40:48 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7E5A2F8036B; Thu, 24 Oct 2019 20:40:46 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,SPF_PASS,SURBL_BLOCKED,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 4F5B9F80274 for ; Thu, 24 Oct 2019 20:40:42 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 4F5B9F80274 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="JSoipD/H" Received: by mail-pf1-x444.google.com with SMTP id c184so6156141pfb.0 for ; Thu, 24 Oct 2019 11:40:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1RWpqHrDTsT6EWH1GIgHZ1+MufJ7Pq+vQ+OjVS++Lg4=; b=JSoipD/HNn3xJEwyLi6So/2AkS5E+xBXK5sqwarf56uTTuld4XhvwnAK/yv4DMQYIJ +YAcxymLv4ysH2veEUCRcDHahL7KbggA3LhAnpHLKjD5GSzLCWv5eBN3fKwTWaZOfQmD yeyk5ayomB3qN2i5WrCDrj1BlTKwlRnanOEgw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1RWpqHrDTsT6EWH1GIgHZ1+MufJ7Pq+vQ+OjVS++Lg4=; b=prfWLnKdLxpgIAsUGREw8b0ejV2Jd0xhQJ1xWefFciFDu7ua+Ww95QrWoK/JeJyKV0 yBkFkPFFtDSLC3Ei7H2fumUepSPJBuOX0A8Th1/BL+0cEW4GsCNZk65uAcsvKvPynAi7 flN47xzqiYfE0/GRo96djlw3yg1XWBHnD0QdIKxX3MtCeRV0YjlSReLLVmK9yY6CueKz 9W6QXH5dETGRLW6Jj4b6rhLfVwheqMEWUoHahhQKlPKn05Gn2QCFHcRqUClDSZ44Jqly bw1mTAVdmE1LhO//NKNzV9/bBw7B8XNQjJPVhsiRUEMxrrqsu42SUUz1+CagDpKWdsY6 Er/A== X-Gm-Message-State: APjAAAVjsfPeOSz7ZClrjZtWk93ilgWh1qgJbOAizQ7f9Vuho35BcY21 Oh0yHpGO1gkdq5vTb+yC5amWxrQr8NqM X-Google-Smtp-Source: APXvYqxvR380sk6XBNzBjH/qc0uYf1NDtsQCbN45x++MVZWUW5f+ZMoIbVLWNYqWRSJH097LKDxfJw== X-Received: by 2002:a62:2783:: with SMTP id n125mr19205564pfn.167.1571942440547; Thu, 24 Oct 2019 11:40:40 -0700 (PDT) Received: from localhost ([2620:15c:202:201:c87a:31ae:9107:f63d]) by smtp.gmail.com with ESMTPSA id r185sm29534162pfr.68.2019.10.24.11.40.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 24 Oct 2019 11:40:39 -0700 (PDT) From: Curtis Malainey To: alsa-devel@alsa-project.org Date: Thu, 24 Oct 2019 11:40:26 -0700 Message-Id: <20191024184026.183913-1-cujomalainey@chromium.org> X-Mailer: git-send-email 2.24.0.rc0.303.g954a862665-goog MIME-Version: 1.0 Cc: Oder Chiou , kbuild test robot , Takashi Iwai , Liam Girdwood , Mark Brown , Bard Liao , Curtis Malainey Subject: [alsa-devel] [PATCH] ASoC: rt5677-spi: fix sparse warnings X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Fix bugs reported by kbuild test robot Fixes: a0e0d135427c ("ASoC: rt5677: Add a PCM device for streaming hotword via SPI") Reported-by: kbuild test robot Signed-off-by: Curtis Malainey --- sound/soc/codecs/rt5677-spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/rt5677-spi.c b/sound/soc/codecs/rt5677-spi.c index 36c02d200cfc..958871b342ea 100644 --- a/sound/soc/codecs/rt5677-spi.c +++ b/sound/soc/codecs/rt5677-spi.c @@ -145,7 +145,7 @@ static int rt5677_spi_hw_free( snd_soc_component_get_drvdata(component); mutex_lock(&rt5677_dsp->dma_lock); - rt5677_dsp->substream = 0; + rt5677_dsp->substream = NULL; mutex_unlock(&rt5677_dsp->dma_lock); return snd_pcm_lib_free_vmalloc_buffer(substream); @@ -362,7 +362,7 @@ static void rt5677_spi_copy_work(struct work_struct *work) mutex_unlock(&rt5677_dsp->dma_lock); } -struct page *rt5677_spi_pcm_page( +static struct page *rt5677_spi_pcm_page( struct snd_soc_component *component, struct snd_pcm_substream *substream, unsigned long offset)