Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp525974ybn; Wed, 2 Oct 2019 01:54:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbkH8scliv4u2flIRn/oelzsiry4Cyd5nU2TkHdADPeVjPAqfs2GX7LmCgYNt2lV/PubFP X-Received: by 2002:a17:906:5584:: with SMTP id y4mr2004129ejp.89.1570006472268; Wed, 02 Oct 2019 01:54:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570006472; cv=none; d=google.com; s=arc-20160816; b=vQDMHZfoIhGx02kWxX9z0RvrJcTYuXW2ufEqcCt1ZR2EgAr+IpZ0kSJEAlvdwUse/6 FXKkpVzRT2opeB5bc40Brw2mnjnZkCuVyxfZNn58NN8wNnEeowGKBDroJuinHQ7iwZ6n IPItefnMO+ztaEmat+3wz5unVygCFJjLNSrLwH7B6/P3PVuDC25ZsyCIvZUqep7NyJuh 0Yuco0bvWY0S3FFSqA+nP8HUNLM6vM1FJ1DQSN6t5YdFQywr875N1HpbjvpEClkhERuh 83OrJq0HFlLUGlkA29B3jiFQUGrDX7anAXAX79JUyDEXjah+lmEZBohSr1W6nD7vNb7d 3w3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=/iG6PexVoDH6Q0LQYkMTFa6myQyuCJwYBsDRxXwStg8=; b=nAi1Se9+7KFVvvt+IITuO1ZHorR5viFwaXc0FJa+noA2Fs2jvfeC+wFHM4mQeWIeWs c2vdQKu06abmIIrYnMj7nPiStxqetUzezolV9IZSRsrRygcRqBz9oqYKnjzYbfRWE6vN fNhbFwCg1N+dGkGfElqEW7NnX0zLnFwdhQSWFQ0QUx4AhHHoB/592Ea+n6DKxUkQzjYb TLHOEJybQlu39dA0bBL4CAdLukg5qXxJvnc9WIvC4isZlLYu+VpetrP4Qnw58736p4ej v+xwKVeUSZ4tY+h0tnkvvSglImisfxX6HopUgvAXokYcWCmqYjECGupkQy9Sr2GfuL27 eRiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f21si10696612eda.216.2019.10.02.01.54.08; Wed, 02 Oct 2019 01:54:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727637AbfJBIUQ (ORCPT + 99 others); Wed, 2 Oct 2019 04:20:16 -0400 Received: from mx2.suse.de ([195.135.220.15]:52202 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726067AbfJBIUQ (ORCPT ); Wed, 2 Oct 2019 04:20:16 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id EA74CACC6; Wed, 2 Oct 2019 08:20:14 +0000 (UTC) Date: Wed, 2 Oct 2019 10:20:06 +0200 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: Vinod Koul Cc: Randy Dunlap , alsa-devel@alsa-project.org, Sanyog Kale , Pierre-Louis Bossart , linux-kernel@vger.kernel.org Subject: Re: [PATCH] soundwire: slave: Fix unused function warning on !ACPI Message-ID: <20191002081717.GA4015@kitsune.suse.cz> References: <20190830185212.25144-1-msuchanek@suse.de> <20190904093052.GQ2672@vkoul-mobl> <20190904124803.1700a65a@naga> <20190904114059.GU2672@vkoul-mobl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190904114059.GU2672@vkoul-mobl> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 04, 2019 at 05:10:59PM +0530, Vinod Koul wrote: > On 04-09-19, 12:48, Michal Suchánek wrote: > > On Wed, 4 Sep 2019 15:00:52 +0530 > > Vinod Koul wrote: > > > > > On 30-08-19, 11:56, Randy Dunlap wrote: > > > > On 8/30/19 11:52 AM, Michal Suchanek wrote: > > > > > Fixes the following warning on !ACPI systems: > > > > > > > > > > drivers/soundwire/slave.c:16:12: warning: ‘sdw_slave_add’ defined but > > > > > not used [-Wunused-function] > > > > > static int sdw_slave_add(struct sdw_bus *bus, > > > > > ^~~~~~~~~~~~~ > > > > > > > > > > Signed-off-by: Michal Suchanek > > > > > > > > Acked-by: Randy Dunlap > > > > > > > > I was about to send the same patch. > > > > > > So I have applied Srini's patches which add DT support and they use > > > sdw_slave_add(). So next tomorrow should not see this error as it is now > > > used by DT parts as well. > > > > > > So dropping this patch > > > > > > > That should fix the issue for me. I wonder if !ACPI !DT platforms are > > still a thing. > > Heh that should trigger this if we have one :D so should a lot more > which depend on some firmware! Actually s390x is built with !ACPI and !OF. While it supports PCI an virtio in practice only sound devices emulated by qemu are available. Also AFAICT the sounwire driver is useless without ACPI or OF so it should depend on them. Thanks Michal