15c48b108SAl Viro#!/bin/sh 2b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 35c48b108SAl Vironm="$1" 45c48b108SAl Virofile="$2" 55c48b108SAl Viro$nm "$file" | grep '^ *U' > /dev/null 2>&1 65c48b108SAl Viroif [ $? -eq 1 ]; then 75c48b108SAl Viro exit 0 85c48b108SAl Viroelse 95c48b108SAl Viro echo "$file: undefined symbols found" >&2 105c48b108SAl Viro exit 1 115c48b108SAl Virofi 12