diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-14 17:25:59 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-14 17:25:59 -0500 |
commit | 1b79dff672ca09a5461cc1d46ad81c62137841c5 (patch) | |
tree | 772a4224c78aa20862511ae5f7272f9311e4811c /scripts | |
parent | 83050a4e21979fe1821916fce2fca36255569ed3 (diff) | |
parent | 18558cae0272f8fd9647e69d3fec1565a7949865 (diff) |
Merge 4.5-rc4 into char-misc-next
We want those fixes in here as well.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mod/modpost.c | 3 | ||||
-rwxr-xr-x | scripts/prune-kernel | 20 |
2 files changed, 22 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index e080746e1a6b..48958d3cec9e 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -594,7 +594,8 @@ static int ignore_undef_symbol(struct elf_info *info, const char *symname) | |||
594 | if (strncmp(symname, "_restgpr0_", sizeof("_restgpr0_") - 1) == 0 || | 594 | if (strncmp(symname, "_restgpr0_", sizeof("_restgpr0_") - 1) == 0 || |
595 | strncmp(symname, "_savegpr0_", sizeof("_savegpr0_") - 1) == 0 || | 595 | strncmp(symname, "_savegpr0_", sizeof("_savegpr0_") - 1) == 0 || |
596 | strncmp(symname, "_restvr_", sizeof("_restvr_") - 1) == 0 || | 596 | strncmp(symname, "_restvr_", sizeof("_restvr_") - 1) == 0 || |
597 | strncmp(symname, "_savevr_", sizeof("_savevr_") - 1) == 0) | 597 | strncmp(symname, "_savevr_", sizeof("_savevr_") - 1) == 0 || |
598 | strcmp(symname, ".TOC.") == 0) | ||
598 | return 1; | 599 | return 1; |
599 | /* Do not ignore this symbol */ | 600 | /* Do not ignore this symbol */ |
600 | return 0; | 601 | return 0; |
diff --git a/scripts/prune-kernel b/scripts/prune-kernel new file mode 100755 index 000000000000..ab5034e1d081 --- /dev/null +++ b/scripts/prune-kernel | |||
@@ -0,0 +1,20 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # because I use CONFIG_LOCALVERSION_AUTO, not the same version again and | ||
4 | # again, /boot and /lib/modules/ eventually fill up. | ||
5 | # Dumb script to purge that stuff: | ||
6 | |||
7 | for f in "$@" | ||
8 | do | ||
9 | if rpm -qf "/lib/modules/$f" >/dev/null; then | ||
10 | echo "keeping $f (installed from rpm)" | ||
11 | elif [ $(uname -r) = "$f" ]; then | ||
12 | echo "keeping $f (running kernel) " | ||
13 | else | ||
14 | echo "removing $f" | ||
15 | rm -f "/boot/initramfs-$f.img" "/boot/System.map-$f" | ||
16 | rm -f "/boot/vmlinuz-$f" "/boot/config-$f" | ||
17 | rm -rf "/lib/modules/$f" | ||
18 | new-kernel-pkg --remove $f | ||
19 | fi | ||
20 | done | ||