aboutsummaryrefslogtreecommitdiff
path: root/net/ksmbd-tools/patches/010-muon.patch
blob: 967c92702bd1b3b51f942180687af76ddfec35d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
From 3281f325c820a72057ea639e0d11ad68d5703b43 Mon Sep 17 00:00:00 2001
From: Rosen Penev <rosenp@gmail.com>
Date: Thu, 6 Oct 2022 18:07:01 -0700
Subject: [PATCH] ksmbd-tools: run meson through muon analyze
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Mostly unused variable removals. Removed pointless [] in
include_directories.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Acked-by: Atte Heikkilä <atteh.mailbox@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
---
 addshare/meson.build | 2 +-
 adduser/meson.build  | 2 +-
 control/meson.build  | 2 +-
 meson.build          | 4 ++--
 mountd/meson.build   | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

--- a/addshare/meson.build
+++ b/addshare/meson.build
@@ -1,4 +1,4 @@
-addshare = executable(
+executable(
   'ksmbd.addshare',
   'share_admin.c',
   'addshare.c',
--- a/adduser/meson.build
+++ b/adduser/meson.build
@@ -1,4 +1,4 @@
-adduser = executable(
+executable(
   'ksmbd.adduser',
   'md4_hash.c',
   'user_admin.c',
--- a/control/meson.build
+++ b/control/meson.build
@@ -1,4 +1,4 @@
-control = executable(
+executable(
   'ksmbd.control',
   'control.c',
   dependencies: [
--- a/meson.build
+++ b/meson.build
@@ -13,10 +13,10 @@ exec awk '/define KSMBD_TOOLS_VERSION /
   meson_version: '>= 0.51.0',
 )
 
-tools_incdir = include_directories([
+tools_incdir = include_directories(
   '.',
   'include',
-])
+)
 
 glib_dep = dependency(
   'glib-2.0',
--- a/mountd/meson.build
+++ b/mountd/meson.build
@@ -1,4 +1,4 @@
-mountd = executable(
+executable(
   'ksmbd.mountd',
   'worker.c',
   'ipc.c',