Skip to content
Commit 91084d03 authored by Juro Bystricky's avatar Juro Bystricky Committed by Bruce Ashfield
Browse files

modpost: srcversion sometimes incorrect



"srcversion" field inserted into module modinfo section contains a
sum of the source files which made it. However, this field can
be incorrect. Building the same module can end up having inconsistent
srcversion field eventhough the sources remain the same.
This can be reproduced by building modules in a deeply nested directory,
but other factors contribute as well.

The reason for incorrect srcversion is that some source files can be
simply silently skipped from the checksum calculation due to limited
buffer space for line parsing.

This patch addresses two issues:

1. Allocates a larger line buffer (32k vs 4k).
2. Issues a warning if a line length exceeds the line buffer.

Signed-off-by: default avatarJuro Bystricky <juro.bystricky@intel.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@windriver.com>
parent f73fd878
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment