From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mout.kundenserver.de ([212.227.126.130]:49318 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750954AbaIIRz1 (ORCPT ); Tue, 9 Sep 2014 13:55:27 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Mauro Carvalho Chehab , Sylwester Nawrocki , Stephen Rothwell , Kamil Debski , Kukjin Kim , linux-kernel@vger.kernel.org, Mauro Carvalho Chehab , Kyungmin Park , linux-samsung-soc@vger.kernel.org, linux-next@vger.kernel.org, Jacek Anaszewski , Linux Media Mailing List Subject: Re: [PATCH 2/3] [media] s5p-jpeg: Fix compilation with COMPILE_TEST Date: Tue, 09 Sep 2014 19:54:19 +0200 Message-ID: <60097822.tu6OncvLxQ@wuerfel> In-Reply-To: <20140909120936.527bd852.m.chehab@samsung.com> References: <20140909124306.2d5a0d76@canb.auug.org.au> <540F15B2.3000902@samsung.com> <20140909120936.527bd852.m.chehab@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-media-owner@vger.kernel.org List-ID: On Tuesday 09 September 2014 12:09:36 Mauro Carvalho Chehab wrote: > -exynos4.c > > > index e51c078360f5..01eeacf28843 100644 > > > --- a/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c > > > +++ b/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c > > > @@ -23,7 +23,9 @@ void exynos4_jpeg_sw_reset(void __iomem *base) > > > reg = readl(base + EXYNOS4_JPEG_CNTL_REG); > > > writel(reg & ~EXYNOS4_SOFT_RESET_HI, base + EXYNOS4_JPEG_CNTL_REG); > > > > > > +#ifndef CONFIG_COMPILE_TEST > > > ndelay(100000); > > > +#endif > > > > Wouldn't be a better fix to replace ndelay(100000); with udelay(100), > > rather than sticking in a not so pretty #ifndef ? > > Works for me. I'll submit a new version. New version looks good to me. On a more general level, I would argue that we should not disable code based on COMPILE_TEST. The typical use of this symbol is to make it possible to compile more code, not to change the behavior of code on machines that were able to build it already. Arnd