+ gcov-clang-support-fix.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: gcov: fix when CONFIG_MODULES is not set
has been added to the -mm tree.  Its filename is
     gcov-clang-support-fix.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/gcov-clang-support-fix.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/gcov-clang-support-fix.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Tri Vo <trong@xxxxxxxxxxx>
Subject: gcov: fix when CONFIG_MODULES is not set

   kernel/gcov/gcc_4_7.c: In function 'gcov_info_within_module':
> > kernel/gcov/gcc_4_7.c:162:9: error: implicit declaration of function \
> > 'within_module'; did you mean 'init_module'? \
> > [-Werror=implicit-function-declaration]
     return within_module((unsigned long)info, mod);
            ^~~~~~~~~~~~~
            init_module

Link: http://lkml.kernel.org/r/20190402030956.48166-1-trong@xxxxxxxxxxx
Link: https://marc.info/?l=linux-mm&m=155384681109231&w=2
Fixes: 8c3d220cb6b5 ("gcov: clang support")
Signed-off-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>
Signed-off-by: Tri Vo <trong@xxxxxxxxxxx>
Reported-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Reported-by: kbuild test robot <lkp@xxxxxxxxx>
Cc: Greg Hackmann <ghackmann@xxxxxxxxxxx>
Cc: Peter Oberparleiter <oberpar@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/gcov/clang.c   |    4 ++++
 kernel/gcov/gcc_3_4.c |    4 ++++
 kernel/gcov/gcc_4_7.c |    4 ++++
 3 files changed, 12 insertions(+)

--- a/kernel/gcov/clang.c~gcov-clang-support-fix
+++ a/kernel/gcov/clang.c
@@ -223,7 +223,11 @@ void gcov_info_unlink(struct gcov_info *
  */
 bool gcov_info_within_module(struct gcov_info *info, struct module *mod)
 {
+#ifdef CONFIG_MODULES
 	return within_module((unsigned long)info->filename, mod);
+#else
+	return false;
+#endif
 }
 
 /* Symbolic links to be created for each profiling data file. */
--- a/kernel/gcov/gcc_3_4.c~gcov-clang-support-fix
+++ a/kernel/gcov/gcc_3_4.c
@@ -146,7 +146,11 @@ void gcov_info_unlink(struct gcov_info *
  */
 bool gcov_info_within_module(struct gcov_info *info, struct module *mod)
 {
+#ifdef CONFIG_MODULES
 	return within_module((unsigned long)info, mod);
+#else
+	return false;
+#endif
 }
 
 /* Symbolic links to be created for each profiling data file. */
--- a/kernel/gcov/gcc_4_7.c~gcov-clang-support-fix
+++ a/kernel/gcov/gcc_4_7.c
@@ -159,7 +159,11 @@ void gcov_info_unlink(struct gcov_info *
  */
 bool gcov_info_within_module(struct gcov_info *info, struct module *mod)
 {
+#ifdef CONFIG_MODULES
 	return within_module((unsigned long)info, mod);
+#else
+	return false;
+#endif
 }
 
 /* Symbolic links to be created for each profiling data file. */
_

Patches currently in -mm which might be from trong@xxxxxxxxxxx are

gcov-clang-support-fix.patch
gcov-docs-add-a-note-on-gcc-vs-clang-differences.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux