All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] backports: Avoid multiple definition of DEVICE_ATTR_RW for older kernels
@ 2014-05-26 14:15 Emmanuel Grumbach
  2014-05-28 15:35 ` backports: define of NL80211_FEATURE_SK_TX_STATUS in /backport-include/linux/nl80211.h Vu Hai NGUYEN
  2014-06-01 22:36 ` [PATCH] backports: Avoid multiple definition of DEVICE_ATTR_RW for older kernels Hauke Mehrtens
  0 siblings, 2 replies; 3+ messages in thread
From: Emmanuel Grumbach @ 2014-05-26 14:15 UTC (permalink / raw)
  To: backports; +Cc: Jonathan DE CESCO, Emmanuel Grumbach

From: Jonathan DE CESCO <jonathan.de.cesco@intel.com>

This definition may exists on non-vanilla kernels.

Change-Id: Ie72a291e7a5690d2509520a0440cca9926386a9c
Signed-off-by: Jonathan DE CESCO <jonathan.de.cesco@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
---
 backport/backport-include/linux/device.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/backport/backport-include/linux/device.h b/backport/backport-include/linux/device.h
index 3403896..e574d47 100644
--- a/backport/backport-include/linux/device.h
+++ b/backport/backport-include/linux/device.h
@@ -107,9 +107,11 @@ backport_device_release_driver(struct device *dev)
 #define DEVICE_ATTR_RO(_name) \
 struct device_attribute dev_attr_ ## _name = __ATTR_RO(_name);
 #endif
+#ifndef DEVICE_ATTR_RW
 #define DEVICE_ATTR_RW(_name) \
 struct device_attribute dev_attr_ ## _name = __ATTR_RW(_name)
 #endif
+#endif
 
 #define ATTRIBUTE_GROUPS_BACKPORT(_name) \
 static struct BP_ATTR_GRP_STRUCT _name##_dev_attrs[ARRAY_SIZE(_name##_attrs)];\
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-01 22:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-26 14:15 [PATCH] backports: Avoid multiple definition of DEVICE_ATTR_RW for older kernels Emmanuel Grumbach
2014-05-28 15:35 ` backports: define of NL80211_FEATURE_SK_TX_STATUS in /backport-include/linux/nl80211.h Vu Hai NGUYEN
2014-06-01 22:36 ` [PATCH] backports: Avoid multiple definition of DEVICE_ATTR_RW for older kernels Hauke Mehrtens

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.