Skip to contentSkip to conversation

ecryptfs/crypto.c: local functions should be static

PATCH New H Hartley Sweeten 1 participant 1 message Sep 23, 2011 Ecrypt file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ecryptfs/crypto.c: local functions should be static

This quiets the sparse noise:

warning: symbol 'ecryptfs_encode_for_filename' was not declared. Should it be static?

Cc Tyler Hicks <[email protected]>
Cc Dustin Kirkland <[email protected]>

---

fs/ecryptfs/crypto.c +2 -2
index 58609bd..0d4f5fc 100644
@@ -1969,8 +1969,8 @@ static const unsigned char filename_rev_map[] = {
  * @src: Source location for the filename to encode
  * @src_size: Size of the source in bytes
  */
-void ecryptfs_encode_for_filename(unsigned char *dst, size_t *dst_size,
-				  unsigned char *src, size_t src_size)
+static void ecryptfs_encode_for_filename(unsigned char *dst, size_t *dst_size,
+					 unsigned char *src, size_t src_size)
 {
 	size_t num_blocks;
 	size_t block_num = 0;