diff options
author | David S. Miller <davem@davemloft.net> | 2012-05-24 16:12:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-24 16:12:28 -0400 |
commit | 2922585b93294d47172a765115e0dbc1bfe1be19 (patch) | |
tree | acb4436987d24b2a3fb3cef02097eefbc4762bbf /lib/Makefile | |
parent | 446969084d33a4064a39d280806da642c54ba4ac (diff) |
lib: Sparc's strncpy_from_user is generic enough, move under lib/
To use this, an architecture simply needs to:
1) Provide a user_addr_max() implementation via asm/uaccess.h
2) Add "select GENERIC_STRNCPY_FROM_USER" to their arch Kcnfig
3) Remove the existing strncpy_from_user() implementation and symbol
exports their architecture had.
Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'lib/Makefile')
-rw-r--r-- | lib/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile index 18515f0267c4..57538b4d01d2 100644 --- a/lib/Makefile +++ b/lib/Makefile | |||
@@ -123,6 +123,8 @@ obj-$(CONFIG_SIGNATURE) += digsig.o | |||
123 | 123 | ||
124 | obj-$(CONFIG_CLZ_TAB) += clz_tab.o | 124 | obj-$(CONFIG_CLZ_TAB) += clz_tab.o |
125 | 125 | ||
126 | obj-$(CONFIG_GENERIC_STRNCPY_FROM_USER) += strncpy_from_user.o | ||
127 | |||
126 | hostprogs-y := gen_crc32table | 128 | hostprogs-y := gen_crc32table |
127 | clean-files := crc32table.h | 129 | clean-files := crc32table.h |
128 | 130 | ||