Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1392958pxb; Fri, 20 Nov 2020 08:25:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwU+9Kh9ypJnpKBXpd3Kzi3hm4odp5TamFNSdgEMXALwrY9is74+YkXNZ6i+4U5KN4KaSKT X-Received: by 2002:a17:906:b14e:: with SMTP id bt14mr2459837ejb.226.1605889509920; Fri, 20 Nov 2020 08:25:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889509; cv=none; d=google.com; s=arc-20160816; b=Du5LttA1kSnNKEz+Ef1Nev94S9v4qm7P266c3js88qudMwMB8gyKd/FgYM8Ts04qO0 WEvNSO6emIEaBiTwj8yi0H0v5VHkg/98vwb7cVKxGAIHDKcqMqReyjfWkK9k+uHQZ5Rp 9kix+f4Of8GlIdJONSP2ffVrW6kzqo2LPBsD93SRIWwW73J+gOzGQFtWCU2QIk4byq5T ccruGR3bFxYd6XLlz8pdJn01q6Ls1o4oIvjUupG2jh4+XPoxu+bTu2ApSMODRNUZUGSt oIqgXPThdgUQze7EHut21Sw4lhSRfibO0/p/XJvQy4pocS41DFJ5KHqQIdIesNqJ4Q6s CZWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=J65Lgs2nRm92Ivjo25iowlET2ivhyC/kdQRp1zqmqxs=; b=kS8SFGzdg3bvu4M5rDr8WtmAl1DGsipvFEcp+lCrImSRlAkJqVx1Ir8d/+/7kZvpPn JzRTWdvVQkMIDenE459+fKPpwzdY9OnBMnNzOb/UZfFHZGtIRknflBhqghieZ/Udc5jC +W/0pIzGdFKXppIb0HneQ8uKChmgh1VtTZrvQSCLuHQudvTsNUjjbvkSevRM+7YDZoZI oXu4m7DVimqtMA5b9NvyNMjCtF/WmoZsPcVX3SwHEqxlyzORl0ctHwaayS4mL3DXiJtY pr9G4WX8j9jb7szmVIXzrV+n1nHnsYApC9NHdgruxnh1wB8dt5RqK6ijWOt3NVcV3h4n 8Rzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lUosxxsU; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z11si1836563ejr.354.2020.11.20.08.24.46; Fri, 20 Nov 2020 08:25:09 -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=@kernel.org header.s=default header.b=lUosxxsU; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729697AbgKTQTy (ORCPT + 99 others); Fri, 20 Nov 2020 11:19:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:37908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729688AbgKTQTw (ORCPT ); Fri, 20 Nov 2020 11:19:52 -0500 Received: from localhost.localdomain (adsl-84-226-167-205.adslplus.ch [84.226.167.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5FBCF22269; Fri, 20 Nov 2020 16:19:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889192; bh=+gZXbYlIEVHBUQWYpsYOkDG4xDlNmJsbtqpwiPCeNrc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lUosxxsUIdRH9CEXXkRlujif0DEja2512Dd+Sebl191+9CZz+9EAchwDyPpVpXXgt d4BMCKc643Ly6XCv+CkG1AA3Xlj9BGE6kIcdFNTLiqAMOtNmdbFkfToyp6B8dptHk1 /dfcnxXZ4+lq5RFcwb03wowWoDvw2WoJOyuvTK9s= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Liam Girdwood , Mark Brown , alsa-devel@alsa-project.org Cc: Krzysztof Kozlowski , Sylwester Nawrocki , Jaroslav Kysela , Takashi Iwai Subject: [PATCH 34/38] ASoC: samsung: i2s: mark OF related data as maybe unused Date: Fri, 20 Nov 2020 17:16:48 +0100 Message-Id: <20201120161653.445521-34-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120161653.445521-1-krzk@kernel.org> References: <20201120161653.445521-1-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver can be compile tested with !CONFIG_OF making certain data unused: sound/soc/samsung/i2s.c:1646:42: warning: ‘i2sv5_dai_type_i2s1’ defined but not used [-Wunused-const-variable=] sound/soc/samsung/i2s.c:1639:42: warning: ‘i2sv7_dai_type’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- sound/soc/samsung/i2s.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index df53d4ea808f..1e89f2a285a9 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c @@ -1622,28 +1622,28 @@ static const struct samsung_i2s_dai_data i2sv3_dai_type = { .i2s_variant_regs = &i2sv3_regs, }; -static const struct samsung_i2s_dai_data i2sv5_dai_type = { +static const struct samsung_i2s_dai_data i2sv5_dai_type __maybe_unused = { .quirks = QUIRK_PRI_6CHAN | QUIRK_SEC_DAI | QUIRK_NEED_RSTCLR | QUIRK_SUPPORTS_IDMA, .pcm_rates = SNDRV_PCM_RATE_8000_96000, .i2s_variant_regs = &i2sv3_regs, }; -static const struct samsung_i2s_dai_data i2sv6_dai_type = { +static const struct samsung_i2s_dai_data i2sv6_dai_type __maybe_unused = { .quirks = QUIRK_PRI_6CHAN | QUIRK_SEC_DAI | QUIRK_NEED_RSTCLR | QUIRK_SUPPORTS_TDM | QUIRK_SUPPORTS_IDMA, .pcm_rates = SNDRV_PCM_RATE_8000_96000, .i2s_variant_regs = &i2sv6_regs, }; -static const struct samsung_i2s_dai_data i2sv7_dai_type = { +static const struct samsung_i2s_dai_data i2sv7_dai_type __maybe_unused = { .quirks = QUIRK_PRI_6CHAN | QUIRK_SEC_DAI | QUIRK_NEED_RSTCLR | QUIRK_SUPPORTS_TDM, .pcm_rates = SNDRV_PCM_RATE_8000_192000, .i2s_variant_regs = &i2sv7_regs, }; -static const struct samsung_i2s_dai_data i2sv5_dai_type_i2s1 = { +static const struct samsung_i2s_dai_data i2sv5_dai_type_i2s1 __maybe_unused = { .quirks = QUIRK_PRI_6CHAN | QUIRK_NEED_RSTCLR, .pcm_rates = SNDRV_PCM_RATE_8000_96000, .i2s_variant_regs = &i2sv5_i2s1_regs, -- 2.25.1