Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: 7d194c2100ad2a6dded545887d02754948ca5241 authored by Linus Torvalds on 20 October 2019, 19:56:22 UTC
Linux 5.4-rc4
Tip revision: 7d194c2
modules-check.sh
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0

set -e

# Check uniqueness of module names
check_same_name_modules()
{
	for m in $(sed 's:.*/::' modules.order | sort | uniq -d)
	do
		echo "warning: same module names found:" >&2
		sed -n "/\/$m/s:^:  :p" modules.order >&2
	done
}

check_same_name_modules
back to top