modpost: fix section mismatch check for exported init/exit sections
Masahiro Yamada authored
commit 28438794 upstream.

Since commit f02e8a65 ("module: Sort exported symbols"),
EXPORT_SYMBOL* is placed in the individual section ___ksymtab(_gpl)+<sym>
(3 leading underscores instead of 2).

Since then, modpost cannot detect the bad combination of EXPORT_SYMBOL
and __init/__exit.

Fix the .fromsec field.

Fixes: f02e8a65

 ("module: Sort exported symbols")
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
ac0d234f
Name Last commit Last update
Documentation iio: adc: vf610: fix conversion mode sysfs node name
arch ARM: cns3xxx: Fix refcount leak in cns3xxx_init
block block-map: add __GFP_ZERO flag for alloc_page in function bio_copy_kern
certs certs/blacklist_hashes.c: fix const confusion in certs blacklist
crypto crypto: drbg - make reseeding from get_random_bytes() synchronous
drivers iio: adc: axp288: Override TS pin bias current for some models
firmware Fix built-in early-load Intel microcode alignment
fs ext4: add reserved GDT blocks check
include random: quiet urandom warning ratelimit suppression message
init random: handle latent entropy and command line from random_init()
ipc ipc: WARN if trying to remove ipc object which is absent
kernel timekeeping: Add raw clock fallback for random_get_entropy()
lib random: remove ratelimiting for in-kernel unseeded randomness
mm random: move randomize_page() into mm where it belongs
net tcp: drop the hash_32() part from the index calculation
samples samples/kretprobes: Fix return value if register_kretprobe() failed
scripts modpost: fix section mismatch check for exported init/exit sections
security Fix incorrect type in assignment of ipv6 port for audit
sound ASoC: wm8962: Fix suspend while playing music
tools perf c2c: Fix sorting in percent_rmt_hitm_cmp()
usr initramfs: restore default compression behavior
virt KVM: Prevent module exit until all VMs are freed
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Add hch to .get_maintainer.ignore
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.