Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp174898pxb; Tue, 17 Aug 2021 22:54:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4TcPS3wjUNTD4jxNo8qhZIHyBRVGfNnLkdcgraccXpf2Fwtcv1gS92n7xKtsK9gGawohu X-Received: by 2002:a92:cccd:: with SMTP id u13mr5135749ilq.13.1629266041126; Tue, 17 Aug 2021 22:54:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629266041; cv=none; d=google.com; s=arc-20160816; b=0RC6mFgtrfZyJcCvjoOuNkWw3P3ZBdToZLAjhAnhq0oNM8u1R4EVEQmDS7e95XaYPT jqyqe1lyqY9LSSWZNK7xTileObnLV8Cw6NTyyMqdgaZwfwNA8FuqME39wNVEwQMie53M z40s/jXirdpS/faJXdb0HPWnejhg/t/K3qbL8YGCs4EvJ/PKPp529HR1kDRR7QGKqp86 JxgYJcFzQnC+3fZuvOteXcsM5NL6FLJ5XMQ8Z3tguHVSVoHyek8uri2CPn/fX0/WDbwW rShnxzZ9JrsrwDJ9f1t2Ef8L7cF5M4jXO13/Q44r9KDqYJRq7b+YZVLVSwwMAW+fFO0p hd0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=gOBc9QdWJpbD5fpGkPq549vmg28skbux9e9YpodQJTk=; b=Aqbeg2biqyfn/mM1LCr6/eFfcX2ESLxI9DTYhN29R52wPlorpHmdKFnxU2Tl3vDqIB zt/Jp8Hg8Kkr+PKBkqAWh0SMpQ/QAge5XyqyW9c1dSUNDfIAsriqysIWL3alMF07xRAH zCCg/70VWgUTOZubrA4mb+cWxqC0/AdHnDo/KnB6aeWRVvnlJ0pPBuXqQtPJcGaAf8zs S8s3b+FU2r+1DnojtVGcK1alzh+zYxmjN6MRLTdBPxLXdm7+mgFpChUhhYhbvXqYi79+ xg1OFz0C30wNkxfZ+0Dk+jnJOzuYd27Q0gZJAlbEI0Wu+G4o1CApTxErRxhIVIhaYNH8 6m1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qzAdBGy5; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si4601961jaj.101.2021.08.17.22.53.49; Tue, 17 Aug 2021 22:54:01 -0700 (PDT) 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=@suse.de header.s=susede2_rsa header.b=qzAdBGy5; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237856AbhHRFw1 (ORCPT + 99 others); Wed, 18 Aug 2021 01:52:27 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:51590 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237912AbhHRFw1 (ORCPT ); Wed, 18 Aug 2021 01:52:27 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 3DA581FF84; Wed, 18 Aug 2021 05:51:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1629265912; 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=gOBc9QdWJpbD5fpGkPq549vmg28skbux9e9YpodQJTk=; b=qzAdBGy5rYkTSAlLyP4u4NM16KcDyZe2pS/M4qdRjm95dVo1gZXfcFcenf+4CMBtN4OQ7M BirLcIzri6rhp/lWqaKok0Xm5uTddGhr7u+61+lKuU/mcYVwuurDvNhIafSESReMU8qH88 sYWdqVpTq3TlNiyVShw4gtRTMFD855M= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1629265912; 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=gOBc9QdWJpbD5fpGkPq549vmg28skbux9e9YpodQJTk=; b=rPqTmXMsZtZur8zJB+j40Z0K0F5HPKvext8Hzc0g/DGEEYOiGipIzbdE+ZMDwx+M+KNlHB aE2qSV6Og6mJioCA== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 30BD2A3B91; Wed, 18 Aug 2021 05:51:52 +0000 (UTC) Date: Wed, 18 Aug 2021 07:51:52 +0200 Message-ID: From: Takashi Iwai To: Nathan Chancellor Cc: Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] ALSA: hda/analog - Sink ad198x_shutup() and shuffle CONFIG_PM guards In-Reply-To: <20210818012705.311963-2-nathan@kernel.org> References: <20210818012705.311963-1-nathan@kernel.org> <20210818012705.311963-2-nathan@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Aug 2021 03:27:05 +0200, Nathan Chancellor wrote: > > When CONFIG_PM is not set, there is an unused function warning: > > sound/pci/hda/patch_analog.c:115:13: warning: unused function > 'ad198x_shutup' [-Wunused-function] > static void ad198x_shutup(struct hda_codec *codec) > ^ > 1 warning generated. > > Sink ad198x_shutup() into ad198x_suspend(), as it is only called in that > one space. Move the CONFIG_PM guards above ad198x_power_eapd_write() as > it is only called in ad198x_power_eapd(), which is in turn only called > in ad198x_power_eapd(). Those two functions are large enough that they > are left alone. > > Fixes: 327b34f2a97d ("ALSA: hda: Nuke unused reboot_notify callback") > Signed-off-by: Nathan Chancellor > --- Thanks, applied. Takashi