drm/bridge: Fix the bridge kernel doc
[linux/fpc-iii.git] / scripts / modules-check.sh
blobf51f446707b82de9462d4a1c47949ecd5468a7d9
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
4 set -e
6 # Check uniqueness of module names
7 check_same_name_modules()
9 for m in $(sed 's:.*/::' modules.order | sort | uniq -d)
11 echo "warning: same module names found:" >&2
12 sed -n "/\/$m/s:^: :p" modules.order >&2
13 done
16 check_same_name_modules