diff options
| author | David S. Miller <davem@davemloft.net> | 2019-06-07 10:00:14 -0800 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-06-07 10:00:14 -0800 |
| commit | a6cdeeb16bff89c8486324f53577db058cbe81ba (patch) | |
| tree | de2d38e10f5768bdf1d2902112a4803d0ae767f3 /samples | |
| parent | 96524ea4be04683bb3ad8ebaedcbe3a6e34302de (diff) | |
| parent | 1e1d926369545ea09c98c6c7f5d109aa4ee0cd0b (diff) | |
| download | linux-stable-a6cdeeb16bff89c8486324f53577db058cbe81ba.tar.gz linux-stable-a6cdeeb16bff89c8486324f53577db058cbe81ba.tar.bz2 linux-stable-a6cdeeb16bff89c8486324f53577db058cbe81ba.tar.xz linux-stable-a6cdeeb16bff89c8486324f53577db058cbe81ba.zip | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Some ISDN files that got removed in net-next had some changes
done in mainline, take the removals.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')
25 files changed, 28 insertions, 138 deletions
diff --git a/samples/bpf/lathist_user.c b/samples/bpf/lathist_user.c index c8e88cc84e61..2ff2839a52d5 100644 --- a/samples/bpf/lathist_user.c +++ b/samples/bpf/lathist_user.c | |||
| @@ -1,9 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (c) 2013-2015 PLUMgrid, http://plumgrid.com | 2 | /* Copyright (c) 2013-2015 PLUMgrid, http://plumgrid.com |
| 2 | * Copyright (c) 2015 BMW Car IT GmbH | 3 | * Copyright (c) 2015 BMW Car IT GmbH |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | */ | 4 | */ |
| 8 | #include <stdio.h> | 5 | #include <stdio.h> |
| 9 | #include <unistd.h> | 6 | #include <unistd.h> |
diff --git a/samples/bpf/map_perf_test_user.c b/samples/bpf/map_perf_test_user.c index 38b7b1a96cc2..fe5564bff39b 100644 --- a/samples/bpf/map_perf_test_user.c +++ b/samples/bpf/map_perf_test_user.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (c) 2016 Facebook | 2 | /* Copyright (c) 2016 Facebook |
| 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 | */ | 3 | */ |
| 7 | #define _GNU_SOURCE | 4 | #define _GNU_SOURCE |
| 8 | #include <sched.h> | 5 | #include <sched.h> |
diff --git a/samples/bpf/offwaketime_user.c b/samples/bpf/offwaketime_user.c index bb315ce1b866..fc8767d001f6 100644 --- a/samples/bpf/offwaketime_user.c +++ b/samples/bpf/offwaketime_user.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (c) 2016 Facebook | 2 | /* Copyright (c) 2016 Facebook |
| 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 | */ | 3 | */ |
| 7 | #include <stdio.h> | 4 | #include <stdio.h> |
| 8 | #include <unistd.h> | 5 | #include <unistd.h> |
diff --git a/samples/bpf/sampleip_user.c b/samples/bpf/sampleip_user.c index 23b90a45c802..6b5dc26d9701 100644 --- a/samples/bpf/sampleip_user.c +++ b/samples/bpf/sampleip_user.c | |||
| @@ -1,11 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * sampleip: sample instruction pointer and frequency count in a BPF map. | 3 | * sampleip: sample instruction pointer and frequency count in a BPF map. |
| 3 | * | 4 | * |
| 4 | * Copyright 2016 Netflix, Inc. | 5 | * Copyright 2016 Netflix, Inc. |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of version 2 of the GNU General Public | ||
| 8 | * License as published by the Free Software Foundation. | ||
| 9 | */ | 6 | */ |
| 10 | #include <stdio.h> | 7 | #include <stdio.h> |
| 11 | #include <stdlib.h> | 8 | #include <stdlib.h> |
diff --git a/samples/bpf/syscall_tp_kern.c b/samples/bpf/syscall_tp_kern.c index 9149c524d279..1d78819ffef1 100644 --- a/samples/bpf/syscall_tp_kern.c +++ b/samples/bpf/syscall_tp_kern.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (c) 2017 Facebook | 2 | /* Copyright (c) 2017 Facebook |
| 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 | */ | 3 | */ |
| 7 | #include <uapi/linux/bpf.h> | 4 | #include <uapi/linux/bpf.h> |
| 8 | #include "bpf_helpers.h" | 5 | #include "bpf_helpers.h" |
diff --git a/samples/bpf/syscall_tp_user.c b/samples/bpf/syscall_tp_user.c index 1a1d0059a277..57014bab7cbe 100644 --- a/samples/bpf/syscall_tp_user.c +++ b/samples/bpf/syscall_tp_user.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (c) 2017 Facebook | 2 | /* Copyright (c) 2017 Facebook |
| 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 | */ | 3 | */ |
| 7 | #include <stdio.h> | 4 | #include <stdio.h> |
| 8 | #include <unistd.h> | 5 | #include <unistd.h> |
diff --git a/samples/bpf/tc_l2_redirect_user.c b/samples/bpf/tc_l2_redirect_user.c index 7ec45c3e8f56..d11a6e1e9912 100644 --- a/samples/bpf/tc_l2_redirect_user.c +++ b/samples/bpf/tc_l2_redirect_user.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (c) 2016 Facebook | 2 | /* Copyright (c) 2016 Facebook |
| 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 | */ | 3 | */ |
| 7 | #include <linux/unistd.h> | 4 | #include <linux/unistd.h> |
| 8 | #include <linux/bpf.h> | 5 | #include <linux/bpf.h> |
diff --git a/samples/bpf/test_cgrp2_array_pin.c b/samples/bpf/test_cgrp2_array_pin.c index 242184292f59..6d564aa75447 100644 --- a/samples/bpf/test_cgrp2_array_pin.c +++ b/samples/bpf/test_cgrp2_array_pin.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (c) 2016 Facebook | 2 | /* Copyright (c) 2016 Facebook |
| 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 | */ | 3 | */ |
| 7 | #include <linux/unistd.h> | 4 | #include <linux/unistd.h> |
| 8 | #include <linux/bpf.h> | 5 | #include <linux/bpf.h> |
diff --git a/samples/bpf/test_current_task_under_cgroup_user.c b/samples/bpf/test_current_task_under_cgroup_user.c index f082d6ac59f0..06e9f8ce42e2 100644 --- a/samples/bpf/test_current_task_under_cgroup_user.c +++ b/samples/bpf/test_current_task_under_cgroup_user.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (c) 2016 Sargun Dhillon <sargun@sargun.me> | 2 | /* Copyright (c) 2016 Sargun Dhillon <sargun@sargun.me> |
| 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 | */ | 3 | */ |
| 7 | 4 | ||
| 8 | #define _GNU_SOURCE | 5 | #define _GNU_SOURCE |
diff --git a/samples/bpf/test_lru_dist.c b/samples/bpf/test_lru_dist.c index eec3e2509ce8..b313dba4111b 100644 --- a/samples/bpf/test_lru_dist.c +++ b/samples/bpf/test_lru_dist.c | |||
| @@ -1,9 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2016 Facebook | 3 | * Copyright (c) 2016 Facebook |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | */ | 4 | */ |
| 8 | #define _GNU_SOURCE | 5 | #define _GNU_SOURCE |
| 9 | #include <linux/types.h> | 6 | #include <linux/types.h> |
diff --git a/samples/bpf/test_map_in_map_user.c b/samples/bpf/test_map_in_map_user.c index e308858f7bcf..eb29bcb76f3f 100644 --- a/samples/bpf/test_map_in_map_user.c +++ b/samples/bpf/test_map_in_map_user.c | |||
| @@ -1,9 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2017 Facebook | 3 | * Copyright (c) 2017 Facebook |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | */ | 4 | */ |
| 8 | #include <sys/resource.h> | 5 | #include <sys/resource.h> |
| 9 | #include <sys/socket.h> | 6 | #include <sys/socket.h> |
diff --git a/samples/bpf/test_overhead_user.c b/samples/bpf/test_overhead_user.c index 9d6dcaa9db92..94f74112a20e 100644 --- a/samples/bpf/test_overhead_user.c +++ b/samples/bpf/test_overhead_user.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (c) 2016 Facebook | 2 | /* Copyright (c) 2016 Facebook |
| 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 | */ | 3 | */ |
| 7 | #define _GNU_SOURCE | 4 | #define _GNU_SOURCE |
| 8 | #include <sched.h> | 5 | #include <sched.h> |
diff --git a/samples/bpf/trace_event_user.c b/samples/bpf/trace_event_user.c index d4178f60e075..16a16eadd509 100644 --- a/samples/bpf/trace_event_user.c +++ b/samples/bpf/trace_event_user.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (c) 2016 Facebook | 2 | /* Copyright (c) 2016 Facebook |
| 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 | */ | 3 | */ |
| 7 | #include <stdio.h> | 4 | #include <stdio.h> |
| 8 | #include <unistd.h> | 5 | #include <unistd.h> |
diff --git a/samples/bpf/trace_output_user.c b/samples/bpf/trace_output_user.c index 4837d73edefe..2dd1d39b152a 100644 --- a/samples/bpf/trace_output_user.c +++ b/samples/bpf/trace_output_user.c | |||
| @@ -1,7 +1,4 @@ | |||
| 1 | /* This program is free software; you can redistribute it and/or | 1 | // SPDX-License-Identifier: GPL-2.0-only |
| 2 | * modify it under the terms of version 2 of the GNU General Public | ||
| 3 | * License as published by the Free Software Foundation. | ||
| 4 | */ | ||
| 5 | #include <stdio.h> | 2 | #include <stdio.h> |
| 6 | #include <unistd.h> | 3 | #include <unistd.h> |
| 7 | #include <stdlib.h> | 4 | #include <stdlib.h> |
diff --git a/samples/bpf/tracex3_user.c b/samples/bpf/tracex3_user.c index 56466d010139..cf8fedc773f2 100644 --- a/samples/bpf/tracex3_user.c +++ b/samples/bpf/tracex3_user.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (c) 2013-2015 PLUMgrid, http://plumgrid.com | 2 | /* Copyright (c) 2013-2015 PLUMgrid, http://plumgrid.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 | */ | 3 | */ |
| 7 | #include <stdio.h> | 4 | #include <stdio.h> |
| 8 | #include <stdlib.h> | 5 | #include <stdlib.h> |
diff --git a/samples/bpf/tracex4_user.c b/samples/bpf/tracex4_user.c index 14625c898e43..ec52203fce39 100644 --- a/samples/bpf/tracex4_user.c +++ b/samples/bpf/tracex4_user.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (c) 2015 PLUMgrid, http://plumgrid.com | 2 | /* Copyright (c) 2015 PLUMgrid, http://plumgrid.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 | */ | 3 | */ |
| 7 | #include <stdio.h> | 4 | #include <stdio.h> |
| 8 | #include <stdlib.h> | 5 | #include <stdlib.h> |
diff --git a/samples/bpf/xdp1_user.c b/samples/bpf/xdp1_user.c index 6a64e93365e1..5b39421adb44 100644 --- a/samples/bpf/xdp1_user.c +++ b/samples/bpf/xdp1_user.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (c) 2016 PLUMgrid | 2 | /* Copyright (c) 2016 PLUMgrid |
| 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 | */ | 3 | */ |
| 7 | #include <linux/bpf.h> | 4 | #include <linux/bpf.h> |
| 8 | #include <linux/if_link.h> | 5 | #include <linux/if_link.h> |
diff --git a/samples/bpf/xdp_router_ipv4_user.c b/samples/bpf/xdp_router_ipv4_user.c index 79fe7bc26ab4..1f66419631c3 100644 --- a/samples/bpf/xdp_router_ipv4_user.c +++ b/samples/bpf/xdp_router_ipv4_user.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (C) 2017 Cavium, Inc. | 2 | /* Copyright (C) 2017 Cavium, Inc. |
| 2 | * | ||
| 3 | * This program is free software; you can redistribute it and/or modify it | ||
| 4 | * under the terms of version 2 of the GNU General Public License | ||
| 5 | * as published by the Free Software Foundation. | ||
| 6 | */ | 3 | */ |
| 7 | #include <linux/bpf.h> | 4 | #include <linux/bpf.h> |
| 8 | #include <linux/netlink.h> | 5 | #include <linux/netlink.h> |
diff --git a/samples/bpf/xdp_tx_iptunnel_common.h b/samples/bpf/xdp_tx_iptunnel_common.h index dd12cc35110f..be839892caff 100644 --- a/samples/bpf/xdp_tx_iptunnel_common.h +++ b/samples/bpf/xdp_tx_iptunnel_common.h | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* Copyright (c) 2016 Facebook | 2 | /* Copyright (c) 2016 Facebook |
| 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 | */ | 3 | */ |
| 7 | #ifndef _SAMPLES_BPF_XDP_TX_IPTNL_COMMON_H | 4 | #ifndef _SAMPLES_BPF_XDP_TX_IPTNL_COMMON_H |
| 8 | #define _SAMPLES_BPF_XDP_TX_IPTNL_COMMON_H | 5 | #define _SAMPLES_BPF_XDP_TX_IPTNL_COMMON_H |
diff --git a/samples/bpf/xdp_tx_iptunnel_user.c b/samples/bpf/xdp_tx_iptunnel_user.c index 4a1511eb7812..e746a00d122e 100644 --- a/samples/bpf/xdp_tx_iptunnel_user.c +++ b/samples/bpf/xdp_tx_iptunnel_user.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (c) 2016 Facebook | 2 | /* Copyright (c) 2016 Facebook |
| 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 | */ | 3 | */ |
| 7 | #include <linux/bpf.h> | 4 | #include <linux/bpf.h> |
| 8 | #include <linux/if_link.h> | 5 | #include <linux/if_link.h> |
diff --git a/samples/configfs/configfs_sample.c b/samples/configfs/configfs_sample.c index 004a4e201476..e2398d94e8da 100644 --- a/samples/configfs/configfs_sample.c +++ b/samples/configfs/configfs_sample.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * vim: noexpandtab ts=8 sts=0 sw=8: | 3 | * vim: noexpandtab ts=8 sts=0 sw=8: |
| 3 | * | 4 | * |
| @@ -5,21 +6,6 @@ | |||
| 5 | * containing a number of configfs subsystems. It uses the helper | 6 | * containing a number of configfs subsystems. It uses the helper |
| 6 | * macros defined by configfs.h | 7 | * macros defined by configfs.h |
| 7 | * | 8 | * |
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public | ||
| 10 | * License as published by the Free Software Foundation; either | ||
| 11 | * version 2 of the License, or (at your option) any later version. | ||
| 12 | * | ||
| 13 | * This program is distributed in the hope that it will be useful, | ||
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 16 | * General Public License for more details. | ||
| 17 | * | ||
| 18 | * You should have received a copy of the GNU General Public | ||
| 19 | * License along with this program; if not, write to the | ||
| 20 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
| 21 | * Boston, MA 021110-1307, USA. | ||
| 22 | * | ||
| 23 | * Based on sysfs: | 9 | * Based on sysfs: |
| 24 | * sysfs is Copyright (C) 2001, 2002, 2003 Patrick Mochel | 10 | * sysfs is Copyright (C) 2001, 2002, 2003 Patrick Mochel |
| 25 | * | 11 | * |
diff --git a/samples/connector/cn_test.c b/samples/connector/cn_test.c index 95cd06f4ec1e..0958a171d048 100644 --- a/samples/connector/cn_test.c +++ b/samples/connector/cn_test.c | |||
| @@ -1,22 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * cn_test.c | 3 | * cn_test.c |
| 3 | * | 4 | * |
| 4 | * 2004+ Copyright (c) Evgeniy Polyakov <zbr@ioremap.net> | 5 | * 2004+ Copyright (c) Evgeniy Polyakov <zbr@ioremap.net> |
| 5 | * All rights reserved. | 6 | * All rights reserved. |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License as published by | ||
| 9 | * the Free Software Foundation; either version 2 of the License, or | ||
| 10 | * (at your option) any later version. | ||
| 11 | * | ||
| 12 | * This program is distributed in the hope that it will be useful, | ||
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | * GNU General Public License for more details. | ||
| 16 | * | ||
| 17 | * You should have received a copy of the GNU General Public License | ||
| 18 | * along with this program; if not, write to the Free Software | ||
| 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 20 | */ | 7 | */ |
| 21 | 8 | ||
| 22 | #define pr_fmt(fmt) "cn_test: " fmt | 9 | #define pr_fmt(fmt) "cn_test: " fmt |
diff --git a/samples/connector/ucon.c b/samples/connector/ucon.c index 8a4da64e02a8..fa17f864200e 100644 --- a/samples/connector/ucon.c +++ b/samples/connector/ucon.c | |||
| @@ -1,22 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * ucon.c | 3 | * ucon.c |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2004+ Evgeniy Polyakov <zbr@ioremap.net> | 5 | * Copyright (c) 2004+ Evgeniy Polyakov <zbr@ioremap.net> |
| 5 | * | ||
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License as published by | ||
| 9 | * the Free Software Foundation; either version 2 of the License, or | ||
| 10 | * (at your option) any later version. | ||
| 11 | * | ||
| 12 | * This program is distributed in the hope that it will be useful, | ||
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | * GNU General Public License for more details. | ||
| 16 | * | ||
| 17 | * You should have received a copy of the GNU General Public License | ||
| 18 | * along with this program; if not, write to the Free Software | ||
| 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 20 | */ | 6 | */ |
| 21 | 7 | ||
| 22 | #include <asm/types.h> | 8 | #include <asm/types.h> |
diff --git a/samples/hw_breakpoint/data_breakpoint.c b/samples/hw_breakpoint/data_breakpoint.c index ef7f32291852..c58504774118 100644 --- a/samples/hw_breakpoint/data_breakpoint.c +++ b/samples/hw_breakpoint/data_breakpoint.c | |||
| @@ -1,20 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * data_breakpoint.c - Sample HW Breakpoint file to watch kernel data address | 3 | * data_breakpoint.c - Sample HW Breakpoint file to watch kernel data address |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program; if not, write to the Free Software | ||
| 16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
| 17 | * | ||
| 18 | * usage: insmod data_breakpoint.ko ksym=<ksym_name> | 5 | * usage: insmod data_breakpoint.ko ksym=<ksym_name> |
| 19 | * | 6 | * |
| 20 | * This file is a kernel module that places a breakpoint over ksym_name kernel | 7 | * This file is a kernel module that places a breakpoint over ksym_name kernel |
diff --git a/samples/pidfd/pidfd-metadata.c b/samples/pidfd/pidfd-metadata.c index 640f5f757c57..14b454448429 100644 --- a/samples/pidfd/pidfd-metadata.c +++ b/samples/pidfd/pidfd-metadata.c | |||
| @@ -21,6 +21,10 @@ | |||
| 21 | #define CLONE_PIDFD 0x00001000 | 21 | #define CLONE_PIDFD 0x00001000 |
| 22 | #endif | 22 | #endif |
| 23 | 23 | ||
| 24 | #ifndef __NR_pidfd_send_signal | ||
| 25 | #define __NR_pidfd_send_signal -1 | ||
| 26 | #endif | ||
| 27 | |||
| 24 | static int do_child(void *args) | 28 | static int do_child(void *args) |
| 25 | { | 29 | { |
| 26 | printf("%d\n", getpid()); | 30 | printf("%d\n", getpid()); |
