OSDN Git Service

nouveau: annotate public functions
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 13 Sep 2018 21:39:50 +0000 (14:39 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 20 Sep 2018 05:46:45 +0000 (22:46 -0700)
commitd7320bfcddc596f23fa2b7166e447a0747139199
tree489bf2939bf41c283da25c0f8228753a6bb40d50
parent6229895cc5c99070db17c7e5413e6bf33fc7f618
nouveau: annotate public functions

This was done with:
nm --dynamic --defined-only build/nouveau/libdrm_nouveau.so | \
grep nouveau_ | \
cut -d ' ' -f3 > /tmp/a.txt

while read sym; do
read f func line _ <<<$(cscope -d -L -1 $sym)
if [ ! -z "$f" ]; then
line=$((line-1))
sed -i "${line}s/^/drm_public /" $f
fi
done < /tmp/a.txt

Then some corner cases were manually fixed. The idea here will be to
switch the default visibility to hidden so we don't export symbols we
shouldn't.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Acked-by: Eric Engestrom <eric.engestrom@intel.com>
nouveau/bufctx.c
nouveau/nouveau.c
nouveau/pushbuf.c