https://github.com/torvalds/linux
Revision 2d69708f9c08067735672908507894374bebb379 authored by Mauro Carvalho Chehab on 14 June 2018, 13:47:29 UTC, committed by Mauro Carvalho Chehab on 15 June 2018, 21:10:01 UTC
Now that the number of broken refs are smaller, improve the logic
that gets rid of false-positives.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Acked-by: Jonathan Corbet <corbet@lwn.net>
1 parent e1f319f
Raw File
Tip revision: 2d69708f9c08067735672908507894374bebb379 authored by Mauro Carvalho Chehab on 14 June 2018, 13:47:29 UTC
scripts/documentation-file-ref-check: get rid of false-positives
Tip revision: 2d69708
test_module.c
/*
 * This module emits "Hello, world" on printk when loaded.
 *
 * It is designed to be used for basic evaluation of the module loading
 * subsystem (for example when validating module signing/verification). It
 * lacks any extra dependencies, and will not normally be loaded by the
 * system unless explicitly requested by name.
 */

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/init.h>
#include <linux/module.h>
#include <linux/printk.h>

static int __init test_module_init(void)
{
	pr_warn("Hello, world\n");

	return 0;
}

module_init(test_module_init);

static void __exit test_module_exit(void)
{
	pr_warn("Goodbye\n");
}

module_exit(test_module_exit);

MODULE_AUTHOR("Kees Cook <keescook@chromium.org>");
MODULE_LICENSE("GPL");
back to top