History

modpost: remove stale comment about sym_add_exported()

The description, it may have already been added without a CRC, in this case just update the CRC ... is no longer valid. In the old days, this function was used to update the CRC as well. Commit 040fcc819a2e ("kbuild: improved modversioning support for external modules") started to use a separate function (sym_update_crc) for updating the CRC. The first part, "Add an exported symbol" is correct, but it is too obvious from the function name. Drop this comment entirely.

Masahiro Yamada committed 4 years ago

Commit 594ade31 parent c155a471 file · +0 −4Browse files

Showing the changes to scripts/mod (1 of 1 file). Show all

Unified · Split

scripts/mod/modpost.c+0−4
@@ -387,10 +387,6 @@ static void sym_update_namespace(const char *symname, const char *namespace) · 386 unmodified lines
387387 s->namespace = namespace[0] ? NOFAIL(strdup(namespace)) : NULL;
388388 }
389389
390−/**
391− * Add an exported symbol - it may have already been added without a
392− * CRC, in this case just update the CRC
393− **/
394390 static struct symbol *sym_add_exported(const char *name, struct module *mod,
395391 enum export export)
396392 {