From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH v2 3/5] ACPI / bus: Switch to use new generic UUID API Date: Tue, 6 Jun 2017 11:58:49 +0200 Message-ID: <20170606095849.GB20590@lst.de> References: <20170531194152.65927-1-andriy.shevchenko@linux.intel.com> <20170531194152.65927-4-andriy.shevchenko@linux.intel.com> <20170605160331.GC29981@lst.de> <1496679616.22624.16.camel@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from verein.lst.de ([213.95.11.211]:45360 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751329AbdFFJ6v (ORCPT ); Tue, 6 Jun 2017 05:58:51 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: "Rafael J. Wysocki" Cc: Andy Shevchenko , Christoph Hellwig , Linux Kernel Mailing List , "Rafael J . Wysocki" , ACPI Devel Maling List , Dan Williams , Mika Westerberg , Borislav Petkov , intel-gfx On Mon, Jun 05, 2017 at 10:37:41PM +0200, Rafael J. Wysocki wrote: > On Mon, Jun 5, 2017 at 6:20 PM, Andy Shevchenko > wrote: > > On Mon, 2017-06-05 at 18:03 +0200, Christoph Hellwig wrote: > >> > + in_params[0].buffer.pointer = (u8 *)&guid; > >> > >> Any idea why the pointer is defined as a u8 * in union acpi_object > >> instead of a void? > > > > I guess this question to Rafael. > > That data type is defined in upstream ACPICA and the reason why it is > defined the way it is has something to do with history I suppose. Ok, I'll send a patch to fix it - just about every user of the field currently requires a cast, which is not a good thing.