From patchwork Mon Jan 18 11:34:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 365496 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp2188832jap; Mon, 18 Jan 2021 03:46:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrBtxGb8wP/ZDyoPPKXk0BDY2hjZXMHv96UnN372R1XH9AxVEPWnR3FBdcorTfbR8F/xjQ X-Received: by 2002:aa7:cb12:: with SMTP id s18mr19096736edt.125.1610970399863; Mon, 18 Jan 2021 03:46:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610970399; cv=none; d=google.com; s=arc-20160816; b=JrugU/EOXsIWcofzV3kCst+Cn3ZKqGUSoDdqGt9PDULLxBkRU9iumPBoZWchOzWYAj U/Je8VnOYQtUileEg7pO95+V+fsxjBktD+ZzuTktqFWj9dbR3IyQK566b6dAGtI0JH9V mMhOq2O4HeDMJe+5dqw7AGXmWrgzGK4YOBkpuceWr1t/G2AyUPgkSQjRU0PHKVYqMncD OIUzH44VfIclTD21buT7iR65lJx462Ox9Y7XXmuvf6S8svMrL1cmTdbSPe3OaR1qDe5E 91u7b8U81XISXkLPOBhp7kzFnhoHcfKHszkCXFc/05/sUVaAps1OjR3QO1yjSbL09K9m mVHA== 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=wjTtknn4KEPjyHXO9R/3ONtiX/ytB676/xPwCFC9mtg=; b=I4GJ+FnjN2xhjp6Pp8fkzWoctsovXc9o0j4SnooLqj2oxXL+9bbUmaXWwp8RPYX+Aa CK8G++/fXy7cN5MMCMG8KNOZ5OBw5T2xSkc4KgkXqQpXtRkznqBNNcqZINPQOabGlw48 vrybhzSFVAIZExy3uxqcmMz5PRVqLT26PflZu+BYbzuaKTVmaPuqum4DFYXdnqGfdyrx 6gv4VQ30btHKBoK9dVsEBgAURao4fY1g3IGLOj/JVLBYa0b2JGG3XexGoi8ddLBRHYdH 8fsGW78g/8g0QEkBmxYbY07al7Uuktr+3ltvrgcShGF34NDADqbQXMSoajhN90jTaJpc 5t4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VXsRCXg+; 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 q21si1509215ejz.227.2021.01.18.03.46.39; Mon, 18 Jan 2021 03:46:39 -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=VXsRCXg+; 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 S2388970AbhARLpH (ORCPT + 13 others); Mon, 18 Jan 2021 06:45:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:39924 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390519AbhARLos (ORCPT ); Mon, 18 Jan 2021 06:44:48 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 149C022D71; Mon, 18 Jan 2021 11:43:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610970236; bh=GpGKIO4tQCy1zOqgKR1fzPxUY3aL5Ty6GVYzAwGKvzo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VXsRCXg+jbppdtEWFHZS5/1TWe2rzQALGofAUnUHXNKXL+dYqoDT5tEsDtAcIniJK GIvynWTdlzkcLLz3FnFNgHgGi4Rw/qqIjYRShGV0yoAUhbTt+9sKF1H0ZKOzjiDNQ+ pPTCb8xED2lSzDx3VI4VeIuSBRCoIJWyAGN2CRIc= 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.10 094/152] ACPI: scan: add stub acpi_create_platform_device() for !CONFIG_ACPI Date: Mon, 18 Jan 2021 12:34:29 +0100 Message-Id: <20210118113357.252748930@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210118113352.764293297@linuxfoundation.org> References: <20210118113352.764293297@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 39263c6b52e1a..5b1dc1ad4fb32 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -885,6 +885,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;