Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1331173
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Daniel Vetter <daniel@ffwll.ch> |
| Newsgroups | linux.kernel |
| Subject | Re: linux-next: build failure after merge of the drm-misc tree |
| Date | Wed, 10 Feb 2016 14:40:03 +0100 |
| Message-ID | <r0D9V-2Ne-11@gated-at.bofh.it> (permalink) |
| References | <r0rLs-3Iq-1@gated-at.bofh.it> <r0yDg-8hG-7@gated-at.bofh.it> <r0D0e-2IY-3@gated-at.bofh.it> |
| X-Original-To | Lukas Wunner <lukas@wunner.de> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=tPEbzkmLMRYkuIIEJ2nktS0h27k6OO1cGk1BNbVVvv8=; b=G2iFF0OhM8MVfukWofx5hlAmU7ABnjCYlIBV5ufl+Idv93uAGzX5bR1slne/aCNlc5 eqB1JIsDSKe8A1r6pbELgaOTgLkX5pWT7ZtA4+Ag0SRlPuKjexV01C73QlYqjV5Knvg0 m0+jIxC63/7fBRODXN17T0EiVixnVl/qgWV0o= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=tPEbzkmLMRYkuIIEJ2nktS0h27k6OO1cGk1BNbVVvv8=; b=ACopGq0WW6WTn/MeVWhMPoIJEG50Y+1j2RcfssCgFSKBCplCXKbq1JXYpgiGLGQB91 /MdA6Wz8pzBqlYFplxEUKDKnsXx3cG4pJU0wZ6M7H09N+c0KR02v0WjIVZL+dH8mO34l JGBWAGVbqvbq8pEAdlGDcq8mxRKc6IzJoiLDOZp/04D7RYmnYf15K4UVtp+hVZh/YAIa VquqgesYqLulqF5AnUDN2GhC0pt1gTziuCxP/c25qIwxZ2xg3wlU48ZIRe+NNd90umr5 I04FlmPZTbOHLCWL6oIMYK/opPvoJ3YCrBV5JuUXbrHBYdavxuxHJ/r1ovOv4CqaA0XW 2YBQ== |
| X-Gm-Message-State | AG10YOTXKJqdgJdA3G9UrrNrRZzij20mUgNKv4CIPt+1D39qZ7x0q9OMeZFE75TBJADVyg== |
| X-Received | by 10.194.115.164 with SMTP id jp4mr40602217wjb.26.1455111396949; Wed, 10 Feb 2016 05:36:36 -0800 (PST) |
| Mail-Followup-To | Lukas Wunner <lukas@wunner.de>, Stephen Rothwell <sfr@canb.auug.org.au>, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Darren Hart <dvhart@linux.intel.com>, "Rafael J. Wysocki" <rjw@rjwysocki.net>, linux-acpi@vger.kernel.org |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| X-Operating-System | Linux phenom 4.3.0-1-amd64 |
| User-Agent | Mutt/1.5.24 (2015-08-30) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 125 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Stephen Rothwell <sfr@canb.auug.org.au>, Daniel Vetter <daniel.vetter@ffwll.ch>, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Darren Hart <dvhart@linux.intel.com>, "Rafael J. Wysocki" <rjw@rjwysocki.net>, linux-acpi@vger.kernel.org |
| X-Original-Date | Wed, 10 Feb 2016 14:37:00 +0100 |
| X-Original-Message-ID | <20160210133700.GZ11240@phenom.ffwll.local> |
| X-Original-References | <20160210122451.55391e43@canb.auug.org.au> <20160210084138.GA15392@wunner.de> <20160210131741.GA15492@wunner.de> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1331173 |
Show key headers only | View raw
On Wed, Feb 10, 2016 at 02:17:41PM +0100, Lukas Wunner wrote:
> Hi,
>
> On Wed, Feb 10, 2016 at 09:41:38AM +0100, Lukas Wunner wrote:
> > On Wed, Feb 10, 2016 at 12:24:51PM +1100, Stephen Rothwell wrote:
> > > Hi all,
> > >
> > > After merging the drm-misc tree, today's linux-next build (arm
> > > multi_v7_defconfig) failed like this:
> > >
> > > In file included from drivers/gpu/drm/nouveau/nouveau_drm.c:25:0:
> > > include/linux/apple-gmux.h: In function 'apple_gmux_present':
> > > include/linux/apple-gmux.h:36:42: error: implicit declaration of function 'acpi_dev_present' [-Werror=implicit-function-declaration]
> > > return IS_ENABLED(CONFIG_APPLE_GMUX) && acpi_dev_present(GMUX_ACPI_HID);
> > > ^
> > >
> > > Caused by commit
> > >
> > > 2413306c2566 ("apple-gmux: Add helper for presence detect")
> > >
> > > I have used the drm-misc tree from next-20160209 for today.
> >
> > Ugh, apologies, I didn't have a non-ACPI platform available to test
> > this on.
> >
> > Solution is to either add to include/linux/acpi.h
> >
> > static inline bool acpi_dev_present(const char *hid)
> > {
> > return false;
> > }
> >
> > somewhere below
> >
> > #else /* !CONFIG_ACPI */
> >
> > or alternatively to add to include/linux/apple-gmux.h
> >
> > IS_ENABLED(CONFIG_ACPI)
> >
> > in apple_gmux_present().
> >
> > I'll check the other users of acpi_dev_present() to see which of
> > these two solutions is more appropriate and will post a fix shortly.
>
> The patch included below fixes the build if CONFIG_ACPI is not set.
>
> @Daniel Vetter: Would it be possible to squash this with 2413306c2566
> ("apple-gmux: Add helper for presence detect") on topic/drm-misc so
> as to avoid build breakage for anyone trying to bisect between that
> commit and this fix?
>
> I checked all other users of acpi_dev_present() and all of them are
> only compiled if CONFIG_ACPI is set. Hence I opted to fix this in
> <linux/apple-gmux.h> rather than in <linux/acpi.h>.
>
> Thanks again Stephen for reporting this at such an early stage,
> though doubtlessly it would have been better if I had thought of
> this possibility when preparing the original patch, or if I had
> compile-tested without CONFIG_ACPI. :-(
Since !ACPI and enabling APPLE_GMUX is a bit a fringe config I don't think
this will hurt bisectability at all on a real system. So just applied this
one on top of drm-misc.
Thanks, Daniel
>
> Lukas
>
> -- >8 --
> Subject: [PATCH] apple-gmux: Fix build breakage if !CONFIG_ACPI
>
> The DRM drivers i915, nouveau and radeon may be compiled with
> CONFIG_ACPI not set, in which case acpi_dev_present() is undefined.
>
> Add a no-op stub for apple_gmux_present() which is used if
> CONFIG_APPLE_GMUX is not enabled to avoid build breakage.
> (CONFIG_APPLE_GMUX depends on CONFIG_ACPI.)
>
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Signed-off-by: Lukas Wunner <lukas@wunner.de>
> ---
> include/linux/apple-gmux.h | 13 ++++++++++++-
> 1 file changed, 12 insertions(+), 1 deletion(-)
>
> diff --git a/include/linux/apple-gmux.h b/include/linux/apple-gmux.h
> index feebc28..b2d32e0 100644
> --- a/include/linux/apple-gmux.h
> +++ b/include/linux/apple-gmux.h
> @@ -22,6 +22,8 @@
>
> #define GMUX_ACPI_HID "APP000B"
>
> +#if IS_ENABLED(CONFIG_APPLE_GMUX)
> +
> /**
> * apple_gmux_present() - detect if gmux is built into the machine
> *
> @@ -33,7 +35,16 @@
> */
> static inline bool apple_gmux_present(void)
> {
> - return IS_ENABLED(CONFIG_APPLE_GMUX) && acpi_dev_present(GMUX_ACPI_HID);
> + return acpi_dev_present(GMUX_ACPI_HID);
> }
>
> +#else /* !CONFIG_APPLE_GMUX */
> +
> +static inline bool apple_gmux_present(void)
> +{
> + return false;
> +}
> +
> +#endif /* !CONFIG_APPLE_GMUX */
> +
> #endif /* LINUX_APPLE_GMUX_H */
> --
> 1.8.5.2 (Apple Git-48)
>
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
linux-next: build failure after merge of the drm-misc tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-02-10 02:30 +0100
Re: linux-next: build failure after merge of the drm-misc tree Daniel Vetter <daniel@ffwll.ch> - 2016-02-10 07:40 +0100
Re: linux-next: build failure after merge of the drm-misc tree Lukas Wunner <lukas@wunner.de> - 2016-02-10 09:50 +0100
Re: linux-next: build failure after merge of the drm-misc tree Lukas Wunner <lukas@wunner.de> - 2016-02-10 14:30 +0100
Re: linux-next: build failure after merge of the drm-misc tree Daniel Vetter <daniel@ffwll.ch> - 2016-02-10 14:40 +0100
csiph-web