From: kbuild test robot <fengguang.wu@intel.com>
To: Andrey Ryabinin <a.ryabinin@samsung.com>
Cc: kbuild-all@01.org, Johannes Weiner <hannes@cmpxchg.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [PATCH mmotm] x86_64: __asan_load2 can be static
Date: Wed, 4 Feb 2015 23:09:42 +0800 [thread overview]
Message-ID: <20150204150942.GA100965@lkp-sb04> (raw)
In-Reply-To: <201502042321.YTAJE4EN%fengguang.wu@intel.com>
mm/kasan/kasan.c:276:1: sparse: symbol '__asan_load2' was not declared. Should it be static?
mm/kasan/kasan.c:277:1: sparse: symbol '__asan_load4' was not declared. Should it be static?
mm/kasan/kasan.c:278:1: sparse: symbol '__asan_load8' was not declared. Should it be static?
mm/kasan/kasan.c:279:1: sparse: symbol '__asan_load16' was not declared. Should it be static?
mm/kasan/report.c:188:1: sparse: symbol '__asan_report_load1_noabort' was not declared. Should it be static?
mm/kasan/report.c:189:1: sparse: symbol '__asan_report_load2_noabort' was not declared. Should it be static?
mm/kasan/report.c:190:1: sparse: symbol '__asan_report_load4_noabort' was not declared. Should it be static?
mm/kasan/report.c:191:1: sparse: symbol '__asan_report_load8_noabort' was not declared. Should it be static?
mm/kasan/report.c:192:1: sparse: symbol '__asan_report_load16_noabort' was not declared. Should it be static?
mm/kasan/report.c:193:1: sparse: symbol '__asan_report_store1_noabort' was not declared. Should it be static?
mm/kasan/report.c:194:1: sparse: symbol '__asan_report_store2_noabort' was not declared. Should it be static?
mm/kasan/report.c:195:1: sparse: symbol '__asan_report_store4_noabort' was not declared. Should it be static?
mm/kasan/report.c:196:1: sparse: symbol '__asan_report_store8_noabort' was not declared. Should it be static?
mm/kasan/report.c:197:1: sparse: symbol '__asan_report_store16_noabort' was not declared. Should it be static?
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
kasan.c | 8 ++++----
report.c | 20 ++++++++++----------
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/mm/kasan/kasan.c b/mm/kasan/kasan.c
index def8110..6066986 100644
--- a/mm/kasan/kasan.c
+++ b/mm/kasan/kasan.c
@@ -273,10 +273,10 @@ static __always_inline void check_memory_region(unsigned long addr,
EXPORT_SYMBOL(__asan_store##size##_noabort)
DEFINE_ASAN_LOAD_STORE(1);
-DEFINE_ASAN_LOAD_STORE(2);
-DEFINE_ASAN_LOAD_STORE(4);
-DEFINE_ASAN_LOAD_STORE(8);
-DEFINE_ASAN_LOAD_STORE(16);
+static DEFINE_ASAN_LOAD_STORE(2);
+static DEFINE_ASAN_LOAD_STORE(4);
+static DEFINE_ASAN_LOAD_STORE(8);
+static DEFINE_ASAN_LOAD_STORE(16);
void __asan_loadN(unsigned long addr, size_t size)
{
diff --git a/mm/kasan/report.c b/mm/kasan/report.c
index 5835d69..be56573 100644
--- a/mm/kasan/report.c
+++ b/mm/kasan/report.c
@@ -185,16 +185,16 @@ void __asan_report_store##size##_noabort(unsigned long addr) \
} \
EXPORT_SYMBOL(__asan_report_store##size##_noabort)
-DEFINE_ASAN_REPORT_LOAD(1);
-DEFINE_ASAN_REPORT_LOAD(2);
-DEFINE_ASAN_REPORT_LOAD(4);
-DEFINE_ASAN_REPORT_LOAD(8);
-DEFINE_ASAN_REPORT_LOAD(16);
-DEFINE_ASAN_REPORT_STORE(1);
-DEFINE_ASAN_REPORT_STORE(2);
-DEFINE_ASAN_REPORT_STORE(4);
-DEFINE_ASAN_REPORT_STORE(8);
-DEFINE_ASAN_REPORT_STORE(16);
+static DEFINE_ASAN_REPORT_LOAD(1);
+static DEFINE_ASAN_REPORT_LOAD(2);
+static DEFINE_ASAN_REPORT_LOAD(4);
+static DEFINE_ASAN_REPORT_LOAD(8);
+static DEFINE_ASAN_REPORT_LOAD(16);
+static DEFINE_ASAN_REPORT_STORE(1);
+static DEFINE_ASAN_REPORT_STORE(2);
+static DEFINE_ASAN_REPORT_STORE(4);
+static DEFINE_ASAN_REPORT_STORE(8);
+static DEFINE_ASAN_REPORT_STORE(16);
void __asan_report_load_n_noabort(unsigned long addr, size_t size)
{
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2015-02-04 15:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-04 15:09 [mmotm:master 394/551] drivers/isdn/hardware/eicon/platform.h:333:18: warning: array subscript is above array bounds kbuild test robot
2015-02-04 15:09 ` kbuild test robot [this message]
2015-02-04 18:24 ` [PATCH mmotm] x86_64: __asan_load2 can be static Andrey Ryabinin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150204150942.GA100965@lkp-sb04 \
--to=fengguang.wu@intel.com \
--cc=a.ryabinin@samsung.com \
--cc=akpm@linux-foundation.org \
--cc=hannes@cmpxchg.org \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox