2 # SPDX-License-Identifier: GPL-2.0
7 echo "Usage: $0 <modules.order>" >& 2
13 # Check uniqueness of module names
14 check_same_name_modules()
16 for m in $(sed 's:.*/::' "$1" | sort | uniq -d)
18 echo "error: the following would cause module name conflict:" >&2
19 sed -n "/\/$m/s:^: :p" "$1" >&2
24 check_same_name_modules "$1"