lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 26 Mar 2010 20:38:35 +0100
From:	Henrik Kretzschmar <henne@...htwindheim.de>
To:	tglx@...utronix.de, apw@...onical.com, sam@...nborg.org
Cc:	linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
	dwalker@...o99.co, joe@...ches.com, dwalker@...o99.com,
	rusty@...tcorp.com.au, smaclennan@...atech.com, khali@...ux-fr.org,
	peterz@...radead.org, adobriyan@...il.com, mingo@...e.hu,
	Henrik Kretzschmar <henne@...htwindheim.de>
Subject: [PATCH] debugobjects: section mismatch cleanup

This patch marks two functions, which only get called at initialization,
as __init.

Here is also interesting, that modpost doesn't catch here the right function
name.

Also does this patch produce 2 false positives for checkpatch.pl.

WARNING: lib/built-in.o(.text+0x585f): Section mismatch in reference
from the function T.506() to the variable .init.data:obj
The function T.506() references
the variable __initdata obj.
This is often because T.506 lacks a __initdata
annotation or the annotation of obj is wrong.

Signed-off-by: Henrik Kretzschmar <henne@...htwindheim.de>
---
 lib/debugobjects.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/debugobjects.c b/lib/debugobjects.c
index a9a8996..c4ecd3c 100644
--- a/lib/debugobjects.c
+++ b/lib/debugobjects.c
@@ -773,7 +773,7 @@ static int __init fixup_free(void *addr, enum debug_obj_state state)
 	}
 }
 
-static int
+static int __init
 check_results(void *addr, enum debug_obj_state state, int fixups, int warnings)
 {
 	struct debug_bucket *db;
@@ -916,7 +916,7 @@ void __init debug_objects_early_init(void)
 /*
  * Convert the statically allocated objects to dynamic ones:
  */
-static int debug_objects_replace_static_objects(void)
+static int __init debug_objects_replace_static_objects(void)
 {
 	struct debug_bucket *db = obj_hash;
 	struct hlist_node *node, *tmp;
-- 
1.6.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ