linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Williams, Dan J" <dan.j.williams@intel.com>
To: "hch@lst.de" <hch@lst.de>,
	"andriy.shevchenko@linux.intel.com" 
	<andriy.shevchenko@linux.intel.com>
Cc: "mika.westerberg@linux.intel.com"
	<mika.westerberg@linux.intel.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>, "bp@suse.de" <bp@suse.de>,
	"rjw@rjwysocki.net" <rjw@rjwysocki.net>,
	"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>
Subject: Re: [PATCH v3 1/5] acpi, nfit: Switch to use new generic UUID API
Date: Wed, 7 Jun 2017 06:25:46 +0000	[thread overview]
Message-ID: <1496816744.6978.6.camel@intel.com> (raw)
In-Reply-To: <20170605212250.GA3772@lst.de>

On Mon, 2017-06-05 at 23:22 +0200, Christoph Hellwig wrote:
> On Mon, Jun 05, 2017 at 08:10:42PM +0300, Andy Shevchenko wrote:
> > 
> > I hope Christoph can replace old version of this series with new
> > one in
> > his uuid branch. URL in cover letter, repeating for your
> > convenience:
> > 
> > [1]: git://git.infradead.org/users/hch/uuid.git
> 
> Yeah, but I had to drop it again after noticing the guid_equals bits,
> and after not fixing up the GUID -> GUID_INIT rename.
> 
> for-next in the above repo should have the proper base now, and acpi
> has the ACPI bits for Dan to test.

With one compile fix below the 'acpi' branch works for me. Please feel
free to add:

Tested-by: Dan Williams <dan.j.williams@intel.com>

...to the changes that touch drivers/acpi/nfit/, drivers/nvdimm/, and
tools/testing/nvdimm, but I'm ok if you omit it if the branch is about
to go immutable. Speaking of which, let me know when it does go
immutable because the new libnvdimm enabling for ACPI 6.2 and EFI 2.7
needs some new guid handling code.

Please apply the following or fold it into commit c793ed7ccf42 "ACPI:
Switch to use generic guid_t in acpi_evaluate_dsm()"

----->8-----
>From 18b82755ea839bdc94127aebf0e2f788c19224f3 Mon Sep 17 00:00:00 2001
From: Dan Williams <dan.j.williams@intel.com>
Date: Tue, 6 Jun 2017 22:41:40 -0700
Subject: [PATCH] tools/testing/nvdimm: guid_t compile fix
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fix up the declaration of the nfit_test_evaluate_dsm_fn type, to avoid
compile errors of the form:

    tools/testing/nvdimm/test/iomap.c: In function ‘__wrap_acpi_evaluate_dsm’:
    tools/testing/nvdimm/test/iomap.c:382:35: error: passing argument 2 of
    	‘ops->evaluate_dsm’ from incompatible pointer type

       obj = ops->evaluate_dsm(handle, guid, rev, func, argv4);
                                   ^~~~
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 tools/testing/nvdimm/test/nfit_test.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/testing/nvdimm/test/nfit_test.h b/tools/testing/nvdimm/test/nfit_test.h
index f54c0032c6ff..c4e80104165a 100644
--- a/tools/testing/nvdimm/test/nfit_test.h
+++ b/tools/testing/nvdimm/test/nfit_test.h
@@ -13,6 +13,7 @@
 #ifndef __NFIT_TEST_H__
 #define __NFIT_TEST_H__
 #include <linux/list.h>
+#include <linux/uuid.h>
 #include <linux/ioport.h>
 #include <linux/spinlock_types.h>
 
@@ -36,7 +37,7 @@ 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 u8 *uuid, u64 rev, u64 func, union acpi_object *argv4);
+		const guid_t *guid, u64 rev, u64 func, union acpi_object *argv4);
 void __iomem *__wrap_ioremap_nocache(resource_size_t offset,
 		unsigned long size);
 void __wrap_iounmap(volatile void __iomem *addr);
-- 
2.9.4

  reply	other threads:[~2017-06-07  6:25 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-05 16:40 [PATCH v3 0/5] ACPI et al: convert to use new UUID API Andy Shevchenko
2017-06-05 16:40 ` [PATCH v3 1/5] acpi, nfit: Switch to use new generic " Andy Shevchenko
2017-06-05 16:49   ` Dan Williams
2017-06-05 17:10     ` Andy Shevchenko
2017-06-05 21:22       ` Christoph Hellwig
2017-06-07  6:25         ` Williams, Dan J [this message]
2017-06-07  9:37           ` Andy Shevchenko
2017-06-07 10:17             ` hch
2017-06-07 10:19           ` hch
2017-06-05 16:40 ` [PATCH v3 2/5] ACPI / APEI: " Andy Shevchenko
2017-06-05 16:40 ` [PATCH v3 3/5] ACPI / bus: " Andy Shevchenko
2017-06-05 16:40 ` [PATCH v3 4/5] ACPI / extlog: " Andy Shevchenko
2017-06-05 16:40 ` [PATCH v3 5/5] ACPI: Switch to use generic guid_t in acpi_evaluate_dsm() Andy Shevchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1496816744.6978.6.camel@intel.com \
    --to=dan.j.williams@intel.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=bp@suse.de \
    --cc=hch@lst.de \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mika.westerberg@linux.intel.com \
    --cc=rjw@rjwysocki.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).