diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2022-09-19 07:13:58 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2022-09-19 07:36:25 -0400 |
commit | 8515921a8520f68595376bf2b131a6b3928358a6 (patch) | |
tree | a731fbafe41dc88ea9a6c2e93d03d46e8c717f4d /x11-drivers | |
parent | x11-drivers/nvidia-drivers: clarify clang15 patch notes (diff) | |
download | gentoo-8515921a8520f68595376bf2b131a6b3928358a6.tar.gz gentoo-8515921a8520f68595376bf2b131a6b3928358a6.tar.bz2 gentoo-8515921a8520f68595376bf2b131a6b3928358a6.zip |
x11-drivers/nvidia-drivers: early clang16 fixes
Or more specifically, -Werror=strict-prototypes fixes. This is
for the extras (settings/modprobe/persistenced) given modules
already needed to be fixed with clang15 even post-revert given
they pass -Werror=strict-prototypes themselves.
Done as a separate patch given the clang15 one need to be re-applied
without the extras to open source drivers.
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'x11-drivers')
7 files changed, 82 insertions, 0 deletions
diff --git a/x11-drivers/nvidia-drivers/files/nvidia-extras-390.154-clang16.patch b/x11-drivers/nvidia-drivers/files/nvidia-extras-390.154-clang16.patch new file mode 100644 index 000000000000..63e33af9d0db --- /dev/null +++ b/x11-drivers/nvidia-drivers/files/nvidia-extras-390.154-clang16.patch @@ -0,0 +1,41 @@ +https://bugs.gentoo.org/870412 +--- a/nvidia-modprobe/common-utils/msg.c ++++ b/nvidia-modprobe/common-utils/msg.c +@@ -45 +45 @@ +-NvVerbosity nv_get_verbosity() ++NvVerbosity nv_get_verbosity(void) +--- a/nvidia-persistenced/common-utils/msg.c ++++ b/nvidia-persistenced/common-utils/msg.c +@@ -45 +45 @@ +-NvVerbosity nv_get_verbosity() ++NvVerbosity nv_get_verbosity(void) +--- a/nvidia-persistenced/nvidia-persistenced.c ++++ b/nvidia-persistenced/nvidia-persistenced.c +@@ -502 +502 @@ +-static NvPdStatus setup_rpc() ++static NvPdStatus setup_rpc(void) +--- a/nvidia-settings/src/common-unix/virtual-resolutions/nvvr.c ++++ b/nvidia-settings/src/common-unix/virtual-resolutions/nvvr.c +@@ -107 +107 @@ +-const NVVRSize* NVVRGetCommonResolutions() ++const NVVRSize* NVVRGetCommonResolutions(void) +--- a/nvidia-settings/src/common-utils/msg.c ++++ b/nvidia-settings/src/common-utils/msg.c +@@ -45 +45 @@ +-NvVerbosity nv_get_verbosity() ++NvVerbosity nv_get_verbosity(void) +--- a/nvidia-settings/src/gtk+-2.x/ctkslimm.c ++++ b/nvidia-settings/src/gtk+-2.x/ctkslimm.c +@@ -129 +129 @@ +-GType ctk_slimm_get_type() ++GType ctk_slimm_get_type(void) +--- a/nvidia-settings/src/gtk+-2.x/ctkutils.c ++++ b/nvidia-settings/src/gtk+-2.x/ctkutils.c +@@ -251 +251 @@ +-GtkWidget *ctk_combo_box_text_new_with_entry() ++GtkWidget *ctk_combo_box_text_new_with_entry(void) +--- a/nvidia-xconfig/common-utils/msg.c ++++ b/nvidia-xconfig/common-utils/msg.c +@@ -45 +45 @@ +-NvVerbosity nv_get_verbosity() ++NvVerbosity nv_get_verbosity(void) diff --git a/x11-drivers/nvidia-drivers/files/nvidia-extras-470.141.03-clang16.patch b/x11-drivers/nvidia-drivers/files/nvidia-extras-470.141.03-clang16.patch new file mode 100644 index 000000000000..c0a1f138dd79 --- /dev/null +++ b/x11-drivers/nvidia-drivers/files/nvidia-extras-470.141.03-clang16.patch @@ -0,0 +1,36 @@ +https://bugs.gentoo.org/870412 +--- a/nvidia-modprobe/common-utils/msg.c ++++ b/nvidia-modprobe/common-utils/msg.c +@@ -47 +47 @@ +-NvVerbosity nv_get_verbosity() ++NvVerbosity nv_get_verbosity(void) +--- a/nvidia-persistenced/common-utils/msg.c ++++ b/nvidia-persistenced/common-utils/msg.c +@@ -47 +47 @@ +-NvVerbosity nv_get_verbosity() ++NvVerbosity nv_get_verbosity(void) +--- a/nvidia-persistenced/nvidia-persistenced.c ++++ b/nvidia-persistenced/nvidia-persistenced.c +@@ -625 +625 @@ +-static NvPdStatus setup_rpc() ++static NvPdStatus setup_rpc(void) +--- a/nvidia-settings/src/common-unix/virtual-resolutions/nvvr.c ++++ b/nvidia-settings/src/common-unix/virtual-resolutions/nvvr.c +@@ -107 +107 @@ +-const NVVRSize* NVVRGetCommonResolutions() ++const NVVRSize* NVVRGetCommonResolutions(void) +--- a/nvidia-settings/src/common-utils/msg.c ++++ b/nvidia-settings/src/common-utils/msg.c +@@ -47 +47 @@ +-NvVerbosity nv_get_verbosity() ++NvVerbosity nv_get_verbosity(void) +--- a/nvidia-settings/src/gtk+-2.x/ctkutils.c ++++ b/nvidia-settings/src/gtk+-2.x/ctkutils.c +@@ -260 +260 @@ +-GtkWidget *ctk_combo_box_text_new_with_entry() ++GtkWidget *ctk_combo_box_text_new_with_entry(void) +--- a/nvidia-xconfig/common-utils/msg.c ++++ b/nvidia-xconfig/common-utils/msg.c +@@ -47 +47 @@ +-NvVerbosity nv_get_verbosity() ++NvVerbosity nv_get_verbosity(void) diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-390.154.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-390.154.ebuild index b73a7c2ccd4e..14d1ff0122f7 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-390.154.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-390.154.ebuild @@ -74,6 +74,7 @@ QA_PREBUILT="opt/bin/* usr/lib*" PATCHES=( "${FILESDIR}"/nvidia-drivers-390.154-clang15.patch + "${FILESDIR}"/nvidia-extras-390.154-clang16.patch "${FILESDIR}"/nvidia-modprobe-390.141-uvm-perms.patch "${FILESDIR}"/nvidia-settings-390.141-fno-common.patch "${FILESDIR}"/nvidia-settings-390.144-desktop.patch diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.141.03.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.141.03.ebuild index cc7b2513a5a3..dbd9393ea0bf 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.141.03.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.141.03.ebuild @@ -77,6 +77,7 @@ QA_PREBUILT="lib/firmware/* opt/bin/* usr/lib*" PATCHES=( "${FILESDIR}"/nvidia-drivers-470.141.03-clang15.patch + "${FILESDIR}"/nvidia-extras-470.141.03-clang16.patch "${FILESDIR}"/nvidia-modprobe-390.141-uvm-perms.patch "${FILESDIR}"/nvidia-settings-390.144-desktop.patch "${FILESDIR}"/nvidia-settings-390.144-no-gtk2.patch diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-510.85.02.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-510.85.02.ebuild index 632cee27f396..50cb0bbc6344 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-510.85.02.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-510.85.02.ebuild @@ -80,6 +80,7 @@ QA_PREBUILT="lib/firmware/* opt/bin/* usr/lib*" PATCHES=( "${FILESDIR}"/nvidia-drivers-470.141.03-clang15.patch + "${FILESDIR}"/nvidia-extras-470.141.03-clang16.patch "${FILESDIR}"/nvidia-modprobe-390.141-uvm-perms.patch "${FILESDIR}"/nvidia-settings-390.144-desktop.patch "${FILESDIR}"/nvidia-settings-390.144-no-gtk2.patch diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-515.49.15.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-515.49.15.ebuild index 628cd1a50969..353d32365a63 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-515.49.15.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-515.49.15.ebuild @@ -82,6 +82,7 @@ QA_PREBUILT="lib/firmware/* opt/bin/* usr/lib*" PATCHES=( "${FILESDIR}"/nvidia-drivers-470.141.03-clang15.patch + "${FILESDIR}"/nvidia-extras-470.141.03-clang16.patch "${FILESDIR}"/nvidia-modprobe-390.141-uvm-perms.patch "${FILESDIR}"/nvidia-settings-390.144-desktop.patch "${FILESDIR}"/nvidia-settings-390.144-no-gtk2.patch diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-515.65.01.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-515.65.01.ebuild index c95218f51107..b90995aadf68 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-515.65.01.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-515.65.01.ebuild @@ -82,6 +82,7 @@ QA_PREBUILT="lib/firmware/* opt/bin/* usr/lib*" PATCHES=( "${FILESDIR}"/nvidia-drivers-470.141.03-clang15.patch + "${FILESDIR}"/nvidia-extras-470.141.03-clang16.patch "${FILESDIR}"/nvidia-modprobe-390.141-uvm-perms.patch "${FILESDIR}"/nvidia-settings-390.144-desktop.patch "${FILESDIR}"/nvidia-settings-390.144-no-gtk2.patch |