Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7046800rdb; Wed, 3 Jan 2024 02:50:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IEu9BsgxG8suvweJ/wIXO/WqwqbI/xucjg6xSGs3HyXUu8wPu8ms7beiR9+ZWSKAtLw2VN1 X-Received: by 2002:a17:906:f244:b0:a26:a4bd:9ded with SMTP id gy4-20020a170906f24400b00a26a4bd9dedmr7267042ejb.90.1704279031325; Wed, 03 Jan 2024 02:50:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704279031; cv=none; d=google.com; s=arc-20160816; b=jkLClst8GXQsSyCtMlgGY738aw4Ow8B10E6cp9Cj9Uxj8/1OxDWUkFZ/c+rW/nY85z o2EBvMTMDOH1EzfjYPSIetYh5j0NhTThlrFJ07DCiLjV6WxGHf9M7MI5nNAe9WXHpdGL vxOqEVjmtqJrR9Q0zVhABu5fQ34Ff5KfwPGycH9Ph5kICDw6y29jnDYGL6lBzAs56gUI 6YiMLeVVzUjr0Uc3X7uyAujc1YwSplh7NrPjF2Nb6KYBEBwa7vui7UsMTb8QLlKJtATd Q0n8IL8UmSVT2HKeaUZaMRtfzij/aGhhtEdp/mFH2M0wQhGdBy0YMptu1gcZf9K/9iMZ LScA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=4wxXCY1XA5sZiJPe9cvdG0ludmPXkduZ1yrQ2KPpE7w=; fh=ENudA8aaPUJSidr3e8GF6VwDxTETNkpRs7HbmGNMWsw=; b=m8mBPiD1FPOzjSDFol2+XLrf6IjLZoP91P1N4juz3M9/73BFJR2ioWF1TFS+cYaEtW yeYslDcUVVFldWF1rrJkNgT9vecQbADCExL+csLLGFsxlG19N9oVkqUyZj2YC7J+rZtH e6jIzVTxB3WA+DSIuXKNJLy8jEZt+Fx20MLK00nEXe3v9TuECVPfO5UQlMxqFBsSZOqO lbYEAriy7UuFtZnzkwu0zRdd/ij56cFODPSoJ9OCkLeQxRgKmFrJgtBmSCXktPVIX3uD XlEGO0Xgg4X5A5V0ZgMbeQ8PD/n6U2n5JjljPtGphf+w2F0PMTa552OLxpuC/G8+kc4K He7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=WNPa+fMi; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=WNPa+fMi; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=GwfWdUn1; spf=pass (google.com: domain of linux-kernel+bounces-15409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id vz16-20020a17090704d000b00a27860e5309si4102361ejb.499.2024.01.03.02.50.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 02:50:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=WNPa+fMi; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=WNPa+fMi; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=GwfWdUn1; spf=pass (google.com: domain of linux-kernel+bounces-15409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 199011F228B7 for ; Wed, 3 Jan 2024 10:50:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8F6D18C38; Wed, 3 Jan 2024 10:50:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="WNPa+fMi"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="GwfWdUn1"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="WNPa+fMi"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="GwfWdUn1" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 684C01864A; Wed, 3 Jan 2024 10:50:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 601571FD11; Wed, 3 Jan 2024 10:50:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1704279018; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4wxXCY1XA5sZiJPe9cvdG0ludmPXkduZ1yrQ2KPpE7w=; b=WNPa+fMifSECdTIrV1WxIs4qiZq7PS35RKS09k97hVv7RuQC+OenR3Wfvc07Gs/GyJCMU0 1SQCPko0Ak2zeyXgojyhrEE/gAesUux7mSZ1QkXBufp8AZAdupI9q5cDAsMin4EiALSHvK 8hWJGgovw5OkS8IGWaURID42T1xXhe4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1704279018; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4wxXCY1XA5sZiJPe9cvdG0ludmPXkduZ1yrQ2KPpE7w=; b=GwfWdUn1QNWHsEE58qZ+GjLILa1hzocESF2tMQbOcWzrdkl6Vs4jYsRXrPJduyd3/BIBCo 8w3zk7+e+9bKjCBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1704279018; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4wxXCY1XA5sZiJPe9cvdG0ludmPXkduZ1yrQ2KPpE7w=; b=WNPa+fMifSECdTIrV1WxIs4qiZq7PS35RKS09k97hVv7RuQC+OenR3Wfvc07Gs/GyJCMU0 1SQCPko0Ak2zeyXgojyhrEE/gAesUux7mSZ1QkXBufp8AZAdupI9q5cDAsMin4EiALSHvK 8hWJGgovw5OkS8IGWaURID42T1xXhe4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1704279018; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4wxXCY1XA5sZiJPe9cvdG0ludmPXkduZ1yrQ2KPpE7w=; b=GwfWdUn1QNWHsEE58qZ+GjLILa1hzocESF2tMQbOcWzrdkl6Vs4jYsRXrPJduyd3/BIBCo 8w3zk7+e+9bKjCBg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id EC1B41340C; Wed, 3 Jan 2024 10:50:17 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id yjX9N+k7lWXDBwAAD6G6ig (envelope-from ); Wed, 03 Jan 2024 10:50:17 +0000 Date: Wed, 03 Jan 2024 11:50:17 +0100 Message-ID: <87bka2bsie.wl-tiwai@suse.de> From: Takashi Iwai To: Arnd Bergmann Cc: James Schulman , David Rhodes , Richard Fitzgerald , Jaroslav Kysela , Takashi Iwai , Stefan Binding , Arnd Bergmann , Dorian Cruveiller , Yang Yingliang , alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ALSA: hda: cs35l41: fix building without CONFIG_SPI In-Reply-To: <20240103102606.3742476-1-arnd@kernel.org> References: <20240103102606.3742476-1-arnd@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Level: * X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Level: X-Spam-Flag: NO X-Spamd-Result: default: False [-1.05 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+]; MX_GOOD(-0.01)[]; RCPT_COUNT_TWELVE(0.00)[14]; MID_CONTAINS_FROM(1.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim,arndb.de:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[cirrus.com,opensource.cirrus.com,perex.cz,suse.com,arndb.de,gmail.com,huawei.com,alsa-project.org,vger.kernel.org]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-1.74)[93.43%]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from] Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=WNPa+fMi; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=GwfWdUn1 X-Spam-Score: -1.05 X-Rspamd-Queue-Id: 601571FD11 On Wed, 03 Jan 2024 11:25:59 +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann > > When CONFIG_SPI is disabled, the driver produces unused-variable warning: > > sound/pci/hda/cs35l41_hda_property.c: In function 'generic_dsd_config': > sound/pci/hda/cs35l41_hda_property.c:181:28: error: unused variable 'spi' [-Werror=unused-variable] > 181 | struct spi_device *spi; > | ^~~ > sound/pci/hda/cs35l41_hda_property.c:180:27: error: unused variable 'cs_gpiod' [-Werror=unused-variable] > 180 | struct gpio_desc *cs_gpiod; > | ^~~~~~~~ > > Avoid these by turning the preprocessor contionals into equivalent C code, > which also helps readability. > > Fixes: 916d051730ae ("ALSA: hda: cs35l41: Only add SPI CS GPIO if SPI is enabled in kernel") > Signed-off-by: Arnd Bergmann Applied now. Thanks. Takashi