From patchwork Mon Jan 18 11:34:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "gregkh@linuxfoundation.org" X-Patchwork-Id: 365561 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp88206jam; Mon, 18 Jan 2021 11:08:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzCnmCmMK1t37QsI3GFDKv/Urdee1i1rMeuGUQScGqTPc1NiVAoUMd1qVhUtaoaMquFZUpY X-Received: by 2002:a50:b586:: with SMTP id a6mr705474ede.206.1610996905817; Mon, 18 Jan 2021 11:08:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610996905; cv=none; d=google.com; s=arc-20160816; b=0qjtpzBZuCmB2LGIGqorzGU//Q9qPHyQEIWgJrWew+DeCO8DPsEdc9f96O/Hxyn3qu vfUerZ82grK8Q1zPey3Tahggn7QHANivHxf9Pke8jaePI5/zIZjUVwd+zDA4kwthoZdq W5/1erAvvHrjLG+h8lIOyIi+nutC2JE4s8DtlI8/V0+RW0HjqqfMbZHxq7m+WCyiInJS VU5L52fBoXhmnGWq9XDo4RpWXCN3R/zD+HCZGlL9amjvK4oNRMyh8lgWQHJpt7Xpy2mx FywGD+q2lKiyM+TDM7x+bPtpsVkxCI2E621K0dXomHAJpU9rvwFd1WLKOcd1WVbYwYRb bcyA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=k3UXZe9pVdMnuuwS5pf4mt9lecrZrv3xkuhx6E0MQh8=; b=dqctG5HDEY/oI7gOwVtuEGLIuL081RnoqEP4VkwsZhblvrdL4V6Ftc1NUWZPMoSZ6d 9DjZGM23tueudh/QAE1xnFRyaQ2oFEngcgnWxvJlQou3uBcVq/v2qGLUDVEmwtiztlY6 4dmWSY2fYkPxnZS0XdrfY67OVC/HsRjD4MnbcbRdzkdLfo0uL9zVjI23t1RB3GHvzibO rPBkVWY64nlLhrKeYoDqPZLigxCRCloc9D6RIqykOyc7b8GoVetNWI7bZKpO+fYq61Kb Qqe1YptV0sSWniDDllTHEZGUhD2B1GHv4nQc6NPdMRnNdXBsiBr+AxOaPxbtKFwrwPN1 kfjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Sdo5PXIn; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lm1si1627347ejb.28.2021.01.18.11.08.25; Mon, 18 Jan 2021 11:08:25 -0800 (PST) Received-SPF: pass (google.com: domain of stable-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=@linuxfoundation.org header.s=korg header.b=Sdo5PXIn; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390636AbhARTIW (ORCPT + 13 others); Mon, 18 Jan 2021 14:08:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:34108 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390529AbhARLjQ (ORCPT ); Mon, 18 Jan 2021 06:39:16 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 99935229CA; Mon, 18 Jan 2021 11:39:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610969941; bh=VkNkgTi2TUVkMZ+ggYdJDBCHKp5UIzi6l98J9dZEacY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Sdo5PXInQ4bRtb9JlSBV/JRad0+KfCjYTjcweQe5M7wTId5ob0CKnI+O+/tbWMQiu f/KDrjffyQCXOG16wz9WKJmIydTY2D+aSwRkOcrojAAggVL2Y2z2vKqp+097MfFT0H oI3nZBhAOvxi9iUJ0ZMnph1yn1nl07YRPGWRCijE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Shawn Guo , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 5.4 46/76] ACPI: scan: add stub acpi_create_platform_device() for !CONFIG_ACPI Date: Mon, 18 Jan 2021 12:34:46 +0100 Message-Id: <20210118113343.187387489@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210118113340.984217512@linuxfoundation.org> References: <20210118113340.984217512@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@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(+) -- 2.27.0 diff --git a/include/linux/acpi.h b/include/linux/acpi.h index ce29a014e591c..dd6170357ec72 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -837,6 +837,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;