Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1394051pxb; Fri, 20 Nov 2020 08:26:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1iVMZbfNCMcQ31WnerD2mt1A0gpN0Y8Gq/tRqnMZwzCV76kImVHt9pE7xvb1DiWKT91Li X-Received: by 2002:a17:906:1744:: with SMTP id d4mr1270073eje.176.1605889608151; Fri, 20 Nov 2020 08:26:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889608; cv=none; d=google.com; s=arc-20160816; b=fVPLBZhg2v/V1PkXWDHwg2kTCgxK3OJXfqFrT8XrjADsc0f8xlBxhplvPhslQVkV8n rk3IIySMPby34DKRMWhjMc27+fzKaUd3fdKAgz0Z4VugSTPNOe36cI2q0BGqN+uK5IS8 osOuLgm1XDHMBuF0bvC9saqCuJIyMCRr01B+Rjfi3Cc3/2divWG09QGRDtL/ppp3yuC5 T0DwGjF9EYLBaQj5SHkFlH3McGMJkii6HBinjhOYEjDkzisRbr55n6/PuHCPK6B5624L F+RePKb3jDMmVxqxqVFOUNgFwJjCBfV56p1e1jCaF8Glph+osIjKMtoK3zD0OUWdy4DS x+8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=SED0EgoaZJAwVnlKBinfvNnqRxNjjlAXaMmJe99UIAw=; b=ciwZGwMriyQQ8Ngz6to4qXnq6rmhrGa69UMcosJFK6m/J6ujHc5WraGSMTtqTD081F CleHbuMD9QRT4wQ7Xr9JMqj3J8U1siPJRaYjy9uqwOKBCk726H0eGNEowR7CqQQiNODA V9+ASqMTdBeCA/pKZczkTOjn9+lYqu5lpfAI7zFzPyTWer8Cc7oA3E+h2TzSfFJiVUgj EFtZiEfuOOHZDp+VhYBYckPkVwhgu43tW/iF8BZoOUBpHh6rfXb80xrTvuO13JQuoknj z+m5Qb3uAoWZtnf4zU63ix5Lss7eWP+hbN1lJxrGJUpXRNgl1HYGJZfqKr6iiwU3Lsz8 Vddw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=DE8YPTTA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h13si2020636edn.268.2020.11.20.08.26.25; Fri, 20 Nov 2020 08:26:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=DE8YPTTA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728444AbgKTQWz (ORCPT + 99 others); Fri, 20 Nov 2020 11:22:55 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:37196 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728960AbgKTQWy (ORCPT ); Fri, 20 Nov 2020 11:22:54 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0AKGLxI3099103; Fri, 20 Nov 2020 10:21:59 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1605889319; bh=SED0EgoaZJAwVnlKBinfvNnqRxNjjlAXaMmJe99UIAw=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=DE8YPTTAqhBUxvvFp81BwkV/Z2TnqYh79N0FeO3YBANRU0GpHiagJpzegDSNJfZJ+ pnn/BU/4VipYGDeQyFVQ+lS7OlwqZiNE82uleRq1pxxRnlkVOAwLmx1HvtHpeI0ax7 r47NnnQQLJWIixPdoArkCisEaQGNZHHFEyRn9oPQ= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0AKGLxvG111484 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 20 Nov 2020 10:21:59 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 20 Nov 2020 10:21:59 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Fri, 20 Nov 2020 10:21:58 -0600 Received: from [10.250.70.26] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0AKGLu7C011150; Fri, 20 Nov 2020 10:21:57 -0600 Subject: Re: [PATCH 29/38] ASoC: tas2562: skip of_device_id table when !CONFIG_OF To: Krzysztof Kozlowski , , Liam Girdwood , Mark Brown , CC: Jaroslav Kysela , Takashi Iwai , Kuninori Morimoto , Jonghwan Choi References: <20201120161653.445521-1-krzk@kernel.org> <20201120161653.445521-29-krzk@kernel.org> From: Dan Murphy Message-ID: Date: Fri, 20 Nov 2020 10:21:56 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201120161653.445521-29-krzk@kernel.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello On 11/20/20 10:16 AM, Krzysztof Kozlowski wrote: > The driver can match by multiple methods. Its of_device_id table is > referenced via of_match_ptr() so it will be unused for !CONFIG_OF > builds: > > sound/soc/codecs/tas2562.c:805:34: warning: ‘tas2562_of_match’ defined but not used [-Wunused-const-variable=] > > Signed-off-by: Krzysztof Kozlowski > --- > sound/soc/codecs/tas2562.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/sound/soc/codecs/tas2562.c b/sound/soc/codecs/tas2562.c > index f1ff204e3ad0..19965fabe949 100644 > --- a/sound/soc/codecs/tas2562.c > +++ b/sound/soc/codecs/tas2562.c > @@ -802,6 +802,7 @@ static const struct i2c_device_id tas2562_id[] = { > }; > MODULE_DEVICE_TABLE(i2c, tas2562_id); > > +#ifdef CONFIG_OF Should we use #if IS_ENABLED(CONFIG_OF) ? Dan