Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2076997ybp; Thu, 10 Oct 2019 01:46:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3ixQgk0XU3htf+2YBYcNa3Ixisi01f0OIe1ZRLA5GBle71JAWL+n4bH3IpzDj0xGBhunZ X-Received: by 2002:aa7:d04b:: with SMTP id n11mr7143080edo.104.1570697185038; Thu, 10 Oct 2019 01:46:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570697185; cv=none; d=google.com; s=arc-20160816; b=eqmkMldks3lS0u279/oQnm6onX4paGDynuJN5GkaJ38f2DjtqvdrNE3ux2grB9x/tx QQqVbN3MnwMy1Jpft71/ux+fne1/zBRzv1c6g/j85eM8wQbQRc7ZtwcY/Rz+LyCF06MU H68Jd/OsUQt2C/8JmBz6uuyF84NlR8HtI10Fegzmgobuq5mud4OftG8t4djtF9i75HOg FukMhZ7HawDLxQgQkA20ZZkAZU2DGIORRq0rcKqdnmstx4AGSHDeRRmqGqo4RtGHv2Sh 4OWaZVNBRuBCgrYQ4Mq4UDngzfEL9h9RDxD5MH2j8XWktmgrnhR83r5M2bamhPh+5aB7 5YWg== 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:subject:cc:to :from:dkim-signature; bh=LBJvyIuzJZwU6F/hhC/WJsf5lvwWOx83QfUZFfYbvKY=; b=YvukhIa1ZYssj1Lqf9O+KCEDZ3F/gttSPhlUxQIzpQc2pZe1YTpksjgoUYJHSgnBiW evScZtD9qPhvmc2V0LfqXff/Up7VNM6ncqk/COelhypvCwwdiJHIY6gR58+430hFwZOI 0XG6hsZk7NxvgDcawiJl1BI840zDvdK5L9eNrQbI2NXTDV/VTtBstDZEPHYT4ec0Welp dxuF5S9qeLsPvLTzcj/E0XQsQR5COLQJRlvYbHGaKf0Ty6iIxgevhJ6Ex6vSdKL73gd6 HZXoqj2tmjmAZlxkqhrp5QNPvCvpn1DgEDY/x29CeKDANsQu1QdQHWMJFxlRS+kVJq5C 8FDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="wCs/3Err"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v10si3483547edc.224.2019.10.10.01.46.01; Thu, 10 Oct 2019 01:46:25 -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; dkim=pass header.i=@kernel.org header.s=default header.b="wCs/3Err"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388005AbfJJIm5 (ORCPT + 99 others); Thu, 10 Oct 2019 04:42:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:47594 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388632AbfJJImz (ORCPT ); Thu, 10 Oct 2019 04:42:55 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3F20321A4A; Thu, 10 Oct 2019 08:42:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570696974; bh=LsS3cLKEpGqy9ebVuNqcBko7hWdPP6FRJnuapa640F0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wCs/3ErrLkpOKlKHnIdv19/5xl77CweufT8RbG/Fm4RBoR5DfYFYAHA6HWo1g7FBU 4qljO5gvCMee3E650jJMKPFRL3k+xdcUrNEPKA2hciIJpnszVmcWQA/8c0Oe2+9OKh +FFqfesHRRGXdsM/ucwsAX+erH4gAYfzm22MqK+M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Ira Weiny , Dan Williams , Sasha Levin Subject: [PATCH 5.3 119/148] libnvdimm/nfit_test: Fix acpi_handle redefinition Date: Thu, 10 Oct 2019 10:36:20 +0200 Message-Id: <20191010083618.277525949@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191010083609.660878383@linuxfoundation.org> References: <20191010083609.660878383@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor [ Upstream commit 59f08896f058a92f03a0041b397a1a227c5e8529 ] After commit 62974fc389b3 ("libnvdimm: Enable unit test infrastructure compile checks"), clang warns: In file included from ../drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:15: ../drivers/nvdimm/../../tools/testing/nvdimm/test/nfit_test.h:206:15: warning: redefinition of typedef 'acpi_handle' is a C11 feature [-Wtypedef-redefinition] typedef void *acpi_handle; ^ ../include/acpi/actypes.h:424:15: note: previous definition is here typedef void *acpi_handle; /* Actually a ptr to a NS Node */ ^ 1 warning generated. The include chain: iomap.c -> linux/acpi.h -> acpi/acpi.h -> acpi/actypes.h nfit_test.h Avoid this by including linux/acpi.h in nfit_test.h, which allows us to remove both the typedef and the forward declaration of acpi_object. Link: https://github.com/ClangBuiltLinux/linux/issues/660 Signed-off-by: Nathan Chancellor Reviewed-by: Ira Weiny Link: https://lore.kernel.org/r/20190918042148.77553-1-natechancellor@gmail.com Signed-off-by: Dan Williams Signed-off-by: Sasha Levin --- tools/testing/nvdimm/test/nfit_test.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/testing/nvdimm/test/nfit_test.h b/tools/testing/nvdimm/test/nfit_test.h index 448d686da8b13..0bf5640f1f071 100644 --- a/tools/testing/nvdimm/test/nfit_test.h +++ b/tools/testing/nvdimm/test/nfit_test.h @@ -4,6 +4,7 @@ */ #ifndef __NFIT_TEST_H__ #define __NFIT_TEST_H__ +#include #include #include #include @@ -202,9 +203,6 @@ struct nd_intel_lss { __u32 status; } __packed; -union acpi_object; -typedef void *acpi_handle; - typedef struct nfit_test_resource *(*nfit_test_lookup_fn)(resource_size_t); typedef union acpi_object *(*nfit_test_evaluate_dsm_fn)(acpi_handle handle, const guid_t *guid, u64 rev, u64 func, -- 2.20.1