aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod/modpost.h
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2006-01-28 10:57:26 -0500
committerSam Ravnborg <sam@mars.ravnborg.org>2006-02-19 03:51:17 -0500
commitcb80514d9c517cc1d101ef304529a0e9b76b4468 (patch)
tree25c9203d808ce322f13cdf62c98c29bcc49a69be /scripts/mod/modpost.h
parent06300b21f4c79fd1578f4b7ca4b314fbab61a383 (diff)
kbuild: use warn()/fatal() consistent in modpost
modpost.c provides warn() and fatal() - so use them all over the place. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/mod/modpost.h')
-rw-r--r--scripts/mod/modpost.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/mod/modpost.h b/scripts/mod/modpost.h
index 7334d839145d..c0de7b98c24c 100644
--- a/scripts/mod/modpost.h
+++ b/scripts/mod/modpost.h
@@ -91,17 +91,22 @@ struct elf_info {
91 unsigned int modinfo_len; 91 unsigned int modinfo_len;
92}; 92};
93 93
94/* file2alias.c */
94void handle_moddevtable(struct module *mod, struct elf_info *info, 95void handle_moddevtable(struct module *mod, struct elf_info *info,
95 Elf_Sym *sym, const char *symname); 96 Elf_Sym *sym, const char *symname);
96
97void add_moddevtable(struct buffer *buf, struct module *mod); 97void add_moddevtable(struct buffer *buf, struct module *mod);
98 98
99/* sumversion.c */
99void maybe_frob_rcs_version(const char *modfilename, 100void maybe_frob_rcs_version(const char *modfilename,
100 char *version, 101 char *version,
101 void *modinfo, 102 void *modinfo,
102 unsigned long modinfo_offset); 103 unsigned long modinfo_offset);
103void get_src_version(const char *modname, char sum[], unsigned sumlen); 104void get_src_version(const char *modname, char sum[], unsigned sumlen);
104 105
106/* from modpost.c */
105void *grab_file(const char *filename, unsigned long *size); 107void *grab_file(const char *filename, unsigned long *size);
106char* get_next_line(unsigned long *pos, void *file, unsigned long size); 108char* get_next_line(unsigned long *pos, void *file, unsigned long size);
107void release_file(void *file, unsigned long size); 109void release_file(void *file, unsigned long size);
110
111void fatal(const char *fmt, ...);
112void warn(const char *fmt, ...);