History

Merge tag 'v5.9-rc4' into drm-next

Backmerge 5.9-rc4 as there is a nasty qxl conflict that needs to be resolved.

Dave Airlie committed 6 years ago

Commit ce5c2072 parents 3393649 f4d51df1709 files · +9099 −6031Browse files

Showing the changes to kernel (34 of 1709 files). Show all

Unified · Split

34 files
  1. kernel/auditfilter.c +1 −1
  2. kernel/bpf/cgroup.c +1 −1
  3. kernel/bpf/cpumap.c +1 −1
  4. kernel/bpf/syscall.c +2 −2
  5. kernel/bpf/verifier.c +2 −2
  6. kernel/capability.c +1 −1
  7. kernel/compat.c +3 −3
  8. kernel/debug/gdbstub.c +3 −3
  9. kernel/debug/kdb/kdb_keyboard.c +2 −2
  10. kernel/debug/kdb/kdb_support.c +3 −3
  11. kernel/dma/pool.c +1 −1
  12. kernel/entry/common.c +29 −6
  13. kernel/events/core.c +1 −1
  14. kernel/fork.c +1 −1
  15. kernel/gcov/Kconfig +1 −0
  16. kernel/irq/handle.c +1 −1
  17. kernel/irq/manage.c +2 −2
  18. kernel/irq/matrix.c +7 −0
  19. kernel/kallsyms.c +2 −2
  20. kernel/locking/lockdep.c +11 −7
  21. kernel/power/hibernate.c +1 −1
  22. kernel/power/qos.c +2 −2
  23. kernel/sched/core.c +1 −1
  24. kernel/sched/idle.c +11 −14
  25. kernel/sched/topology.c +3 −3
  26. kernel/signal.c +1 −1
  27. kernel/sys.c +1 −1
  28. kernel/sysctl.c +1 −2
  29. kernel/time/hrtimer.c +1 −1
  30. kernel/time/posix-timers.c +2 −2
  31. kernel/time/tick-broadcast.c +1 −1
  32. kernel/time/timer.c +1 −1
  33. kernel/trace/blktrace.c +1 −1
  34. kernel/trace/trace_events_filter.c +2 −2
kernel/auditfilter.c+1−1
@@ -681,7 +681,7 @@ static struct audit_rule_data *audit_krule_to_data(struct audit_krule *krule) · 680 unmodified lines
681681 data->values[i] = AUDIT_UID_UNSET;
682682 break;
683683 }
684− /* fall through - if set */
684+ fallthrough; /* if set */
685685 default:
686686 data->values[i] = f->val;
687687 }
kernel/bpf/cgroup.c+1−1
@@ -1794,7 +1794,7 @@ static bool cg_sockopt_is_valid_access(int off, int size, · 1793 unmodified lines
17941794 return prog->expected_attach_type ==
17951795 BPF_CGROUP_GETSOCKOPT;
17961796 case offsetof(struct bpf_sockopt, optname):
1797− /* fallthrough */
1797+ fallthrough;
17981798 case offsetof(struct bpf_sockopt, level):
17991799 if (size != size_default)
18001800 return false;
kernel/bpf/cpumap.c+1−1
@@ -279,7 +279,7 @@ static int cpu_map_bpf_prog_run_xdp(struct bpf_cpu_map_entry *rcpu, · 278 unmodified lines
279279 break;
280280 default:
281281 bpf_warn_invalid_xdp_action(act);
282− /* fallthrough */
282+ fallthrough;
283283 case XDP_DROP:
284284 xdp_return_frame(xdpf);
285285 stats->drop++;
kernel/bpf/syscall.c+2−2
@@ -2029,7 +2029,7 @@ bpf_prog_load_check_attach(enum bpf_prog_type prog_type, · 2028 unmodified lines
20292029 case BPF_PROG_TYPE_EXT:
20302030 if (expected_attach_type)
20312031 return -EINVAL;
2032− /* fallthrough */
2032+ fallthrough;
20332033 default:
20342034 return 0;
20352035 }
@@ -2634,7 +2634,7 @@ static int bpf_raw_tp_link_fill_link_info(const struct bpf_link *link, · 598 unmodified lines
26342634 u32 ulen = info->raw_tracepoint.tp_name_len;
26352635 size_t tp_len = strlen(tp_name);
26362636
2637− if (ulen && !ubuf)
2637+ if (!ulen ^ !ubuf)
26382638 return -EINVAL;
26392639
26402640 info->raw_tracepoint.tp_name_len = tp_len + 1;
kernel/bpf/verifier.c+2−2
@@ -5236,7 +5236,7 @@ static int adjust_ptr_min_max_vals(struct bpf_verifier_env *env, · 5235 unmodified lines
52365236 off_reg == dst_reg ? dst : src);
52375237 return -EACCES;
52385238 }
5239− /* fall-through */
5239+ fallthrough;
52405240 default:
52415241 break;
52425242 }
@@ -10988,7 +10988,7 @@ static int check_attach_btf_id(struct bpf_verifier_env *env) · 5745 unmodified lines
1098810988 default:
1098910989 if (!prog_extension)
1099010990 return -EINVAL;
10991− /* fallthrough */
10991+ fallthrough;
1099210992 case BPF_MODIFY_RETURN:
1099310993 case BPF_LSM_MAC:
1099410994 case BPF_TRACE_FENTRY:
kernel/capability.c+1−1
@@ -93,7 +93,7 @@ static int cap_validate_magic(cap_user_header_t header, unsigned *tocopy) · 92 unmodified lines
9393 break;
9494 case _LINUX_CAPABILITY_VERSION_2:
9595 warn_deprecated_v2();
96− /* fall through - v3 is otherwise equivalent to v2. */
96+ fallthrough; /* v3 is otherwise equivalent to v2 */
9797 case _LINUX_CAPABILITY_VERSION_3:
9898 *tocopy = _LINUX_CAPABILITY_U32S_3;
9999 break;
kernel/compat.c+3−3
@@ -255,11 +255,11 @@ get_compat_sigset(sigset_t *set, const compat_sigset_t __user *compat) · 254 unmodified lines
255255 return -EFAULT;
256256 switch (_NSIG_WORDS) {
257257 case 4: set->sig[3] = v.sig[6] | (((long)v.sig[7]) << 32 );
258− /* fall through */
258+ fallthrough;
259259 case 3: set->sig[2] = v.sig[4] | (((long)v.sig[5]) << 32 );
260− /* fall through */
260+ fallthrough;
261261 case 2: set->sig[1] = v.sig[2] | (((long)v.sig[3]) << 32 );
262− /* fall through */
262+ fallthrough;
263263 case 1: set->sig[0] = v.sig[0] | (((long)v.sig[1]) << 32 );
264264 }
265265 #else
kernel/debug/gdbstub.c+3−3
@@ -1046,14 +1046,14 @@ int gdb_serial_stub(struct kgdb_state *ks) · 1045 unmodified lines
10461046 return DBG_PASS_EVENT;
10471047 }
10481048 #endif
1049− /* Fall through */
1049+ fallthrough;
10501050 case 'C': /* Exception passing */
10511051 tmp = gdb_cmd_exception_pass(ks);
10521052 if (tmp > 0)
10531053 goto default_handle;
10541054 if (tmp == 0)
10551055 break;
1056− /* Fall through - on tmp < 0 */
1056+ fallthrough; /* on tmp < 0 */
10571057 case 'c': /* Continue packet */
10581058 case 's': /* Single step packet */
10591059 if (kgdb_contthread && kgdb_contthread != current) {
@@ -1062,7 +1062,7 @@ int gdb_serial_stub(struct kgdb_state *ks) · 2 unmodified lines
10621062 break;
10631063 }
10641064 dbg_activate_sw_breakpoints();
1065− /* Fall through - to default processing */
1065+ fallthrough; /* to default processing */
10661066 default:
10671067 default_handle:
10681068 error = kgdb_arch_handle_exception(ks->ex_vector,
kernel/debug/kdb/kdb_keyboard.c+2−2
@@ -173,11 +173,11 @@ int kdb_get_kbd_char(void) · 172 unmodified lines
173173 case KT_LATIN:
174174 if (isprint(keychar))
175175 break; /* printable characters */
176− /* fall through */
176+ fallthrough;
177177 case KT_SPEC:
178178 if (keychar == K_ENTER)
179179 break;
180− /* fall through */
180+ fallthrough;
181181 default:
182182 return -1; /* ignore unprintables */
183183 }
kernel/debug/kdb/kdb_support.c+3−3
@@ -432,7 +432,7 @@ int kdb_getphysword(unsigned long *word, unsigned long addr, size_t size) · 431 unmodified lines
432432 *word = w8;
433433 break;
434434 }
435− /* fall through */
435+ fallthrough;
436436 default:
437437 diag = KDB_BADWIDTH;
438438 kdb_printf("kdb_getphysword: bad width %ld\n", (long) size);
@@ -481,7 +481,7 @@ int kdb_getword(unsigned long *word, unsigned long addr, size_t size) · 42 unmodified lines
481481 *word = w8;
482482 break;
483483 }
484− /* fall through */
484+ fallthrough;
485485 default:
486486 diag = KDB_BADWIDTH;
487487 kdb_printf("kdb_getword: bad width %ld\n", (long) size);
@@ -525,7 +525,7 @@ int kdb_putword(unsigned long addr, unsigned long word, size_t size) · 37 unmodified lines
525525 diag = kdb_putarea(addr, w8);
526526 break;
527527 }
528− /* fall through */
528+ fallthrough;
529529 default:
530530 diag = KDB_BADWIDTH;
531531 kdb_printf("kdb_putword: bad width %ld\n", (long) size);
kernel/dma/pool.c+1−1
@@ -84,7 +84,7 @@ static int atomic_pool_expand(struct gen_pool *pool, size_t pool_size, · 83 unmodified lines
8484 gfp_t gfp)
8585 {
8686 unsigned int order;
87− struct page *page;
87+ struct page *page = NULL;
8888 void *addr;
8989 int ret = -ENOMEM;
9090
kernel/entry/common.c+29−6
@@ -69,22 +69,45 @@ static long syscall_trace_enter(struct pt_regs *regs, long syscall, · 68 unmodified lines
6969 return ret ? : syscall_get_nr(current, regs);
7070 }
7171
72−noinstr long syscall_enter_from_user_mode(struct pt_regs *regs, long syscall)
72+static __always_inline long
73+__syscall_enter_from_user_work(struct pt_regs *regs, long syscall)
7374 {
7475 unsigned long ti_work;
7576
76− enter_from_user_mode(regs);
77− instrumentation_begin();
78−
79− local_irq_enable();
8077 ti_work = READ_ONCE(current_thread_info()->flags);
8178 if (ti_work & SYSCALL_ENTER_WORK)
8279 syscall = syscall_trace_enter(regs, syscall, ti_work);
83− instrumentation_end();
8480
8581 return syscall;
8682 }
8783
84+long syscall_enter_from_user_mode_work(struct pt_regs *regs, long syscall)
85+{
86+ return __syscall_enter_from_user_work(regs, syscall);
87+}
88+
89+noinstr long syscall_enter_from_user_mode(struct pt_regs *regs, long syscall)
90+{
91+ long ret;
92+
93+ enter_from_user_mode(regs);
94+
95+ instrumentation_begin();
96+ local_irq_enable();
97+ ret = __syscall_enter_from_user_work(regs, syscall);
98+ instrumentation_end();
99+
100+ return ret;
101+}
102+
103+noinstr void syscall_enter_from_user_mode_prepare(struct pt_regs *regs)
104+{
105+ enter_from_user_mode(regs);
106+ instrumentation_begin();
107+ local_irq_enable();
108+ instrumentation_end();
109+}
110+
88111 /**
89112 * exit_to_user_mode - Fixup state when exiting to user mode
90113 *
kernel/events/core.c+1−1
@@ -10034,7 +10034,7 @@ perf_event_parse_addr_filter(struct perf_event *event, char *fstr, · 10033 unmodified lines
1003410034 case IF_SRC_KERNELADDR:
1003510035 case IF_SRC_KERNEL:
1003610036 kernel = 1;
10037− /* fall through */
10037+ fallthrough;
1003810038
1003910039 case IF_SRC_FILEADDR:
1004010040 case IF_SRC_FILE:
kernel/fork.c+1−1
@@ -3014,7 +3014,7 @@ int unshare_files(struct files_struct **displaced) · 3013 unmodified lines
30143014 }
30153015
30163016 int sysctl_max_threads(struct ctl_table *table, int write,
3017− void __user *buffer, size_t *lenp, loff_t *ppos)
3017+ void *buffer, size_t *lenp, loff_t *ppos)
30183018 {
30193019 struct ctl_table t;
30203020 int ret;
kernel/gcov/Kconfig+1−0
@@ -4,6 +4,7 @@ menu "GCOV-based kernel profiling" · 3 unmodified lines
44 config GCOV_KERNEL
55 bool "Enable gcov-based kernel profiling"
66 depends on DEBUG_FS
7+ depends on !CC_IS_GCC || GCC_VERSION < 100000
78 select CONSTRUCTORS if !UML
89 default n
910 help
kernel/irq/handle.c+1−1
@@ -173,7 +173,7 @@ irqreturn_t __handle_irq_event_percpu(struct irq_desc *desc, unsigned int *flags · 172 unmodified lines
173173
174174 __irq_wake_thread(desc, action);
175175
176− /* Fall through - to add to randomness */
176+ fallthrough; /* to add to randomness */
177177 case IRQ_HANDLED:
178178 *flags |= action->flags;
179179 break;
kernel/irq/manage.c+2−2
@@ -271,7 +271,7 @@ int irq_do_set_affinity(struct irq_data *data, const struct cpumask *mask, · 270 unmodified lines
271271 case IRQ_SET_MASK_OK:
272272 case IRQ_SET_MASK_OK_DONE:
273273 cpumask_copy(desc->irq_common_data.affinity, mask);
274− /* fall through */
274+ fallthrough;
275275 case IRQ_SET_MASK_OK_NOCOPY:
276276 irq_validate_effective_affinity(data);
277277 irq_set_thread_affinity(desc);
@@ -868,7 +868,7 @@ int __irq_set_trigger(struct irq_desc *desc, unsigned long flags) · 590 unmodified lines
868868 case IRQ_SET_MASK_OK_DONE:
869869 irqd_clear(&desc->irq_data, IRQD_TRIGGER_MASK);
870870 irqd_set(&desc->irq_data, flags);
871− /* fall through */
871+ fallthrough;
872872
873873 case IRQ_SET_MASK_OK_NOCOPY:
874874 flags = irqd_get_trigger_type(&desc->irq_data);
kernel/irq/matrix.c+7−0
@@ -380,6 +380,13 @@ int irq_matrix_alloc(struct irq_matrix *m, const struct cpumask *msk, · 379 unmodified lines
380380 unsigned int cpu, bit;
381381 struct cpumap *cm;
382382
383+ /*
384+ * Not required in theory, but matrix_find_best_cpu() uses
385+ * for_each_cpu() which ignores the cpumask on UP .
386+ */
387+ if (cpumask_empty(msk))
388+ return -EINVAL;
389+
383390 cpu = matrix_find_best_cpu(m, msk);
384391 if (cpu == UINT_MAX)
385392 return -ENOSPC;
kernel/kallsyms.c+2−2
@@ -684,12 +684,12 @@ bool kallsyms_show_value(const struct cred *cred) · 683 unmodified lines
684684 case 0:
685685 if (kallsyms_for_perf())
686686 return true;
687− /* fallthrough */
687+ fallthrough;
688688 case 1:
689689 if (security_capable(cred, &init_user_ns, CAP_SYSLOG,
690690 CAP_OPT_NOAUDIT) == 0)
691691 return true;
692− /* fallthrough */
692+ fallthrough;
693693 default:
694694 return false;
695695 }
kernel/locking/lockdep.c+11−7
@@ -3756,7 +3756,7 @@ void noinstr lockdep_hardirqs_on(unsigned long ip) · 3755 unmodified lines
37563756
37573757 skip_checks:
37583758 /* we'll do an OFF -> ON transition: */
3759− this_cpu_write(hardirqs_enabled, 1);
3759+ __this_cpu_write(hardirqs_enabled, 1);
37603760 trace->hardirq_enable_ip = ip;
37613761 trace->hardirq_enable_event = ++trace->irq_events;
37623762 debug_atomic_inc(hardirqs_on_events);
@@ -3795,7 +3795,7 @@ void noinstr lockdep_hardirqs_off(unsigned long ip) · 32 unmodified lines
37953795 /*
37963796 * We have done an ON -> OFF transition:
37973797 */
3798− this_cpu_write(hardirqs_enabled, 0);
3798+ __this_cpu_write(hardirqs_enabled, 0);
37993799 trace->hardirq_disable_ip = ip;
38003800 trace->hardirq_disable_event = ++trace->irq_events;
38013801 debug_atomic_inc(hardirqs_off_events);
@@ -4977,6 +4977,8 @@ void lock_acquire(struct lockdep_map *lock, unsigned int subclass, · 1175 unmodified lines
49774977 {
49784978 unsigned long flags;
49794979
4980+ trace_lock_acquire(lock, subclass, trylock, read, check, nest_lock, ip);
4981+
49804982 if (unlikely(current->lockdep_recursion)) {
49814983 /* XXX allow trylock from NMI ?!? */
49824984 if (lockdep_nmi() && !trylock) {
@@ -5001,7 +5003,6 @@ void lock_acquire(struct lockdep_map *lock, unsigned int subclass, · 18 unmodified lines
50015003 check_flags(flags);
50025004
50035005 current->lockdep_recursion++;
5004− trace_lock_acquire(lock, subclass, trylock, read, check, nest_lock, ip);
50055006 __lock_acquire(lock, subclass, trylock, read, check,
50065007 irqs_disabled_flags(flags), nest_lock, ip, 0, 0);
50075008 lockdep_recursion_finish();
@@ -5013,13 +5014,15 @@ void lock_release(struct lockdep_map *lock, unsigned long ip) · 5 unmodified lines
50135014 {
50145015 unsigned long flags;
50155016
5017+ trace_lock_release(lock, ip);
5018+
50165019 if (unlikely(current->lockdep_recursion))
50175020 return;
50185021
50195022 raw_local_irq_save(flags);
50205023 check_flags(flags);
5024+
50215025 current->lockdep_recursion++;
5022− trace_lock_release(lock, ip);
50235026 if (__lock_release(lock, ip))
50245027 check_chain_key(current);
50255028 lockdep_recursion_finish();
@@ -5205,8 +5208,6 @@ __lock_acquired(struct lockdep_map *lock, unsigned long ip) · 179 unmodified lines
52055208 hlock->holdtime_stamp = now;
52065209 }
52075210
5208− trace_lock_acquired(lock, ip);
5209−
52105211 stats = get_lock_stats(hlock_class(hlock));
52115212 if (waittime) {
52125213 if (hlock->read)
@@ -5225,6 +5226,8 @@ void lock_contended(struct lockdep_map *lock, unsigned long ip) · 12 unmodified lines
52255226 {
52265227 unsigned long flags;
52275228
5229+ trace_lock_acquired(lock, ip);
5230+
52285231 if (unlikely(!lock_stat || !debug_locks))
52295232 return;
52305233
@@ -5234,7 +5237,6 @@ void lock_contended(struct lockdep_map *lock, unsigned long ip) · 3 unmodified lines
52345237 raw_local_irq_save(flags);
52355238 check_flags(flags);
52365239 current->lockdep_recursion++;
5237− trace_lock_contended(lock, ip);
52385240 __lock_contended(lock, ip);
52395241 lockdep_recursion_finish();
52405242 raw_local_irq_restore(flags);
@@ -5245,6 +5247,8 @@ void lock_acquired(struct lockdep_map *lock, unsigned long ip) · 4 unmodified lines
52455247 {
52465248 unsigned long flags;
52475249
5250+ trace_lock_contended(lock, ip);
5251+
52485252 if (unlikely(!lock_stat || !debug_locks))
52495253 return;
52505254
kernel/power/hibernate.c+1−1
@@ -659,7 +659,7 @@ static void power_down(void) · 658 unmodified lines
659659 break;
660660 case HIBERNATION_PLATFORM:
661661 hibernation_platform_enter();
662− /* Fall through */
662+ fallthrough;
663663 case HIBERNATION_SHUTDOWN:
664664 if (pm_power_off)
665665 kernel_power_off();
kernel/power/qos.c+2−2
@@ -119,7 +119,7 @@ int pm_qos_update_target(struct pm_qos_constraints *c, struct plist_node *node, · 118 unmodified lines
119119 * and add, then see if the aggregate has changed.
120120 */
121121 plist_del(node, &c->list);
122− /* fall through */
122+ fallthrough;
123123 case PM_QOS_ADD_REQ:
124124 plist_node_init(node, new_value);
125125 plist_add(node, &c->list);
@@ -188,7 +188,7 @@ bool pm_qos_update_flags(struct pm_qos_flags *pqf, · 62 unmodified lines
188188 break;
189189 case PM_QOS_UPDATE_REQ:
190190 pm_qos_flags_remove_req(pqf, req);
191− /* fall through */
191+ fallthrough;
192192 case PM_QOS_ADD_REQ:
193193 req->flags = val;
194194 INIT_LIST_HEAD(&req->node);
kernel/sched/core.c+1−1
@@ -2320,7 +2320,7 @@ static int select_fallback_rq(int cpu, struct task_struct *p) · 2319 unmodified lines
23202320 state = possible;
23212321 break;
23222322 }
2323− /* Fall-through */
2323+ fallthrough;
23242324 case possible:
23252325 do_set_cpus_allowed(p, cpu_possible_mask);
23262326 state = fail;
kernel/sched/idle.c+11−14
@@ -54,17 +54,18 @@ __setup("hlt", cpu_idle_nopoll_setup); · 53 unmodified lines
5454
5555 static noinline int __cpuidle cpu_idle_poll(void)
5656 {
57+ trace_cpu_idle(0, smp_processor_id());
58+ stop_critical_timings();
5759 rcu_idle_enter();
58− trace_cpu_idle_rcuidle(0, smp_processor_id());
5960 local_irq_enable();
60− stop_critical_timings();
6161
6262 while (!tif_need_resched() &&
63− (cpu_idle_force_poll || tick_check_broadcast_expired()))
63+ (cpu_idle_force_poll || tick_check_broadcast_expired()))
6464 cpu_relax();
65− start_critical_timings();
66− trace_cpu_idle_rcuidle(PWR_EVENT_EXIT, smp_processor_id());
65+
6766 rcu_idle_exit();
67+ start_critical_timings();
68+ trace_cpu_idle(PWR_EVENT_EXIT, smp_processor_id());
6869
6970 return 1;
7071 }
@@ -90,9 +91,14 @@ void __cpuidle default_idle_call(void) · 19 unmodified lines
9091 if (current_clr_polling_and_test()) {
9192 local_irq_enable();
9293 } else {
94+
95+ trace_cpu_idle(1, smp_processor_id());
9396 stop_critical_timings();
97+ rcu_idle_enter();
9498 arch_cpu_idle();
99+ rcu_idle_exit();
95100 start_critical_timings();
101+ trace_cpu_idle(PWR_EVENT_EXIT, smp_processor_id());
96102 }
97103 }
98104
@@ -158,7 +164,6 @@ static void cpuidle_idle_call(void) · 59 unmodified lines
158164
159165 if (cpuidle_not_available(drv, dev)) {
160166 tick_nohz_idle_stop_tick();
161− rcu_idle_enter();
162167
163168 default_idle_call();
164169 goto exit_idle;
@@ -178,21 +183,17 @@ static void cpuidle_idle_call(void) · 13 unmodified lines
178183 u64 max_latency_ns;
179184
180185 if (idle_should_enter_s2idle()) {
181− rcu_idle_enter();
182186
183187 entered_state = call_cpuidle_s2idle(drv, dev);
184188 if (entered_state > 0)
185189 goto exit_idle;
186190
187− rcu_idle_exit();
188−
189191 max_latency_ns = U64_MAX;
190192 } else {
191193 max_latency_ns = dev->forced_idle_latency_limit_ns;
192194 }
193195
194196 tick_nohz_idle_stop_tick();
195− rcu_idle_enter();
196197
197198 next_state = cpuidle_find_deepest_state(drv, dev, max_latency_ns);
198199 call_cpuidle(drv, dev, next_state);
@@ -209,8 +210,6 @@ static void cpuidle_idle_call(void) · 10 unmodified lines
209210 else
210211 tick_nohz_idle_retain_tick();
211212
212− rcu_idle_enter();
213−
214213 entered_state = call_cpuidle(drv, dev, next_state);
215214 /*
216215 * Give the governor an opportunity to reflect on the outcome
@@ -226,8 +225,6 @@ exit_idle: · 9 unmodified lines
226225 */
227226 if (WARN_ON_ONCE(irqs_disabled()))
228227 local_irq_enable();
229−
230− rcu_idle_exit();
231228 }
232229
233230 /*
kernel/sched/topology.c+3−3
@@ -1219,13 +1219,13 @@ static void __free_domain_allocs(struct s_data *d, enum s_alloc what, · 1218 unmodified lines
12191219 case sa_rootdomain:
12201220 if (!atomic_read(&d->rd->refcount))
12211221 free_rootdomain(&d->rd->rcu);
1222− /* Fall through */
1222+ fallthrough;
12231223 case sa_sd:
12241224 free_percpu(d->sd);
1225− /* Fall through */
1225+ fallthrough;
12261226 case sa_sd_storage:
12271227 __sdt_free(cpu_map);
1228− /* Fall through */
1228+ fallthrough;
12291229 case sa_none:
12301230 break;
12311231 }
kernel/signal.c+1−1
@@ -851,7 +851,7 @@ static int check_kill_permission(int sig, struct kernel_siginfo *info, · 850 unmodified lines
851851 */
852852 if (!sid || sid == task_session(current))
853853 break;
854− /* fall through */
854+ fallthrough;
855855 default:
856856 return -EPERM;
857857 }
kernel/sys.c+1−1
@@ -1753,7 +1753,7 @@ void getrusage(struct task_struct *p, int who, struct rusage *r) · 1752 unmodified lines
17531753
17541754 if (who == RUSAGE_CHILDREN)
17551755 break;
1756− /* fall through */
1756+ fallthrough;
17571757
17581758 case RUSAGE_SELF:
17591759 thread_group_cputime_adjusted(p, &tgutime, &tgstime);
kernel/sysctl.c+1−2
@@ -204,8 +204,7 @@ static int max_extfrag_threshold = 1000; · 203 unmodified lines
204204
205205 #if defined(CONFIG_BPF_SYSCALL) && defined(CONFIG_SYSCTL)
206206 static int bpf_stats_handler(struct ctl_table *table, int write,
207− void __user *buffer, size_t *lenp,
208− loff_t *ppos)
207+ void *buffer, size_t *lenp, loff_t *ppos)
209208 {
210209 struct static_key *key = (struct static_key *)table->data;
211210 static int saved_val;
kernel/time/hrtimer.c+1−1
@@ -377,7 +377,7 @@ static bool hrtimer_fixup_activate(void *addr, enum debug_obj_state state) · 376 unmodified lines
377377 switch (state) {
378378 case ODEBUG_STATE_ACTIVE:
379379 WARN_ON(1);
380− /* fall through */
380+ fallthrough;
381381 default:
382382 return false;
383383 }
kernel/time/posix-timers.c+2−2
@@ -439,12 +439,12 @@ static struct pid *good_sigevent(sigevent_t * event) · 438 unmodified lines
439439 rtn = pid_task(pid, PIDTYPE_PID);
440440 if (!rtn || !same_thread_group(rtn, current))
441441 return NULL;
442− /* FALLTHRU */
442+ fallthrough;
443443 case SIGEV_SIGNAL:
444444 case SIGEV_THREAD:
445445 if (event->sigev_signo <= 0 || event->sigev_signo > SIGRTMAX)
446446 return NULL;
447− /* FALLTHRU */
447+ fallthrough;
448448 case SIGEV_NONE:
449449 return pid;
450450 default:
kernel/time/tick-broadcast.c+1−1
@@ -381,7 +381,7 @@ void tick_broadcast_control(enum tick_broadcast_mode mode) · 380 unmodified lines
381381 switch (mode) {
382382 case TICK_BROADCAST_FORCE:
383383 tick_broadcast_forced = 1;
384− /* fall through */
384+ fallthrough;
385385 case TICK_BROADCAST_ON:
386386 cpumask_set_cpu(cpu, tick_broadcast_on);
387387 if (!cpumask_test_and_set_cpu(cpu, tick_broadcast_mask)) {
kernel/time/timer.c+1−1
@@ -666,7 +666,7 @@ static bool timer_fixup_activate(void *addr, enum debug_obj_state state) · 665 unmodified lines
666666
667667 case ODEBUG_STATE_ACTIVE:
668668 WARN_ON(1);
669− /* fall through */
669+ fallthrough;
670670 default:
671671 return false;
672672 }
kernel/trace/blktrace.c+1−1
@@ -745,7 +745,7 @@ int blk_trace_ioctl(struct block_device *bdev, unsigned cmd, char __user *arg) · 744 unmodified lines
745745 #endif
746746 case BLKTRACESTART:
747747 start = 1;
748− /* fall through */
748+ fallthrough;
749749 case BLKTRACESTOP:
750750 ret = __blk_trace_startstop(q, start);
751751 break;
kernel/trace/trace_events_filter.c+2−2
@@ -499,7 +499,7 @@ predicate_parse(const char *str, int nr_parens, int nr_preds, · 498 unmodified lines
499499 ptr++;
500500 break;
501501 }
502− /* fall through */
502+ fallthrough;
503503 default:
504504 parse_error(pe, FILT_ERR_TOO_MANY_PREDS,
505505 next - str);
@@ -1273,7 +1273,7 @@ static int parse_pred(const char *str, void *data, · 767 unmodified lines
12731273 switch (op) {
12741274 case OP_NE:
12751275 pred->not = 1;
1276− /* Fall through */
1276+ fallthrough;
12771277 case OP_GLOB:
12781278 case OP_EQ:
12791279 break;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t