aboutsummaryrefslogtreecommitdiffstats
path: root/libdrm_macros.h
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2018-09-12 13:09:08 -0700
committerLucas De Marchi <lucas.demarchi@intel.com>2018-09-19 22:46:44 -0700
commit36bb0ea47b71d220b31e55717228032fb69b4dee (patch)
treeb9047ac54a2bdb73330df3f76207bb2d6e0d4269 /libdrm_macros.h
parenta9463bdb01b6eff2f6ec58695bdbe188ca7e8497 (diff)
downloadexternal_libdrm-36bb0ea47b71d220b31e55717228032fb69b4dee.tar.gz
external_libdrm-36bb0ea47b71d220b31e55717228032fb69b4dee.tar.bz2
external_libdrm-36bb0ea47b71d220b31e55717228032fb69b4dee.zip
intel: annotate public functions
This was done with: 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. "a.txt" above contains the symbols collected from intel/intel-symbol-check. 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> Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Diffstat (limited to 'libdrm_macros.h')
-rw-r--r--libdrm_macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdrm_macros.h b/libdrm_macros.h
index 211fab21..95f0ef55 100644
--- a/libdrm_macros.h
+++ b/libdrm_macros.h
@@ -25,8 +25,10 @@
#if HAVE_VISIBILITY
# define drm_private __attribute__((visibility("hidden")))
+# define drm_public __attribute__((visibility("default")))
#else
# define drm_private
+# define drm_public
#endif