]> asedeno.scripts.mit.edu Git - linux.git/blob - scripts/modules-check.sh
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
[linux.git] / scripts / modules-check.sh
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3
4 set -e
5
6 # Check uniqueness of module names
7 check_same_name_modules()
8 {
9         for m in $(sed 's:.*/::' modules.order modules.builtin | sort | uniq -d)
10         do
11                 echo "warning: same basename if the following are built as modules:" >&2
12                 sed "/\/$m/!d;s:^kernel/:  :" modules.order modules.builtin >&2
13         done
14 }
15
16 check_same_name_modules