Commit 1359798
string.h: un-fortify memcpy_and_pad
The way I'd implemented the new helper memcpy_and_pad with
__FORTIFY_INLINE caused compiler warnings for certain kernel
configurations.
This helper is only used in a single place at this time, and thus
doesn't benefit much from fortification. So simplify the code
by dropping fortification support for now.
Fixes: 01f33c3 "string.h: add memcpy_and_pad()"
Signed-off-by: Martin Wilck <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>1 parent 044a9df commit 1359798
1 file changed
+2
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
438 | | - | |
| 437 | + | |
| 438 | + | |
439 | 439 | | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | 440 | | |
452 | 441 | | |
453 | 442 | | |
| |||
0 commit comments