From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965275AbdIYQiB (ORCPT ); Mon, 25 Sep 2017 12:38:01 -0400 Received: from mail-pg0-f47.google.com ([74.125.83.47]:47424 "EHLO mail-pg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935560AbdIYQiA (ORCPT ); Mon, 25 Sep 2017 12:38:00 -0400 X-Google-Smtp-Source: AOwi7QAiAx4NoNntW4ty4ef8X28eOoXnZL91YEHISdWVE3z8T4QmmKsOiK5/C/CxgttcYNV53c8CfQ== Subject: Re: include/linux/kernel.h:860:32: error: dereferencing pointer to incomplete type 'struct clock_event_device' To: Ian Abbott , kbuild test robot Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Andrew Morton , Linux Memory Management List , Thomas Gleixner References: <201709241605.EczNVSR7%fengguang.wu@intel.com> <176e63fe-59af-84f4-b0f5-d70b3db0c1e5@mev.co.uk> From: Daniel Lezcano Message-ID: <2a392cd7-22b3-f41d-b4e4-7b97bf2f3637@linaro.org> Date: Mon, 25 Sep 2017 18:37:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <176e63fe-59af-84f4-b0f5-d70b3db0c1e5@mev.co.uk> Content-Type: text/plain; charset=UTF-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/09/2017 17:15, Ian Abbott wrote: > [Sorry for the repost.  I forgot to Cc the people I said I was Cc'ing!] Hi Ian, [ ... ] > On 24/09/17 09:26, kbuild test robot wrote: >> Hi Ian, >> >> FYI, the error/warning still remains. >> >> tree:   >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master >> head:   cd4175b11685b11c40e31a03e05084cc212b0649 >> commit: c7acec713d14c6ce8a20154f9dfda258d6bcad3b kernel.h: handle >> pointers to arrays better in container_of() >> date:   2 months ago >> config: ia64-allmodconfig (attached as .config) >> compiler: ia64-linux-gcc (GCC) 6.2.0 >> reproduce: >>          wget >> https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross >> -O ~/bin/make.cross >>          chmod +x ~/bin/make.cross >>          git checkout c7acec713d14c6ce8a20154f9dfda258d6bcad3b >>          # save the attached .config to linux build tree >>          make.cross ARCH=ia64 >> >> All errors (new ones prefixed by >>): >> >>     In file included from drivers/clocksource/timer-of.c:25:0: >>     drivers/clocksource/timer-of.h:35:28: error: field 'clkevt' has >> incomplete type >>       struct clock_event_device clkevt; [ ... ] > > Cc'ing Daniel Lezcano and Thomas Gleixner, since this seems to be a > problem with configurations selecting 'TIMER_OF' even though > 'GENERIC_CLOCKEVENTS' is not selected. > > There was a recent-ish commit 599dc457c79b > ("clocksource/drivers/Kconfig: Fix CLKSRC_PISTACHIO dependencies") to > address this problem for one particular clocksource driver, but some > other clocksource drivers seem to share the same problem.  There are > several clocksource config options in "drivers/clocksource/Kconfig" that > select 'TIMER_OF' without depending on 'GENERIC_CLOCKEVENTS'.  Some of > them are only manually selectable when 'COMPILE_TEST' is selected.  This > particular failure seems to be at least partly due to 'ARMV7M_SYSTICK' > getting selected. Thanks for Cc'ing. This issue is currently in the way to be fixed. https://patchwork.kernel.org/patch/9939191/ -- Daniel -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog