misc: cs40l25: don't reimplement strscpy_pad() (v6.9 compatibility)
Linux commit [1] has made strscpy_pad() a macro. This causes
compilation of this file to fail:
.../cs40l25/cs40l2x.c:278:9: error: expected identifier or '('
278 | ssize_t strscpy_pad(char *dest, const char *src, size_t count)
| ^
.../common/include/linux/string.h:142:2: note: expanded from macro 'strscpy_pad'
142 | CONCATENATE(__strscpy_pad, COUNT_ARGS(__VA_ARGS__))(dst, src, __VA_ARGS__)
| ^
We don't need to reimplement this symbol here, let's just use the
version provided by the kernel.
Link: [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f478898e0aa7
("string: Redefine strscpy_pad() as a macro")
Bug: 333505652
Test: TH
Change-Id: I348f912157b380b6a6a402082a4142bd7115d085
Signed-off-by: André Draszik <[email protected]>
Signed-off-by: Will McVicker <[email protected]>
1 file changed