diff options
| author | David S. Miller <davem@davemloft.net> | 2019-06-17 18:48:13 -0800 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-06-17 19:20:36 -0800 |
| commit | 13091aa30535b719e269f20a7bc34002bf5afae5 (patch) | |
| tree | bd17956c3ce606a119fadbd43bfa1c0c10006984 /samples | |
| parent | f97252a8c33f0e02f4ffbf61dc94cd38164007bc (diff) | |
| parent | 29f785ff76b65696800b75c3d8e0b58e603bb1d0 (diff) | |
| download | linux-stable-13091aa30535b719e269f20a7bc34002bf5afae5.tar.gz linux-stable-13091aa30535b719e269f20a7bc34002bf5afae5.tar.bz2 linux-stable-13091aa30535b719e269f20a7bc34002bf5afae5.tar.xz linux-stable-13091aa30535b719e269f20a7bc34002bf5afae5.zip | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Honestly all the conflicts were simple overlapping changes,
nothing really interesting to report.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')
| -rw-r--r-- | samples/bpf/bpf_load.c | 2 | ||||
| -rw-r--r-- | samples/bpf/task_fd_query_user.c | 2 | ||||
| -rw-r--r-- | samples/bpf/xdp_redirect_map_user.c | 10 | ||||
| -rw-r--r-- | samples/bpf/xdp_redirect_user.c | 10 | ||||
| -rwxr-xr-x | samples/mic/mpssd/micctrl | 13 | ||||
| -rwxr-xr-x | samples/mic/mpssd/mpss | 13 | ||||
| -rw-r--r-- | samples/mic/mpssd/mpssd.c | 13 | ||||
| -rw-r--r-- | samples/mic/mpssd/mpssd.h | 13 | ||||
| -rw-r--r-- | samples/mic/mpssd/sysfs.c | 13 | ||||
| -rw-r--r-- | samples/rpmsg/rpmsg_client_sample.c | 10 |
10 files changed, 10 insertions, 89 deletions
diff --git a/samples/bpf/bpf_load.c b/samples/bpf/bpf_load.c index 1734ade04f7f..4574b1939e49 100644 --- a/samples/bpf/bpf_load.c +++ b/samples/bpf/bpf_load.c | |||
| @@ -678,7 +678,7 @@ void read_trace_pipe(void) | |||
| 678 | static char buf[4096]; | 678 | static char buf[4096]; |
| 679 | ssize_t sz; | 679 | ssize_t sz; |
| 680 | 680 | ||
| 681 | sz = read(trace_fd, buf, sizeof(buf)); | 681 | sz = read(trace_fd, buf, sizeof(buf) - 1); |
| 682 | if (sz > 0) { | 682 | if (sz > 0) { |
| 683 | buf[sz] = 0; | 683 | buf[sz] = 0; |
| 684 | puts(buf); | 684 | puts(buf); |
diff --git a/samples/bpf/task_fd_query_user.c b/samples/bpf/task_fd_query_user.c index aff2b4ae914e..e39938058223 100644 --- a/samples/bpf/task_fd_query_user.c +++ b/samples/bpf/task_fd_query_user.c | |||
| @@ -216,7 +216,7 @@ static int test_debug_fs_uprobe(char *binary_path, long offset, bool is_return) | |||
| 216 | { | 216 | { |
| 217 | const char *event_type = "uprobe"; | 217 | const char *event_type = "uprobe"; |
| 218 | struct perf_event_attr attr = {}; | 218 | struct perf_event_attr attr = {}; |
| 219 | char buf[256], event_alias[256]; | 219 | char buf[256], event_alias[sizeof("test_1234567890")]; |
| 220 | __u64 probe_offset, probe_addr; | 220 | __u64 probe_offset, probe_addr; |
| 221 | __u32 len, prog_id, fd_type; | 221 | __u32 len, prog_id, fd_type; |
| 222 | int err, res, kfd, efd; | 222 | int err, res, kfd, efd; |
diff --git a/samples/bpf/xdp_redirect_map_user.c b/samples/bpf/xdp_redirect_map_user.c index 1dbe7fd3a1a8..be317f5f058f 100644 --- a/samples/bpf/xdp_redirect_map_user.c +++ b/samples/bpf/xdp_redirect_map_user.c | |||
| @@ -1,13 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (c) 2017 Covalent IO, Inc. http://covalent.io | 2 | /* Copyright (c) 2017 Covalent IO, Inc. http://covalent.io |
| 2 | * | ||
| 3 | * This program is free software; you can redistribute it and/or | ||
| 4 | * modify it under the terms of version 2 of the GNU General Public | ||
| 5 | * License as published by the Free Software Foundation. | ||
| 6 | * | ||
| 7 | * This program is distributed in the hope that it will be useful, but | ||
| 8 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 10 | * General Public License for more details. | ||
| 11 | */ | 3 | */ |
| 12 | #include <linux/bpf.h> | 4 | #include <linux/bpf.h> |
| 13 | #include <linux/if_link.h> | 5 | #include <linux/if_link.h> |
diff --git a/samples/bpf/xdp_redirect_user.c b/samples/bpf/xdp_redirect_user.c index e9054c0269ff..09747bee6668 100644 --- a/samples/bpf/xdp_redirect_user.c +++ b/samples/bpf/xdp_redirect_user.c | |||
| @@ -1,13 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (c) 2016 John Fastabend <john.r.fastabend@intel.com> | 2 | /* Copyright (c) 2016 John Fastabend <john.r.fastabend@intel.com> |
| 2 | * | ||
| 3 | * This program is free software; you can redistribute it and/or | ||
| 4 | * modify it under the terms of version 2 of the GNU General Public | ||
| 5 | * License as published by the Free Software Foundation. | ||
| 6 | * | ||
| 7 | * This program is distributed in the hope that it will be useful, but | ||
| 8 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 10 | * General Public License for more details. | ||
| 11 | */ | 3 | */ |
| 12 | #include <linux/bpf.h> | 4 | #include <linux/bpf.h> |
| 13 | #include <linux/if_link.h> | 5 | #include <linux/if_link.h> |
diff --git a/samples/mic/mpssd/micctrl b/samples/mic/mpssd/micctrl index 8f2629b41c5f..030a60b04046 100755 --- a/samples/mic/mpssd/micctrl +++ b/samples/mic/mpssd/micctrl | |||
| @@ -1,20 +1,9 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 2 | # Intel MIC Platform Software Stack (MPSS) | 3 | # Intel MIC Platform Software Stack (MPSS) |
| 3 | # | 4 | # |
| 4 | # Copyright(c) 2013 Intel Corporation. | 5 | # Copyright(c) 2013 Intel Corporation. |
| 5 | # | 6 | # |
| 6 | # This program is free software; you can redistribute it and/or modify | ||
| 7 | # it under the terms of the GNU General Public License, version 2, as | ||
| 8 | # published by the Free Software Foundation. | ||
| 9 | # | ||
| 10 | # This program is distributed in the hope that it will be useful, but | ||
| 11 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 13 | # General Public License for more details. | ||
| 14 | # | ||
| 15 | # The full GNU General Public License is included in this distribution in | ||
| 16 | # the file called "COPYING". | ||
| 17 | # | ||
| 18 | # Intel MIC User Space Tools. | 7 | # Intel MIC User Space Tools. |
| 19 | # | 8 | # |
| 20 | # micctrl - Controls MIC boot/start/stop. | 9 | # micctrl - Controls MIC boot/start/stop. |
diff --git a/samples/mic/mpssd/mpss b/samples/mic/mpssd/mpss index 5fcf9fa4b082..248ac7313c71 100755 --- a/samples/mic/mpssd/mpss +++ b/samples/mic/mpssd/mpss | |||
| @@ -1,20 +1,9 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 2 | # Intel MIC Platform Software Stack (MPSS) | 3 | # Intel MIC Platform Software Stack (MPSS) |
| 3 | # | 4 | # |
| 4 | # Copyright(c) 2013 Intel Corporation. | 5 | # Copyright(c) 2013 Intel Corporation. |
| 5 | # | 6 | # |
| 6 | # This program is free software; you can redistribute it and/or modify | ||
| 7 | # it under the terms of the GNU General Public License, version 2, as | ||
| 8 | # published by the Free Software Foundation. | ||
| 9 | # | ||
| 10 | # This program is distributed in the hope that it will be useful, but | ||
| 11 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 13 | # General Public License for more details. | ||
| 14 | # | ||
| 15 | # The full GNU General Public License is included in this distribution in | ||
| 16 | # the file called "COPYING". | ||
| 17 | # | ||
| 18 | # Intel MIC User Space Tools. | 7 | # Intel MIC User Space Tools. |
| 19 | # | 8 | # |
| 20 | # mpss Start mpssd. | 9 | # mpss Start mpssd. |
diff --git a/samples/mic/mpssd/mpssd.c b/samples/mic/mpssd/mpssd.c index f42ce551bb48..a11bf6c5b53b 100644 --- a/samples/mic/mpssd/mpssd.c +++ b/samples/mic/mpssd/mpssd.c | |||
| @@ -1,20 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Intel MIC Platform Software Stack (MPSS) | 3 | * Intel MIC Platform Software Stack (MPSS) |
| 3 | * | 4 | * |
| 4 | * Copyright(c) 2013 Intel Corporation. | 5 | * Copyright(c) 2013 Intel Corporation. |
| 5 | * | 6 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License, version 2, as | ||
| 8 | * published by the Free Software Foundation. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, but | ||
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 13 | * General Public License for more details. | ||
| 14 | * | ||
| 15 | * The full GNU General Public License is included in this distribution in | ||
| 16 | * the file called "COPYING". | ||
| 17 | * | ||
| 18 | * Intel MIC User Space Tools. | 7 | * Intel MIC User Space Tools. |
| 19 | */ | 8 | */ |
| 20 | 9 | ||
diff --git a/samples/mic/mpssd/mpssd.h b/samples/mic/mpssd/mpssd.h index 82d3b519f0e7..5f98bdafe653 100644 --- a/samples/mic/mpssd/mpssd.h +++ b/samples/mic/mpssd/mpssd.h | |||
| @@ -1,20 +1,9 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * Intel MIC Platform Software Stack (MPSS) | 3 | * Intel MIC Platform Software Stack (MPSS) |
| 3 | * | 4 | * |
| 4 | * Copyright(c) 2013 Intel Corporation. | 5 | * Copyright(c) 2013 Intel Corporation. |
| 5 | * | 6 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License, version 2, as | ||
| 8 | * published by the Free Software Foundation. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, but | ||
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 13 | * General Public License for more details. | ||
| 14 | * | ||
| 15 | * The full GNU General Public License is included in this distribution in | ||
| 16 | * the file called "COPYING". | ||
| 17 | * | ||
| 18 | * Intel MIC User Space Tools. | 7 | * Intel MIC User Space Tools. |
| 19 | */ | 8 | */ |
| 20 | #ifndef _MPSSD_H_ | 9 | #ifndef _MPSSD_H_ |
diff --git a/samples/mic/mpssd/sysfs.c b/samples/mic/mpssd/sysfs.c index 8dd326936083..3fb08eb7ed9d 100644 --- a/samples/mic/mpssd/sysfs.c +++ b/samples/mic/mpssd/sysfs.c | |||
| @@ -1,20 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Intel MIC Platform Software Stack (MPSS) | 3 | * Intel MIC Platform Software Stack (MPSS) |
| 3 | * | 4 | * |
| 4 | * Copyright(c) 2013 Intel Corporation. | 5 | * Copyright(c) 2013 Intel Corporation. |
| 5 | * | 6 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License, version 2, as | ||
| 8 | * published by the Free Software Foundation. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, but | ||
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 13 | * General Public License for more details. | ||
| 14 | * | ||
| 15 | * The full GNU General Public License is included in this distribution in | ||
| 16 | * the file called "COPYING". | ||
| 17 | * | ||
| 18 | * Intel MIC User Space Tools. | 7 | * Intel MIC User Space Tools. |
| 19 | */ | 8 | */ |
| 20 | 9 | ||
diff --git a/samples/rpmsg/rpmsg_client_sample.c b/samples/rpmsg/rpmsg_client_sample.c index f161dfd3e70a..2a0695573b47 100644 --- a/samples/rpmsg/rpmsg_client_sample.c +++ b/samples/rpmsg/rpmsg_client_sample.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Remote processor messaging - sample client driver | 3 | * Remote processor messaging - sample client driver |
| 3 | * | 4 | * |
| @@ -6,15 +7,6 @@ | |||
| 6 | * | 7 | * |
| 7 | * Ohad Ben-Cohen <ohad@wizery.com> | 8 | * Ohad Ben-Cohen <ohad@wizery.com> |
| 8 | * Brian Swetland <swetland@google.com> | 9 | * Brian Swetland <swetland@google.com> |
| 9 | * | ||
| 10 | * This software is licensed under the terms of the GNU General Public | ||
| 11 | * License version 2, as published by the Free Software Foundation, and | ||
| 12 | * may be copied, distributed, and modified under those terms. | ||
| 13 | * | ||
| 14 | * This program is distributed in the hope that it will be useful, | ||
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | * GNU General Public License for more details. | ||
| 18 | */ | 10 | */ |
| 19 | 11 | ||
| 20 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
