Skip to content

hide library symbols by default

Lucas De Marchi dri-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 8 repliesIn review
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Include changes for all other sub-libraries
- Include changes to autotools
- Make main Makefil.am and meson.build define the required flag

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13intel: annotate public functionsintel/intel_bufmgr.c intel/intel_bufmgr_fake.c intel/intel_bufmgr_gem.c +2 more+82 -810 replies
2/13libkms: annotate public functionslibkms/api.c+8 -80 replies
3/13nouveau: annotate public functionsnouveau/bufctx.c nouveau/nouveau.c nouveau/pushbuf.c+39 -390 replies
4/13libkms: annotate public functionsamdgpu/amdgpu_bo.c amdgpu/amdgpu_cs.c amdgpu/amdgpu_device.c +3 more+173 -1672 replies
5/13libdrm: annotate public functionsxf86drm.c xf86drmHash.c xf86drmMode.c +2 more+254 -2270 replies
6/13etnaviv: annotate public functionsetnaviv/etnaviv_bo.c etnaviv/etnaviv_cmd_stream.c etnaviv/etnaviv_device.c +3 more+41 -370 replies
7/13freedreno: annotate public functionsfreedreno/freedreno_bo.c freedreno/freedreno_device.c freedreno/freedreno_pipe.c +1 more+49 -490 replies
8/13omap: annotate public functionsomap/omap_drm.c+18 -180 replies
9/13radeon: annotate public functionsradeon/radeon_bo.c radeon/radeon_bo_gem.c radeon/radeon_cs.c +3 more+41 -410 replies
10/13tegra: annotate public functionstegra/tegra.c+13 -130 replies
11/13exynos: annotate public functionsexynos/exynos_drm.c exynos/exynos_fimg2d.c+25 -250 replies
12/13meson: make symbols hidden by defaultamdgpu/meson.build etnaviv/meson.build exynos/meson.build +19 more+31 -281 reply
13/13autotools: make symbols hidden by defaultMakefile.am amdgpu/Makefile.am etnaviv/Makefile.am +22 more+29 -30 replies

Reviews trailers per patch

2 of 13 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEric EngestromMichel DänzerDylan Baker
SeriesR-b R-b A-b
1/13
2/13
3/13
4/13R-b
5/13
6/13
7/13
8/13
9/13
10/13
11/13
12/13R-b
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH libdrm v2 00/13] hide library symbols by default

Rely on -fvisibility=hidden to hide the symbols. Previous version of this series applying only to drm_intel.so is

but it's not included here since I changed the approach for the build system change.

drm_private can also be removed from other symbols but it proved to be a lot of manual work to re-align all the fields, so I decided to leave it to be done on top as a cleanup.

There were lots of changes to param alignement that had to be done manually, I may have missed some.

Changes from v1:
- Include changes for all other sub-libraries
- Include changes to autotools
- Make main Makefil.am and meson.build define the required flag

This is build-tested locally and on gitlab:
https://gitlab.freedesktop.org/demarchi/drm/pipelines/4339

Lucas De Marchi (13):
intel: annotate public functions
libkms: annotate public functions
nouveau: annotate public functions
libkms: annotate public functions
libdrm: annotate public functions
etnaviv: annotate public functions
freedreno: annotate public functions
omap: annotate public functions
radeon: annotate public functions
tegra: annotate public functions
exynos: annotate public functions
meson: make symbols hidden by default
autotools: make symbols hidden by default

 Makefile.am                      |   1 +
 amdgpu/Makefile.am               |   1 +
 amdgpu/amdgpu_bo.c               | 104 ++++++------
 amdgpu/amdgpu_cs.c               | 137 +++++++--------
 amdgpu/amdgpu_device.c           |  19 ++-
 amdgpu/amdgpu_gpu_info.c         |  51 +++---
 amdgpu/amdgpu_vamgr.c            |  24 +--
 amdgpu/amdgpu_vm.c               |   5 +-
 amdgpu/meson.build               |   2 +-
 etnaviv/Makefile.am              |   1 +
 etnaviv/etnaviv_bo.c             |  25 +--
 etnaviv/etnaviv_cmd_stream.c     |  21 ++-
 etnaviv/etnaviv_device.c         |  10 +-
 etnaviv/etnaviv_gpu.c            |   6 +-
 etnaviv/etnaviv_perfmon.c        |   8 +-
 etnaviv/etnaviv_pipe.c           |   8 +-
 etnaviv/meson.build              |   2 +-
 exynos/Makefile.am               |   1 +
 exynos/exynos_drm.c              |  30 ++--
 exynos/exynos_fimg2d.c           |  20 +--
 exynos/meson.build               |   2 +-
 freedreno/Makefile.am            |   1 +
 freedreno/freedreno_bo.c         |  32 ++--
 freedreno/freedreno_device.c     |  12 +-
 freedreno/freedreno_pipe.c       |  14 +-
 freedreno/freedreno_ringbuffer.c |  40 ++---
 freedreno/meson.build            |   2 +-
 intel/Makefile.am                |   1 +
 intel/intel_bufmgr.c             |  64 +++----
 intel/intel_bufmgr_fake.c        |  10 +-
 intel/intel_bufmgr_gem.c         |  73 ++++----
 intel/intel_decode.c             |  14 +-
 intel/meson.build                |   4 +-
 libdrm_macros.h                  |   2 +
 libkms/Makefile.am               |   1 +
 libkms/api.c                     |  16 +-
 libkms/meson.build               |   2 +-
 meson.build                      |   5 +-
 nouveau/Makefile.am              |   1 +
 nouveau/bufctx.c                 |  10 +-
 nouveau/meson.build              |   2 +-
 nouveau/nouveau.c                |  50 +++---
 nouveau/pushbuf.c                |  18 +-
 omap/Makefile.am                 |   1 +
 omap/meson.build                 |   2 +-
 omap/omap_drm.c                  |  36 ++--
 radeon/Makefile.am               |   1 +
 radeon/meson.build               |   2 +-
 radeon/radeon_bo.c               |  24 +--
 radeon/radeon_bo_gem.c           |  16 +-
 radeon/radeon_cs.c               |  24 +--
 radeon/radeon_cs_gem.c           |   4 +-
 radeon/radeon_cs_space.c         |   6 +-
 radeon/radeon_surface.c          |   8 +-
 tegra/Makefile.am                |   3 +-
 tegra/meson.build                |   2 +-
 tegra/tegra.c                    |  26 +--
 tests/Makefile.am                |   1 +
 tests/amdgpu/Makefile.am         |   1 +
 tests/etnaviv/Makefile.am        |   1 +
 tests/exynos/Makefile.am         |   1 +
 tests/exynos/meson.build         |   6 +-
 tests/kms/Makefile.am            |   3 +-
 tests/kms/meson.build            |   2 +-
 tests/kmstest/Makefile.am        |   1 +
 tests/kmstest/meson.build        |   2 +-
 tests/meson.build                |   8 +-
 tests/modeprint/Makefile.am      |   1 +
 tests/modeprint/meson.build      |   2 +-
 tests/modetest/Makefile.am       |   1 +
 tests/modetest/meson.build       |   2 +-
 tests/nouveau/Makefile.am        |   1 +
 tests/nouveau/meson.build        |   2 +-
 tests/proptest/Makefile.am       |   1 +
 tests/proptest/meson.build       |   2 +-
 tests/radeon/Makefile.am         |   1 +
 tests/radeon/meson.build         |   2 +-
 tests/tegra/Makefile.am          |   4 +-
 tests/tegra/meson.build          |   2 +-
 tests/vbltest/Makefile.am        |   1 +
 tests/vbltest/meson.build        |   2 +-
 vc4/Makefile.am                  |   1 +
 xf86drm.c                        | 276 ++++++++++++++++---------------
 xf86drmHash.c                    |  15 +-
 xf86drmMode.c                    | 158 ++++++++++--------
 xf86drmRandom.c                  |   9 +-
 xf86drmSL.c                      |  23 +--
 87 files changed, 803 insertions(+), 736 deletions(-)
Signature · 6 lines
2.17.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel