Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1BF7FC433EF for ; Tue, 19 Oct 2021 06:06:44 +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 3EFE9611BF for ; Tue, 19 Oct 2021 06:06:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3EFE9611BF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=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 28A1416AF; Tue, 19 Oct 2021 08:05:51 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 28A1416AF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1634623601; bh=DRAbboG8I0CpcUM+lm3rJRrzAS71C+ko8RyqZsrGR+Q=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=UXTgS2kT6DQFVqgA8Ybzo0HEO4fdp1PBjVbcARg9Oz9HFPM6LLRmTcT1We3HjOVFK iQWAWSwu2fCwzNdkOKw+RgUo/dhu7fJCA60tL9cn26R9wPudG7JiKPINsrtnc86ICL 6GjZrfezLNc5FMZTNaXPhXyQSuT3ktgCJKig+F/I= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 95353F80256; Tue, 19 Oct 2021 08:05:50 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2F503F80155; Tue, 19 Oct 2021 08:05:46 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (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 30324F80155 for ; Tue, 19 Oct 2021 08:05:37 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 30324F80155 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="k+Tu3Bcq"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="yOJYYtnH" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 7323521977; Tue, 19 Oct 2021 06:05:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1634623537; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=nCP88yCC9Gu2Zw6p/CXMzCKS6Te0lGIZhezxMCJfV/M=; b=k+Tu3BcqPTGMHAWzmuYTsCrS1MaB6tgDbTw1oJUH246ss9fvnaOJh6M+1AL6/g2DK7vcVc jZXOSyCPA0kexLh0DzmCCSIimK+oSNDwvJPoYyfy+HHxBjKXf/j+1t8xrorMusA0bQvupR rNRu6yIaPzG+10tjjtieDlvp7PA6tqI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1634623537; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=nCP88yCC9Gu2Zw6p/CXMzCKS6Te0lGIZhezxMCJfV/M=; b=yOJYYtnHRwQNVB+AunmdlnWRj+SNDsvfNhh6ITXliby7NMRzu4OZSVzYW1C4SBu0uOlxv+ ADRI8wC+wtNpT3BA== Received: from alsa1.nue.suse.com (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 60B00A3B84; Tue, 19 Oct 2021 06:05:37 +0000 (UTC) From: Takashi Iwai To: alsa-devel@alsa-project.org Subject: [PATCH 1/2] ALSA: memalloc: Drop superfluous snd_dma_buffer_sync() declaration Date: Tue, 19 Oct 2021 08:05:35 +0200 Message-Id: <20211019060536.26089-1-tiwai@suse.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Stephen Rothwell 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" snd_dma_buffer_sync() is declared twice, and the one outside the ifdef CONFIG_HAS_DMA could lead to a build error when CONFIG_HAS_DMA=n. As it's an overlooked leftover after rebase, drop this line. Fixes: a25684a95646 ("ALSA: memalloc: Support for non-contiguous page allocation") Reported-by: Stephen Rothwell Link: https://lore.kernel.org/r/20211019165402.4fa82c38@canb.auug.org.au Signed-off-by: Takashi Iwai --- include/sound/memalloc.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/sound/memalloc.h b/include/sound/memalloc.h index df615052dad4..653dfffb3ac8 100644 --- a/include/sound/memalloc.h +++ b/include/sound/memalloc.h @@ -97,9 +97,6 @@ static inline void snd_dma_buffer_sync(struct snd_dma_buffer *dmab, enum snd_dma_sync_mode mode) {} #endif -void snd_dma_buffer_sync(struct snd_dma_buffer *dmab, - enum snd_dma_sync_mode mode); - dma_addr_t snd_sgbuf_get_addr(struct snd_dma_buffer *dmab, size_t offset); struct page *snd_sgbuf_get_page(struct snd_dma_buffer *dmab, size_t offset); unsigned int snd_sgbuf_get_chunk_size(struct snd_dma_buffer *dmab, -- 2.26.2