From patchwork Mon Jan 18 11:34:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 365564 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp100060jam; Mon, 18 Jan 2021 11:27:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQ+NYzAhSEmo1Mop9ka1LgkaUeg8nreUVfqgt41DcvreY7UpUv3duTen5N8Xwen84aicly X-Received: by 2002:a17:906:720e:: with SMTP id m14mr750652ejk.161.1610998023531; Mon, 18 Jan 2021 11:27:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610998023; cv=none; d=google.com; s=arc-20160816; b=ZEZvaqyUjk6N6cWqj+n/8bQmpoSEzWWqkNXe1lVwU61XLGdgMca20QrIyQMtF3jDLY JnBikidXQe6MAiiaGrT2m09YzwoRpzRJEWW1Oh5MqahEOo6jxVhlS7jBYBxGxyDb9f8r QpFS3qstGeeHX37SN50KtbHQDTSD86Q6kONL5bqRd5DwMId5mM7c4Q1PEHjerYF7yYj1 MlrE018H+NbhqmldtELelHtFLHT7a9wRAL94PwM5DGmT2Ku7N7NyqVVmXT2CU9AZ0Fw8 1bQhOcoqVwbqV2P/zZhVRBSDsg3Z6PjCj9/GQ505RaeC6R5WaOO9fr97Bv9kg+h/qXXo 3HTg== 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=3z478oPl8rnwObCVCfnmiJVOS51PvcmEjuVqeSsLaZY=; b=OB5r5zkh1Bfs2Ku388oElF4Fc8XgPvl2CyzdV0m1PiDN8sQK7SRDx8G6+H1zVwEtI0 ofSW4hTs7yiYttmolJvoM6ZmmItxiA5Z8Z6jmf7pZbgbs92mwbC4kSus/AYLb6z3zEDU va9YXiIhf84oidZpGXsNeSDPBzihRb7kmc0KoSDBp8QM5Rg27WBvmTlF1q9bh5rtGZR3 f8vlK0Lc84D0BPBEJ3l+VuqkU9atU8OmsTIF51PbQtarG6C/ORt4imnGsbSQo3xztR62 2fIfiB4k4v15HdWXYtZg19Bf5v9ux1+nhzFdemD/833K1aTetIoCUC97LBeFB2JDK8w6 z07A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oLph9kuL; 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 gt31si3054507ejc.155.2021.01.18.11.27.03; Mon, 18 Jan 2021 11:27:03 -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=oLph9kuL; 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 S2437328AbhART1B (ORCPT + 13 others); Mon, 18 Jan 2021 14:27:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:33414 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390430AbhARLiL (ORCPT ); Mon, 18 Jan 2021 06:38:11 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E4B4122CF6; Mon, 18 Jan 2021 11:37:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610969845; bh=kH6n2pMmgkZJ0ua89HOGXyqDJ56t0QQxQPc3Ad0jmCE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oLph9kuLRPZ3+HdmIajxxJdMByitWAH003puiIuvPR/vLXn5iqed+FxChgYEpnYEX 90UxAmIC8Hse8bmhNDBuEYatZDmj6aUdrZFyxRv5s+SjiqX+sXQ5wd+LTRIcxcvn4Y Yg2PuEvW8d2QrCvqnPgABYcbKdeM6JR9uPbyM9Lo= 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 4.19 22/43] ACPI: scan: add stub acpi_create_platform_device() for !CONFIG_ACPI Date: Mon, 18 Jan 2021 12:34:45 +0100 Message-Id: <20210118113336.021370608@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210118113334.966227881@linuxfoundation.org> References: <20210118113334.966227881@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 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;