Skip to content

Commit

Permalink
tgupdate: merge t/DO-NOT-MERGE-mptcp-use-kmalloc-on-kasan-build base …
Browse files Browse the repository at this point in the history
…into t/DO-NOT-MERGE-mptcp-use-kmalloc-on-kasan-build
  • Loading branch information
matttbe committed Apr 5, 2023
2 parents 56d226b + 54f57b2 commit 09703c4
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 21 deletions.
4 changes: 4 additions & 0 deletions drivers/net/phy/meson-gxl.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ static struct phy_driver meson_gxl_phy[] = {
.read_status = lan87xx_read_status,
.config_intr = smsc_phy_config_intr,
.handle_interrupt = smsc_phy_handle_interrupt,

.get_tunable = smsc_phy_get_tunable,
.set_tunable = smsc_phy_set_tunable,

.suspend = genphy_suspend,
.resume = genphy_resume,
.read_mmd = genphy_read_mmd_unsupported,
Expand Down
33 changes: 18 additions & 15 deletions include/trace/events/qrtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@

TRACE_EVENT(qrtr_ns_service_announce_new,

TP_PROTO(__le32 service, __le32 instance, __le32 node, __le32 port),
TP_PROTO(unsigned int service, unsigned int instance,
unsigned int node, unsigned int port),

TP_ARGS(service, instance, node, port),

TP_STRUCT__entry(
__field(__le32, service)
__field(__le32, instance)
__field(__le32, node)
__field(__le32, port)
__field(unsigned int, service)
__field(unsigned int, instance)
__field(unsigned int, node)
__field(unsigned int, port)
),

TP_fast_assign(
Expand All @@ -36,15 +37,16 @@ TRACE_EVENT(qrtr_ns_service_announce_new,

TRACE_EVENT(qrtr_ns_service_announce_del,

TP_PROTO(__le32 service, __le32 instance, __le32 node, __le32 port),
TP_PROTO(unsigned int service, unsigned int instance,
unsigned int node, unsigned int port),

TP_ARGS(service, instance, node, port),

TP_STRUCT__entry(
__field(__le32, service)
__field(__le32, instance)
__field(__le32, node)
__field(__le32, port)
__field(unsigned int, service)
__field(unsigned int, instance)
__field(unsigned int, node)
__field(unsigned int, port)
),

TP_fast_assign(
Expand All @@ -62,15 +64,16 @@ TRACE_EVENT(qrtr_ns_service_announce_del,

TRACE_EVENT(qrtr_ns_server_add,

TP_PROTO(__le32 service, __le32 instance, __le32 node, __le32 port),
TP_PROTO(unsigned int service, unsigned int instance,
unsigned int node, unsigned int port),

TP_ARGS(service, instance, node, port),

TP_STRUCT__entry(
__field(__le32, service)
__field(__le32, instance)
__field(__le32, node)
__field(__le32, port)
__field(unsigned int, service)
__field(unsigned int, instance)
__field(unsigned int, node)
__field(unsigned int, port)
),

TP_fast_assign(
Expand Down
4 changes: 2 additions & 2 deletions net/vmw_vsock/af_vsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -2043,7 +2043,7 @@ static int __vsock_stream_recvmsg(struct sock *sk, struct msghdr *msg,

read = transport->stream_dequeue(vsk, msg, len - copied, flags);
if (read < 0) {
err = -ENOMEM;
err = read;
break;
}

Expand Down Expand Up @@ -2094,7 +2094,7 @@ static int __vsock_seqpacket_recvmsg(struct sock *sk, struct msghdr *msg,
msg_len = transport->seqpacket_dequeue(vsk, msg, flags);

if (msg_len < 0) {
err = -ENOMEM;
err = msg_len;
goto out;
}

Expand Down
11 changes: 9 additions & 2 deletions net/vmw_vsock/vmci_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1831,10 +1831,17 @@ static ssize_t vmci_transport_stream_dequeue(
size_t len,
int flags)
{
ssize_t err;

if (flags & MSG_PEEK)
return vmci_qpair_peekv(vmci_trans(vsk)->qpair, msg, len, 0);
err = vmci_qpair_peekv(vmci_trans(vsk)->qpair, msg, len, 0);
else
return vmci_qpair_dequev(vmci_trans(vsk)->qpair, msg, len, 0);
err = vmci_qpair_dequev(vmci_trans(vsk)->qpair, msg, len, 0);

if (err < 0)
err = -ENOMEM;

return err;
}

static ssize_t vmci_transport_stream_enqueue(
Expand Down
4 changes: 2 additions & 2 deletions tools/testing/vsock/vsock_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ static void test_seqpacket_invalid_rec_buffer_server(const struct test_opts *opt
exit(EXIT_FAILURE);
}

if (errno != ENOMEM) {
if (errno != EFAULT) {
perror("unexpected errno of 'broken_buf'");
exit(EXIT_FAILURE);
}
Expand Down Expand Up @@ -887,7 +887,7 @@ static void test_inv_buf_client(const struct test_opts *opts, bool stream)
exit(EXIT_FAILURE);
}

if (errno != ENOMEM) {
if (errno != EFAULT) {
fprintf(stderr, "unexpected recv(2) errno %d\n", errno);
exit(EXIT_FAILURE);
}
Expand Down

0 comments on commit 09703c4

Please sign in to comment.