git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kbuild: invoke syncconfig if include/config/auto.conf.cmd is missing
[sfrench/cifs-2.6.git]
/
scripts
/
kallsyms.c
diff --git
a/scripts/kallsyms.c
b/scripts/kallsyms.c
index 77cebad0474e5393b7c20c1d65ec22b969df29f5..03ff265fe52264cfd704e11d024258d4f9b1dfc2 100644
(file)
--- a/
scripts/kallsyms.c
+++ b/
scripts/kallsyms.c
@@
-62,11
+62,11
@@
static int all_symbols = 0;
static int absolute_percpu = 0;
static int base_relative = 0;
static int absolute_percpu = 0;
static int base_relative = 0;
-int token_profit[0x10000];
+
static
int token_profit[0x10000];
/* the table that holds the result of the compression */
/* the table that holds the result of the compression */
-unsigned char best_table[256][2];
-unsigned char best_table_len[256];
+
static
unsigned char best_table[256][2];
+
static
unsigned char best_table_len[256];
static void usage(void)
static void usage(void)
@@
-80,7
+80,7
@@
static void usage(void)
* This ignores the intensely annoying "mapping symbols" found
* in ARM ELF files: $a, $t and $d.
*/
* This ignores the intensely annoying "mapping symbols" found
* in ARM ELF files: $a, $t and $d.
*/
-static in
line in
t is_arm_mapping_symbol(const char *str)
+static int is_arm_mapping_symbol(const char *str)
{
return str[0] == '$' && strchr("axtd", str[1])
&& (str[2] == '\0' || str[2] == '.');
{
return str[0] == '$' && strchr("axtd", str[1])
&& (str[2] == '\0' || str[2] == '.');
@@
-331,7
+331,7
@@
static void write_src(void)
unsigned int *markers;
char buf[KSYM_NAME_LEN];
unsigned int *markers;
char buf[KSYM_NAME_LEN];
- printf("#include <asm/
types
.h>\n");
+ printf("#include <asm/
bitsperlong
.h>\n");
printf("#if BITS_PER_LONG == 64\n");
printf("#define PTR .quad\n");
printf("#define ALGN .balign 8\n");
printf("#if BITS_PER_LONG == 64\n");
printf("#define PTR .quad\n");
printf("#define ALGN .balign 8\n");
@@
-596,9
+596,6
@@
static void insert_real_symbols_in_table(void)
{
unsigned int i, j, c;
{
unsigned int i, j, c;
- memset(best_table, 0, sizeof(best_table));
- memset(best_table_len, 0, sizeof(best_table_len));
-
for (i = 0; i < table_cnt; i++) {
for (j = 0; j < table[i].len; j++) {
c = table[i].sym[j];
for (i = 0; i < table_cnt; i++) {
for (j = 0; j < table[i].len; j++) {
c = table[i].sym[j];