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>] [day] [month] [year] [list]
Message-Id: <1417905335-4990-1-git-send-email-rickard_strandqvist@spectrumdigital.se>
Date:	Sat,  6 Dec 2014 23:35:35 +0100
From:	Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
To:	Richard Henderson <rth@...ddle.net>,
	Ivan Kokshaysky <ink@...assic.park.msu.ru>
Cc:	Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>,
	Matt Turner <mattst88@...il.com>, linux-alpha@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH] arch: alpha: kernel: core_titan.c:  Remove some unused functions

Removes some functions that are not used anywhere:
titan_write_tig() titan_read_tig()

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
---
 arch/alpha/kernel/core_titan.c |   14 --------------
 1 file changed, 14 deletions(-)

diff --git a/arch/alpha/kernel/core_titan.c b/arch/alpha/kernel/core_titan.c
index 219bf27..2de2a2a 100644
--- a/arch/alpha/kernel/core_titan.c
+++ b/arch/alpha/kernel/core_titan.c
@@ -62,21 +62,7 @@ mk_tig_addr(int offset)
 	return (volatile unsigned long *)(TITAN_TIG_SPACE + (offset << 6));
 }
 
-static inline u8 
-titan_read_tig(int offset, u8 value)
-{
-	volatile unsigned long *tig_addr = mk_tig_addr(offset);
-	return (u8)(*tig_addr & 0xff);
-}
-
-static inline void 
-titan_write_tig(int offset, u8 value)
-{
-	volatile unsigned long *tig_addr = mk_tig_addr(offset);
-	*tig_addr = (unsigned long)value;
-}
 
-.
 /*
  * Given a bus, device, and function number, compute resulting
  * configuration space address
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ