File: Mark-_get_linux_version-as-static.patch

package info (click to toggle)
libblockdev 3.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,140 kB
  • sloc: ansic: 25,226; python: 11,877; makefile: 684; sh: 503; xml: 146
file content (24 lines) | stat: -rw-r--r-- 814 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Michael Biebl <biebl@debian.org>
Date: Tue, 14 Oct 2025 14:30:12 +0200
Subject: Mark _get_linux_version() as static

It is an internal implementation detail and the symbol should not be
exported via libblockdev-utils.
Forwarded: https://github.com/storaged-project/libblockdev/pull/1135
---
 src/utils/module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/utils/module.c b/src/utils/module.c
index 6e41796..8f2b772 100644
--- a/src/utils/module.c
+++ b/src/utils/module.c
@@ -274,7 +274,7 @@ static gboolean have_linux_ver = FALSE;
 
 G_LOCK_DEFINE_STATIC (detected_linux_ver);
 
-BDUtilsLinuxVersion * _get_linux_version (gboolean lock, GError **error) {
+static BDUtilsLinuxVersion * _get_linux_version (gboolean lock, GError **error) {
     struct utsname buf;
 
     if (lock)