From patchwork Fri Jun 18 11:18:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 12331121 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 B0016C48BDF for ; Fri, 18 Jun 2021 11:18:23 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 703A56128C for ; Fri, 18 Jun 2021 11:18:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 703A56128C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=DH2/Yzhkh2MmHmTWgkatJ+NeqB7K7RzAW8z4cbQgt28=; b=fb6fhCTvG06dlZ Dm7xYBjVM9xx2ubLAXbLpCo+uL1+t5mC29a6yLe42MR93FDG0OFOog4sMqsT5151ZFdR2tGFkHOtq LdwOp8g6ETnviDurBbgM0ofkqL78KKTOwW08Du/K6EF/XIcA3cvR3SNCY6MAA/5KoOsXlfRz1jzyj JwtOk44SYdoKPpeUy6Mtm9a1zVOZ5sFGfvIaT1udPqBqBuK39uZqaoRg50TFFOhE/UGuBZ9pjhb8S 0sHtnKs5GiaSjplVzx74XsHnQyDZsZnTxSKeNx6Y1MN78nH99eBNgCl5suftoOwmRGi8RzMpa9rWA oVhMaVOi5kLYT7lgqwzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1luCUl-00Dqwn-9U; Fri, 18 Jun 2021 11:17:07 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1luCUh-00DqvS-Ke for linux-arm-kernel@lists.infradead.org; Fri, 18 Jun 2021 11:17:04 +0000 Received: by mail-ed1-x52d.google.com with SMTP id w21so8153512edv.3 for ; Fri, 18 Jun 2021 04:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DQUBzR6lGD3okKDgLwYUAev+NeRoRqEjDpIc/uXjg7M=; b=UkKqw6F7li7S4mJyoeRKLEBtlH2BkOvBGWpaIKpUHc8+kDqYmfXHntDASEpuclOE8K QIZK6ISSsl7GGtO7qejv0VWvusJHphXsburM/sFXJSHtwqgFb4TP0aZUwu0LH1jmIzm2 rJel/2CwL0XQVLr4RuSz6jip4ogqgDdnZOBgnXDNgVujHfH/7TvEAtz/GGhDwqDkslXp aKq70whV+3ypVEW1QIwpwSTo1OXuinZ+l0VgMS07gs7ELybp76kKanWz7bGbV3icU6dc Tsr9yH4OucwKn86kOrka4gSQzidoMM0AXDi35bQwy6/AqTu2TBSiB7AlNW1egSyfATSZ 0D7Q== 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:mime-version :content-transfer-encoding; bh=DQUBzR6lGD3okKDgLwYUAev+NeRoRqEjDpIc/uXjg7M=; b=bDs1Scc/68tRsbJG0Zt9uoGlEBbEoRN3id0QVCN+hCYTnrAmi5gcy0Omoua3TTMrqH 2SevpocujtL2GKIwBKpalJXTQree54CWT2LD8Puyvq9/DDRw8SgBxVKNCOqI9TXvHtI1 aCF0nDyUzNbZ7iYzJGnyJ2F45XaNrYWdgO7s3Z0gZIu+BGxjUE8V/W8boxDojvEOhwPZ UVk+fxw5qS1vzl0IdbmSJfdbflfpbzwUOc41K78ov//ckdk3pDlh9J81Q4m8d7j6mBf+ uFrsJ/9J6AShGiuB92aTpLxIAi3SNd5qjvU/jRvABUs626p1vgSMcanpcX9BV4gsZid3 z+dw== X-Gm-Message-State: AOAM530BwBGJcxyTHpJZsmNsilsmpe1Dw4L2iE9Ht6mhQj995eUbSQIG lU8Sfb+4+rj4jeVhBDbwkHs= X-Google-Smtp-Source: ABdhPJwh0Ik+ZdRM2jQVmiR0mg5Ik1vH/J9I83CiYKCmbAPpwyh8+T6IC6tLb+lXAWt6JS0WH45UZA== X-Received: by 2002:aa7:df85:: with SMTP id b5mr4354111edy.90.1624015021367; Fri, 18 Jun 2021 04:17:01 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id ot30sm911807ejb.61.2021.06.18.04.17.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Jun 2021 04:17:00 -0700 (PDT) From: Thierry Reding To: Krzysztof Kozlowski Cc: linux-arm-kernel@lists.infradead.org, arm@kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH] memory: tegra: Add compile-test stub for tegra_mc_probe_device() Date: Fri, 18 Jun 2021 13:18:46 +0200 Message-Id: <20210618111846.1286166-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210618_041703_721007_053EC12D X-CRM114-Status: GOOD ( 12.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Thierry Reding The tegra_mc_probe_device() symbol is only available when the TEGRA_MC Kconfig option is enabled. Provide a stub if that's not the case so that the driver can be compile-tested. Reported-by: kernel test robot Signed-off-by: Thierry Reding --- include/soc/tegra/mc.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/soc/tegra/mc.h b/include/soc/tegra/mc.h index e19c2504a14b..1066b1194a5a 100644 --- a/include/soc/tegra/mc.h +++ b/include/soc/tegra/mc.h @@ -237,14 +237,19 @@ unsigned int tegra_mc_get_emem_device_count(struct tegra_mc *mc); #ifdef CONFIG_TEGRA_MC struct tegra_mc *devm_tegra_memory_controller_get(struct device *dev); +int tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev); #else static inline struct tegra_mc * devm_tegra_memory_controller_get(struct device *dev) { return ERR_PTR(-ENODEV); } -#endif -int tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev); +static inline int +tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev) +{ + return -ENODEV; +} +#endif #endif /* __SOC_TEGRA_MC_H__ */