From patchwork Thu Feb 27 12:56:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sibi Sankar X-Patchwork-Id: 11408533 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AF63614BC for ; Thu, 27 Feb 2020 12:56:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8CCCA24698 for ; Thu, 27 Feb 2020 12:56:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="fECgQvjW" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729110AbgB0M4v (ORCPT ); Thu, 27 Feb 2020 07:56:51 -0500 Received: from mail26.static.mailgun.info ([104.130.122.26]:14332 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729074AbgB0M4v (ORCPT ); Thu, 27 Feb 2020 07:56:51 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1582808210; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-Id: Date: Subject: Cc: To: From: Sender; bh=GEdNSRK9h+EoZXhdOOmnO3FyQ+zkPPEQKa6CLrSCl9o=; b=fECgQvjW6yb/YXLlIr2d1dU6yWXdpAYSqaiadL3UZ/MQsEvqQtMyICGtmu9v3cOfXtulowss CJj8Igny2JdheOnQE3eA1lqoBUvSqovvZB4/yjKuKs5sfXIyWsBOGXfmdf/iTn0vkpHgjVmQ 1TyilhNSiT70cRWs4patBxwSfdU= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI1MzIzYiIsICJsaW51eC1hcm0tbXNtQHZnZXIua2VybmVsLm9yZyIsICJiZTllNGEiXQ== Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e57bc80.7fca9b9da570-smtp-out-n02; Thu, 27 Feb 2020 12:56:32 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id BB580C4479D; Thu, 27 Feb 2020 12:56:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from blr-ubuntu-87.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sibis) by smtp.codeaurora.org (Postfix) with ESMTPSA id A7E13C43383; Thu, 27 Feb 2020 12:56:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A7E13C43383 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=sibis@codeaurora.org From: Sibi Sankar To: bjorn.andersson@linaro.org, agross@kernel.org, arnd@arndb.de Cc: georgi.djakov@linaro.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, sboyd@kernel.org, Sibi Sankar Subject: [PATCH] soc: qcom: cmd-db: Fix compilation error when CMD_DB is disabled Date: Thu, 27 Feb 2020 18:26:15 +0530 Message-Id: <20200227125615.4727-1-sibis@codeaurora.org> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org If CONFIG_QCOM_COMMAND_DB=n the following compilation errors will be seen. Fix this by including the appropriate linux headers. ./include/soc/qcom/cmd-db.h: In function ‘cmd_db_read_aux_data’: ./include/soc/qcom/cmd-db.h: error: implicit declaration of function ‘ERR_PTR’; Signed-off-by: Sibi Sankar Reviewed-by: Stephen Boyd --- include/soc/qcom/cmd-db.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/soc/qcom/cmd-db.h b/include/soc/qcom/cmd-db.h index af97222239251..c8bb56e6852a8 100644 --- a/include/soc/qcom/cmd-db.h +++ b/include/soc/qcom/cmd-db.h @@ -4,6 +4,7 @@ #ifndef __QCOM_COMMAND_DB_H__ #define __QCOM_COMMAND_DB_H__ +#include enum cmd_db_hw_type { CMD_DB_HW_INVALID = 0,