powerpc/mm: Remove unused variable declaration
[linux-2.6-block.git] / scripts / modules-check.sh
CommitLineData
3a48a919
MY
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3
4set -e
5
6# Check uniqueness of module names
7check_same_name_modules()
8{
4a33d4f1 9 for m in $(sed 's:.*/::' modules.order | sort | uniq -d)
3a48a919 10 do
4a33d4f1
MY
11 echo "warning: same module names found:" >&2
12 sed -n "/\/$m/s:^kernel/: :p" modules.order >&2
3a48a919
MY
13 done
14}
15
16check_same_name_modules