android_kernel_motorola_sm6375/scripts/mod
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Vincenzo Frascino 26e5e8083d UPSTREAM: scripts: Fix the inclusion order in modpost
In the process of creating the source file of a module modpost injects a
set of includes that are not required if the compilation unit is
statically built into the kernel.

The order of inclusion of the headers can cause redefinition problems
(e.g.):

   In file included from include/linux/elf.h:5:0,
                    from include/linux/module.h:18,
                    from crypto/arc4.mod.c:2:
    #define ELF_OSABI  ELFOSABI_LINUX

   In file included from include/linux/elfnote.h:62:0,
                    from include/linux/build-salt.h:4,
                    from crypto/arc4.mod.c:1:
   include/uapi/linux/elf.h:363:0: note: this is the location of
   the previous definition
    #define ELF_OSABI ELFOSABI_NONE

The issue was exposed during the development of the series [1].

[1] https://lore.kernel.org/lkml/[email protected]/

Reported-by: kbuild test robot <[email protected]>
Signed-off-by: Vincenzo Frascino <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Masahiro Yamada <[email protected]>
Cc: Michal Marek <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
(cherry picked from commit f58dd03b1157bdf3b64c36e9525f8d7f69c25df2)
Signed-off-by: Mark Salyzyn <[email protected]>
Bug: 154668398
Change-Id: I4e1bd72315263f155f485431de5eb69824e2b398
2020-04-27 18:37:46 -07:00
..
.gitignore kbuild: trivial - remove trailing empty lines 2014-06-10 00:04:06 +02:00
devicetable-offsets.c platform-drivers-x86 for v5.1-1 2019-03-10 13:16:37 -07:00
empty.c
file2alias.c modpost: add guid_t type definition 2019-09-04 22:55:42 +09:00
Makefile ANDROID: scripts/mod: disable LTO for empty.c 2019-11-27 12:49:10 -08:00
mk_elfconfig.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
modpost.c UPSTREAM: scripts: Fix the inclusion order in modpost 2020-04-27 18:37:46 -07:00
modpost.h Revert "ANDROID: Revert "Merge tag 'modules-for-v5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux"" 2019-11-13 10:14:45 +00:00
sumversion.c kbuild: remove the first line of *.mod files 2019-07-18 02:19:31 +09:00