Commit 13fa692e authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull driver core fix from Greg KH:
 "Here is a single sysfs fix for 5.4-rc5.

  It resolves an error if you actually try to use the __BIN_ATTR_WO()
  macro, seems I never tested it properly before :(

  This has been in linux-next for a while with no reported issues"

* tag 'driver-core-5.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
  sysfs: Fixes __BIN_ATTR_WO() macro
parents a03885d5 82af5b66
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -196,9 +196,9 @@ struct bin_attribute {
	.size	= _size,						\
	.size	= _size,						\
}
}


#define __BIN_ATTR_WO(_name) {						\
#define __BIN_ATTR_WO(_name, _size) {					\
	.attr	= { .name = __stringify(_name), .mode = 0200 },		\
	.attr	= { .name = __stringify(_name), .mode = 0200 },		\
	.store	= _name##_store,					\
	.write	= _name##_write,					\
	.size	= _size,						\
	.size	= _size,						\
}
}