lkml.org 
[lkml]   [2022]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [broonie-misc:arm64-sysreg-gen 6/9] arch/arm64/include/asm/sysreg.h:125:10: fatal error: 'generated/asm/sysreg.h' file not found
    On Fri, Mar 18, 2022 at 02:15:07PM +0900, Masahiro Yamada wrote:
    > On Thu, Mar 17, 2022 at 2:05 AM Mark Brown <broonie@kernel.org> wrote:

    > > but that's only passed to CC (at least for bounds.s) via an
    > > -I./arch/arm64/include/generated so won't be found with the generated/
    > > prefix. While this can be avoided by renaming the header and not
    > > referencing it with the prefix I do see a bunch of other headers
    > > throughout the tree being included with an explicit generated/ prefix so
    > > I'm not sure this is what's supposed to be happening, it does seem like
    > > a landmine somehow.

    > Do not add 'generated/' prefix.

    If that's something you don't want to support there's a bunch of
    existing explicit usage of generated/ in include statements that need
    fixing up.

    > Let's think about this scenario.
    > First foo.h was hard-coded, but sometime later,
    > somebody noticed it is better to generate it by scripting.
    > Why do we need to fix up #include <foo.h> to #include <generated/foo.h>
    > in all the call sites?
    > Or do we need to have foo.h to wrap <generaged/foo.h> ?

    I'm not sure I see a conflict from having both ways to reach the header
    here and allowing people to do either as appropriate TBH, and indeed we
    have other cases like uapi where we have both include/ and include/uapi
    in the search path.

    > No, users of foo.h do not need to know if it is
    > a checked-in header of a generated one.

    The use case I had was for partial conversion where some of the header
    is pulled out into a generated file with the generated file wrapping
    things. The users are unaffected, and if the file is completely
    converted to be generated would continue to be unaffected.
    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2022-03-18 16:42    [W:2.962 / U:1.412 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site