Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6848839rwn; Tue, 13 Sep 2022 09:48:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR7tGWa1y+v+IEJXDE43CFigQ+hfz/zp/AUKm6W53fk9+dmKXjPoQUuwPReaVdUAj24R8/eV X-Received: by 2002:a65:538e:0:b0:434:aa53:2244 with SMTP id x14-20020a65538e000000b00434aa532244mr27394387pgq.343.1663087706374; Tue, 13 Sep 2022 09:48:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663087706; cv=none; d=google.com; s=arc-20160816; b=ZIUzXE7tdwm7L2uANvZ3Ia8IzY4UMZB4ofMvYIPswXh+rImfAwXdWa9V6E8hnDNgfG f1HySb28h8dB386QsBkR71u0p/7IPlGgUWnbrXmD0wlHscfSUVvGYccJLQH3C2Evh/oR v9kuE0PpULfQsImySBeJM8YsI2mIPTliSqzOGCCZuaPVVe94cbxHZ6biYU9m4iaOeM64 DQvjn/hcQaA3yOHMBLFLuOuYdJmXe0/sp1cwUnQVscPDpOgaDGgNI4F/NHF37dsJ7Stn fHPFqGArktlBfSz0oh3Uur3hoERbpJm1RisGhOYgoAsxwmY6BUbFfGKwqWRQrr20blWb WPhg== 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 :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature:dkim-signature; bh=jCwdsZHjxPGGiGBXIrdEwcvTl9L7wQxJY4/o2ien4ok=; b=BGmOSWgPekY7vLddGwaEpzsTZ9+RXOOxRVCzCva9hY0jW+2E94DGGWbbLUBOGMrdRu JTEmGX5EL52w5WmphJu7ReJSSKV7MlirWDn0ZWtZfR6ANt2+kC/TQzri7bTmFh30BQwE bY2NWdwlvIz9UYFN1a2XdDIrU6ZSGIHL463wiovBP6Va9Y6+FEoShFMcZSDNl+OjUe7h a5wqeIe/Jtr/EAb6QW/iJTqNYn3g21EfAgvKyuEzy78TK0faNeyqmwJdBpGlntvkZ+X4 pnEYfjT15g1r0gPBj8CNRxkU0ACWzEX9cThxhS75Z0J1m1MGX+3tUSiftPMQ00+x7xtt inMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=xyIQEu8z; dkim=neutral (no key) header.i=@suse.de header.b=dYow5v6p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o2-20020a056a0015c200b00535e3dc1519si11452634pfu.64.2022.09.13.09.48.15; Tue, 13 Sep 2022 09:48:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=xyIQEu8z; dkim=neutral (no key) header.i=@suse.de header.b=dYow5v6p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230237AbiIMQ33 (ORCPT + 99 others); Tue, 13 Sep 2022 12:29:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232434AbiIMQ2i (ORCPT ); Tue, 13 Sep 2022 12:28:38 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C05487C324 for ; Tue, 13 Sep 2022 08:24:05 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1CB7434767; Tue, 13 Sep 2022 15:21:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1663082501; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jCwdsZHjxPGGiGBXIrdEwcvTl9L7wQxJY4/o2ien4ok=; b=xyIQEu8zZLW8T9vl1Ly75KX5TWGFnVke9XxfE3h3NH2NxT6S37BcXWKn5ZixGI8uMSfvJ8 xAJugtSrAZ1n8kUb+6SRYTRV2nt+r/ooo7Wyy1HCSsbsNtvg8eU8yaosASXIUSA4k8lDtx RbV6ijMJCFv6cZCo8v1uvqJ+qfAcINY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1663082501; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jCwdsZHjxPGGiGBXIrdEwcvTl9L7wQxJY4/o2ien4ok=; b=dYow5v6prfwQR8Y2hk1GpdUP+PGyf3SmDKUFMVDLXue/mwoFnEbyeinbLsczPkj3h0tOPN Iq9qUWLPeSb9aKAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id DAD07139B3; Tue, 13 Sep 2022 15:21:40 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id PRuXNASgIGMQUwAAMHmgww (envelope-from ); Tue, 13 Sep 2022 15:21:40 +0000 Date: Tue, 13 Sep 2022 17:21:40 +0200 Message-ID: <874jxbfgfv.wl-tiwai@suse.de> From: Takashi Iwai To: Cezary Rojewski Cc: Gaosheng Cui , , , , , , , , , , , Subject: Re: [PATCH -next] ASoC: Intel: fix unused-variable warning in probe_codec In-Reply-To: <39b0bfef-be7d-05a9-d964-19a74757bb8d@intel.com> References: <20220822035133.2147381-1-cuigaosheng1@huawei.com> <39b0bfef-be7d-05a9-d964-19a74757bb8d@intel.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 Sep 2022 16:03:35 +0200, Cezary Rojewski wrote: > > On 2022-08-22 5:51 AM, Gaosheng Cui wrote: > > In configurations with CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC=n, > > gcc warns about an unused variable: > > > > sound/soc/intel/skylake/skl.c: In function ?probe_codec?: > > sound/soc/intel/skylake/skl.c:729:18: error: unused variable ?skl? [-Werror=unused-variable] > > struct skl_dev *skl = bus_to_skl(bus); > > ^~~ > > cc1: all warnings being treated as errors > > > > Fixes: 3fd63658caed9 ("ASoC: Intel: Drop hdac_ext usage for codec device creation") > > Signed-off-by: Gaosheng Cui > > Thanks for the fix. > > Acked-by: Cezary Rojewski Applied now. Takashi