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=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 105FBC43381 for ; Tue, 12 Jan 2021 13:07:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D89E72311C for ; Tue, 12 Jan 2021 13:07:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726763AbhALNHB (ORCPT ); Tue, 12 Jan 2021 08:07:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:53892 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405160AbhALM6W (ORCPT ); Tue, 12 Jan 2021 07:58:22 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id DB0FB23131; Tue, 12 Jan 2021 12:57:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610456265; bh=kH6n2pMmgkZJ0ua89HOGXyqDJ56t0QQxQPc3Ad0jmCE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HxddYgz5ehTQvHP6qKUB8d+BubOsN4YFtQJ6Z1dN2S4cOnPx8HcDgYyRwBJalY26Y sJmHSj63K2zNKOxqxI+tsR/+MHjDL2nS90pFRYgWZNCbP3zwH3JXST3l/yLYaTwVrU AunIE2X4yPzL+D5rxoJ/Rl105cTy0ScTqrKj3VGrmrc5TRpa+U2LK5lCPIt3NTzaLN osVfF3TdS+f0eVzcBE8FcRSkW7U6hsqF8pJ9rbikl9Yc2VjbPy01zxu7j+vw0UV5yu 03ExJ7Tp9CoID5F1fW8JbLZ2m8MXSZ+gWBA+UBvlPLt8Vh4G26l4FlSTcuYWVJ1SDl o6OfCJJ2Z9low== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Shawn Guo , kernel test robot , "Rafael J . Wysocki" , Sasha Levin , linux-acpi@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 14/16] ACPI: scan: add stub acpi_create_platform_device() for !CONFIG_ACPI Date: Tue, 12 Jan 2021 07:57:23 -0500 Message-Id: <20210112125725.71014-14-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210112125725.71014-1-sashal@kernel.org> References: <20210112125725.71014-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shawn Guo [ Upstream commit ee61cfd955a64a58ed35cbcfc54068fcbd486945 ] It adds a stub acpi_create_platform_device() for !CONFIG_ACPI build, so that caller doesn't have to deal with !CONFIG_ACPI build issue. Reported-by: kernel test robot Signed-off-by: Shawn Guo Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- include/linux/acpi.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index cd412817654fa..019468f072b7d 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -812,6 +812,13 @@ static inline int acpi_device_modalias(struct device *dev, return -ENODEV; } +static inline struct platform_device * +acpi_create_platform_device(struct acpi_device *adev, + struct property_entry *properties) +{ + return NULL; +} + static inline bool acpi_dma_supported(struct acpi_device *adev) { return false; -- 2.27.0