Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754340AbbGaO2T (ORCPT ); Fri, 31 Jul 2015 10:28:19 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:35795 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753097AbbGaO2Q (ORCPT ); Fri, 31 Jul 2015 10:28:16 -0400 Date: Fri, 31 Jul 2015 19:58:05 +0530 From: Sudip Mukherjee To: Greg Kroah-Hartman Cc: David Herrmann , Shuah Khan , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Gortmaker , Daniel Mack , Djalal Harouni Subject: Re: [PATCH] kdbus/samples: skip on CROSS_COMPILE Message-ID: <20150731142805.GA22010@sudip-pc> References: <1438272805-19029-1-git-send-email-dh.herrmann@gmail.com> <20150730163307.GA20048@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150730163307.GA20048@kroah.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1294 Lines: 33 On Thu, Jul 30, 2015 at 09:33:07AM -0700, Greg Kroah-Hartman wrote: > On Thu, Jul 30, 2015 at 06:13:25PM +0200, David Herrmann wrote: > > Apparently we cannot rely on up-to-date kernel headers to be available > > when cross-compiling, not even for HOSTCC. That's sad, but it's how it > > is. Skip samples on cross-compiles as suggested by Paul, so allmodconfig > > runs smoothly again. > > > > Tested-by: Paul Gortmaker > > Signed-off-by: David Herrmann > > --- > > samples/kdbus/Makefile | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/samples/kdbus/Makefile b/samples/kdbus/Makefile > > index 137f842..dbd9de8 100644 > > --- a/samples/kdbus/Makefile > > +++ b/samples/kdbus/Makefile > > @@ -1,9 +1,13 @@ > > # kbuild trick to avoid linker error. Can be omitted if a module is built. > > obj- := dummy.o > > > > +ifndef CROSS_COMPILE > > This really feels like the wrong solution. I also faced the same problem while testing allmodconfig for mn10300. regards sudip -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/