[PATCH 16/16] elfops: hide elf_ident(), no users outside elfops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Andreas Robinson <andr345@xxxxxxxxx>
---
 elfops.c |    2 +-
 elfops.h |    2 --
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/elfops.c b/elfops.c
index 0fb492f..da2740e 100644
--- a/elfops.c
+++ b/elfops.c
@@ -39,7 +39,7 @@ static const char *skip_dot(const char *str)
 /*
  * Check ELF file header.
  */
-int elf_ident(void *file, unsigned long fsize, int *conv)
+static int elf_ident(void *file, unsigned long fsize, int *conv)
 {
 	/* "\177ELF" <byte> where byte = 001 for 32-bit, 002 for 64 */
 	unsigned char *ident = file;
diff --git a/elfops.h b/elfops.h
index e131da0..7069d92 100644
--- a/elfops.h
+++ b/elfops.h
@@ -84,8 +84,6 @@ struct module_ops
 
 extern struct module_ops mod_ops32, mod_ops64;
 
-int elf_ident(void *file, unsigned long fsize, int *conv);
-
 struct elf_file *grab_elf_file(const char *pathname);
 struct elf_file *grab_elf_file_fd(const char *pathname, int fd);
 void release_elf_file(struct elf_file *file);
-- 
1.6.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux