lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170829084952.7223-1-peda@axentia.se>
Date:   Tue, 29 Aug 2017 10:49:52 +0200
From:   Peter Rosin <peda@...ntia.se>
To:     gregkh@...uxfoundation.org
Cc:     Bhumika Goyal <bhumirks@...il.com>, julia.lawall@...6.fr,
        bp@...en8.de, linux-kernel@...r.kernel.org,
        Peter Rosin <peda@...ntia.se>
Subject: [PATCH 07/15] mux: make device_type const

From: Bhumika Goyal <bhumirks@...il.com>

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@...il.com>
Signed-off-by: Peter Rosin <peda@...ntia.se>
---
 drivers/mux/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Hi Greg!

Here's a rebased version, handling the mux-core.c -> core.c rename.

Cheers,
Peter

diff --git a/drivers/mux/core.c b/drivers/mux/core.c
index aabfb1549d4e..2260063b0ea8 100644
--- a/drivers/mux/core.c
+++ b/drivers/mux/core.c
@@ -58,7 +58,7 @@ static void mux_chip_release(struct device *dev)
 	kfree(mux_chip);
 }
 
-static struct device_type mux_type = {
+static const struct device_type mux_type = {
 	.name = "mux-chip",
 	.release = mux_chip_release,
 };
-- 
2.11.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ