linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* microblaze fails to to compile with allmodconfig
@ 2017-09-14  9:07 Michal Hocko
  2017-09-14  9:19 ` Geert Uytterhoeven
  0 siblings, 1 reply; 4+ messages in thread
From: Michal Hocko @ 2017-09-14  9:07 UTC (permalink / raw)
  To: Michal Simek; +Cc: LKML

Hi,
I've started seeing the following compilation failures with microblaze
with the current linux-next (next-20170913). I have no idea when this
has been introduced but microblaze clearly doesn't have arch specific
kvm_para.h.

In file included from ./include/linux/kvm_para.h:4:0,
                 from kernel/watchdog.c:29:
./include/uapi/linux/kvm_para.h:32:26: fatal error: asm/kvm_para.h: No such file or directory
 #include <asm/kvm_para.h>
                          ^
compilation terminated.
make[1]: *** [kernel/watchdog.o] Error 1
make[1]: *** Waiting for unfinished jobs....

allyesconfig and allnoconfig compile just fine. Maybe allmodconfig needs
an update?
-- 
Michal Hocko
SUSE Labs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: microblaze fails to to compile with allmodconfig
  2017-09-14  9:07 microblaze fails to to compile with allmodconfig Michal Hocko
@ 2017-09-14  9:19 ` Geert Uytterhoeven
  2017-09-15 12:17   ` Michal Simek
  0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2017-09-14  9:19 UTC (permalink / raw)
  To: Michal Hocko; +Cc: Michal Simek, LKML

Hi Michal,

On Thu, Sep 14, 2017 at 11:07 AM, Michal Hocko <mhocko@kernel.org> wrote:
> I've started seeing the following compilation failures with microblaze
> with the current linux-next (next-20170913). I have no idea when this
> has been introduced but microblaze clearly doesn't have arch specific
> kvm_para.h.
>
> In file included from ./include/linux/kvm_para.h:4:0,
>                  from kernel/watchdog.c:29:
> ./include/uapi/linux/kvm_para.h:32:26: fatal error: asm/kvm_para.h: No such file or directory
>  #include <asm/kvm_para.h>
>                           ^
> compilation terminated.
> make[1]: *** [kernel/watchdog.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
>
> allyesconfig and allnoconfig compile just fine. Maybe allmodconfig needs
> an update?

arch/microblaze/include/uapi/asm/Kbuild needs a line

    generic-y += kvm_para.h

?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: microblaze fails to to compile with allmodconfig
  2017-09-14  9:19 ` Geert Uytterhoeven
@ 2017-09-15 12:17   ` Michal Simek
  2017-09-15 13:06     ` Masahiro Yamada
  0 siblings, 1 reply; 4+ messages in thread
From: Michal Simek @ 2017-09-15 12:17 UTC (permalink / raw)
  To: Geert Uytterhoeven, Michal Hocko; +Cc: LKML, Nicolas Dichtel, Masahiro Yamada


[-- Attachment #1.1: Type: text/plain, Size: 1752 bytes --]

Hi Michal and Geert, +Nicolas and Masahiro

On 14.9.2017 11:19, Geert Uytterhoeven wrote:
> Hi Michal,
> 
> On Thu, Sep 14, 2017 at 11:07 AM, Michal Hocko <mhocko@kernel.org> wrote:
>> I've started seeing the following compilation failures with microblaze
>> with the current linux-next (next-20170913). I have no idea when this
>> has been introduced but microblaze clearly doesn't have arch specific
>> kvm_para.h.
>>
>> In file included from ./include/linux/kvm_para.h:4:0,
>>                  from kernel/watchdog.c:29:
>> ./include/uapi/linux/kvm_para.h:32:26: fatal error: asm/kvm_para.h: No such file or directory
>>  #include <asm/kvm_para.h>
>>                           ^
>> compilation terminated.
>> make[1]: *** [kernel/watchdog.o] Error 1
>> make[1]: *** Waiting for unfinished jobs....
>>
>> allyesconfig and allnoconfig compile just fine. Maybe allmodconfig needs
>> an update?


Thanks for reporting this.

> 
> arch/microblaze/include/uapi/asm/Kbuild needs a line
> 
>     generic-y += kvm_para.h
> 
> ?

tile/arm/alpha/frv/nm10300/hexagon/sparc/score have
#include <asm-generic/kvm_para.h>

ppc and x86 contain implementation.

s390 and mips are just empty files

Issue was likely introduced by:
"uapi: export all headers under uapi directories"
(commit fcc8487d477a3452a1d0ccbdd4c5e0e1e3cb8bed)

Where header-y += kvm_para.h was removed.

Masahiro/Nicolas: Any issue with this proposed fix?

Thanks,
Michal

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP SoCs



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: microblaze fails to to compile with allmodconfig
  2017-09-15 12:17   ` Michal Simek
@ 2017-09-15 13:06     ` Masahiro Yamada
  0 siblings, 0 replies; 4+ messages in thread
From: Masahiro Yamada @ 2017-09-15 13:06 UTC (permalink / raw)
  To: Michal Simek; +Cc: Geert Uytterhoeven, Michal Hocko, LKML, Nicolas Dichtel

Hi Michal,


2017-09-15 21:17 GMT+09:00 Michal Simek <monstr@monstr.eu>:
> Hi Michal and Geert, +Nicolas and Masahiro
>
> On 14.9.2017 11:19, Geert Uytterhoeven wrote:
>> Hi Michal,
>>
>> On Thu, Sep 14, 2017 at 11:07 AM, Michal Hocko <mhocko@kernel.org> wrote:
>>> I've started seeing the following compilation failures with microblaze
>>> with the current linux-next (next-20170913). I have no idea when this
>>> has been introduced but microblaze clearly doesn't have arch specific
>>> kvm_para.h.
>>>
>>> In file included from ./include/linux/kvm_para.h:4:0,
>>>                  from kernel/watchdog.c:29:
>>> ./include/uapi/linux/kvm_para.h:32:26: fatal error: asm/kvm_para.h: No such file or directory
>>>  #include <asm/kvm_para.h>
>>>                           ^
>>> compilation terminated.
>>> make[1]: *** [kernel/watchdog.o] Error 1
>>> make[1]: *** Waiting for unfinished jobs....
>>>
>>> allyesconfig and allnoconfig compile just fine. Maybe allmodconfig needs
>>> an update?
>
>
> Thanks for reporting this.
>
>>
>> arch/microblaze/include/uapi/asm/Kbuild needs a line
>>
>>     generic-y += kvm_para.h
>>
>> ?

Yes.

I think it is the right thing to do.



> tile/arm/alpha/frv/nm10300/hexagon/sparc/score have
> #include <asm-generic/kvm_para.h>
>
> ppc and x86 contain implementation.
>
> s390 and mips are just empty files
>
> Issue was likely introduced by:
> "uapi: export all headers under uapi directories"
> (commit fcc8487d477a3452a1d0ccbdd4c5e0e1e3cb8bed)
>
> Where header-y += kvm_para.h was removed.

No.
Nicolas's commit is innocent.



I think the bad commit is this:


commit 83f0124ad81e87b74c2f461b1794e57ab5e7fea0
Author: Tobias Klauser <tklauser@distanz.ch>
Date:   Fri May 19 13:45:16 2017 +0200

    microblaze: remove asm-generic wrapper headers

    Some of microblaze's asm and uapi header are merely including their
    asm-generic counterpart. Thus, the arch specific headers can be removed
    and the asm-generic header can be used directly via generic-y.

    The headers removed from uapi don't need to be added to generic-y in the
    uapi Kbuild in order to get exported, as they are already listed in
    mandatory-y.

    Also order the generic-y list alphabetically.

    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
    Signed-off-by: Michal Simek <michal.simek@xilinx.com>



It removed
arch/microblaze/include/uapi/asm/kvm_para.h
but, missed to add  "generic-y += kvm_para.h"




-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-09-15 13:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-14  9:07 microblaze fails to to compile with allmodconfig Michal Hocko
2017-09-14  9:19 ` Geert Uytterhoeven
2017-09-15 12:17   ` Michal Simek
2017-09-15 13:06     ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).