From patchwork Thu Jan 7 23:34:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 358305 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp56849jai; Thu, 7 Jan 2021 15:36:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKJXdz2jGpVt4ZUxGpWZ3KMg9wjgvbiJDfPAHe3WxivuMWRBomZbA2L39xNo1ptCvtRhgZ X-Received: by 2002:aa7:cb16:: with SMTP id s22mr3487401edt.53.1610062565988; Thu, 07 Jan 2021 15:36:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610062565; cv=none; d=google.com; s=arc-20160816; b=hT1tQheB9BKVZVXxINpyX6hMNQCgTBFhiNNtx+keH4RCUz7AdN/k6BZ94By56/nPd2 4IoMOmBKkXwTfu036hGb+mHegxv4Y68J7NT1nGzEjRnNx3zt6gqjZQ+bAZrHwr4BmTwj IH8Oszl8h7gjaOb2aKzeWgXSDHI87IGBFvRmurrPgiN2iIQ7jRVpcYdgVgIk/YGSd9qg 08hw8VjPG9RNKiFzLBmoRT5bhg+jURnMlgA7dfUews4Lh7YB0DPVCNQV6SA4hcqfyGMC OxynPDJ8OlRAKEGJ5MpM08bHhTUOE/VdjcOPEcOimoS65rMg/Bc4d35Ky0+Oc95ivIlN twQw== 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=e0iOv5ggqZII+dKDj+NHjegZcaspQECMTNLrYHZfeYk=; b=NNYqXC9vo5CFU2pNHEUHo88zx+Jr6AAl0aFnRMzwqEQcvL1SyQOGm5uA//2zw89Teu Ddc/MtfpPlBI26OGYggmV3zqVt0mSnjPpJJEBM3xhah08UCd+u2/u6o3gYqLRcAv6JAC HvR4RGknmRmy9t49fsaKeDU0nurGvlA2mhMNrfVmHu0NAy273+8+u2HIrepkWigpcFIQ WhoC1v8f8cp1RWRv5fFlxBcBQYS8C4Kxue1ENZWgRRvqoY1n7C3BTzkCBAMuJhntvnHf kxi15plph72wmAeg/JLjU88Sltvldqv6WB7VxSfV84ODMqZXcIcZ197V3uoI3g726tV/ 3Abg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JnUWBpOr; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si3149010ejd.607.2021.01.07.15.36.05; Thu, 07 Jan 2021 15:36:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@linaro.org header.s=google header.b=JnUWBpOr; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728632AbhAGXeu (ORCPT + 15 others); Thu, 7 Jan 2021 18:34:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728053AbhAGXeu (ORCPT ); Thu, 7 Jan 2021 18:34:50 -0500 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99218C0612F9 for ; Thu, 7 Jan 2021 15:34:09 -0800 (PST) Received: by mail-io1-xd29.google.com with SMTP id t8so7921954iov.8 for ; Thu, 07 Jan 2021 15:34:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e0iOv5ggqZII+dKDj+NHjegZcaspQECMTNLrYHZfeYk=; b=JnUWBpOrLOmtLb/KICRaAJ6LMiBPXf0PD40j6zowDLF3ZuzXhUT+YoZaDxtVZKlROq 3bNQ+UtUM6ggaKJvsv28bs4N2RKNKAkdLnX4cSQduv+EVylUP/0RwQUc/cPJXEw+iJ6i hQv2l1ShxUqWvIJfMchAMnWuT0T6g+tV8i8QASN7bDVyYF7oV/HRj0/F/6+L0//rlhyY 7NTINdLYgGIlZJ/nfvBUqI9zG544KJyInzPPhNmrLAh6FxTSpZC45RRtoJDfexZFeLVI qrR6C7pG+478u1TlePpmmM0QYRGJs9r073B0EJbJxJL2pQjuo7kpTD7MNopWoUmP0srZ jSXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=e0iOv5ggqZII+dKDj+NHjegZcaspQECMTNLrYHZfeYk=; b=TYIZI5LyAX+XRcuR2y0pI9Gc5uQlODWn6D0+LtFo1OA8PASFRD598dBo6ei1l6b5v8 ZApqv3tFkbnST8QdW/rgjxQtv1/f3YK4cDFlA0Gj9Y4LvH1U0IGKmHdxYC9rCN+QzErr 4AMbXpoml03q84yOdqoiIZwOWp7BVJIWoNZfNILpiKP+jKyhrd0q2PVp6H2qZpCl1xME M2lATVtWxECyq2mkjFSG47eBPRk+xs/gPyyQasfExYq9CYQhOHESpqRFaodvqQ3KDu3p dJ8QEc3wXP2JJJWgWr62oTL9Rkh94ibNICvhoScvcs76GU3/n7qwqajfatL8D2IAslv8 f7ng== X-Gm-Message-State: AOAM530qpg31alKHaOFIXSUQ0/nXfI5egWt8niEuAZXDa5icpww6IGgZ PoIUYmuh3ZJvwt6s6ue+v3heJQ== X-Received: by 2002:a02:c608:: with SMTP id i8mr829900jan.125.1610062449020; Thu, 07 Jan 2021 15:34:09 -0800 (PST) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id o195sm5648521ila.38.2021.01.07.15.34.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jan 2021 15:34:08 -0800 (PST) From: Alex Elder To: bjorn.andersson@linaro.org, agross@kernel.org, ohad@wizery.com Cc: davem@davemloft.net, kuba@kernel.org, evgreen@chromium.org, cpratapa@codeaurora.org, subashab@codeaurora.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 1/4] remoteproc: qcom: expose types for COMPILE_TEST Date: Thu, 7 Jan 2021 17:34:01 -0600 Message-Id: <20210107233404.17030-2-elder@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210107233404.17030-1-elder@linaro.org> References: <20210107233404.17030-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Stub functions are defined for SSR notifier registration in case QCOM_RPROC_COMMON is not configured. As a result, code that uses these functions can link successfully even if the common remoteproc code is not built. Code that registers an SSR notifier function likely needs the types defined in "qcom_rproc.h", but those are only exposed if QCOM_RPROC_COMMON is enabled. Rearrange the conditional definition so the qcom_ssr_notify_data structure and qcom_ssr_notify_type enumerated type are defined whether or not QCOM_RPROC_COMMON is enabled. Reviewed-by: Bjorn Andersson Signed-off-by: Alex Elder --- include/linux/remoteproc/qcom_rproc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.1 diff --git a/include/linux/remoteproc/qcom_rproc.h b/include/linux/remoteproc/qcom_rproc.h index 6470516621749..82b211518136e 100644 --- a/include/linux/remoteproc/qcom_rproc.h +++ b/include/linux/remoteproc/qcom_rproc.h @@ -3,8 +3,6 @@ struct notifier_block; -#if IS_ENABLED(CONFIG_QCOM_RPROC_COMMON) - /** * enum qcom_ssr_notify_type - Startup/Shutdown events related to a remoteproc * processor. @@ -26,6 +24,8 @@ struct qcom_ssr_notify_data { bool crashed; }; +#if IS_ENABLED(CONFIG_QCOM_RPROC_COMMON) + void *qcom_register_ssr_notifier(const char *name, struct notifier_block *nb); int qcom_unregister_ssr_notifier(void *notify, struct notifier_block *nb);