Merge tag 'uninit-macro-v5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull uninitialized_var() macro removal from Kees Cook: "This is long overdue, and has hidden too many bugs over the years. The series has several "by hand" fixes, and then a trivial treewide replacement. - Clean up non-trivial uses of uninitialized_var() - Update documentation and checkpatch for uninitialized_var() removal - Treewide removal of uninitialized_var()" * tag 'uninit-macro-v5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: compiler: Remove uninitialized_var() macro treewide: Remove uninitialized_var() usage checkpatch: Remove awareness of uninitialized_var() macro mm/debug_vm_pgtable: Remove uninitialized_var() usage f2fs: Eliminate usage of uninitialized_var() macro media: sur40: Remove uninitialized_var() usage KVM: PPC: Book3S PR: Remove uninitialized_var() usage clk: spear: Remove uninitialized_var() usage clk: st: Remove uninitialized_var() usage spi: davinci: Remove uninitialized_var() usage ide: Remove uninitialized_var() usage rtlwifi: rtl8192cu: Remove uninitialized_var() usage b43: Remove uninitialized_var() usage drbd: Remove uninitialized_var() usage x86/mm/numa: Remove uninitialized_var() usage docs: deprecated.rst: Add uninitialized_var()
这个提交包含在:
@@ -564,7 +564,7 @@ static int svc_udp_sendto(struct svc_rqst *rqstp)
|
||||
.msg_control = cmh,
|
||||
.msg_controllen = sizeof(buffer),
|
||||
};
|
||||
unsigned int uninitialized_var(sent);
|
||||
unsigned int sent;
|
||||
int err;
|
||||
|
||||
svc_udp_release_rqst(rqstp);
|
||||
@@ -1081,7 +1081,7 @@ static int svc_tcp_sendto(struct svc_rqst *rqstp)
|
||||
struct msghdr msg = {
|
||||
.msg_flags = 0,
|
||||
};
|
||||
unsigned int uninitialized_var(sent);
|
||||
unsigned int sent;
|
||||
int err;
|
||||
|
||||
svc_tcp_release_rqst(rqstp);
|
||||
|
@@ -496,8 +496,8 @@ xs_read_stream_request(struct sock_xprt *transport, struct msghdr *msg,
|
||||
int flags, struct rpc_rqst *req)
|
||||
{
|
||||
struct xdr_buf *buf = &req->rq_private_buf;
|
||||
size_t want, uninitialized_var(read);
|
||||
ssize_t uninitialized_var(ret);
|
||||
size_t want, read;
|
||||
ssize_t ret;
|
||||
|
||||
xs_read_header(transport, buf);
|
||||
|
||||
@@ -844,7 +844,7 @@ static int xs_local_send_request(struct rpc_rqst *req)
|
||||
struct msghdr msg = {
|
||||
.msg_flags = XS_SENDMSG_FLAGS,
|
||||
};
|
||||
unsigned int uninitialized_var(sent);
|
||||
unsigned int sent;
|
||||
int status;
|
||||
|
||||
/* Close the stream if the previous transmission was incomplete */
|
||||
@@ -915,7 +915,7 @@ static int xs_udp_send_request(struct rpc_rqst *req)
|
||||
.msg_namelen = xprt->addrlen,
|
||||
.msg_flags = XS_SENDMSG_FLAGS,
|
||||
};
|
||||
unsigned int uninitialized_var(sent);
|
||||
unsigned int sent;
|
||||
int status;
|
||||
|
||||
xs_pktdump("packet data:",
|
||||
@@ -999,7 +999,7 @@ static int xs_tcp_send_request(struct rpc_rqst *req)
|
||||
.msg_flags = XS_SENDMSG_FLAGS,
|
||||
};
|
||||
bool vm_wait = false;
|
||||
unsigned int uninitialized_var(sent);
|
||||
unsigned int sent;
|
||||
int status;
|
||||
|
||||
/* Close the stream if the previous transmission was incomplete */
|
||||
|
在新工单中引用
屏蔽一个用户