From patchwork Thu Dec 31 11:35:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 355533 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp12060891jai; Thu, 31 Dec 2020 03:37:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9XqBSi6My5DAbZu3rooIRw/t47t3DW4KVj4UmltEZnZYsT8jVHw1y78nBANp1ohrVpkeD X-Received: by 2002:a50:b905:: with SMTP id m5mr2708641ede.292.1609414656061; Thu, 31 Dec 2020 03:37:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609414656; cv=none; d=google.com; s=arc-20160816; b=qAagWFh2p7QNueAJkTM0Dlh3hUxXfzBnc0klTCzaRzeqzKE5DQWmkYRHjaXjGUR9x6 zedrB8AvU21Dj0IxrqHbYy2kwt3UjOdtyS1/cMFjWiy8nkbQRT5KHpzDPfLGinaWBIZr pA7Qi96ia/BxMY7KPWbQEdXO2/jAzVkWwKi81BS/4f1d55yZeRVDzbyVkY2lBb9g/IDX yBIUKPk9QJ9kWIZAJ94s4aBYIQshjDrSraamN+qunQgKfRVD+sGK4QGzzy0cubS/QDZz qN0FUp6vFk/R2JpI0A3nvHnnFEScO1GaLd0/h/AA9ACgKcxcprzyq+5559pma2YELThX Ta4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=VvNbdMgLzpd7ixuoNwnyFlGlaRTTC2c804LXFW9PL8Q=; b=ZvdgxjwPOSmiZgpJSLZZPSOyYs/P0s9RfFXJFBqqht4kQghmjTIi6SvCCcn001aqPu YWmKNzYWHLXALSUxVIRzy8UiKWXCmTkHwHR5wXu69Mht3Rrr2Hh1SLRBNkFtxltzqcso A3PbTPeVeeQB5Kvc7+ooXLlf1KJKO7w83WD4JkkCp92felcWwujAz5+MlQum+GzRQ5HR tNHV2PP7VxEs/yKG7vkRdXeNAiMshMlg+XEWL5s4X6Tan9omsHtyisKM5pUUoS6bRiyj /ZFkyqAAL9J9K3xufZ+q2Y1155l6vMgfsNrojQvs3Ckq/7UBv5iI4dOmZmwfVlCcA17y KDlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wg5KP8Iz; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si17046790eji.645.2020.12.31.03.37.35; Thu, 31 Dec 2020 03:37:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-acpi-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=@linaro.org header.s=google header.b=wg5KP8Iz; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726499AbgLaLgQ (ORCPT + 5 others); Thu, 31 Dec 2020 06:36:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726491AbgLaLgO (ORCPT ); Thu, 31 Dec 2020 06:36:14 -0500 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF815C061575 for ; Thu, 31 Dec 2020 03:35:33 -0800 (PST) Received: by mail-pj1-x1029.google.com with SMTP id b5so5235196pjl.0 for ; Thu, 31 Dec 2020 03:35:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=VvNbdMgLzpd7ixuoNwnyFlGlaRTTC2c804LXFW9PL8Q=; b=wg5KP8IzqFr4LBkLFYoo0kTLFg3muBtnzy4SsGLz2/GYX3cGmgtFwiZXxtMdzoNYQ1 eLiq+NGuE2ZPqSzyWX/6D/P4oj+LVsuMakpXzNlQ9dPST4xK/mFNRV5YqsA9znelGQsM tCqb1Gb/89bdo1F+4seZ2n4FCMfaHWW2+9zXux2GBf1uZT7RXkNyDzvsUmn8hvJ5gkun 7nUDIswlPJt0D9igHYTEs6yaVcjca+ENL8KEeq4kPqKiAJ3JrsDCwwus1BEveEt6Q+ov U3VA9i7NtixpCZDbSPeHhPPvlwN211EkdR/e8eK4drhKtLwiwD0dtymuQMR6O9JqrS6d R09w== 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; bh=VvNbdMgLzpd7ixuoNwnyFlGlaRTTC2c804LXFW9PL8Q=; b=i9LSHqPtjtF4Eo19AJK8n2SijgCYH2MlNT1Hqk02vc8bH0lQR1n20QAcCV9yL5SO+q JPJN0MMLldaihaURn2sNMoFZ4EHcnEA2gIapMHMydsjYKjakemX3wFjtTxuYhJXH/QbY wxdVgT9jqrdM5IP2MGOrTpZ58fN5Mv6YAnJregZ6/lH/2tBMZvIw+o4RmyC06lpwCwNz qUNdUb+MQBYe3vEZyD9ZrhgfLMBZzjvUXQZA3U8xIC22eeB9K8/Pi/ben0gwrT7PzHt/ 7mT/jgSem2gTQjqrAsdS0lKoX6iZLjCc+msAQJkVvpYqXoLjZ/+FMJAsEySol3OAIyxY AAEA== X-Gm-Message-State: AOAM532majvjP8a5w+1HxcMQQtpfwP/qJzdFq5qF8ljNgbTO1gsGU5Sz 8SU9VUpuvZRj9YGVZWWBZj6f5A== X-Received: by 2002:a17:902:6947:b029:db:c7fd:9db3 with SMTP id k7-20020a1709026947b02900dbc7fd9db3mr56751334plt.56.1609414533244; Thu, 31 Dec 2020 03:35:33 -0800 (PST) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id n10sm36381528pfu.176.2020.12.31.03.35.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Dec 2020 03:35:32 -0800 (PST) From: Shawn Guo To: "Rafael J . Wysocki" , Len Brown Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo Subject: [PATCH] ACPI: add stub acpi_create_platform_device() for !CONFIG_ACPI Date: Thu, 31 Dec 2020 19:35:25 +0800 Message-Id: <20201231113525.19614-1-shawn.guo@linaro.org> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org 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 --- This fixes an build issue reported by kernel test robot as below. https://lore.kernel.org/linux-arm-msm/20201230124925.19260-1-shawn.guo@linaro.org/T/#u include/linux/acpi.h | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.17.1 diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 2630c2e953f7..053bf05fb1f7 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;