Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3024762rwb; Mon, 15 Aug 2022 16:22:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR7kg1iaHpsc/e1cZQLbPxKoFAbyo6pWdSMDw5ByKJFyJQ3TAHcprDr78PfB8TnjySYZ7ReL X-Received: by 2002:a17:902:ea02:b0:16f:11bf:f018 with SMTP id s2-20020a170902ea0200b0016f11bff018mr18918478plg.150.1660605766435; Mon, 15 Aug 2022 16:22:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605766; cv=none; d=google.com; s=arc-20160816; b=H0tjBIApiDfyUojcAn2Zf02kDHTn2VWcMcCW/8rjWAtnScNByzG/i4SEb4R6e0gmqj HBtOlDaGsSnLVt5vKC6xMwWlpSrjqSDccorSFOtTvYI7E+BzbPPgNrP23acWeztTaFH7 zJIUuQAju5VtDYP38vjO+18mFX2gBRfPnX0vyt8PBrnUNoUkbzfOsi7gHIOPU/R8JxRZ X8rWdsAn6hhtRZCIRnqXseTvEmDkERsYV2wo0QAfpEbCqDBnghTjviEOz1eJZF/Qrsjr HyAVqPT4at3MVSJqLEjtyMo+QlNo7GKS7+eis5YXgGtkdnPbExbWPopEcmKetGA3QCUT b0MA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=5lRvrDWdB2/77jEW0N9iBZs35lURsSQxkBuNyzoetdE=; b=ccjSoAWn8MZqdwtO8Si3+Cue0ca4GI8QZOnBqejns3JU/M+i1ha8PieJirTJiT8QmN E1dMB9uZ8YWveT13l3cOZ/+/Rk5SBbvyJQvMz5YuxLWzRwaHar1jkB7jrcGZn9kXsF2T oZic49DX/eh7tN3LfGilVxNYj0aj8c+r4pZukj5DuZUN2j5bLKJ9DNiIpeUIxm/fGg3x /qaf9UeQXt/KLS/YejjJwoEHiirYRAWH6+7eyfhD1TZyBuOGXlYgo/hetmr+fIsPWeZJ XZRFIXSO5C0HjGyy3S8UUXvAuJ7DIOZIKSCrTdMo3zLXn7BbgeK0A20yBgYo2TQqjiRL XZ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VTSNDZEd; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h9-20020a636c09000000b004299f0754adsi950080pgc.407.2022.08.15.16.22.35; Mon, 15 Aug 2022 16:22:46 -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=@linuxfoundation.org header.s=korg header.b=VTSNDZEd; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348769AbiHOWcm (ORCPT + 99 others); Mon, 15 Aug 2022 18:32:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350741AbiHOW1J (ORCPT ); Mon, 15 Aug 2022 18:27:09 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8A4A4198F; Mon, 15 Aug 2022 12:45:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 63375B81136; Mon, 15 Aug 2022 19:45:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB13DC433C1; Mon, 15 Aug 2022 19:45:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592733; bh=GQzVVrODmWCT239cap0EveCqiYT9gKfYsgEnP5+XKRs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VTSNDZEdi/cBywZKYptSxsJ2GiWXT/3yL3v1Go8Qx+4AtjAxJdddOkQfM0F/hEwqE JQlPzWpSxLrHnoN9FM7PbfUOmnW1fsYCDSZ42MlBC20s6qx40zflEPdIYiDHE/iFIz xEXlv97ScDQRJhbdjMMfYbemyb1Vu1D5l78J8axs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peter Ujfalusi , Ranjani Sridharan , Bard Liao , Pierre-Louis Bossart , Mark Brown , Sasha Levin Subject: [PATCH 5.18 0837/1095] ASoC: SOF: make ctx_store and ctx_restore as optional Date: Mon, 15 Aug 2022 20:03:56 +0200 Message-Id: <20220815180503.967711887@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Peter Ujfalusi [ Upstream commit 03f69725749f453b9a4d454a92805f8eb5f095c2 ] Commit 657774acd00f ("ASoC: SOF: Make sof_suspend/resume IPC agnostic") did not marked ctx_store and ctx_restore as Optional. Fixes: 657774acd00f ("ASoC: SOF: Make sof_suspend/resume IPC agnostic") Signed-off-by: Peter Ujfalusi Reviewed-by: Ranjani Sridharan Reviewed-by: Bard Liao Reviewed-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20220610083549.16773-2-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/sof/sof-priv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/sof/sof-priv.h b/sound/soc/sof/sof-priv.h index c856f0d84e49..f369242dd975 100644 --- a/sound/soc/sof/sof-priv.h +++ b/sound/soc/sof/sof-priv.h @@ -364,8 +364,8 @@ struct snd_sof_ipc_msg { /** * struct sof_ipc_pm_ops - IPC-specific PM ops - * @ctx_save: Function pointer for context save - * @ctx_restore: Function pointer for context restore + * @ctx_save: Optional function pointer for context save + * @ctx_restore: Optional function pointer for context restore */ struct sof_ipc_pm_ops { int (*ctx_save)(struct snd_sof_dev *sdev); -- 2.35.1