From: Cao jin <caoj.fnst@cn.fujitsu.com>
To: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: arnd@arndb.de, tj@kernel.org, cl@linux.com
Subject: [PATCH] percpu: drop useless macro PER_CPU_DEF_ATTRIBUTES
Date: Tue, 28 Mar 2017 16:35:07 +0800 [thread overview]
Message-ID: <1490690107-30009-1-git-send-email-caoj.fnst@cn.fujitsu.com> (raw)
Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
---
include/asm-generic/percpu.h | 4 ----
include/linux/percpu-defs.h | 4 ++--
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/include/asm-generic/percpu.h b/include/asm-generic/percpu.h
index 0504ef8..be90c3d 100644
--- a/include/asm-generic/percpu.h
+++ b/include/asm-generic/percpu.h
@@ -61,10 +61,6 @@ extern void setup_per_cpu_areas(void);
#define PER_CPU_ATTRIBUTES
#endif
-#ifndef PER_CPU_DEF_ATTRIBUTES
-#define PER_CPU_DEF_ATTRIBUTES
-#endif
-
#define raw_cpu_generic_read(pcp) \
({ \
*raw_cpu_ptr(&(pcp)); \
diff --git a/include/linux/percpu-defs.h b/include/linux/percpu-defs.h
index 8f16299..c05cc4d 100644
--- a/include/linux/percpu-defs.h
+++ b/include/linux/percpu-defs.h
@@ -91,7 +91,7 @@
extern __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \
__PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \
extern __PCPU_ATTRS(sec) __typeof__(type) name; \
- __PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES __weak \
+ __PCPU_ATTRS(sec) __weak \
__typeof__(type) name
#else
/*
@@ -101,7 +101,7 @@
extern __PCPU_ATTRS(sec) __typeof__(type) name
#define DEFINE_PER_CPU_SECTION(type, name, sec) \
- __PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES \
+ __PCPU_ATTRS(sec) \
__typeof__(type) name
#endif
--
2.1.0
next reply other threads:[~2017-03-28 8:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-28 8:35 Cao jin [this message]
2017-03-28 16:00 ` [PATCH] percpu: drop useless macro PER_CPU_DEF_ATTRIBUTES Tejun Heo
2017-03-29 2:38 ` Cao jin
2017-03-29 15:28 ` Tejun Heo
2017-03-29 15:28 ` Tejun Heo
2017-03-30 3:34 ` Cao jin
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=1490690107-30009-1-git-send-email-caoj.fnst@cn.fujitsu.com \
--to=caoj.fnst@cn.fujitsu.com \
--cc=arnd@arndb.de \
--cc=cl@linux.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.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;
as well as URLs for NNTP newsgroup(s).