While I'm here, move stack variables near their usage.
Details
Details
- Reviewers
howard0su_gmail.com honzhan_microsoft.com decui_microsoft.com delphij royger adrian - Group Reviewers
network - Commits
- rS294701: hyperv/hn: Use m_copydata for chimney sending.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c | ||
---|---|---|
947 โ | (On Diff #12412) | why uint8*? the last parameter is caddr_t m_copydata(const struct mbuf *mbuf, int offset, int len, caddr_t buf); |
sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c | ||
---|---|---|
947 โ | (On Diff #12412) | caddr_t is char *, I generally like to use uint8_t * for byte array, instead of char *. I don't think we have -Wpointer-sign in kernel compiling cc flags, so uint8_t * has same effect as char */caddr_t for m_copydata() |