From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2FFEC4332B for ; Wed, 6 Jan 2021 02:40:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 80D7B22CB9 for ; Wed, 6 Jan 2021 02:40:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726618AbhAFCjf (ORCPT ); Tue, 5 Jan 2021 21:39:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbhAFCje (ORCPT ); Tue, 5 Jan 2021 21:39:34 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7148EC061350 for ; Tue, 5 Jan 2021 18:38:17 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id 81so1356321ioc.13 for ; Tue, 05 Jan 2021 18:38:17 -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=Gozs01SwdY8I39zxiwBamPfufMMGKBY8qkPWT8AJSEc=; b=zZe5RJeCePEPR23z2Ht9TAOno83rgGQZlZTu+zMOjyoKFVBVnN1ej1gV5gpKRujn6N sQFNLiR+5PusWNdpZsVzpwZcKEYBM/39oa4PXqwKci4+oSufCzOKgKx25lSTwMQFSJ8b KD/in9MT+D/acqUij/Ooq63ZSkRcyJBaPhdDIUpDSCKWZ7oNihzoOS1LIacLSwn5Uisg iT1UztQRa9v1o1B0kZ1cR2uC3deZ8h/+/YYYhG+KcJIZFU4T1Wjen0a8atBLFZsn+tV6 SnMsa5fWkiNzNZUH4ufYNd4u34n7uFnnlVO0WRXit88Ya7OAPqmVYk0xldqLcXOdNmKJ QQVg== 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=Gozs01SwdY8I39zxiwBamPfufMMGKBY8qkPWT8AJSEc=; b=J9XYyisHh1fJk4OlYY/eFaQY0gRU7IoR566kbNum2KTI6ql4vPjOq9CtNPSPbfhUNl d4C8T2qaMSXdxN0WVmAhLTeGVuhDKtzMGH/mHJBO/vkcXbqT6h9y9KajTECmbI0+xoN9 PDI0AZVPaHzVo/J4BVkjeVFAP6zCNMbD0ORKmVvIMI7BS+sv12FPqLh7Iwojlw93u8O5 iOoyIOJmVrYOiMz1CbS/uslo1b9byDZd85tPDfo+LgwmRE/Q5eqDi54ERA38h3fniagt 5HHxnWcMKYOO33tXZ4sUEMQ/7TRDCoGg17ZSVhd8BmN1NSlZIXq2LaqvLZKarLx+PdjP 5vWw== X-Gm-Message-State: AOAM533KU+NNjpQmIcbPb72Gs78f00EKwSUpnos/E231dVwaOsLlRzpA 2G+vc37rtUuJSAhiNreRxCHoGw== X-Google-Smtp-Source: ABdhPJz8G4ViqBAz7V/QOPSDM+499ONMYcZevz1mF1sjfb1Nbue7D01A5E5ZGvSSDrW+8/hA/KiZeA== X-Received: by 2002:a05:6638:30f:: with SMTP id w15mr2161336jap.121.1609900696885; Tue, 05 Jan 2021 18:38:16 -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 x2sm631755ior.42.2021.01.05.18.38.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jan 2021 18:38:16 -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/3] remoteproc: qcom: expose types for COMPILE_TEST Date: Tue, 5 Jan 2021 20:38:10 -0600 Message-Id: <20210106023812.2542-2-elder@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210106023812.2542-1-elder@linaro.org> References: <20210106023812.2542-1-elder@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@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. Signed-off-by: Alex Elder --- include/linux/remoteproc/qcom_rproc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1