Page MenuHomeFreeBSD

linuxkpi: Add some memset functions
ClosedPublic

Authored by manu on Jul 26 2022, 9:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 27, 5:07 AM
Unknown Object (File)
Sat, Oct 26, 1:27 AM
Unknown Object (File)
Sep 23 2024, 8:59 PM
Unknown Object (File)
Sep 22 2024, 9:16 PM
Unknown Object (File)
Sep 20 2024, 4:01 PM
Unknown Object (File)
Sep 16 2024, 9:12 PM
Unknown Object (File)
Sep 16 2024, 10:56 AM
Unknown Object (File)
Sep 8 2024, 1:24 PM

Details

Summary

Needed by drm-kmod
Obtained from: OpenBSD
Sponsored by: Beckhoff Automation GmbH & Co. KG

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46591
Build 43480: arc lint + arc unit

Event Timeline

manu requested review of this revision.Jul 26 2022, 9:32 AM
hselasky added inline comments.
sys/compat/linuxkpi/common/include/linux/string.h
223

Please make a new loop here:

void **dst = p;

while (n--)
*dst++ = v;

return (p);

Switch memset32/memset64 (badly copy/pasted)

sys/compat/linuxkpi/common/include/linux/string.h
223

Why ?

sys/compat/linuxkpi/common/include/linux/string.h
223

I might imagine cheribsd wants to use this one day and there sizeof(void *) == 16 bytes .

Apart from the #inlcude I am fine with this.

sys/compat/linuxkpi/common/include/linux/string.h
41

#include <linux/bitops.h> /* for BITS_PER_LONG */

This revision was not accepted when it landed; it landed in state Needs Review.Aug 8 2022, 2:06 PM
This revision was automatically updated to reflect the committed changes.