[obv] Add __nonnull_attribute__ to dwfl_module_getelf

Jan Kratochvil jan.kratochvil at redhat.com
Wed Oct 17 20:08:54 UTC 2012

Hi Roland,

I have checked in this patch, it seems obvious enough to me.


commit 50f413ee377f3e3987b89f9726ba493a2038e9a2
Author: Jan Kratochvil <jan.kratochvil at redhat.com>
Date:   Wed Oct 17 22:04:24 2012 +0200

    2012-10-17  Jan Kratochvil  <jan.kratochvil at redhat.com>
    	* libdwfl.h (dwfl_module_getelf): Add __nonnull_attribute__.
    Signed-off-by: Jan Kratochvil <jan.kratochvil at redhat.com>

diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog
index 189d3b7..638a096 100644
--- a/libdwfl/ChangeLog
+++ b/libdwfl/ChangeLog
@@ -1,3 +1,7 @@
+2012-10-17  Jan Kratochvil  <jan.kratochvil at redhat.com>
+	* libdwfl.h (dwfl_module_getelf): Add __nonnull_attribute__.
 2012-10-10  Jan Kratochvil  <jan.kratochvil at redhat.com>
 	* dwfl_segment_report_module.c (dwfl_segment_report_module):
diff --git a/libdwfl/libdwfl.h b/libdwfl/libdwfl.h
index 506a2a0..000d582 100644
--- a/libdwfl/libdwfl.h
+++ b/libdwfl/libdwfl.h
@@ -403,7 +403,8 @@ extern int dwfl_validate_address (Dwfl *dwfl,
    are found) for use with libelf.  If successful, fills in *BIAS
    with the difference between addresses within the loaded module
    and those in symbol tables or Dwarf information referring to it.  */
-extern Elf *dwfl_module_getelf (Dwfl_Module *, GElf_Addr *bias);
+extern Elf *dwfl_module_getelf (Dwfl_Module *, GElf_Addr *bias)
+  __nonnull_attribute__ (1, 2);
 /* Return the number of symbols in the module's symbol table,
    or -1 for errors.  */

More information about the elfutils-devel mailing list