Received: by 10.213.65.68 with SMTP id h4csp1741081imn; Sun, 1 Apr 2018 13:42:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+HZ3Sw58KE6L2hABn0luSVfLreAleJGB+/1AB6WNtjYPvELPkm5i6xY1iHhz9nvJ00q1cG X-Received: by 2002:a17:902:1a4:: with SMTP id b33-v6mr7318944plb.303.1522615361654; Sun, 01 Apr 2018 13:42:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522615361; cv=none; d=google.com; s=arc-20160816; b=p60WvwfgigN29WAew383ar3/fLkyz9imxZ53CShV7I8lpJtc1a0aNBa0JX8fsoPd85 Y30tmlL7uhQGRdbjXzihd5enwoSIvki2w67vAe0Z4Un2LBCyuRn+ElM+Jg9PB+s/Y8NC 5rdwalTxzB/X2l7I+u+d1uARzQAPwYMEhcrxJBVu8AEnJFtivIaUUBBwXBiDJJU1rGN4 lmd0HDTZN7Jtq6Zln+fz4N5Ekbw2aksI+P22hvv4tS91fk1QecaXUKUBV5kF2zx8Tiy/ BWLP4UdwTJtVHmsabnxaEh5AOC55MoS7h8IsnEUrA3nYrCiysjKLY0dxTzPbwgRmWBcL /s1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:to:from:subject :organization:arc-authentication-results; bh=6qG0LoStq8jD2pOnJIUnR27IugUIjTY3u2uK/m+5F7U=; b=eSQCA2bYamjY9N4ub6dTx9cXlOpBI/NuQ3vAj5pIc8J302pf3G7GoMt+urxEHyfiyJ Lqz8o+CNLu9YPP66XZ48n/slpN7S1oFeGFPWIb4rvOQOqCVPi5mPcTsl/yNgUrsydvrU Kzs5dVex1liqEpNVlnv5BpfZcn+UInj8jWlRuZ+KZM39mT5bnsIsCcpj4ex98nDcJ6Gv 0p9idXk05REluEVJCcBGH+yzaaNVVEPdZLo+ATh7TZhsDSM6XNXWlaZPFQl0uqRc0F6y dVa3f0sVro+c/CALRoOboNMYlKc1dGbHxXnGMUGVBTWmg2HMtOztgxyv0EbMK2ZHQi4B 5Mrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2si8971113pgf.530.2018.04.01.13.42.12; Sun, 01 Apr 2018 13:42:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754059AbeDAUkm (ORCPT + 99 others); Sun, 1 Apr 2018 16:40:42 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:37288 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753999AbeDAUkk (ORCPT ); Sun, 1 Apr 2018 16:40:40 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 301E58182D16 for ; Sun, 1 Apr 2018 20:40:40 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-59.rdu2.redhat.com [10.10.120.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id D386C215CDAC; Sun, 1 Apr 2018 20:40:39 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Subject: [PATCH 04/45] Fix use of ACPI_COMPANION_SET() From: David Howells To: linux-kernel@vger.kernel.org Date: Sun, 01 Apr 2018 21:40:39 +0100 Message-ID: <152261523938.30503.8729021524361526622.stgit@warthog.procyon.org.uk> In-Reply-To: <152261521484.30503.16131389653845029164.stgit@warthog.procyon.org.uk> References: <152261521484.30503.16131389653845029164.stgit@warthog.procyon.org.uk> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Sun, 01 Apr 2018 20:40:40 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Sun, 01 Apr 2018 20:40:40 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ACPI_COMPANION_SET() takes a bool as the third argument, not a pointer, so pass false in, not NULL. Signed-off-by: David Howells --- include/linux/acpi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 968173ec2726..9e59bad1d301 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -101,7 +101,7 @@ static inline bool has_acpi_companion(struct device *dev) static inline void acpi_preset_companion(struct device *dev, struct acpi_device *parent, u64 addr) { - ACPI_COMPANION_SET(dev, acpi_find_child_device(parent, addr, NULL)); + ACPI_COMPANION_SET(dev, acpi_find_child_device(parent, addr, false)); } static inline const char *acpi_dev_name(struct acpi_device *adev)