We need the USB fixes in here as well.
Showing the changes to include/linux (164 of 4083 files). Show all
Unified · Split
| @@ -1,19 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (C) 2016, Semihalf |
| 3 | 4 | * Author: Tomasz Nowicki <tn@semihalf.com> |
| 4 | − * | |
| 5 | − * This program is free software; you can redistribute it and/or modify it | |
| 6 | − * under the terms and conditions of the GNU General Public License, | |
| 7 | − * version 2, as published by the Free Software Foundation. | |
| 8 | − * | |
| 9 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 10 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 11 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 12 | − * more details. | |
| 13 | − * | |
| 14 | − * You should have received a copy of the GNU General Public License along with | |
| 15 | − * this program; if not, write to the Free Software Foundation, Inc., 59 Temple | |
| 16 | − * Place - Suite 330, Boston, MA 02111-1307 USA. | |
| 17 | 5 | */ |
| 18 | 6 | |
| 19 | 7 | #ifndef __ACPI_IORT_H__ |
| @@ -1,20 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (C) 2007-2010 Advanced Micro Devices, Inc. |
| 3 | 4 | * Author: Joerg Roedel <joerg.roedel@amd.com> |
| 4 | 5 | * Leo Duran <leo.duran@amd.com> |
| 5 | − * | |
| 6 | − * This program is free software; you can redistribute it and/or modify it | |
| 7 | − * under the terms of the GNU General Public License version 2 as published | |
| 8 | − * by the Free Software Foundation. | |
| 9 | − * | |
| 10 | − * This program is distributed in the hope that it will be useful, | |
| 11 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | − * GNU General Public License for more details. | |
| 14 | − * | |
| 15 | − * You should have received a copy of the GNU General Public License | |
| 16 | − * along with this program; if not, write to the Free Software | |
| 17 | − * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 18 | 6 | */ |
| 19 | 7 | |
| 20 | 8 | #ifndef _ASM_X86_AMD_IOMMU_H |
| @@ -1,15 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (c) 2015, Linaro Limited |
| 3 | − * | |
| 4 | − * This software is licensed under the terms of the GNU General Public | |
| 5 | − * License version 2, as published by the Free Software Foundation, and | |
| 6 | − * may be copied, distributed, and modified under those terms. | |
| 7 | − * | |
| 8 | − * This program is distributed in the hope that it will be useful, | |
| 9 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 11 | − * GNU General Public License for more details. | |
| 12 | − * | |
| 13 | 4 | */ |
| 14 | 5 | #ifndef __LINUX_ARM_SMCCC_H |
| 15 | 6 | #define __LINUX_ARM_SMCCC_H |
| @@ -1,13 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * async.h: Asynchronous function calls for boot performance |
| 3 | 4 | * |
| 4 | 5 | * (C) Copyright 2009 Intel Corporation |
| 5 | 6 | * Author: Arjan van de Ven <arjan@linux.intel.com> |
| 6 | − * | |
| 7 | − * This program is free software; you can redistribute it and/or | |
| 8 | − * modify it under the terms of the GNU General Public License | |
| 9 | − * as published by the Free Software Foundation; version 2 | |
| 10 | − * of the License. | |
| 11 | 7 | */ |
| 12 | 8 | #ifndef __ASYNC_H__ |
| 13 | 9 | #define __ASYNC_H__ |
| @@ -1,19 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright © 2006, Intel Corporation. |
| 3 | − * | |
| 4 | − * This program is free software; you can redistribute it and/or modify it | |
| 5 | − * under the terms and conditions of the GNU General Public License, | |
| 6 | − * version 2, as published by the Free Software Foundation. | |
| 7 | − * | |
| 8 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 9 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 10 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 11 | − * more details. | |
| 12 | − * | |
| 13 | − * You should have received a copy of the GNU General Public License along with | |
| 14 | − * this program; if not, write to the Free Software Foundation, Inc., | |
| 15 | − * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | |
| 16 | − * | |
| 17 | 4 | */ |
| 18 | 5 | #ifndef _ASYNC_TX_H_ |
| 19 | 6 | #define _ASYNC_TX_H_ |
| @@ -1,9 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * attribute_container.h - a generic container for all classes |
| 3 | 4 | * |
| 4 | 5 | * Copyright (c) 2005 - James Bottomley <James.Bottomley@steeleye.com> |
| 5 | − * | |
| 6 | − * This file is licensed under GPLv2 | |
| 7 | 6 | */ |
| 8 | 7 | |
| 9 | 8 | #ifndef _ATTRIBUTE_CONTAINER_H_ |
| @@ -1,23 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /******************************************************************************* |
| 2 | 3 | * |
| 3 | 4 | * Intel Ethernet Controller XL710 Family Linux Virtual Function Driver |
| 4 | 5 | * Copyright(c) 2013 - 2014 Intel Corporation. |
| 5 | 6 | * |
| 6 | − * This program is free software; you can redistribute it and/or modify it | |
| 7 | − * under the terms and conditions of the GNU General Public License, | |
| 8 | − * version 2, as published by the Free Software Foundation. | |
| 9 | − * | |
| 10 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 11 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 12 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 13 | − * more details. | |
| 14 | − * | |
| 15 | − * You should have received a copy of the GNU General Public License along | |
| 16 | − * with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 17 | − * | |
| 18 | − * The full GNU General Public License is included in this distribution in | |
| 19 | − * the file called "COPYING". | |
| 20 | − * | |
| 21 | 7 | * Contact Information: |
| 22 | 8 | * e1000-devel Mailing List <e1000-devel@lists.sourceforge.net> |
| 23 | 9 | * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 |
| @@ -1,19 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Generic binary BCH encoding/decoding library |
| 3 | 4 | * |
| 4 | − * This program is free software; you can redistribute it and/or modify it | |
| 5 | − * under the terms of the GNU General Public License version 2 as published by | |
| 6 | − * the Free Software Foundation. | |
| 7 | − * | |
| 8 | − * This program is distributed in the hope that it will be useful, but WITHOUT | |
| 9 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 10 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 11 | − * more details. | |
| 12 | − * | |
| 13 | − * You should have received a copy of the GNU General Public License along with | |
| 14 | − * this program; if not, write to the Free Software Foundation, Inc., 51 | |
| 15 | − * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
| 16 | − * | |
| 17 | 5 | * Copyright © 2011 Parrot S.A. |
| 18 | 6 | * |
| 19 | 7 | * Author: Ivan Djelic <ivan.djelic@parrot.com> |
| @@ -1,17 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * CAN driver for PEAK System micro-CAN based adapters |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2003-2011 PEAK System-Technik GmbH |
| 5 | 6 | * Copyright (C) 2011-2013 Stephane Grosjean <s.grosjean@peak-system.com> |
| 6 | − * | |
| 7 | − * This program is free software; you can redistribute it and/or modify it | |
| 8 | − * under the terms of the GNU General Public License as published | |
| 9 | − * by the Free Software Foundation; version 2 of the License. | |
| 10 | − * | |
| 11 | − * This program is distributed in the hope that it will be useful, but | |
| 12 | − * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 14 | − * General Public License for more details. | |
| 15 | 7 | */ |
| 16 | 8 | #ifndef PUCAN_H |
| 17 | 9 | #define PUCAN_H |
| @@ -221,6 +221,7 @@ struct css_set { · 220 unmodified lines | ||
| 221 | 221 | */ |
| 222 | 222 | struct list_head tasks; |
| 223 | 223 | struct list_head mg_tasks; |
| 224 | + struct list_head dying_tasks; | |
| 224 | 225 | |
| 225 | 226 | /* all css_task_iters currently walking this cset */ |
| 226 | 227 | struct list_head task_iters; |
| @@ -43,6 +43,9 @@ · 42 unmodified lines | ||
| 43 | 43 | /* walk all threaded css_sets in the domain */ |
| 44 | 44 | #define CSS_TASK_ITER_THREADED (1U << 1) |
| 45 | 45 | |
| 46 | +/* internal flags */ | |
| 47 | +#define CSS_TASK_ITER_SKIPPED (1U << 16) | |
| 48 | + | |
| 46 | 49 | /* a css_task_iter should be treated as an opaque object */ |
| 47 | 50 | struct css_task_iter { |
| 48 | 51 | struct cgroup_subsys *ss; |
| @@ -57,6 +60,7 @@ struct css_task_iter { · 8 unmodified lines | ||
| 57 | 60 | struct list_head *task_pos; |
| 58 | 61 | struct list_head *tasks_head; |
| 59 | 62 | struct list_head *mg_tasks_head; |
| 63 | + struct list_head *dying_tasks_head; | |
| 60 | 64 | |
| 61 | 65 | struct css_set *cur_cset; |
| 62 | 66 | struct css_set *cur_dcset; |
| @@ -487,7 +491,7 @@ static inline struct cgroup_subsys_state *task_css(struct task_struct *task, · 424 unmodified lines | ||
| 487 | 491 | * |
| 488 | 492 | * Find the css for the (@task, @subsys_id) combination, increment a |
| 489 | 493 | * reference on and return it. This function is guaranteed to return a |
| 490 | − * valid css. | |
| 494 | + * valid css. The returned css may already have been offlined. | |
| 491 | 495 | */ |
| 492 | 496 | static inline struct cgroup_subsys_state * |
| 493 | 497 | task_get_css(struct task_struct *task, int subsys_id) |
| @@ -497,7 +501,13 @@ task_get_css(struct task_struct *task, int subsys_id) · 3 unmodified lines | ||
| 497 | 501 | rcu_read_lock(); |
| 498 | 502 | while (true) { |
| 499 | 503 | css = task_css(task, subsys_id); |
| 500 | − if (likely(css_tryget_online(css))) | |
| 504 | + /* | |
| 505 | + * Can't use css_tryget_online() here. A task which has | |
| 506 | + * PF_EXITING set may stay associated with an offline css. | |
| 507 | + * If such task calls this function, css_tryget_online() | |
| 508 | + * will keep failing. | |
| 509 | + */ | |
| 510 | + if (likely(css_tryget(css))) | |
| 501 | 511 | break; |
| 502 | 512 | cpu_relax(); |
| 503 | 513 | } |
| @@ -1,14 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (c) 2017 Chen-Yu Tsai. All rights reserved. |
| 3 | − * | |
| 4 | − * This software is licensed under the terms of the GNU General Public | |
| 5 | − * License version 2, as published by the Free Software Foundation, and | |
| 6 | − * may be copied, distributed, and modified under those terms. | |
| 7 | − * | |
| 8 | − * This program is distributed in the hope that it will be useful, | |
| 9 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 11 | − * GNU General Public License for more details. | |
| 12 | 4 | */ |
| 13 | 5 | |
| 14 | 6 | #ifndef _LINUX_CLK_SUNXI_NG_H_ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * linux/include/linux/clock_cooling.h |
| 3 | 4 | * |
| @@ -9,15 +10,6 @@ · 5 unmodified lines | ||
| 9 | 10 | * Highly based on cpu_cooling.c. |
| 10 | 11 | * Copyright (C) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com) |
| 11 | 12 | * Copyright (C) 2012 Amit Daniel <amit.kachhap@linaro.org> |
| 12 | − * | |
| 13 | − * This program is free software; you can redistribute it and/or modify | |
| 14 | − * it under the terms of the GNU General Public License as published by | |
| 15 | − * the Free Software Foundation; version 2 of the License. | |
| 16 | − * | |
| 17 | − * This program is distributed in the hope that it will be useful, but | |
| 18 | − * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 19 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 20 | − * General Public License for more details. | |
| 21 | 13 | */ |
| 22 | 14 | |
| 23 | 15 | #ifndef __CPU_COOLING_H__ |
| @@ -1,21 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * UEFI Common Platform Error Record |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2010, Intel Corp. |
| 5 | 6 | * Author: Huang Ying <ying.huang@intel.com> |
| 6 | − * | |
| 7 | − * This program is free software; you can redistribute it and/or | |
| 8 | − * modify it under the terms of the GNU General Public License version | |
| 9 | − * 2 as published by the Free Software Foundation. | |
| 10 | − * | |
| 11 | − * This program is distributed in the hope that it will be useful, | |
| 12 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | − * GNU General Public License for more details. | |
| 15 | − * | |
| 16 | − * You should have received a copy of the GNU General Public License | |
| 17 | − * along with this program; if not, write to the Free Software | |
| 18 | − * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 19 | 7 | */ |
| 20 | 8 | |
| 21 | 9 | #ifndef LINUX_CPER_H |
| @@ -201,10 +201,14 @@ enum cpuhp_smt_control { · 200 unmodified lines | ||
| 201 | 201 | extern enum cpuhp_smt_control cpu_smt_control; |
| 202 | 202 | extern void cpu_smt_disable(bool force); |
| 203 | 203 | extern void cpu_smt_check_topology(void); |
| 204 | +extern int cpuhp_smt_enable(void); | |
| 205 | +extern int cpuhp_smt_disable(enum cpuhp_smt_control ctrlval); | |
| 204 | 206 | #else |
| 205 | 207 | # define cpu_smt_control (CPU_SMT_NOT_IMPLEMENTED) |
| 206 | 208 | static inline void cpu_smt_disable(bool force) { } |
| 207 | 209 | static inline void cpu_smt_check_topology(void) { } |
| 210 | +static inline int cpuhp_smt_enable(void) { return 0; } | |
| 211 | +static inline int cpuhp_smt_disable(enum cpuhp_smt_control ctrlval) { return 0; } | |
| 208 | 212 | #endif |
| 209 | 213 | |
| 210 | 214 | /* |
| @@ -1,18 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (C) 2011 Google, Inc. |
| 3 | 4 | * |
| 4 | 5 | * Author: |
| 5 | 6 | * Colin Cross <ccross@android.com> |
| 6 | − * | |
| 7 | − * This software is licensed under the terms of the GNU General Public | |
| 8 | − * License version 2, as published by the Free Software Foundation, and | |
| 9 | − * may be copied, distributed, and modified under those terms. | |
| 10 | − * | |
| 11 | − * This program is distributed in the hope that it will be useful, | |
| 12 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | − * GNU General Public License for more details. | |
| 15 | − * | |
| 16 | 7 | */ |
| 17 | 8 | |
| 18 | 9 | #ifndef _LINUX_CPU_PM_H |
| @@ -101,6 +101,7 @@ enum cpuhp_state { · 100 unmodified lines | ||
| 101 | 101 | CPUHP_AP_IRQ_BCM2836_STARTING, |
| 102 | 102 | CPUHP_AP_IRQ_MIPS_GIC_STARTING, |
| 103 | 103 | CPUHP_AP_ARM_MVEBU_COHERENCY, |
| 104 | + CPUHP_AP_MICROCODE_LOADER, | |
| 104 | 105 | CPUHP_AP_PERF_X86_AMD_UNCORE_STARTING, |
| 105 | 106 | CPUHP_AP_PERF_X86_STARTING, |
| 106 | 107 | CPUHP_AP_PERF_X86_AMD_IBS_STARTING, |
| @@ -1,21 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | − * This file is provided under the GPLv2 license. | |
| 3 | − * | |
| 4 | − * GPL LICENSE SUMMARY | |
| 5 | − * | |
| 6 | 3 | * Copyright(c) 2015 Intel Deutschland GmbH |
| 7 | − * | |
| 8 | − * This program is free software; you can redistribute it and/or modify | |
| 9 | − * it under the terms of version 2 of the GNU General Public License as | |
| 10 | − * published by the Free Software Foundation. | |
| 11 | − * | |
| 12 | − * This program is distributed in the hope that it will be useful, but | |
| 13 | − * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 15 | − * General Public License for more details. | |
| 16 | − * | |
| 17 | − * The full GNU General Public License is included in this distribution | |
| 18 | − * in the file called COPYING. | |
| 19 | 4 | */ |
| 20 | 5 | #ifndef __DEVCOREDUMP_H |
| 21 | 6 | #define __DEVCOREDUMP_H |
| @@ -713,6 +713,7 @@ void __iomem *devm_of_iomap(struct device *dev, · 712 unmodified lines | ||
| 713 | 713 | /* allows to add/remove a custom action to devres stack */ |
| 714 | 714 | int devm_add_action(struct device *dev, void (*action)(void *), void *data); |
| 715 | 715 | void devm_remove_action(struct device *dev, void (*action)(void *), void *data); |
| 716 | +void devm_release_action(struct device *dev, void (*action)(void *), void *data); | |
| 716 | 717 | |
| 717 | 718 | static inline int devm_add_action_or_reset(struct device *dev, |
| 718 | 719 | void (*action)(void *), void *data) |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (C) 2011 Nokia Corporation |
| 3 | 4 | * Copyright (C) 2011 Intel Corporation |
| @@ -5,11 +6,6 @@ · 1 unmodified line | ||
| 5 | 6 | * Author: |
| 6 | 7 | * Dmitry Kasatkin <dmitry.kasatkin@nokia.com> |
| 7 | 8 | * <dmitry.kasatkin@intel.com> |
| 8 | − * | |
| 9 | − * This program is free software; you can redistribute it and/or modify | |
| 10 | − * it under the terms of the GNU General Public License as published by | |
| 11 | − * the Free Software Foundation, version 2 of the License. | |
| 12 | − * | |
| 13 | 9 | */ |
| 14 | 10 | |
| 15 | 11 | #ifndef _DIGSIG_H |
| @@ -1,20 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (C) 2008 Advanced Micro Devices, Inc. |
| 3 | 4 | * |
| 4 | 5 | * Author: Joerg Roedel <joerg.roedel@amd.com> |
| 5 | − * | |
| 6 | − * This program is free software; you can redistribute it and/or modify it | |
| 7 | − * under the terms of the GNU General Public License version 2 as published | |
| 8 | − * by the Free Software Foundation. | |
| 9 | − * | |
| 10 | − * This program is distributed in the hope that it will be useful, | |
| 11 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | − * GNU General Public License for more details. | |
| 14 | − * | |
| 15 | − * You should have received a copy of the GNU General Public License | |
| 16 | − * along with this program; if not, write to the Free Software | |
| 17 | − * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 18 | 6 | */ |
| 19 | 7 | |
| 20 | 8 | #ifndef __DMA_DEBUG_H |
| @@ -1,14 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (c) 2016-2017, The Linux Foundation. All rights reserved. |
| 3 | − * | |
| 4 | − * This software is licensed under the terms of the GNU General Public | |
| 5 | − * License version 2, as published by the Free Software Foundation, and | |
| 6 | − * may be copied, distributed, and modified under those terms. | |
| 7 | − * | |
| 8 | − * This program is distributed in the hope that it will be useful, | |
| 9 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 11 | − * GNU General Public License for more details. | |
| 12 | 4 | */ |
| 13 | 5 | |
| 14 | 6 | #ifndef _QCOM_BAM_DMA_H |
| @@ -1,19 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (c) 2006, Intel Corporation. |
| 3 | 4 | * |
| 4 | − * This program is free software; you can redistribute it and/or modify it | |
| 5 | − * under the terms and conditions of the GNU General Public License, | |
| 6 | − * version 2, as published by the Free Software Foundation. | |
| 7 | − * | |
| 8 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 9 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 10 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 11 | − * more details. | |
| 12 | − * | |
| 13 | − * You should have received a copy of the GNU General Public License along with | |
| 14 | − * this program; if not, write to the Free Software Foundation, Inc., 59 Temple | |
| 15 | − * Place - Suite 330, Boston, MA 02111-1307 USA. | |
| 16 | − * | |
| 17 | 5 | * Copyright (C) Ashok Raj <ashok.raj@intel.com> |
| 18 | 6 | * Copyright (C) Shaohua Li <shaohua.li@intel.com> |
| 19 | 7 | */ |
| @@ -20,18 +20,6 @@ · 19 unmodified lines | ||
| 20 | 20 | #define SJA1105_LINKLOCAL_FILTER_B 0x011B19000000ull |
| 21 | 21 | #define SJA1105_LINKLOCAL_FILTER_B_MASK 0xFFFFFF000000ull |
| 22 | 22 | |
| 23 | −enum sja1105_frame_type { | |
| 24 | − SJA1105_FRAME_TYPE_NORMAL = 0, | |
| 25 | − SJA1105_FRAME_TYPE_LINK_LOCAL, | |
| 26 | −}; | |
| 27 | − | |
| 28 | −struct sja1105_skb_cb { | |
| 29 | − enum sja1105_frame_type type; | |
| 30 | −}; | |
| 31 | − | |
| 32 | −#define SJA1105_SKB_CB(skb) \ | |
| 33 | − ((struct sja1105_skb_cb *)DSA_SKB_CB_PRIV(skb)) | |
| 34 | − | |
| 35 | 23 | struct sja1105_port { |
| 36 | 24 | struct dsa_port *dp; |
| 37 | 25 | int mgmt_slot; |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * linux/include/linux/edd.h |
| 3 | 4 | * Copyright (C) 2002, 2003, 2004 Dell Inc. |
| @@ -16,16 +17,6 @@ · 12 unmodified lines | ||
| 16 | 17 | * transferred into the edd structure, and in drivers/firmware/edd.c, that |
| 17 | 18 | * information is used to identify BIOS boot disk. The code in setup.S |
| 18 | 19 | * is very sensitive to the size of these structures. |
| 19 | − * | |
| 20 | − * This program is free software; you can redistribute it and/or modify | |
| 21 | − * it under the terms of the GNU General Public License v2.0 as published by | |
| 22 | − * the Free Software Foundation | |
| 23 | − * | |
| 24 | − * This program is distributed in the hope that it will be useful, | |
| 25 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 26 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 27 | − * GNU General Public License for more details. | |
| 28 | − * | |
| 29 | 20 | */ |
| 30 | 21 | #ifndef _LINUX_EDD_H |
| 31 | 22 | #define _LINUX_EDD_H |
| @@ -1,18 +1,10 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * External Connector (extcon) framework |
| 3 | 4 | * - linux/include/linux/extcon-provider.h for extcon provider device driver. |
| 4 | 5 | * |
| 5 | 6 | * Copyright (C) 2017 Samsung Electronics |
| 6 | 7 | * Author: Chanwoo Choi <cw00.choi@samsung.com> |
| 7 | − * | |
| 8 | − * This software is licensed under the terms of the GNU General Public | |
| 9 | − * License version 2, as published by the Free Software Foundation, and | |
| 10 | − * may be copied, distributed, and modified under those terms. | |
| 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 | 8 | */ |
| 17 | 9 | |
| 18 | 10 | #ifndef __LINUX_EXTCON_PROVIDER_H__ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * External Connector (extcon) framework |
| 3 | 4 | * - linux/include/linux/extcon.h for extcon consumer device driver. |
| @@ -12,15 +13,6 @@ · 8 unmodified lines | ||
| 12 | 13 | * based on switch class driver |
| 13 | 14 | * Copyright (C) 2008 Google, Inc. |
| 14 | 15 | * Author: Mike Lockwood <lockwood@android.com> |
| 15 | − * | |
| 16 | − * This software is licensed under the terms of the GNU General Public | |
| 17 | − * License version 2, as published by the Free Software Foundation, and | |
| 18 | − * may be copied, distributed, and modified under those terms. | |
| 19 | − * | |
| 20 | − * This program is distributed in the hope that it will be useful, | |
| 21 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 22 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 23 | − * GNU General Public License for more details. | |
| 24 | 16 | */ |
| 25 | 17 | |
| 26 | 18 | #ifndef __LINUX_EXTCON_H__ |
| @@ -1,17 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * include/linux/firmware-map.h: |
| 3 | 4 | * Copyright (C) 2008 SUSE LINUX Products GmbH |
| 4 | 5 | * by Bernhard Walle <bernhard.walle@gmx.de> |
| 5 | − * | |
| 6 | − * This program is free software; you can redistribute it and/or modify | |
| 7 | − * it under the terms of the GNU General Public License v2.0 as published by | |
| 8 | − * the Free Software Foundation | |
| 9 | − * | |
| 10 | − * This program is distributed in the hope that it will be useful, | |
| 11 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | − * GNU General Public License for more details. | |
| 14 | − * | |
| 15 | 6 | */ |
| 16 | 7 | #ifndef _LINUX_FIRMWARE_MAP_H |
| 17 | 8 | #define _LINUX_FIRMWARE_MAP_H |
| @@ -1,13 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (C) 2016 Endless Mobile, Inc. |
| 3 | 4 | * Author: Carlo Caione <carlo@endlessm.com> |
| 4 | − * | |
| 5 | − * This program is free software; you can redistribute it and/or | |
| 6 | − * modify it under the terms of the GNU General Public License | |
| 7 | − * version 2 as published by the Free Software Foundation. | |
| 8 | − * | |
| 9 | − * You should have received a copy of the GNU General Public License | |
| 10 | − * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 11 | 5 | */ |
| 12 | 6 | |
| 13 | 7 | #ifndef _MESON_SM_FW_H_ |
| @@ -75,6 +75,7 @@ struct gen_pool_chunk { · 74 unmodified lines | ||
| 75 | 75 | struct list_head next_chunk; /* next chunk in pool */ |
| 76 | 76 | atomic_long_t avail; |
| 77 | 77 | phys_addr_t phys_addr; /* physical starting address of memory chunk */ |
| 78 | + void *owner; /* private data to retrieve at alloc time */ | |
| 78 | 79 | unsigned long start_addr; /* start address of memory chunk */ |
| 79 | 80 | unsigned long end_addr; /* end address of memory chunk (inclusive) */ |
| 80 | 81 | unsigned long bits[0]; /* bitmap for allocating memory chunk */ |
| @@ -96,8 +97,15 @@ struct genpool_data_fixed { · 15 unmodified lines | ||
| 96 | 97 | |
| 97 | 98 | extern struct gen_pool *gen_pool_create(int, int); |
| 98 | 99 | extern phys_addr_t gen_pool_virt_to_phys(struct gen_pool *pool, unsigned long); |
| 99 | −extern int gen_pool_add_virt(struct gen_pool *, unsigned long, phys_addr_t, | |
| 100 | − size_t, int); | |
| 100 | +extern int gen_pool_add_owner(struct gen_pool *, unsigned long, phys_addr_t, | |
| 101 | + size_t, int, void *); | |
| 102 | + | |
| 103 | +static inline int gen_pool_add_virt(struct gen_pool *pool, unsigned long addr, | |
| 104 | + phys_addr_t phys, size_t size, int nid) | |
| 105 | +{ | |
| 106 | + return gen_pool_add_owner(pool, addr, phys, size, nid, NULL); | |
| 107 | +} | |
| 108 | + | |
| 101 | 109 | /** |
| 102 | 110 | * gen_pool_add - add a new chunk of special memory to the pool |
| 103 | 111 | * @pool: pool to add new memory chunk to |
| @@ -116,12 +124,47 @@ static inline int gen_pool_add(struct gen_pool *pool, unsigned long addr, · 12 unmodified lines | ||
| 116 | 124 | return gen_pool_add_virt(pool, addr, -1, size, nid); |
| 117 | 125 | } |
| 118 | 126 | extern void gen_pool_destroy(struct gen_pool *); |
| 119 | −extern unsigned long gen_pool_alloc(struct gen_pool *, size_t); | |
| 120 | −extern unsigned long gen_pool_alloc_algo(struct gen_pool *, size_t, | |
| 121 | − genpool_algo_t algo, void *data); | |
| 127 | +unsigned long gen_pool_alloc_algo_owner(struct gen_pool *pool, size_t size, | |
| 128 | + genpool_algo_t algo, void *data, void **owner); | |
| 129 | + | |
| 130 | +static inline unsigned long gen_pool_alloc_owner(struct gen_pool *pool, | |
| 131 | + size_t size, void **owner) | |
| 132 | +{ | |
| 133 | + return gen_pool_alloc_algo_owner(pool, size, pool->algo, pool->data, | |
| 134 | + owner); | |
| 135 | +} | |
| 136 | + | |
| 137 | +static inline unsigned long gen_pool_alloc_algo(struct gen_pool *pool, | |
| 138 | + size_t size, genpool_algo_t algo, void *data) | |
| 139 | +{ | |
| 140 | + return gen_pool_alloc_algo_owner(pool, size, algo, data, NULL); | |
| 141 | +} | |
| 142 | + | |
| 143 | +/** | |
| 144 | + * gen_pool_alloc - allocate special memory from the pool | |
| 145 | + * @pool: pool to allocate from | |
| 146 | + * @size: number of bytes to allocate from the pool | |
| 147 | + * | |
| 148 | + * Allocate the requested number of bytes from the specified pool. | |
| 149 | + * Uses the pool allocation function (with first-fit algorithm by default). | |
| 150 | + * Can not be used in NMI handler on architectures without | |
| 151 | + * NMI-safe cmpxchg implementation. | |
| 152 | + */ | |
| 153 | +static inline unsigned long gen_pool_alloc(struct gen_pool *pool, size_t size) | |
| 154 | +{ | |
| 155 | + return gen_pool_alloc_algo(pool, size, pool->algo, pool->data); | |
| 156 | +} | |
| 157 | + | |
| 122 | 158 | extern void *gen_pool_dma_alloc(struct gen_pool *pool, size_t size, |
| 123 | 159 | dma_addr_t *dma); |
| 124 | −extern void gen_pool_free(struct gen_pool *, unsigned long, size_t); | |
| 160 | +extern void gen_pool_free_owner(struct gen_pool *pool, unsigned long addr, | |
| 161 | + size_t size, void **owner); | |
| 162 | +static inline void gen_pool_free(struct gen_pool *pool, unsigned long addr, | |
| 163 | + size_t size) | |
| 164 | +{ | |
| 165 | + gen_pool_free_owner(pool, addr, size, NULL); | |
| 166 | +} | |
| 167 | + | |
| 125 | 168 | extern void gen_pool_for_each_chunk(struct gen_pool *, |
| 126 | 169 | void (*)(struct gen_pool *, struct gen_pool_chunk *, void *), void *); |
| 127 | 170 | extern size_t gen_pool_avail(struct gen_pool *); |
| @@ -1,20 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * HID Sensors Driver |
| 3 | 4 | * Copyright (c) 2012, Intel Corporation. |
| 4 | − * | |
| 5 | − * This program is free software; you can redistribute it and/or modify it | |
| 6 | − * under the terms and conditions of the GNU General Public License, | |
| 7 | − * version 2, as published by the Free Software Foundation. | |
| 8 | − * | |
| 9 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 10 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 11 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 12 | − * more details. | |
| 13 | − * | |
| 14 | − * You should have received a copy of the GNU General Public License along with | |
| 15 | − * this program; if not, write to the Free Software Foundation, Inc., | |
| 16 | − * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | |
| 17 | − * | |
| 18 | 5 | */ |
| 19 | 6 | #ifndef _HID_SENSORS_HUB_H |
| 20 | 7 | #define _HID_SENSORS_HUB_H |
| @@ -1,20 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * HID Sensors Driver |
| 3 | 4 | * Copyright (c) 2012, Intel Corporation. |
| 4 | − * | |
| 5 | − * This program is free software; you can redistribute it and/or modify it | |
| 6 | − * under the terms and conditions of the GNU General Public License, | |
| 7 | − * version 2, as published by the Free Software Foundation. | |
| 8 | − * | |
| 9 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 10 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 11 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 12 | − * more details. | |
| 13 | − * | |
| 14 | − * You should have received a copy of the GNU General Public License along with | |
| 15 | − * this program; if not, write to the Free Software Foundation, Inc., | |
| 16 | − * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | |
| 17 | − * | |
| 18 | 5 | */ |
| 19 | 6 | #ifndef _HID_SENSORS_IDS_H |
| 20 | 7 | #define _HID_SENSORS_IDS_H |
| @@ -1,15 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (c) 2007 Jiri Kosina |
| 3 | 4 | */ |
| 4 | −/* | |
| 5 | − * This program is free software; you can redistribute it and/or modify it | |
| 6 | − * under the terms and conditions of the GNU General Public License, | |
| 7 | − * version 2, as published by the Free Software Foundation. | |
| 8 | − * | |
| 9 | − * You should have received a copy of the GNU General Public License along with | |
| 10 | − * this program; if not, write to the Free Software Foundation, Inc., | |
| 11 | − * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | |
| 12 | − */ | |
| 13 | 5 | #ifndef _HIDRAW_H |
| 14 | 6 | #define _HIDRAW_H |
| 15 | 7 | |
| @@ -1,23 +1,10 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * HSI core header file. |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2010 Nokia Corporation. All rights reserved. |
| 5 | 6 | * |
| 6 | 7 | * Contact: Carlos Chinea <carlos.chinea@nokia.com> |
| 7 | − * | |
| 8 | − * This program is free software; you can redistribute it and/or | |
| 9 | − * modify it under the terms of the GNU General Public License | |
| 10 | − * version 2 as published by the Free Software Foundation. | |
| 11 | − * | |
| 12 | − * This program is distributed in the hope that it will be useful, but | |
| 13 | − * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 15 | − * 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., 51 Franklin St, Fifth Floor, Boston, MA | |
| 20 | − * 02110-1301 USA | |
| 21 | 8 | */ |
| 22 | 9 | |
| 23 | 10 | #ifndef __LINUX_HSI_H__ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * ssip_slave.h |
| 3 | 4 | * |
| @@ -6,20 +7,6 @@ · 2 unmodified lines | ||
| 6 | 7 | * Copyright (C) 2010 Nokia Corporation. All rights reserved. |
| 7 | 8 | * |
| 8 | 9 | * Contact: Carlos Chinea <carlos.chinea@nokia.com> |
| 9 | − * | |
| 10 | − * This program is free software; you can redistribute it and/or | |
| 11 | − * modify it under the terms of the GNU General Public License | |
| 12 | − * version 2 as published by the Free Software Foundation. | |
| 13 | − * | |
| 14 | − * This program is distributed in the hope that it will be useful, but | |
| 15 | − * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 17 | − * General Public License for more details. | |
| 18 | − * | |
| 19 | − * You should have received a copy of the GNU General Public License | |
| 20 | − * along with this program; if not, write to the Free Software | |
| 21 | − * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |
| 22 | − * 02110-1301 USA | |
| 23 | 10 | */ |
| 24 | 11 | |
| 25 | 12 | #ifndef __LINUX_SSIP_SLAVE_H__ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | hwmon.h - part of lm_sensors, Linux kernel modules for hardware monitoring |
| 3 | 4 | |
| @@ -6,9 +7,6 @@ · 2 unmodified lines | ||
| 6 | 7 | |
| 7 | 8 | Copyright (C) 2005 Mark M. Hoffman <mhoffman@lightlink.com> |
| 8 | 9 | |
| 9 | − This program is free software; you can redistribute it and/or modify | |
| 10 | − it under the terms of the GNU General Public License as published by | |
| 11 | − the Free Software Foundation; version 2 of the License. | |
| 12 | 10 | */ |
| 13 | 11 | |
| 14 | 12 | #ifndef _HWMON_H_ |
| @@ -1,25 +1,12 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * |
| 3 | 4 | * Copyright (c) 2011, Microsoft Corporation. |
| 4 | 5 | * |
| 5 | − * This program is free software; you can redistribute it and/or modify it | |
| 6 | − * under the terms and conditions of the GNU General Public License, | |
| 7 | − * version 2, as published by the Free Software Foundation. | |
| 8 | − * | |
| 9 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 10 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 11 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 12 | − * more details. | |
| 13 | − * | |
| 14 | − * You should have received a copy of the GNU General Public License along with | |
| 15 | − * this program; if not, write to the Free Software Foundation, Inc., 59 Temple | |
| 16 | − * Place - Suite 330, Boston, MA 02111-1307 USA. | |
| 17 | − * | |
| 18 | 6 | * Authors: |
| 19 | 7 | * Haiyang Zhang <haiyangz@microsoft.com> |
| 20 | 8 | * Hank Janssen <hjanssen@microsoft.com> |
| 21 | 9 | * K. Y. Srinivasan <kys@microsoft.com> |
| 22 | − * | |
| 23 | 10 | */ |
| 24 | 11 | |
| 25 | 12 | #ifndef _HYPERV_H |
| @@ -1,15 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * KXCJK-1013 3-axis accelerometer Interface |
| 3 | 4 | * Copyright (c) 2014, Intel Corporation. |
| 4 | − * | |
| 5 | − * This program is free software; you can redistribute it and/or modify it | |
| 6 | − * under the terms and conditions of the GNU General Public License, | |
| 7 | − * version 2, as published by the Free Software Foundation. | |
| 8 | − * | |
| 9 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 10 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 11 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 12 | − * more details. | |
| 13 | 5 | */ |
| 14 | 6 | |
| 15 | 7 | #ifndef __IIO_KXCJK_1013_H__ |
| @@ -1,16 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * ChromeOS EC sensor hub |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2016 Google, Inc |
| 5 | − * | |
| 6 | − * This software is licensed under the terms of the GNU General Public | |
| 7 | − * License version 2, as published by the Free Software Foundation, and | |
| 8 | − * may be copied, distributed, and modified under those terms. | |
| 9 | − * | |
| 10 | − * This program is distributed in the hope that it will be useful, | |
| 11 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | − * GNU General Public License for more details. | |
| 14 | 6 | */ |
| 15 | 7 | |
| 16 | 8 | #ifndef __CROS_EC_SENSORS_CORE_H |
| @@ -1,10 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (C) 2008 IBM Corporation |
| 3 | 4 | * Author: Mimi Zohar <zohar@us.ibm.com> |
| 4 | − * | |
| 5 | − * This program is free software; you can redistribute it and/or modify | |
| 6 | − * it under the terms of the GNU General Public License as published by | |
| 7 | − * the Free Software Foundation, version 2 of the License. | |
| 8 | 5 | */ |
| 9 | 6 | |
| 10 | 7 | #ifndef _LINUX_IMA_H |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Driver for AUO in-cell touchscreens |
| 3 | 4 | * |
| @@ -7,17 +8,6 @@ · 3 unmodified lines | ||
| 7 | 8 | * |
| 8 | 9 | * Copyright (c) 2008 QUALCOMM Incorporated. |
| 9 | 10 | * Copyright (c) 2008 QUALCOMM USA, INC. |
| 10 | − * | |
| 11 | − * | |
| 12 | − * This software is licensed under the terms of the GNU General Public | |
| 13 | − * License version 2, as published by the Free Software Foundation, and | |
| 14 | − * may be copied, distributed, and modified under those terms. | |
| 15 | − * | |
| 16 | − * This program is distributed in the hope that it will be useful, | |
| 17 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 | − * GNU General Public License for more details. | |
| 20 | − * | |
| 21 | 11 | */ |
| 22 | 12 | |
| 23 | 13 | #ifndef __AUO_PIXCIR_TS_H__ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Header file for: |
| 3 | 4 | * Cypress TrueTouch(TM) Standard Product (TTSP) touchscreen drivers. |
| @@ -9,22 +10,7 @@ · 5 unmodified lines | ||
| 9 | 10 | * Copyright (C) 2009, 2010, 2011 Cypress Semiconductor, Inc. |
| 10 | 11 | * Copyright (C) 2012 Javier Martinez Canillas <javier@dowhile0.org> |
| 11 | 12 | * |
| 12 | − * This program is free software; you can redistribute it and/or | |
| 13 | − * modify it under the terms of the GNU General Public License | |
| 14 | − * version 2, and only version 2, as published by the | |
| 15 | − * Free Software Foundation. | |
| 16 | − * | |
| 17 | − * This program is distributed in the hope that it will be useful, | |
| 18 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 19 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 20 | − * GNU General Public License for more details. | |
| 21 | − * | |
| 22 | − * You should have received a copy of the GNU General Public License along | |
| 23 | − * with this program; if not, write to the Free Software Foundation, Inc., | |
| 24 | − * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
| 25 | − * | |
| 26 | 13 | * Contact Cypress Semiconductor at www.cypress.com (kev@cypress.com) |
| 27 | − * | |
| 28 | 14 | */ |
| 29 | 15 | #ifndef _CYTTSP_H_ |
| 30 | 16 | #define _CYTTSP_H_ |
| @@ -1,20 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (C) 2011 Kionix, Inc. |
| 3 | 4 | * Written by Chris Hudson <chudson@kionix.com> |
| 4 | − * | |
| 5 | − * This program is free software; you can redistribute it and/or modify | |
| 6 | − * it under the terms of the GNU General Public License version 2 as | |
| 7 | − * published by the Free Software Foundation. | |
| 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 | |
| 17 | − * 02111-1307, USA | |
| 18 | 5 | */ |
| 19 | 6 | |
| 20 | 7 | #ifndef __KXTJ9_H__ |
| @@ -1,10 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (C) 2009 IBM Corporation |
| 3 | 4 | * Author: Mimi Zohar <zohar@us.ibm.com> |
| 4 | − * | |
| 5 | − * This program is free software; you can redistribute it and/or modify | |
| 6 | − * it under the terms of the GNU General Public License as published by | |
| 7 | − * the Free Software Foundation, version 2 of the License. | |
| 8 | 5 | */ |
| 9 | 6 | |
| 10 | 7 | #ifndef _LINUX_INTEGRITY_H |
| @@ -1,22 +1,10 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright © 2006-2015, Intel Corporation. |
| 3 | 4 | * |
| 4 | 5 | * Authors: Ashok Raj <ashok.raj@intel.com> |
| 5 | 6 | * Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com> |
| 6 | 7 | * David Woodhouse <David.Woodhouse@intel.com> |
| 7 | − * | |
| 8 | − * This program is free software; you can redistribute it and/or modify it | |
| 9 | − * under the terms and conditions of the GNU General Public License, | |
| 10 | − * version 2, as published by the Free Software Foundation. | |
| 11 | − * | |
| 12 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 13 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 14 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 15 | − * more details. | |
| 16 | − * | |
| 17 | − * You should have received a copy of the GNU General Public License along with | |
| 18 | − * this program; if not, write to the Free Software Foundation, Inc., 59 Temple | |
| 19 | − * Place - Suite 330, Boston, MA 02111-1307 USA. | |
| 20 | 8 | */ |
| 21 | 9 | |
| 22 | 10 | #ifndef _INTEL_IOMMU_H_ |
| @@ -1,16 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright © 2015 Intel Corporation. |
| 3 | 4 | * |
| 4 | 5 | * Authors: David Woodhouse <David.Woodhouse@intel.com> |
| 5 | − * | |
| 6 | − * This program is free software; you can redistribute it and/or modify it | |
| 7 | − * under the terms and conditions of the GNU General Public License, | |
| 8 | − * version 2, as published by the Free Software Foundation. | |
| 9 | − * | |
| 10 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 11 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 12 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 13 | − * more details. | |
| 14 | 6 | */ |
| 15 | 7 | |
| 16 | 8 | #ifndef __INTEL_SVM_H__ |
| @@ -1,19 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (C) 2007-2008 Advanced Micro Devices, Inc. |
| 3 | 4 | * Author: Joerg Roedel <joerg.roedel@amd.com> |
| 4 | − * | |
| 5 | − * This program is free software; you can redistribute it and/or modify it | |
| 6 | − * under the terms of the GNU General Public License version 2 as published | |
| 7 | − * by the Free Software Foundation. | |
| 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 | 5 | */ |
| 18 | 6 | |
| 19 | 7 | #ifndef __LINUX_IOMMU_H |
| @@ -1,15 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (c) 2012-2014 The Linux Foundation. All rights reserved. |
| 3 | − * | |
| 4 | − * This program is free software; you can redistribute it and/or modify | |
| 5 | − * it under the terms of the GNU General Public License version 2 and | |
| 6 | − * only version 2 as published by the Free Software Foundation. | |
| 7 | − * | |
| 8 | − * This program is distributed in the hope that it will be useful, | |
| 9 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 11 | − * GNU General Public License for more details. | |
| 12 | − * | |
| 13 | 4 | */ |
| 14 | 5 | |
| 15 | 6 | #ifndef _LINUX_IOPOLL_H |
| @@ -1,11 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (c) 2006, Intel Corporation. |
| 3 | 4 | * |
| 4 | − * This file is released under the GPLv2. | |
| 5 | − * | |
| 6 | 5 | * Copyright (C) 2006-2008 Intel Corporation |
| 7 | 6 | * Author: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com> |
| 8 | − * | |
| 9 | 7 | */ |
| 10 | 8 | |
| 11 | 9 | #ifndef _IOVA_H_ |
| @@ -1,12 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Industry-pack bus. |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2011-2012 CERN (www.cern.ch) |
| 5 | 6 | * Author: Samuel Iglesias Gonsalvez <siglesias@igalia.com> |
| 6 | − * | |
| 7 | − * This program is free software; you can redistribute it and/or modify it | |
| 8 | − * under the terms of the GNU General Public License as published by the Free | |
| 9 | − * Software Foundation; version 2 of the License. | |
| 10 | 7 | */ |
| 11 | 8 | |
| 12 | 9 | #include <linux/mod_devicetable.h> |
| @@ -1,18 +1,10 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /** |
| 2 | 3 | * irq-omap-intc.h - INTC Idle Functions |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com |
| 5 | 6 | * |
| 6 | 7 | * Author: Felipe Balbi <balbi@ti.com> |
| 7 | − * | |
| 8 | − * This program is free software: you can redistribute it and/or modify | |
| 9 | − * it under the terms of the GNU General Public License version 2 of | |
| 10 | − * the License as published by the Free Software Foundation. | |
| 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 | 8 | */ |
| 17 | 9 | |
| 18 | 10 | #ifndef __INCLUDE_LINUX_IRQCHIP_IRQ_OMAP_INTC_H |
| @@ -1,17 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Export the iSCSI boot info to userland via sysfs. |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2010 Red Hat, Inc. All rights reserved. |
| 5 | 6 | * Copyright (C) 2010 Mike Christie |
| 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 v2.0 as published by | |
| 9 | − * the Free Software Foundation | |
| 10 | − * | |
| 11 | − * This program is distributed in the hope that it will be useful, | |
| 12 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | − * GNU General Public License for more details. | |
| 15 | 7 | */ |
| 16 | 8 | #ifndef _ISCSI_BOOT_SYSFS_ |
| 17 | 9 | #define _ISCSI_BOOT_SYSFS_ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright 2007 Red Hat, Inc. |
| 3 | 4 | * by Peter Jones <pjones@redhat.com> |
| @@ -7,15 +8,6 @@ · 3 unmodified lines | ||
| 7 | 8 | * by Konrad Rzeszutek <ketuzsezr@darnok.org> |
| 8 | 9 | * |
| 9 | 10 | * This code exposes the iSCSI Boot Format Table to userland via sysfs. |
| 10 | − * | |
| 11 | − * This program is free software; you can redistribute it and/or modify | |
| 12 | − * it under the terms of the GNU General Public License v2.0 as published by | |
| 13 | − * the Free Software Foundation | |
| 14 | − * | |
| 15 | − * This program is distributed in the hope that it will be useful, | |
| 16 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 17 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 18 | − * GNU General Public License for more details. | |
| 19 | 11 | */ |
| 20 | 12 | |
| 21 | 13 | #ifndef ISCSI_IBFT_H |
| @@ -1,7 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * kernfs.h - pseudo filesystem decoupled from vfs locking |
| 3 | − * | |
| 4 | − * This file is released under the GPLv2. | |
| 5 | 4 | */ |
| 6 | 5 | |
| 7 | 6 | #ifndef __LINUX_KERNFS_H |
| @@ -1,21 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * include/linux/kmemleak.h |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2008 ARM Limited |
| 5 | 6 | * Written by Catalin Marinas <catalin.marinas@arm.com> |
| 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 version 2 as | |
| 9 | − * published by the Free Software Foundation. | |
| 10 | − * | |
| 11 | − * This program is distributed in the hope that it will be useful, | |
| 12 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | − * GNU General Public License for more details. | |
| 15 | − * | |
| 16 | − * You should have received a copy of the GNU General Public License | |
| 17 | − * along with this program; if not, write to the Free Software | |
| 18 | − * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 19 | 7 | */ |
| 20 | 8 | |
| 21 | 9 | #ifndef __KMEMLEAK_H |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * kref.h - library routines for handling generic reference counted objects |
| 3 | 4 | * |
| @@ -7,9 +8,6 @@ · 3 unmodified lines | ||
| 7 | 8 | * based on kobject.h which was: |
| 8 | 9 | * Copyright (C) 2002-2003 Patrick Mochel <mochel@osdl.org> |
| 9 | 10 | * Copyright (C) 2002-2003 Open Source Development Labs |
| 10 | − * | |
| 11 | − * This file is released under the GPLv2. | |
| 12 | − * | |
| 13 | 11 | */ |
| 14 | 12 | |
| 15 | 13 | #ifndef _KREF_H_ |
| @@ -1,14 +1,10 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * pca9532.h - platform data structure for pca9532 led controller |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2008 Riku Voipio <riku.voipio@movial.fi> |
| 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 as published by | |
| 8 | − * the Free Software Foundation; version 2 of the License. | |
| 9 | − * | |
| 10 | 7 | * Datasheet: http://www.nxp.com/acrobat/datasheets/PCA9532_3.pdf |
| 11 | − * | |
| 12 | 8 | */ |
| 13 | 9 | |
| 14 | 10 | #ifndef __LINUX_PCA9532_H |
| @@ -1,21 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * TCA6507 LED chip driver. |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2011 Neil Brown <neil@brown.name> |
| 5 | − * | |
| 6 | − * This program is free software; you can redistribute it and/or | |
| 7 | − * modify it under the terms of the GNU General Public License | |
| 8 | − * version 2 as 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 | − * You should have received a copy of the GNU General Public License | |
| 16 | − * along with this program; if not, write to the Free Software | |
| 17 | − * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |
| 18 | − * 02110-1301 USA | |
| 19 | 6 | */ |
| 20 | 7 | |
| 21 | 8 | #ifndef __LINUX_TCA6507_H |
| @@ -1,16 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * libnvdimm - Non-volatile-memory Devices Subsystem |
| 3 | 4 | * |
| 4 | 5 | * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. |
| 5 | − * | |
| 6 | − * This program is free software; you can redistribute it and/or modify | |
| 7 | − * it under the terms of version 2 of the GNU General Public License 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 | 6 | */ |
| 15 | 7 | #ifndef __LIBNVDIMM_H__ |
| 16 | 8 | #define __LIBNVDIMM_H__ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | #ifndef LLIST_H |
| 2 | 3 | #define LLIST_H |
| 3 | 4 | /* |
| @@ -45,19 +46,6 @@ · 41 unmodified lines | ||
| 45 | 46 | * |
| 46 | 47 | * Copyright 2010,2011 Intel Corp. |
| 47 | 48 | * Author: Huang Ying <ying.huang@intel.com> |
| 48 | − * | |
| 49 | − * This program is free software; you can redistribute it and/or | |
| 50 | − * modify it under the terms of the GNU General Public License version | |
| 51 | − * 2 as published by the Free Software Foundation; | |
| 52 | − * | |
| 53 | − * This program is distributed in the hope that it will be useful, | |
| 54 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 55 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 56 | − * GNU General Public License for more details. | |
| 57 | − * | |
| 58 | − * You should have received a copy of the GNU General Public License | |
| 59 | − * along with this program; if not, write to the Free Software | |
| 60 | − * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 61 | 49 | */ |
| 62 | 50 | |
| 63 | 51 | #include <linux/atomic.h> |
| @@ -1,12 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * MEN Chameleon Bus. |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2014 MEN Mikroelektronik GmbH (www.men.de) |
| 5 | 6 | * Author: Johannes Thumshirn <johannes.thumshirn@men.de> |
| 6 | − * | |
| 7 | − * This program is free software; you can redistribute it and/or modify it | |
| 8 | − * under the terms of the GNU General Public License as published by the Free | |
| 9 | − * Software Foundation; version 2 of the License. | |
| 10 | 7 | */ |
| 11 | 8 | #ifndef _LINUX_MCB_H |
| 12 | 9 | #define _LINUX_MCB_H |
| @@ -117,9 +117,12 @@ struct memcg_shrinker_map { · 116 unmodified lines | ||
| 117 | 117 | struct mem_cgroup_per_node { |
| 118 | 118 | struct lruvec lruvec; |
| 119 | 119 | |
| 120 | + /* Legacy local VM stats */ | |
| 121 | + struct lruvec_stat __percpu *lruvec_stat_local; | |
| 122 | + | |
| 123 | + /* Subtree VM stats (batched updates) */ | |
| 120 | 124 | struct lruvec_stat __percpu *lruvec_stat_cpu; |
| 121 | 125 | atomic_long_t lruvec_stat[NR_VM_NODE_STAT_ITEMS]; |
| 122 | − atomic_long_t lruvec_stat_local[NR_VM_NODE_STAT_ITEMS]; | |
| 123 | 126 | |
| 124 | 127 | unsigned long lru_zone_size[MAX_NR_ZONES][NR_LRU_LISTS]; |
| 125 | 128 | |
| @@ -265,17 +268,18 @@ struct mem_cgroup { · 139 unmodified lines | ||
| 265 | 268 | atomic_t moving_account; |
| 266 | 269 | struct task_struct *move_lock_task; |
| 267 | 270 | |
| 268 | − /* memory.stat */ | |
| 271 | + /* Legacy local VM stats and events */ | |
| 272 | + struct memcg_vmstats_percpu __percpu *vmstats_local; | |
| 273 | + | |
| 274 | + /* Subtree VM stats and events (batched updates) */ | |
| 269 | 275 | struct memcg_vmstats_percpu __percpu *vmstats_percpu; |
| 270 | 276 | |
| 271 | 277 | MEMCG_PADDING(_pad2_); |
| 272 | 278 | |
| 273 | 279 | atomic_long_t vmstats[MEMCG_NR_STAT]; |
| 274 | − atomic_long_t vmstats_local[MEMCG_NR_STAT]; | |
| 275 | − | |
| 276 | 280 | atomic_long_t vmevents[NR_VM_EVENT_ITEMS]; |
| 277 | − atomic_long_t vmevents_local[NR_VM_EVENT_ITEMS]; | |
| 278 | 281 | |
| 282 | + /* memory.events */ | |
| 279 | 283 | atomic_long_t memory_events[MEMCG_NR_MEMORY_EVENTS]; |
| 280 | 284 | |
| 281 | 285 | unsigned long socket_pressure; |
| @@ -567,7 +571,11 @@ static inline unsigned long memcg_page_state(struct mem_cgroup *memcg, int idx) · 285 unmodified lines | ||
| 567 | 571 | static inline unsigned long memcg_page_state_local(struct mem_cgroup *memcg, |
| 568 | 572 | int idx) |
| 569 | 573 | { |
| 570 | − long x = atomic_long_read(&memcg->vmstats_local[idx]); | |
| 574 | + long x = 0; | |
| 575 | + int cpu; | |
| 576 | + | |
| 577 | + for_each_possible_cpu(cpu) | |
| 578 | + x += per_cpu(memcg->vmstats_local->stat[idx], cpu); | |
| 571 | 579 | #ifdef CONFIG_SMP |
| 572 | 580 | if (x < 0) |
| 573 | 581 | x = 0; |
| @@ -641,13 +649,15 @@ static inline unsigned long lruvec_page_state_local(struct lruvec *lruvec, · 67 unmodified lines | ||
| 641 | 649 | enum node_stat_item idx) |
| 642 | 650 | { |
| 643 | 651 | struct mem_cgroup_per_node *pn; |
| 644 | − long x; | |
| 652 | + long x = 0; | |
| 653 | + int cpu; | |
| 645 | 654 | |
| 646 | 655 | if (mem_cgroup_disabled()) |
| 647 | 656 | return node_page_state(lruvec_pgdat(lruvec), idx); |
| 648 | 657 | |
| 649 | 658 | pn = container_of(lruvec, struct mem_cgroup_per_node, lruvec); |
| 650 | − x = atomic_long_read(&pn->lruvec_stat_local[idx]); | |
| 659 | + for_each_possible_cpu(cpu) | |
| 660 | + x += per_cpu(pn->lruvec_stat_local->count[idx], cpu); | |
| 651 | 661 | #ifdef CONFIG_SMP |
| 652 | 662 | if (x < 0) |
| 653 | 663 | x = 0; |
| @@ -81,6 +81,7 @@ typedef void (*dev_page_free_t)(struct page *page, void *data); · 80 unmodified lines | ||
| 81 | 81 | * @res: physical address range covered by @ref |
| 82 | 82 | * @ref: reference count that pins the devm_memremap_pages() mapping |
| 83 | 83 | * @kill: callback to transition @ref to the dead state |
| 84 | + * @cleanup: callback to wait for @ref to be idle and reap it | |
| 84 | 85 | * @dev: host device of the mapping for debug |
| 85 | 86 | * @data: private data pointer for page_free() |
| 86 | 87 | * @type: memory type: see MEMORY_* in memory_hotplug.h |
| @@ -92,6 +93,7 @@ struct dev_pagemap { · 5 unmodified lines | ||
| 92 | 93 | struct resource res; |
| 93 | 94 | struct percpu_ref *ref; |
| 94 | 95 | void (*kill)(struct percpu_ref *ref); |
| 96 | + void (*cleanup)(struct percpu_ref *ref); | |
| 95 | 97 | struct device *dev; |
| 96 | 98 | void *data; |
| 97 | 99 | enum memory_type type; |
| @@ -100,6 +102,7 @@ struct dev_pagemap { · 2 unmodified lines | ||
| 100 | 102 | |
| 101 | 103 | #ifdef CONFIG_ZONE_DEVICE |
| 102 | 104 | void *devm_memremap_pages(struct device *dev, struct dev_pagemap *pgmap); |
| 105 | +void devm_memunmap_pages(struct device *dev, struct dev_pagemap *pgmap); | |
| 103 | 106 | struct dev_pagemap *get_dev_pagemap(unsigned long pfn, |
| 104 | 107 | struct dev_pagemap *pgmap); |
| 105 | 108 | |
| @@ -118,6 +121,11 @@ static inline void *devm_memremap_pages(struct device *dev, · 12 unmodified lines | ||
| 118 | 121 | return ERR_PTR(-ENXIO); |
| 119 | 122 | } |
| 120 | 123 | |
| 124 | +static inline void devm_memunmap_pages(struct device *dev, | |
| 125 | + struct dev_pagemap *pgmap) | |
| 126 | +{ | |
| 127 | +} | |
| 128 | + | |
| 121 | 129 | static inline struct dev_pagemap *get_dev_pagemap(unsigned long pfn, |
| 122 | 130 | struct dev_pagemap *pgmap) |
| 123 | 131 | { |
| @@ -1,22 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * linux/include/linux/mfd/aat2870.h |
| 3 | 4 | * |
| 4 | 5 | * Copyright (c) 2011, NVIDIA Corporation. |
| 5 | 6 | * Author: Jin Park <jinyoungp@nvidia.com> |
| 6 | − * | |
| 7 | − * This program is free software; you can redistribute it and/or | |
| 8 | − * modify it under the terms of the GNU General Public License | |
| 9 | − * version 2 as published by the Free Software Foundation. | |
| 10 | − * | |
| 11 | − * This program is distributed in the hope that it will be useful, but | |
| 12 | − * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 14 | − * General Public License for more details. | |
| 15 | − * | |
| 16 | − * You should have received a copy of the GNU General Public License | |
| 17 | − * along with this program; if not, write to the Free Software | |
| 18 | − * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |
| 19 | − * 02110-1301 USA | |
| 20 | 7 | */ |
| 21 | 8 | |
| 22 | 9 | #ifndef __LINUX_MFD_AAT2870_H |
| @@ -1,12 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * AS3711 PMIC MFC driver header |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2012 Renesas Electronics Corporation |
| 5 | 6 | * Author: Guennadi Liakhovetski, <g.liakhovetski@gmx.de> |
| 6 | − * | |
| 7 | − * This program is free software; you can redistribute it and/or modify | |
| 8 | − * it under the terms of the version 2 of the GNU General Public License as | |
| 9 | − * published by the Free Software Foundation | |
| 10 | 7 | */ |
| 11 | 8 | |
| 12 | 9 | #ifndef MFD_AS3711_H |
| @@ -1,16 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * ChromeOS EC multi-function device |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2012 Google, Inc |
| 5 | − * | |
| 6 | − * This software is licensed under the terms of the GNU General Public | |
| 7 | − * License version 2, as published by the Free Software Foundation, and | |
| 8 | − * may be copied, distributed, and modified under those terms. | |
| 9 | − * | |
| 10 | − * This program is distributed in the hope that it will be useful, | |
| 11 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | − * GNU General Public License for more details. | |
| 14 | 6 | */ |
| 15 | 7 | |
| 16 | 8 | #ifndef __LINUX_MFD_CROS_EC_H |
| @@ -1,17 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Host communication command constants for ChromeOS EC |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2012 Google, Inc |
| 5 | 6 | * |
| 6 | − * This software is licensed under the terms of the GNU General Public | |
| 7 | − * License version 2, as published by the Free Software Foundation, and | |
| 8 | − * may be copied, distributed, and modified under those terms. | |
| 9 | − * | |
| 10 | − * This program is distributed in the hope that it will be useful, | |
| 11 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | − * GNU General Public License for more details. | |
| 14 | − * | |
| 15 | 7 | * The ChromeOS EC multi function device is used to mux all the requests |
| 16 | 8 | * to the EC device for its multiple features: keyboard controller, |
| 17 | 9 | * battery charging and regulator control, firmware update. |
| @@ -1,12 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Kontron PLD driver definitions |
| 3 | 4 | * |
| 4 | 5 | * Copyright (c) 2010-2012 Kontron Europe GmbH |
| 5 | 6 | * Author: Michael Brunner <michael.brunner@kontron.com> |
| 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 2 as published | |
| 9 | − * by the Free Software Foundation. | |
| 10 | 7 | */ |
| 11 | 8 | |
| 12 | 9 | #ifndef _LINUX_MFD_KEMPLD_H_ |
| @@ -1,11 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Functions to access LP87565 power management chip. |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/ |
| 5 | − * | |
| 6 | − * This program is free software; you can redistribute it and/or | |
| 7 | − * modify it under the terms of the GNU General Public License as | |
| 8 | − * published by the Free Software Foundation version 2. | |
| 9 | 6 | */ |
| 10 | 7 | |
| 11 | 8 | #ifndef __LINUX_MFD_LP87565_H |
| @@ -1,21 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * linux/drivers/mfd/lpc_ich.h |
| 3 | 4 | * |
| 4 | 5 | * Copyright (c) 2012 Extreme Engineering Solution, Inc. |
| 5 | 6 | * Author: Aaron Sierra <asierra@xes-inc.com> |
| 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 2 as published | |
| 9 | − * by the Free Software Foundation. | |
| 10 | − * | |
| 11 | − * This program is distributed in the hope that it will be useful, | |
| 12 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | − * GNU General Public License for more details. | |
| 15 | − * | |
| 16 | − * You should have received a copy of the GNU General Public License | |
| 17 | − * along with this program; see the file COPYING. If not, write to | |
| 18 | − * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | |
| 19 | 7 | */ |
| 20 | 8 | #ifndef LPC_ICH_H |
| 21 | 9 | #define LPC_ICH_H |
| @@ -1,11 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Defining registers address and its bit definitions of MAX77620 and MAX20024 |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2016 NVIDIA CORPORATION. All rights reserved. |
| 5 | − * | |
| 6 | − * This program is free software; you can redistribute it and/or modify it | |
| 7 | − * under the terms and conditions of the GNU General Public License, | |
| 8 | − * version 2, as published by the Free Software Foundation. | |
| 9 | 6 | */ |
| 10 | 7 | |
| 11 | 8 | #ifndef _MFD_MAX77620_H_ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Register definitions for Rockchip's RK808/RK818 PMIC |
| 3 | 4 | * |
| @@ -9,15 +10,6 @@ · 5 unmodified lines | ||
| 9 | 10 | * Copyright (C) 2016 PHYTEC Messtechnik GmbH |
| 10 | 11 | * |
| 11 | 12 | * Author: Wadim Egorov <w.egorov@phytec.de> |
| 12 | − * | |
| 13 | − * This program is free software; you can redistribute it and/or modify it | |
| 14 | − * under the terms and conditions of the GNU General Public License, | |
| 15 | − * version 2, as published by the Free Software Foundation. | |
| 16 | − * | |
| 17 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 18 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 19 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 20 | − * more details. | |
| 21 | 13 | */ |
| 22 | 14 | |
| 23 | 15 | #ifndef __LINUX_REGULATOR_RK808_H |
| @@ -1,14 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * MFD core driver for Ricoh RN5T618 PMIC |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2014 Beniamino Galvani <b.galvani@gmail.com> |
| 5 | − * | |
| 6 | − * This program is free software; you can redistribute it and/or | |
| 7 | − * modify it under the terms of the GNU General Public License | |
| 8 | − * version 2 as published by the Free Software Foundation. | |
| 9 | − * | |
| 10 | − * You should have received a copy of the GNU General Public License | |
| 11 | − * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 12 | 6 | */ |
| 13 | 7 | |
| 14 | 8 | #ifndef __LINUX_MFD_RN5T618_H |
| @@ -1,12 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * MFD core driver for Richtek RT5033 |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2014 Samsung Electronics, Co., Ltd. |
| 5 | 6 | * Author: Beomho Seo <beomho.seo@samsung.com> |
| 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 version 2 as | |
| 9 | − * published bythe Free Software Foundation. | |
| 10 | 7 | */ |
| 11 | 8 | |
| 12 | 9 | #ifndef __RT5033_PRIVATE_H__ |
| @@ -1,12 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * MFD core driver for the RT5033 |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2014 Samsung Electronics |
| 5 | 6 | * Author: Beomho Seo <beomho.seo@samsung.com> |
| 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 version 2 as | |
| 9 | − * published bythe Free Software Foundation. | |
| 10 | 7 | */ |
| 11 | 8 | |
| 12 | 9 | #ifndef __RT5033_H__ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * include/media/si476x-core.h -- Common definitions for si476x core |
| 3 | 4 | * device |
| @@ -6,16 +7,6 @@ · 2 unmodified lines | ||
| 6 | 7 | * Copyright (C) 2013 Andrey Smirnov |
| 7 | 8 | * |
| 8 | 9 | * Author: Andrey Smirnov <andrew.smirnov@gmail.com> |
| 9 | − * | |
| 10 | − * This program is free software; you can redistribute it and/or modify | |
| 11 | − * it under the terms of the GNU General Public License as published by | |
| 12 | − * the Free Software Foundation; version 2 of the License. | |
| 13 | − * | |
| 14 | − * This program is distributed in the hope that it will be useful, but | |
| 15 | − * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 17 | − * General Public License for more details. | |
| 18 | − * | |
| 19 | 10 | */ |
| 20 | 11 | |
| 21 | 12 | #ifndef SI476X_CORE_H |
| @@ -1,19 +1,10 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * include/media/si476x-platform.h -- Platform data specific definitions |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2013 Andrey Smirnov |
| 5 | 6 | * |
| 6 | 7 | * Author: Andrey Smirnov <andrew.smirnov@gmail.com> |
| 7 | − * | |
| 8 | − * This program is free software; you can redistribute it and/or modify | |
| 9 | − * it under the terms of the GNU General Public License as published by | |
| 10 | − * the Free Software Foundation; version 2 of the License. | |
| 11 | − * | |
| 12 | − * This program is distributed in the hope that it will be useful, but | |
| 13 | − * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 15 | − * General Public License for more details. | |
| 16 | − * | |
| 17 | 8 | */ |
| 18 | 9 | |
| 19 | 10 | #ifndef __SI476X_PLATFORM_H__ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * include/media/si476x-platform.h -- Definitions of the data formats |
| 3 | 4 | * returned by debugfs hooks |
| @@ -5,16 +6,6 @@ · 1 unmodified line | ||
| 5 | 6 | * Copyright (C) 2013 Andrey Smirnov |
| 6 | 7 | * |
| 7 | 8 | * Author: Andrey Smirnov <andrew.smirnov@gmail.com> |
| 8 | − * | |
| 9 | − * This program is free software; you can redistribute it and/or modify | |
| 10 | − * it under the terms of the GNU General Public License as published by | |
| 11 | − * the Free Software Foundation; version 2 of the License. | |
| 12 | − * | |
| 13 | − * This program is distributed in the hope that it will be useful, but | |
| 14 | − * 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 | 9 | */ |
| 19 | 10 | |
| 20 | 11 | #ifndef __SI476X_REPORTS_H__ |
| @@ -1,20 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (c) 2009-2011 Wind River Systems, Inc. |
| 3 | 4 | * Copyright (c) 2011 ST Microelectronics (Alessandro Rubini) |
| 4 | 5 | * |
| 5 | − * This program is free software; you can redistribute it and/or modify | |
| 6 | − * it under the terms of the GNU General Public License version 2 as | |
| 7 | − * published by the Free Software Foundation. | |
| 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. | |
| 12 | − * See the 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 | 6 | * The STMicroelectronics ConneXt (STA2X11) chip has several unrelated |
| 19 | 7 | * functions in one PCI endpoint functions. This driver simply |
| 20 | 8 | * registers the platform devices in this iomemregion and exports a few |
| @@ -1,24 +1,10 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * MFD driver for twl4030 audio submodule |
| 3 | 4 | * |
| 4 | 5 | * Author: Peter Ujfalusi <peter.ujfalusi@ti.com> |
| 5 | 6 | * |
| 6 | 7 | * Copyright: (C) 2009 Nokia Corporation |
| 7 | − * | |
| 8 | − * This program is free software; you can redistribute it and/or modify | |
| 9 | − * it under the terms of the GNU General Public License version 2 as | |
| 10 | − * published by the Free Software Foundation. | |
| 11 | − * | |
| 12 | − * This program is distributed in the hope that it will be useful, but | |
| 13 | − * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 15 | − * 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., 51 Franklin St, Fifth Floor, Boston, MA | |
| 20 | − * 02110-1301 USA | |
| 21 | − * | |
| 22 | 8 | */ |
| 23 | 9 | |
| 24 | 10 | #ifndef __TWL4030_CODEC_H__ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * MFD driver for twl6040 |
| 3 | 4 | * |
| @@ -5,21 +6,6 @@ · 1 unmodified line | ||
| 5 | 6 | * Misael Lopez Cruz <misael.lopez@ti.com> |
| 6 | 7 | * |
| 7 | 8 | * Copyright: (C) 2011 Texas Instruments, Inc. |
| 8 | − * | |
| 9 | − * This program is free software; you can redistribute it and/or modify | |
| 10 | − * it under the terms of the GNU General Public License version 2 as | |
| 11 | − * published by the Free Software Foundation. | |
| 12 | − * | |
| 13 | − * This program is distributed in the hope that it will be useful, but | |
| 14 | − * 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 License | |
| 19 | − * along with this program; if not, write to the Free Software | |
| 20 | − * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |
| 21 | − * 02110-1301 USA | |
| 22 | − * | |
| 23 | 9 | */ |
| 24 | 10 | |
| 25 | 11 | #ifndef __TWL6040_CODEC_H__ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * include/linux/mfd/wl1273-core.h |
| 3 | 4 | * |
| @@ -5,20 +6,6 @@ · 1 unmodified line | ||
| 5 | 6 | * |
| 6 | 7 | * Copyright (C) 2010 Nokia Corporation |
| 7 | 8 | * Author: Matti J. Aaltonen <matti.j.aaltonen@nokia.com> |
| 8 | − * | |
| 9 | − * This program is free software; you can redistribute it and/or | |
| 10 | − * modify it under the terms of the GNU General Public License | |
| 11 | − * version 2 as published by the Free Software Foundation. | |
| 12 | − * | |
| 13 | − * This program is distributed in the hope that it will be useful, but | |
| 14 | − * 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 License | |
| 19 | − * along with this program; if not, write to the Free Software | |
| 20 | − * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |
| 21 | − * 02110-1301 USA | |
| 22 | 9 | */ |
| 23 | 10 | |
| 24 | 11 | #ifndef WL1273_CORE_H |
| @@ -1,20 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Intel MIC Platform Software Stack (MPSS) |
| 3 | 4 | * |
| 4 | 5 | * Copyright(c) 2014 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 | 7 | * Intel MIC Bus driver. |
| 19 | 8 | * |
| 20 | 9 | * This implementation is very similar to the the virtio bus driver |
| @@ -99,6 +99,17 @@ extern int mmap_rnd_compat_bits __read_mostly; · 98 unmodified lines | ||
| 99 | 99 | #include <asm/pgtable.h> |
| 100 | 100 | #include <asm/processor.h> |
| 101 | 101 | |
| 102 | +/* | |
| 103 | + * Architectures that support memory tagging (assigning tags to memory regions, | |
| 104 | + * embedding these tags into addresses that point to these memory regions, and | |
| 105 | + * checking that the memory and the pointer tags match on memory accesses) | |
| 106 | + * redefine this macro to strip tags from pointers. | |
| 107 | + * It's defined as noop for arcitectures that don't support memory tagging. | |
| 108 | + */ | |
| 109 | +#ifndef untagged_addr | |
| 110 | +#define untagged_addr(addr) (addr) | |
| 111 | +#endif | |
| 112 | + | |
| 102 | 113 | #ifndef __pa_symbol |
| 103 | 114 | #define __pa_symbol(x) __pa(RELOC_HIDE((unsigned long)(x), 0)) |
| 104 | 115 | #endif |
| @@ -1,14 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. |
| 3 | − * | |
| 4 | − * This program is free software; you can redistribute it and/or modify | |
| 5 | − * it under the terms of version 2 of the GNU General Public License as | |
| 6 | − * published by the Free Software Foundation. | |
| 7 | − * | |
| 8 | − * This program is distributed in the hope that it will be useful, but | |
| 9 | − * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 11 | − * General Public License for more details. | |
| 12 | 4 | */ |
| 13 | 5 | #ifndef __LINUX_ND_H__ |
| 14 | 6 | #define __LINUX_ND_H__ |
| @@ -1,9 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * OF helpers for the MDIO (Ethernet PHY) API |
| 3 | 4 | * |
| 4 | 5 | * Copyright (c) 2009 Secret Lab Technologies, Ltd. |
| 5 | − * | |
| 6 | − * This file is released under the GPLv2 | |
| 7 | 6 | */ |
| 8 | 7 | |
| 9 | 8 | #ifndef __LINUX_OF_MDIO_H |
| @@ -1,7 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * OF helpers for network devices. |
| 3 | − * | |
| 4 | − * This file is released under the GPLv2 | |
| 5 | 4 | */ |
| 6 | 5 | |
| 7 | 6 | #ifndef __LINUX_OF_NET_H |
| @@ -1,19 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (c) 2007-2011 Nicira Networks. |
| 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 | − * | |
| 8 | − * This program is distributed in the hope that it will be useful, but | |
| 9 | − * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 11 | − * General Public License for more details. | |
| 12 | − * | |
| 13 | − * You should have received a copy of the GNU General Public License | |
| 14 | − * along with this program; if not, write to the Free Software | |
| 15 | − * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | |
| 16 | − * 02110-1301, USA | |
| 17 | 4 | */ |
| 18 | 5 | |
| 19 | 6 | #ifndef _LINUX_OPENVSWITCH_H |
| @@ -1,21 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * padata.h - header for the padata parallelization interface |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2008, 2009 secunet Security Networks AG |
| 5 | 6 | * Copyright (C) 2008, 2009 Steffen Klassert <steffen.klassert@secunet.com> |
| 6 | − * | |
| 7 | − * This program is free software; you can redistribute it and/or modify it | |
| 8 | − * under the terms and conditions of the GNU General Public License, | |
| 9 | − * version 2, as published by the Free Software Foundation. | |
| 10 | − * | |
| 11 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 12 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 13 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 14 | − * more details. | |
| 15 | − * | |
| 16 | − * You should have received a copy of the GNU General Public License along with | |
| 17 | − * this program; if not, write to the Free Software Foundation, Inc., | |
| 18 | − * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | |
| 19 | 7 | */ |
| 20 | 8 | |
| 21 | 9 | #ifndef PADATA_H |
| @@ -1,19 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright 2011 Red Hat, Inc. |
| 3 | 4 | * All rights reserved. |
| 4 | 5 | * |
| 5 | − * This program is free software; you can redistribute it and/or modify | |
| 6 | − * it under the terms of the GNU General Public License as published by | |
| 7 | − * the Free Software Foundation; version 2 of the License. | |
| 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, see <http://www.gnu.org/licenses/>. | |
| 16 | − * | |
| 17 | 6 | * Author(s): Peter Jones <pjones@redhat.com> |
| 18 | 7 | */ |
| 19 | 8 | #ifndef __LINUX_PE_H |
| @@ -1,23 +1,10 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /** |
| 2 | 3 | * file phonet.h |
| 3 | 4 | * |
| 4 | 5 | * Phonet sockets kernel interface |
| 5 | 6 | * |
| 6 | 7 | * Copyright (C) 2008 Nokia Corporation. All rights reserved. |
| 7 | − * | |
| 8 | − * This program is free software; you can redistribute it and/or | |
| 9 | − * modify it under the terms of the GNU General Public License | |
| 10 | − * version 2 as published by the Free Software Foundation. | |
| 11 | − * | |
| 12 | − * This program is distributed in the hope that it will be useful, but | |
| 13 | − * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 15 | − * 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., 51 Franklin St, Fifth Floor, Boston, MA | |
| 20 | − * 02110-1301 USA | |
| 21 | 8 | */ |
| 22 | 9 | #ifndef LINUX_PHONET_H |
| 23 | 10 | #define LINUX_PHONET_H |
| @@ -1,14 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (c) 2015 Hans de Goede <hdegoede@redhat.com> |
| 3 | − * | |
| 4 | − * This program is free software; you can redistribute it and/or modify | |
| 5 | − * it under the terms of the GNU General Public License version 2 and | |
| 6 | − * only version 2 as published by the Free Software Foundation. | |
| 7 | − * | |
| 8 | − * This program is distributed in the hope that it will be useful, | |
| 9 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 11 | − * GNU General Public License for more details. | |
| 12 | 4 | */ |
| 13 | 5 | |
| 14 | 6 | #ifndef PHY_SUN4I_USB_H_ |
| @@ -1,14 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. |
| 3 | − * | |
| 4 | − * This program is free software; you can redistribute it and/or modify it | |
| 5 | − * under the terms and conditions of the GNU General Public License, | |
| 6 | − * version 2, as published by the Free Software Foundation. | |
| 7 | − * | |
| 8 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 9 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 10 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 11 | − * more details. | |
| 12 | 4 | */ |
| 13 | 5 | |
| 14 | 6 | #ifndef PHY_TEGRA_XUSB_H |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * This file is part of the APDS990x sensor driver. |
| 3 | 4 | * Chip is combined proximity and ambient light sensor. |
| @@ -5,21 +6,6 @@ · 1 unmodified line | ||
| 5 | 6 | * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 6 | 7 | * |
| 7 | 8 | * Contact: Samu Onkalo <samu.p.onkalo@nokia.com> |
| 8 | − * | |
| 9 | − * This program is free software; you can redistribute it and/or | |
| 10 | − * modify it under the terms of the GNU General Public License | |
| 11 | − * version 2 as published by the Free Software Foundation. | |
| 12 | − * | |
| 13 | − * This program is distributed in the hope that it will be useful, but | |
| 14 | − * 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 License | |
| 19 | − * along with this program; if not, write to the Free Software | |
| 20 | − * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |
| 21 | − * 02110-1301 USA | |
| 22 | − * | |
| 23 | 9 | */ |
| 24 | 10 | |
| 25 | 11 | #ifndef __APDS990X_H__ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * This file is part of the ROHM BH1770GLC / OSRAM SFH7770 sensor driver. |
| 3 | 4 | * Chip is combined proximity and ambient light sensor. |
| @@ -5,21 +6,6 @@ · 1 unmodified line | ||
| 5 | 6 | * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 6 | 7 | * |
| 7 | 8 | * Contact: Samu Onkalo <samu.p.onkalo@nokia.com> |
| 8 | − * | |
| 9 | − * This program is free software; you can redistribute it and/or | |
| 10 | − * modify it under the terms of the GNU General Public License | |
| 11 | − * version 2 as published by the Free Software Foundation. | |
| 12 | − * | |
| 13 | − * This program is distributed in the hope that it will be useful, but | |
| 14 | − * 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 License | |
| 19 | − * along with this program; if not, write to the Free Software | |
| 20 | − * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |
| 21 | − * 02110-1301 USA | |
| 22 | − * | |
| 23 | 9 | */ |
| 24 | 10 | |
| 25 | 11 | #ifndef __BH1770_H__ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Header file for: |
| 3 | 4 | * Cypress TrueTouch(TM) Standard Product (TTSP) touchscreen drivers. |
| @@ -9,22 +10,7 @@ · 5 unmodified lines | ||
| 9 | 10 | * Copyright (C) 2009, 2010, 2011 Cypress Semiconductor, Inc. |
| 10 | 11 | * Copyright (C) 2012 Javier Martinez Canillas <javier@dowhile0.org> |
| 11 | 12 | * |
| 12 | − * This program is free software; you can redistribute it and/or | |
| 13 | − * modify it under the terms of the GNU General Public License | |
| 14 | − * version 2, and only version 2, as published by the | |
| 15 | − * Free Software Foundation. | |
| 16 | − * | |
| 17 | − * This program is distributed in the hope that it will be useful, | |
| 18 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 19 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 20 | − * GNU General Public License for more details. | |
| 21 | − * | |
| 22 | − * You should have received a copy of the GNU General Public License along | |
| 23 | − * with this program; if not, write to the Free Software Foundation, Inc., | |
| 24 | − * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
| 25 | − * | |
| 26 | 13 | * Contact Cypress Semiconductor at www.cypress.com (kev@cypress.com) |
| 27 | − * | |
| 28 | 14 | */ |
| 29 | 15 | #ifndef _CYTTSP4_H_ |
| 30 | 16 | #define _CYTTSP4_H_ |
| @@ -1,18 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix |
| 3 | − * | |
| 4 | − * This program is free software; you can redistribute it and/or modify | |
| 5 | − * it under the terms of the GNU General Public License version 2 | |
| 6 | − * as published by the Free Software Foundation. | |
| 7 | − * | |
| 8 | − * This program is distributed in the hope that it will be useful, | |
| 9 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 11 | − * GNU General Public License for more details. | |
| 12 | − * | |
| 13 | − * You should have received a copy of the GNU General Public License | |
| 14 | − * along with this program; if not, write to the Free Software | |
| 15 | − * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 16 | 4 | */ |
| 17 | 5 | |
| 18 | 6 | #ifndef __ETH_NETX_H |
| @@ -1,14 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright(c) 2014 Intel Corporation. |
| 3 | − * | |
| 4 | − * This program is free software; you can redistribute it and/or modify it | |
| 5 | − * under the terms and conditions of the GNU General Public License, | |
| 6 | − * version 2, as published by the Free Software Foundation. | |
| 7 | − * | |
| 8 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 9 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 10 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 11 | − * more details. | |
| 12 | 4 | */ |
| 13 | 5 | |
| 14 | 6 | #ifndef GPIO_DW_APB_H |
| @@ -1,12 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * OMAP GPMC Platform data |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2014 Texas Instruments, Inc. - http://www.ti.com |
| 5 | 6 | * Roger Quadros <rogerq@ti.com> |
| 6 | − * | |
| 7 | − * This program is free software; you can redistribute it and/or modify it | |
| 8 | − * under the terms and conditions of the GNU General Public License, | |
| 9 | − * version 2, as published by the Free Software Foundation. | |
| 10 | 7 | */ |
| 11 | 8 | |
| 12 | 9 | #ifndef _GPMC_OMAP_H_ |
| @@ -1,14 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright(c) 2014 Intel Corporation. |
| 3 | − * | |
| 4 | − * This program is free software; you can redistribute it and/or modify it | |
| 5 | − * under the terms and conditions of the GNU General Public License, | |
| 6 | − * version 2, as published by the Free Software Foundation. | |
| 7 | − * | |
| 8 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 9 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 10 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 11 | − * more details. | |
| 12 | 4 | */ |
| 13 | 5 | |
| 14 | 6 | #ifndef I2C_DESIGNWARE_H |
| @@ -1,9 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * i2c.h - i.MX I2C driver header file |
| 3 | 4 | * |
| 4 | 5 | * Copyright (c) 2008, Darius Augulis <augulis.darius@gmail.com> |
| 5 | − * | |
| 6 | − * This file is released under the GPLv2 | |
| 7 | 6 | */ |
| 8 | 7 | |
| 9 | 8 | #ifndef __ASM_ARCH_I2C_H_ |
| @@ -1,14 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (C) 2012 Invensense, Inc. |
| 3 | −* | |
| 4 | −* This software is licensed under the terms of the GNU General Public | |
| 5 | −* License version 2, as published by the Free Software Foundation, and | |
| 6 | −* may be copied, distributed, and modified under those terms. | |
| 7 | −* | |
| 8 | −* This program is distributed in the hope that it will be useful, | |
| 9 | −* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10 | −* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 11 | −* GNU General Public License for more details. | |
| 12 | 4 | */ |
| 13 | 5 | |
| 14 | 6 | #ifndef __INV_MPU6050_PLATFORM_H_ |
| @@ -1,22 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * PCA963X LED chip driver. |
| 3 | 4 | * |
| 4 | 5 | * Copyright 2012 bct electronic GmbH |
| 5 | 6 | * Copyright 2013 Qtechnology A/S |
| 6 | − * | |
| 7 | − * This program is free software; you can redistribute it and/or | |
| 8 | − * modify it under the terms of the GNU General Public License | |
| 9 | − * version 2 as published by the Free Software Foundation. | |
| 10 | − * | |
| 11 | − * This program is distributed in the hope that it will be useful, but | |
| 12 | − * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 14 | − * General Public License for more details. | |
| 15 | − * | |
| 16 | − * You should have received a copy of the GNU General Public License | |
| 17 | − * along with this program; if not, write to the Free Software | |
| 18 | − * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |
| 19 | − * 02110-1301 USA | |
| 20 | 7 | */ |
| 21 | 8 | |
| 22 | 9 | #ifndef __LINUX_PCA963X_H |
| @@ -1,18 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * lm8323.h - Configuration for LM8323 keypad driver. |
| 3 | − * | |
| 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 (version 2 of the License only). | |
| 7 | − * | |
| 8 | − * This program is distributed in the hope that it will be useful, | |
| 9 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 11 | − * GNU General Public License for more details. | |
| 12 | − * | |
| 13 | − * You should have received a copy of the GNU General Public License | |
| 14 | − * along with this program; if not, write to the Free Software | |
| 15 | − * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 16 | 4 | */ |
| 17 | 5 | |
| 18 | 6 | #ifndef __LINUX_LM8323_H |
| @@ -1,10 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright 2010 Wolfram Sang <w.sang@pengutronix.de> |
| 3 | − * | |
| 4 | − * This program is free software; you can redistribute it and/or | |
| 5 | − * modify it under the terms of the GNU General Public License | |
| 6 | − * as published by the Free Software Foundation; version 2 | |
| 7 | − * of the License. | |
| 8 | 4 | */ |
| 9 | 5 | |
| 10 | 6 | #ifndef __ASM_ARCH_IMX_ESDHC_H |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /** |
| 2 | 3 | * omap-twl4030.h - ASoC machine driver for TI SoC based boards with twl4030 |
| 3 | 4 | * codec, header. |
| @@ -6,20 +7,6 @@ · 2 unmodified lines | ||
| 6 | 7 | * All rights reserved. |
| 7 | 8 | * |
| 8 | 9 | * Author: Peter Ujfalusi <peter.ujfalusi@ti.com> |
| 9 | − * | |
| 10 | − * This program is free software; you can redistribute it and/or | |
| 11 | − * modify it under the terms of the GNU General Public License | |
| 12 | − * version 2 as published by the Free Software Foundation. | |
| 13 | − * | |
| 14 | − * This program is distributed in the hope that it will be useful, but | |
| 15 | − * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 17 | − * General Public License for more details. | |
| 18 | − * | |
| 19 | − * You should have received a copy of the GNU General Public License | |
| 20 | − * along with this program; if not, write to the Free Software | |
| 21 | − * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |
| 22 | − * 02110-1301 USA | |
| 23 | 10 | */ |
| 24 | 11 | |
| 25 | 12 | #ifndef _OMAP_TWL4030_H_ |
| @@ -1,15 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Purna Chandra Mandal, purna.mandal@microchip.com |
| 3 | 4 | * Copyright (C) 2015 Microchip Technology Inc. All rights reserved. |
| 4 | − * | |
| 5 | − * This program is free software; you can distribute it and/or modify it | |
| 6 | − * under the terms of the GNU General Public License (Version 2) as | |
| 7 | − * published by the Free Software Foundation. | |
| 8 | − * | |
| 9 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 10 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 11 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
| 12 | − * for more details. | |
| 13 | 5 | */ |
| 14 | 6 | #ifndef __PIC32_SDHCI_PDATA_H__ |
| 15 | 7 | #define __PIC32_SDHCI_PDATA_H__ |
| @@ -1,16 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (C) 2014 Sensirion AG, Switzerland |
| 3 | 4 | * Author: Johannes Winkelmann <johannes.winkelmann@sensirion.com> |
| 4 | − * | |
| 5 | − * This software is licensed under the terms of the GNU General Public | |
| 6 | − * License version 2, as published by the Free Software Foundation, and | |
| 7 | − * may be copied, distributed, and modified under those terms. | |
| 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 | 5 | */ |
| 15 | 6 | |
| 16 | 7 | #ifndef __SHTC1_H_ |
| @@ -1,12 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (c) 2009 Nuvoton technology corporation. |
| 3 | 4 | * |
| 4 | 5 | * Wan ZongShun <mcuos.com@gmail.com> |
| 5 | − * | |
| 6 | − * This program is free software; you can redistribute it and/or modify | |
| 7 | − * it under the terms of the GNU General Public License as published by | |
| 8 | − * the Free Software Foundation;version 2 of the License. | |
| 9 | − * | |
| 10 | 6 | */ |
| 11 | 7 | |
| 12 | 8 | #ifndef __SPI_NUC900_H |
| @@ -1,17 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Intel Atom platform clocks for BayTrail and CherryTrail SoC. |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2016, Intel Corporation |
| 5 | 6 | * Author: Irina Tirdea <irina.tirdea@intel.com> |
| 6 | − * | |
| 7 | − * This program is free software; you can redistribute it and/or modify it | |
| 8 | − * under the terms and conditions of the GNU General Public License, | |
| 9 | − * version 2, as published by the Free Software Foundation. | |
| 10 | − * | |
| 11 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 12 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 13 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 14 | − * more details. | |
| 15 | 7 | */ |
| 16 | 8 | |
| 17 | 9 | #ifndef __PLATFORM_DATA_X86_CLK_PMC_ATOM_H |
| @@ -1,16 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Intel Atom SOC Power Management Controller Header File |
| 3 | 4 | * Copyright (c) 2014, Intel Corporation. |
| 4 | − * | |
| 5 | − * This program is free software; you can redistribute it and/or modify it | |
| 6 | − * under the terms and conditions of the GNU General Public License, | |
| 7 | − * version 2, as published by the Free Software Foundation. | |
| 8 | − * | |
| 9 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 10 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 11 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 12 | − * more details. | |
| 13 | − * | |
| 14 | 5 | */ |
| 15 | 6 | |
| 16 | 7 | #ifndef PMC_ATOM_H |
| @@ -1,15 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* drivers/input/touchscreen/zforce.c |
| 2 | 3 | * |
| 3 | 4 | * Copyright (C) 2012-2013 MundoReader S.L. |
| 4 | − * | |
| 5 | − * This software is licensed under the terms of the GNU General Public | |
| 6 | − * License version 2, as published by the Free Software Foundation, and | |
| 7 | − * may be copied, distributed, and modified under those terms. | |
| 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 | 5 | */ |
| 14 | 6 | |
| 15 | 7 | #ifndef _LINUX_INPUT_ZFORCE_TS_H |
| @@ -1,10 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * platform_device.h - generic, centralized driver model |
| 3 | 4 | * |
| 4 | 5 | * Copyright (c) 2001-2003 Patrick Mochel <mochel@osdl.org> |
| 5 | 6 | * |
| 6 | − * This file is released under the GPLv2 | |
| 7 | − * | |
| 8 | 7 | * See Documentation/driver-model/ for more information. |
| 9 | 8 | */ |
| 10 | 9 | |
| @@ -1,23 +1,10 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * PM2301 charger driver. |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2012 ST Ericsson Corporation |
| 5 | 6 | * |
| 6 | 7 | * Contact: Olivier LAUNAY (olivier.launay@stericsson.com |
| 7 | − * | |
| 8 | − * This program is free software; you can redistribute it and/or | |
| 9 | − * modify it under the terms of the GNU General Public License | |
| 10 | − * version 2 as published by the Free Software Foundation. | |
| 11 | − * | |
| 12 | − * This program is distributed in the hope that it will be useful, but | |
| 13 | − * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 15 | − * 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., 51 Franklin St, Fifth Floor, Boston, MA | |
| 20 | − * 02110-1301 USA | |
| 21 | 8 | */ |
| 22 | 9 | |
| 23 | 10 | #ifndef __LINUX_PM2301_H |
| @@ -1,9 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * pm_clock.h - Definitions and headers related to device clocks. |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2011 Rafael J. Wysocki <rjw@sisk.pl>, Renesas Electronics Corp. |
| 5 | − * | |
| 6 | − * This file is released under the GPLv2. | |
| 7 | 6 | */ |
| 8 | 7 | |
| 9 | 8 | #ifndef _LINUX_PM_CLOCK_H |
| @@ -1,9 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * pm_domain.h - Definitions and headers related to device power domains. |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2011 Rafael J. Wysocki <rjw@sisk.pl>, Renesas Electronics Corp. |
| 5 | − * | |
| 6 | − * This file is released under the GPLv2. | |
| 7 | 6 | */ |
| 8 | 7 | |
| 9 | 8 | #ifndef _LINUX_PM_DOMAIN_H |
| @@ -1,9 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * pm_runtime.h - Device run-time power management helper functions. |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2009 Rafael J. Wysocki <rjw@sisk.pl> |
| 5 | − * | |
| 6 | − * This file is released under the GPLv2. | |
| 7 | 6 | */ |
| 8 | 7 | |
| 9 | 8 | #ifndef _LINUX_PM_RUNTIME_H |
| @@ -1,19 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * powercap.h: Data types and headers for sysfs power capping interface |
| 3 | 4 | * Copyright (c) 2013, Intel Corporation. |
| 4 | − * | |
| 5 | − * This program is free software; you can redistribute it and/or modify it | |
| 6 | − * under the terms and conditions of the GNU General Public License, | |
| 7 | − * version 2, as published by the Free Software Foundation. | |
| 8 | − * | |
| 9 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 10 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 11 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 12 | − * more details. | |
| 13 | − * | |
| 14 | − * You should have received a copy of the GNU General Public License along with | |
| 15 | − * this program; if not, write to the Free Software Foundation, Inc. | |
| 16 | − * | |
| 17 | 5 | */ |
| 18 | 6 | |
| 19 | 7 | #ifndef __POWERCAP_H__ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Persistent Storage - pstore.h |
| 3 | 4 | * |
| @@ -5,19 +6,6 @@ · 1 unmodified line | ||
| 5 | 6 | * |
| 6 | 7 | * This code is the generic layer to export data records from platform |
| 7 | 8 | * level persistent storage via a file system. |
| 8 | − * | |
| 9 | − * This program is free software; you can redistribute it and/or modify | |
| 10 | − * it under the terms of the GNU General Public License version 2 as | |
| 11 | − * published by the Free Software Foundation. | |
| 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 | |
| 16 | − * GNU General Public License for more details. | |
| 17 | − * | |
| 18 | − * You should have received a copy of the GNU General Public License | |
| 19 | − * along with this program; if not, write to the Free Software | |
| 20 | − * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 21 | 9 | */ |
| 22 | 10 | #ifndef _LINUX_PSTORE_H |
| 23 | 11 | #define _LINUX_PSTORE_H |
| @@ -1,17 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (C) 2010 Marco Stornelli <marco.stornelli@gmail.com> |
| 3 | 4 | * Copyright (C) 2011 Kees Cook <keescook@chromium.org> |
| 4 | 5 | * Copyright (C) 2011 Google, Inc. |
| 5 | − * | |
| 6 | − * This software is licensed under the terms of the GNU General Public | |
| 7 | − * License version 2, as published by the Free Software Foundation, and | |
| 8 | − * may be copied, distributed, and modified under those terms. | |
| 9 | − * | |
| 10 | − * This program is distributed in the hope that it will be useful, | |
| 11 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | − * GNU General Public License for more details. | |
| 14 | − * | |
| 15 | 6 | */ |
| 16 | 7 | |
| 17 | 8 | #ifndef __LINUX_PSTORE_RAM_H__ |
| @@ -1,14 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* Copyright (c) 2010-2015, 2018, The Linux Foundation. All rights reserved. |
| 2 | 3 | * Copyright (C) 2015 Linaro Ltd. |
| 3 | − * | |
| 4 | − * This program is free software; you can redistribute it and/or modify | |
| 5 | − * it under the terms of the GNU General Public License version 2 and | |
| 6 | − * only version 2 as published by the Free Software Foundation. | |
| 7 | − * | |
| 8 | − * This program is distributed in the hope that it will be useful, | |
| 9 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 11 | − * GNU General Public License for more details. | |
| 12 | 4 | */ |
| 13 | 5 | #ifndef __QCOM_SCM_H |
| 14 | 6 | #define __QCOM_SCM_H |
| @@ -1,9 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* QLogic qed NIC Driver |
| 2 | 3 | * Copyright (c) 2015 QLogic Corporation |
| 3 | − * | |
| 4 | − * This software is available under the terms of the GNU General Public License | |
| 5 | − * (GPL) Version 2, available from the file COPYING in the main directory of | |
| 6 | − * this source tree. | |
| 7 | 4 | */ |
| 8 | 5 | |
| 9 | 6 | #ifndef __FCOE_COMMON__ |
| @@ -1,9 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * raid_class.h - a generic raid visualisation class |
| 3 | 4 | * |
| 4 | 5 | * Copyright (c) 2005 - James Bottomley <James.Bottomley@steeleye.com> |
| 5 | − * | |
| 6 | − * This file is licensed under GPLv2 | |
| 7 | 6 | */ |
| 8 | 7 | #include <linux/transport_class.h> |
| 9 | 8 | |
| @@ -56,14 +56,12 @@ void __rcu_read_unlock(void); · 55 unmodified lines | ||
| 56 | 56 | |
| 57 | 57 | static inline void __rcu_read_lock(void) |
| 58 | 58 | { |
| 59 | − if (IS_ENABLED(CONFIG_PREEMPT_COUNT)) | |
| 60 | − preempt_disable(); | |
| 59 | + preempt_disable(); | |
| 61 | 60 | } |
| 62 | 61 | |
| 63 | 62 | static inline void __rcu_read_unlock(void) |
| 64 | 63 | { |
| 65 | − if (IS_ENABLED(CONFIG_PREEMPT_COUNT)) | |
| 66 | − preempt_enable(); | |
| 64 | + preempt_enable(); | |
| 67 | 65 | } |
| 68 | 66 | |
| 69 | 67 | static inline int rcu_preempt_depth(void) |
| @@ -1,16 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * act8865.h -- Voltage regulation for active-semi act88xx PMUs |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2013 Atmel Corporation. |
| 5 | − * | |
| 6 | − * This program is free software; you can redistribute it and/or modify | |
| 7 | − * it under the terms of the GNU General Public License as published by | |
| 8 | − * the Free Software Foundation; version 2 of the License. | |
| 9 | − * | |
| 10 | − * This program is distributed in the hope that it will be useful, | |
| 11 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | − * GNU General Public License for more details. | |
| 14 | 6 | */ |
| 15 | 7 | |
| 16 | 8 | #ifndef __LINUX_REGULATOR_ACT8865_H |
| @@ -1,13 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * fan53555.h - Fairchild Regulator FAN53555 Driver |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2012 Marvell Technology Ltd. |
| 5 | 6 | * Yunfan Zhang <yfzhang@marvell.com> |
| 6 | − * | |
| 7 | − * This package is free software; you can redistribute it and/or modify | |
| 8 | − * it under the terms of the GNU General Public License version 2 as | |
| 9 | − * published by the Free Software Foundation. | |
| 10 | − * | |
| 11 | 7 | */ |
| 12 | 8 | |
| 13 | 9 | #ifndef __FAN53555_H__ |
| @@ -1,20 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * tps6507x.h -- Voltage regulation for the Texas Instruments TPS6507X |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2010 Texas Instruments, Inc. |
| 5 | − * | |
| 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, | |
| 11 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | − * GNU General Public License for more details. | |
| 14 | − * | |
| 15 | − * You should have received a copy of the GNU General Public License | |
| 16 | − * along with this program; if not, write to the Free Software | |
| 17 | − * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 18 | 6 | */ |
| 19 | 7 | |
| 20 | 8 | #ifndef REGULATOR_TPS6507X |
| @@ -1,15 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (C) 2015, Intel Corporation |
| 3 | 4 | * Author: Jiang Liu <jiang.liu@linux.intel.com> |
| 4 | − * | |
| 5 | − * This program is free software; you can redistribute it and/or modify it | |
| 6 | − * under the terms and conditions of the GNU General Public License, | |
| 7 | − * version 2, as published by the Free Software Foundation. | |
| 8 | − * | |
| 9 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 10 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 11 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 12 | − * more details. | |
| 13 | 5 | */ |
| 14 | 6 | #ifndef _LINUX_RESOURCE_EXT_H |
| 15 | 7 | #define _LINUX_RESOURCE_EXT_H |
| @@ -1,13 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * rodata_test.h: functional test for mark_rodata_ro function |
| 3 | 4 | * |
| 4 | 5 | * (C) Copyright 2008 Intel Corporation |
| 5 | 6 | * Author: Arjan van de Ven <arjan@linux.intel.com> |
| 6 | − * | |
| 7 | − * This program is free software; you can redistribute it and/or | |
| 8 | − * modify it under the terms of the GNU General Public License | |
| 9 | − * as published by the Free Software Foundation; version 2 | |
| 10 | − * of the License. | |
| 11 | 7 | */ |
| 12 | 8 | |
| 13 | 9 | #ifndef _RODATA_TEST_H |
| @@ -1,20 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Fast and scalable bitmaps. |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2016 Facebook |
| 5 | 6 | * Copyright (C) 2013-2014 Jens Axboe |
| 6 | − * | |
| 7 | − * This program is free software; you can redistribute it and/or | |
| 8 | − * modify it under the terms of the GNU General Public | |
| 9 | − * License v2 as published by the Free Software Foundation. | |
| 10 | − * | |
| 11 | − * This program is distributed in the hope that it will be useful, | |
| 12 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 14 | − * General Public License for more details. | |
| 15 | − * | |
| 16 | − * You should have received a copy of the GNU General Public License | |
| 17 | − * along with this program. If not, see <https://www.gnu.org/licenses/>. | |
| 18 | 7 | */ |
| 19 | 8 | |
| 20 | 9 | #ifndef __LINUX_SCALE_BITMAP_H |
| @@ -54,6 +54,10 @@ static inline void mmdrop(struct mm_struct *mm) · 53 unmodified lines | ||
| 54 | 54 | * followed by taking the mmap_sem for writing before modifying the |
| 55 | 55 | * vmas or anything the coredump pretends not to change from under it. |
| 56 | 56 | * |
| 57 | + * It also has to be called when mmgrab() is used in the context of | |
| 58 | + * the process, but then the mm_count refcount is transferred outside | |
| 59 | + * the context of the process to run down_write() on that pinned mm. | |
| 60 | + * | |
| 57 | 61 | * NOTE: find_extend_vma() called from GUP context is the only place |
| 58 | 62 | * that can modify the "mm" (notably the vm_start/end) under mmap_sem |
| 59 | 63 | * for reading and outside the context of the process, so it is also |
| @@ -1,9 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (c) 2008 Intel Corporation |
| 3 | 4 | * Author: Matthew Wilcox <willy@linux.intel.com> |
| 4 | 5 | * |
| 5 | − * Distributed under the terms of the GNU GPL, version 2 | |
| 6 | − * | |
| 7 | 6 | * Please see kernel/locking/semaphore.c for documentation of these functions |
| 8 | 7 | */ |
| 9 | 8 | #ifndef __LINUX_SEMAPHORE_H |
| @@ -1,14 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (C) 2016-2017 Linaro Ltd., Rob Herring <robh@kernel.org> |
| 3 | − * | |
| 4 | − * This program is free software; you can redistribute it and/or modify | |
| 5 | − * it under the terms of the GNU General Public License version 2 and | |
| 6 | − * only version 2 as published by the Free Software Foundation. | |
| 7 | − * | |
| 8 | − * This program is distributed in the hope that it will be useful, | |
| 9 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 11 | − * GNU General Public License for more details. | |
| 12 | 4 | */ |
| 13 | 5 | #ifndef _LINUX_SERDEV_H |
| 14 | 6 | #define _LINUX_SERDEV_H |
| @@ -1,16 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Renesas SPI driver |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2012 Renesas Solutions Corp. |
| 5 | − * | |
| 6 | − * This program is free software; you can redistribute it and/or modify | |
| 7 | − * it under the terms of the GNU General Public License as published by | |
| 8 | − * the Free Software Foundation; version 2 of the License. | |
| 9 | − * | |
| 10 | − * This program is distributed in the hope that it will be useful, | |
| 11 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | − * GNU General Public License for more details. | |
| 14 | 6 | */ |
| 15 | 7 | |
| 16 | 8 | #ifndef __LINUX_SPI_RENESAS_SPI_H__ |
| @@ -1,14 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (C) 2011 Kuninori Morimoto |
| 3 | − * | |
| 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; version 2 of the License. | |
| 7 | − * | |
| 8 | − * This program is distributed in the hope that it will be useful, | |
| 9 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 11 | − * GNU General Public License for more details. | |
| 12 | 4 | */ |
| 13 | 5 | #ifndef SH_HSPI_H |
| 14 | 6 | #define SH_HSPI_H |
| @@ -1,13 +1,5 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. |
| 2 | − * | |
| 3 | − * This program is free software; you can redistribute it and/or modify | |
| 4 | − * it under the terms of the GNU General Public License version 2 and | |
| 5 | − * only version 2 as published by the Free Software Foundation. | |
| 6 | − * | |
| 7 | − * This program is distributed in the hope that it will be useful, | |
| 8 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 9 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 10 | − * GNU General Public License for more details. | |
| 11 | 3 | */ |
| 12 | 4 | #ifndef _LINUX_SPMI_H |
| 13 | 5 | #define _LINUX_SPMI_H |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | #ifndef LINUX_SSB_CHIPCO_H_ |
| 2 | 3 | #define LINUX_SSB_CHIPCO_H_ |
| 3 | 4 | |
| @@ -9,8 +10,6 @@ · 5 unmodified lines | ||
| 9 | 10 | * |
| 10 | 11 | * Copyright 2005, Broadcom Corporation |
| 11 | 12 | * Copyright 2006, Michael Buesch <m@bues.ch> |
| 12 | − * | |
| 13 | − * Licensed under the GPL version 2. See COPYING for details. | |
| 14 | 13 | */ |
| 15 | 14 | |
| 16 | 15 | /** ChipCommon core registers. **/ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Hardware-specific External Interface I/O core definitions |
| 3 | 4 | * for the BCM47xx family of SiliconBackplane-based chips. |
| @@ -14,8 +15,6 @@ · 10 unmodified lines | ||
| 14 | 15 | * |
| 15 | 16 | * Copyright 2005, Broadcom Corporation |
| 16 | 17 | * Copyright 2006, Michael Buesch |
| 17 | − * | |
| 18 | − * Licensed under the GPL version 2. See COPYING for details. | |
| 19 | 18 | */ |
| 20 | 19 | #ifndef LINUX_SSB_EXTIFCORE_H_ |
| 21 | 20 | #define LINUX_SSB_EXTIFCORE_H_ |
| @@ -1,15 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* Copyright (C) 2010 Google, Inc. |
| 2 | 3 | * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 3 | 4 | * Author: Dima Zavin <dima@android.com> |
| 4 | − * | |
| 5 | − * This program is free software; you can redistribute it and/or modify | |
| 6 | − * it under the terms of the GNU General Public License version 2 and | |
| 7 | − * only version 2 as published by the Free Software Foundation. | |
| 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 | 5 | */ |
| 14 | 6 | |
| 15 | 7 | #ifndef _LINUX_SSBI_H |
| @@ -1,24 +1,10 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /******************************************************************************* |
| 2 | 3 | |
| 3 | 4 | Header file for stmmac platform data |
| 4 | 5 | |
| 5 | 6 | Copyright (C) 2009 STMicroelectronics Ltd |
| 6 | 7 | |
| 7 | − This program is free software; you can redistribute it and/or modify it | |
| 8 | − under the terms and conditions of the GNU General Public License, | |
| 9 | − version 2, as published by the Free Software Foundation. | |
| 10 | − | |
| 11 | − This program is distributed in the hope it will be useful, but WITHOUT | |
| 12 | − ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 13 | − FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 14 | − more details. | |
| 15 | − | |
| 16 | − You should have received a copy of the GNU General Public License along with | |
| 17 | − this program; if not, write to the Free Software Foundation, Inc., | |
| 18 | − 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | |
| 19 | − | |
| 20 | − The full GNU General Public License is included in this distribution in | |
| 21 | − the file called "COPYING". | |
| 22 | 8 | |
| 23 | 9 | Author: Giuseppe Cavallaro <peppe.cavallaro@st.com> |
| 24 | 10 | *******************************************************************************/ |
| @@ -1,9 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * stmp3xxx_rtc_wdt.h |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2011 Wolfram Sang, Pengutronix e.K. |
| 5 | − * | |
| 6 | − * This file is released under the GPLv2. | |
| 7 | 6 | */ |
| 8 | 7 | #ifndef __LINUX_STMP3XXX_RTC_WDT_H |
| 9 | 8 | #define __LINUX_STMP3XXX_RTC_WDT_H |
| @@ -1,11 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Header for the SUDMAC driver |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2013 Renesas Solutions Corp. |
| 5 | − * | |
| 6 | − * This is free software; you can redistribute it and/or modify | |
| 7 | − * it under the terms of version 2 of the GNU General Public License as | |
| 8 | − * published by the Free Software Foundation. | |
| 9 | 6 | */ |
| 10 | 7 | #ifndef SUDMAC_H |
| 11 | 8 | #define SUDMAC_H |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * include/linux/sunrpc/cache.h |
| 3 | 4 | * |
| @@ -5,9 +6,6 @@ · 1 unmodified line | ||
| 5 | 6 | * used by sunrpc clients and servers. |
| 6 | 7 | * |
| 7 | 8 | * Copyright (C) 2002 Neil Brown <neilb@cse.unsw.edu.au> |
| 8 | − * | |
| 9 | − * Released under terms in GPL version 2. See COPYING. | |
| 10 | − * | |
| 11 | 9 | */ |
| 12 | 10 | |
| 13 | 11 | #ifndef _LINUX_SUNRPC_CACHE_H_ |
| @@ -227,11 +227,42 @@ static inline void pm_set_resume_via_firmware(void) · 226 unmodified lines | ||
| 227 | 227 | pm_suspend_global_flags |= PM_SUSPEND_FLAG_FW_RESUME; |
| 228 | 228 | } |
| 229 | 229 | |
| 230 | +/** | |
| 231 | + * pm_suspend_via_firmware - Check if platform firmware will suspend the system. | |
| 232 | + * | |
| 233 | + * To be called during system-wide power management transitions to sleep states | |
| 234 | + * or during the subsequent system-wide transitions back to the working state. | |
| 235 | + * | |
| 236 | + * Return 'true' if the platform firmware is going to be invoked at the end of | |
| 237 | + * the system-wide power management transition (to a sleep state) in progress in | |
| 238 | + * order to complete it, or if the platform firmware has been invoked in order | |
| 239 | + * to complete the last (or preceding) transition of the system to a sleep | |
| 240 | + * state. | |
| 241 | + * | |
| 242 | + * This matters if the caller needs or wants to carry out some special actions | |
| 243 | + * depending on whether or not control will be passed to the platform firmware | |
| 244 | + * subsequently (for example, the device may need to be reset before letting the | |
| 245 | + * platform firmware manipulate it, which is not necessary when the platform | |
| 246 | + * firmware is not going to be invoked) or when such special actions may have | |
| 247 | + * been carried out during the preceding transition of the system to a sleep | |
| 248 | + * state (as they may need to be taken into account). | |
| 249 | + */ | |
| 230 | 250 | static inline bool pm_suspend_via_firmware(void) |
| 231 | 251 | { |
| 232 | 252 | return !!(pm_suspend_global_flags & PM_SUSPEND_FLAG_FW_SUSPEND); |
| 233 | 253 | } |
| 234 | 254 | |
| 255 | +/** | |
| 256 | + * pm_resume_via_firmware - Check if platform firmware has woken up the system. | |
| 257 | + * | |
| 258 | + * To be called during system-wide power management transitions from sleep | |
| 259 | + * states. | |
| 260 | + * | |
| 261 | + * Return 'true' if the platform firmware has passed control to the kernel at | |
| 262 | + * the beginning of the system-wide power management transition in progress, so | |
| 263 | + * the event that woke up the system from sleep has been handled by the platform | |
| 264 | + * firmware. | |
| 265 | + */ | |
| 235 | 266 | static inline bool pm_resume_via_firmware(void) |
| 236 | 267 | { |
| 237 | 268 | return !!(pm_suspend_global_flags & PM_SUSPEND_FLAG_FW_RESUME); |
| @@ -1,16 +1,7 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Microsemi Switchtec PCIe Driver |
| 3 | 4 | * Copyright (c) 2017, Microsemi Corporation |
| 4 | − * | |
| 5 | − * This program is free software; you can redistribute it and/or modify it | |
| 6 | − * under the terms and conditions of the GNU General Public License, | |
| 7 | − * version 2, as published by the Free Software Foundation. | |
| 8 | − * | |
| 9 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 10 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 11 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 12 | − * more details. | |
| 13 | − * | |
| 14 | 5 | */ |
| 15 | 6 | |
| 16 | 7 | #ifndef _SWITCHTEC_H |
| @@ -1,11 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * syscalls.h - Linux syscall interfaces (non-arch-specific) |
| 3 | 4 | * |
| 4 | 5 | * Copyright (c) 2004 Randy Dunlap |
| 5 | 6 | * Copyright (c) 2004 Open Source Development Labs |
| 6 | − * | |
| 7 | − * This file is released under the GPLv2. | |
| 8 | − * See the file COPYING for more details. | |
| 9 | 7 | */ |
| 10 | 8 | |
| 11 | 9 | #ifndef _LINUX_SYSCALLS_H |
| @@ -1,9 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * syscore_ops.h - System core operations. |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2011 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc. |
| 5 | − * | |
| 6 | − * This file is released under the GPLv2. | |
| 7 | 6 | */ |
| 8 | 7 | |
| 9 | 8 | #ifndef _LINUX_SYSCORE_OPS_H |
| @@ -1,23 +1,10 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * tboot.h: shared data structure with tboot and kernel and functions |
| 3 | 4 | * used by kernel for runtime support of Intel(R) Trusted |
| 4 | 5 | * Execution Technology |
| 5 | 6 | * |
| 6 | 7 | * Copyright (c) 2006-2009, Intel Corporation |
| 7 | − * | |
| 8 | − * This program is free software; you can redistribute it and/or modify it | |
| 9 | − * under the terms and conditions of the GNU General Public License, | |
| 10 | − * version 2, as published by the Free Software Foundation. | |
| 11 | − * | |
| 12 | − * This program is distributed in the hope it will be useful, but WITHOUT | |
| 13 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 14 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 15 | − * more details. | |
| 16 | − * | |
| 17 | − * You should have received a copy of the GNU General Public License along with | |
| 18 | − * this program; if not, write to the Free Software Foundation, Inc., | |
| 19 | − * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | |
| 20 | − * | |
| 21 | 8 | */ |
| 22 | 9 | |
| 23 | 10 | #ifndef _LINUX_TBOOT_H |
| @@ -1,15 +1,6 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (c) 2015-2016, Linaro Limited |
| 3 | − * | |
| 4 | − * This software is licensed under the terms of the GNU General Public | |
| 5 | − * License version 2, as published by the Free Software Foundation, and | |
| 6 | − * may be copied, distributed, and modified under those terms. | |
| 7 | − * | |
| 8 | − * This program is distributed in the hope that it will be useful, | |
| 9 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 11 | − * GNU General Public License for more details. | |
| 12 | − * | |
| 13 | 4 | */ |
| 14 | 5 | |
| 15 | 6 | #ifndef __TEE_DRV_H |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Shared Transport Header file |
| 3 | 4 | * To be included by the protocol stack drivers for |
| @@ -6,20 +7,6 @@ · 2 unmodified lines | ||
| 6 | 7 | * |
| 7 | 8 | * Copyright (C) 2009-2010 Texas Instruments |
| 8 | 9 | * Author: Pavan Savoy <pavan_savoy@ti.com> |
| 9 | − * | |
| 10 | − * This program is free software; you can redistribute it and/or modify | |
| 11 | − * it under the terms of the GNU General Public License version 2 as | |
| 12 | − * published by the Free Software Foundation. | |
| 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 | − * | |
| 19 | − * You should have received a copy of the GNU General Public License | |
| 20 | − * along with this program; if not, write to the Free Software | |
| 21 | − * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 22 | − * | |
| 23 | 10 | */ |
| 24 | 11 | |
| 25 | 12 | #ifndef TI_WILINK_ST_H |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Copyright (C) 2004,2007,2008 IBM Corporation |
| 3 | 4 | * |
| @@ -12,12 +13,6 @@ · 8 unmodified lines | ||
| 12 | 13 | * |
| 13 | 14 | * Device driver for TCG/TCPA TPM (trusted platform module). |
| 14 | 15 | * Specifications at www.trustedcomputinggroup.org |
| 15 | − * | |
| 16 | − * This program is free software; you can redistribute it and/or | |
| 17 | − * modify it under the terms of the GNU General Public License as | |
| 18 | − * published by the Free Software Foundation, version 2 of the | |
| 19 | − * License. | |
| 20 | − * | |
| 21 | 16 | */ |
| 22 | 17 | #ifndef __LINUX_TPM_H__ |
| 23 | 18 | #define __LINUX_TPM_H__ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | #ifndef _LINUX_TRACEPOINT_H |
| 2 | 3 | #define _LINUX_TRACEPOINT_H |
| 3 | 4 | |
| @@ -9,9 +10,6 @@ · 5 unmodified lines | ||
| 9 | 10 | * Copyright (C) 2008-2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
| 10 | 11 | * |
| 11 | 12 | * Heavily inspired from the Linux Kernel Markers. |
| 12 | − * | |
| 13 | − * This file is released under the GPLv2. | |
| 14 | − * See the file COPYING for more details. | |
| 15 | 13 | */ |
| 16 | 14 | |
| 17 | 15 | #include <linux/smp.h> |
| @@ -1,9 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * transport_class.h - a generic container for all transport classes |
| 3 | 4 | * |
| 4 | 5 | * Copyright (c) 2005 - James Bottomley <James.Bottomley@steeleye.com> |
| 5 | − * | |
| 6 | − * This file is licensed under GPLv2 | |
| 7 | 6 | */ |
| 8 | 7 | |
| 9 | 8 | #ifndef _TRANSPORT_CLASS_H_ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * include/linux/uio_driver.h |
| 3 | 4 | * |
| @@ -7,8 +8,6 @@ · 3 unmodified lines | ||
| 7 | 8 | * Copyright(C) 2006, Greg Kroah-Hartman <greg@kroah.com> |
| 8 | 9 | * |
| 9 | 10 | * Userspace IO driver. |
| 10 | − * | |
| 11 | − * Licensed under the GPLv2 only. | |
| 12 | 11 | */ |
| 13 | 12 | |
| 14 | 13 | #ifndef _UIO_DRIVER_H_ |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Ultra Wide Band |
| 3 | 4 | * UWB API |
| @@ -5,21 +6,6 @@ · 1 unmodified line | ||
| 5 | 6 | * Copyright (C) 2005-2006 Intel Corporation |
| 6 | 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> |
| 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 License version | |
| 10 | − * 2 as published by the Free Software Foundation. | |
| 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., 51 Franklin Street, Fifth Floor, Boston, MA | |
| 20 | − * 02110-1301, USA. | |
| 21 | − * | |
| 22 | − * | |
| 23 | 9 | * FIXME: doc: overview of the API, different parts and pointers |
| 24 | 10 | */ |
| 25 | 11 | |
| @@ -1,3 +1,4 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Ultra Wide Band |
| 3 | 4 | * UWB Standard definitions |
| @@ -5,21 +6,6 @@ · 1 unmodified line | ||
| 5 | 6 | * Copyright (C) 2005-2006 Intel Corporation |
| 6 | 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> |
| 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 License version | |
| 10 | − * 2 as published by the Free Software Foundation. | |
| 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., 51 Franklin Street, Fifth Floor, Boston, MA | |
| 20 | − * 02110-1301, USA. | |
| 21 | − * | |
| 22 | − * | |
| 23 | 9 | * All these definitions are based on the ECMA-368 standard. |
| 24 | 10 | * |
| 25 | 11 | * Note all definitions are Little Endian in the wire, and we will |
| @@ -1,10 +1,9 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * UWB Multi-interface Controller support. |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2007 Cambridge Silicon Radio Ltd. |
| 5 | 6 | * |
| 6 | − * This file is released under the GPLv2 | |
| 7 | − * | |
| 8 | 7 | * UMC (UWB Multi-interface Controller) capabilities (e.g., radio |
| 9 | 8 | * controller, host controller) are presented as devices on the "umc" |
| 10 | 9 | * bus. |
| @@ -1,25 +1,10 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Wireless Host Controller Interface for Ultra-Wide-Band and Wireless USB |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2005-2006 Intel Corporation |
| 5 | 6 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> |
| 6 | 7 | * |
| 7 | − * This program is free software; you can redistribute it and/or | |
| 8 | − * modify it under the terms of the GNU General Public License version | |
| 9 | − * 2 as published by the Free Software Foundation. | |
| 10 | − * | |
| 11 | − * This program is distributed in the hope that it will be useful, | |
| 12 | − * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | − * GNU General Public License for more details. | |
| 15 | − * | |
| 16 | − * You should have received a copy of the GNU General Public License | |
| 17 | − * along with this program; if not, write to the Free Software | |
| 18 | − * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | |
| 19 | − * 02110-1301, USA. | |
| 20 | − * | |
| 21 | − * | |
| 22 | − * | |
| 23 | 8 | * References: |
| 24 | 9 | * [WHCI] Wireless Host Controller Interface Specification for |
| 25 | 10 | * Certified Wireless Universal Serial Bus, revision 0.95. |
| @@ -1,8 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Support for viafb GPIO ports. |
| 3 | 4 | * |
| 4 | 5 | * Copyright 2009 Jonathan Corbet <corbet@lwn.net> |
| 5 | − * Distributable under version 2 of the GNU General Public License. | |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | #ifndef __VIA_GPIO_H__ |
| @@ -1,16 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * VMware vSockets Driver |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2007-2013 VMware, Inc. All rights reserved. |
| 5 | − * | |
| 6 | − * This program is free software; you can redistribute it and/or modify it | |
| 7 | − * under the terms of the GNU General Public License as published by the Free | |
| 8 | − * Software Foundation version 2 and no later version. | |
| 9 | − * | |
| 10 | − * This program is distributed in the hope that it will be useful, but WITHOUT | |
| 11 | − * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 12 | − * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 13 | − * more details. | |
| 14 | 6 | */ |
| 15 | 7 | |
| 16 | 8 | #ifndef _VM_SOCKETS_H |
| @@ -1,16 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * VMware VMCI Driver |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2012 VMware, Inc. All rights reserved. |
| 5 | − * | |
| 6 | − * This program is free software; you can redistribute it and/or modify it | |
| 7 | − * under the terms of the GNU General Public License as published by the | |
| 8 | − * Free Software Foundation version 2 and no later version. | |
| 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 MERCHANTABILITY | |
| 12 | − * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
| 13 | − * for more details. | |
| 14 | 6 | */ |
| 15 | 7 | |
| 16 | 8 | #ifndef __VMW_VMCI_API_H__ |
| @@ -1,16 +1,8 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * VMware VMCI Driver |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2012 VMware, Inc. All rights reserved. |
| 5 | − * | |
| 6 | − * This program is free software; you can redistribute it and/or modify it | |
| 7 | − * under the terms of the GNU General Public License as published by the | |
| 8 | − * Free Software Foundation version 2 and no later version. | |
| 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 MERCHANTABILITY | |
| 12 | − * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
| 13 | − * for more details. | |
| 14 | 6 | */ |
| 15 | 7 | |
| 16 | 8 | #ifndef _VMW_VMCI_DEF_H_ |
| @@ -1,29 +1,13 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * Linux WiMAX |
| 3 | 4 | * Collection of tools to manage debug operations. |
| 4 | 5 | * |
| 5 | − * | |
| 6 | 6 | * Copyright (C) 2005-2007 Intel Corporation |
| 7 | 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> |
| 8 | 8 | * |
| 9 | − * This program is free software; you can redistribute it and/or | |
| 10 | − * modify it under the terms of the GNU General Public License version | |
| 11 | − * 2 as published by the Free Software Foundation. | |
| 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 | |
| 16 | − * GNU General Public License for more details. | |
| 17 | − * | |
| 18 | − * You should have received a copy of the GNU General Public License | |
| 19 | − * along with this program; if not, write to the Free Software | |
| 20 | − * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | |
| 21 | − * 02110-1301, USA. | |
| 22 | − * | |
| 23 | − * | |
| 24 | 9 | * Don't #include this file directly, read on! |
| 25 | 10 | * |
| 26 | − * | |
| 27 | 11 | * EXECUTING DEBUGGING ACTIONS OR NOT |
| 28 | 12 | * |
| 29 | 13 | * The main thing this framework provides is decission power to take a |
| @@ -43,7 +27,6 @@ · 13 unmodified lines | ||
| 43 | 27 | * always false at compile time will get the code depending on it |
| 44 | 28 | * compiled out by optimization. |
| 45 | 29 | * |
| 46 | − * | |
| 47 | 30 | * DEBUG LEVELS |
| 48 | 31 | * |
| 49 | 32 | * It is up to the caller to define how much a debugging level is. |
| @@ -52,14 +35,12 @@ · 2 unmodified lines | ||
| 52 | 35 | * will always be taken). The increasing debug levels are used for |
| 53 | 36 | * increased verbosity. |
| 54 | 37 | * |
| 55 | − * | |
| 56 | 38 | * USAGE |
| 57 | 39 | * |
| 58 | 40 | * Group the code in modules and submodules inside each module [which |
| 59 | 41 | * in most cases maps to Linux modules and .c files that compose |
| 60 | 42 | * those]. |
| 61 | 43 | * |
| 62 | − * | |
| 63 | 44 | * For each module, there is: |
| 64 | 45 | * |
| 65 | 46 | * - a MODULENAME (single word, legal C identifier) |
| @@ -128,7 +109,6 @@ · 62 unmodified lines | ||
| 128 | 109 | * NOTE: remember that even if this will show attached to some |
| 129 | 110 | * particular instance of a device, the settings are *global*. |
| 130 | 111 | * |
| 131 | − * | |
| 132 | 112 | * On each submodule (for example, .c files), the debug infrastructure |
| 133 | 113 | * should be included like this: |
| 134 | 114 | * |
| @@ -137,7 +117,6 @@ · 2 unmodified lines | ||
| 137 | 117 | * |
| 138 | 118 | * after #including all your include files. |
| 139 | 119 | * |
| 140 | − * | |
| 141 | 120 | * Now you can use the d_*() macros below [d_test(), d_fnstart(), |
| 142 | 121 | * d_fnend(), d_printf(), d_dump()]. |
| 143 | 122 | * |
| @@ -1,24 +1,10 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ | |
| 1 | 2 | /* |
| 2 | 3 | * This file is part of wl12xx |
| 3 | 4 | * |
| 4 | 5 | * Copyright (C) 2009 Nokia Corporation |
| 5 | 6 | * |
| 6 | 7 | * Contact: Luciano Coelho <luciano.coelho@nokia.com> |
| 7 | − * | |
| 8 | − * This program is free software; you can redistribute it and/or | |
| 9 | − * modify it under the terms of the GNU General Public License | |
| 10 | − * version 2 as published by the Free Software Foundation. | |
| 11 | − * | |
| 12 | − * This program is distributed in the hope that it will be useful, but | |
| 13 | − * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 15 | − * 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., 51 Franklin St, Fifth Floor, Boston, MA | |
| 20 | − * 02110-1301 USA | |
| 21 | − * | |
| 22 | 8 | */ |
| 23 | 9 | |
| 24 | 10 | #ifndef _LINUX_WL12XX_H |