lkml.org 
[lkml]   [2013]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] extable: Flip the sorting message
On 04/15/2013 03:51 AM, Borislav Petkov wrote:
> From: Borislav Petkov <bp@suse.de>
>
> Now that we do sort the __extable at build time, we actually are
> interested only in the case where we still do need to sort it.
>
> Signed-off-by: Borislav Petkov <bp@suse.de>
> Cc: David Daney <david.daney@cavium.com>
> ---
> kernel/extable.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/kernel/extable.c b/kernel/extable.c
> index fe35a634bf76..67460b93b1a1 100644
> --- a/kernel/extable.c
> +++ b/kernel/extable.c
> @@ -41,10 +41,10 @@ u32 __initdata main_extable_sort_needed = 1;
> /* Sort the kernel's built-in exception table */
> void __init sort_main_extable(void)
> {
> - if (main_extable_sort_needed)
> + if (main_extable_sort_needed) {
> + pr_notice("Sorting __ex_table...\n");
> sort_extable(__start___ex_table, __stop___ex_table);
> - else
> - pr_notice("__ex_table already sorted, skipping sort\n");
> + }
> }
>

On some architectures we sort at runtime, on others we sort at build time.

Is there any reason for a message at all here?

-hpa




\
 
 \ /
  Last update: 2013-04-26 00:21    [W:0.082 / U:1.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site