|
18 | 18 | * accidentally exposed.
|
19 | 19 | */
|
20 | 20 |
|
| 21 | +#include <linux/amba/bus.h> |
21 | 22 | #include <linux/bug.h>
|
22 | 23 | #include <linux/build_bug.h>
|
23 | 24 | #include <linux/clk.h>
|
24 |
| -#include <linux/uaccess.h> |
25 |
| -#include <linux/sched/signal.h> |
| 25 | +#include <linux/errname.h> |
26 | 26 | #include <linux/gfp.h>
|
27 | 27 | #include <linux/highmem.h>
|
28 |
| -#include <linux/uio.h> |
29 |
| -#include <linux/errname.h> |
30 |
| -#include <linux/mutex.h> |
31 |
| -#include <linux/platform_device.h> |
32 |
| -#include <linux/security.h> |
33 |
| -#include <asm/io.h> |
34 |
| -#include <linux/irq.h> |
| 28 | +#include <linux/io.h> |
35 | 29 | #include <linux/irqchip/chained_irq.h>
|
36 | 30 | #include <linux/irqdomain.h>
|
37 |
| -#include <linux/amba/bus.h> |
| 31 | +#include <linux/irq.h> |
| 32 | +#include <linux/mutex.h> |
| 33 | +#include <linux/netdevice.h> |
38 | 34 | #include <linux/of_device.h>
|
| 35 | +#include <linux/platform_device.h> |
| 36 | +#include <linux/sched/signal.h> |
| 37 | +#include <linux/security.h> |
39 | 38 | #include <linux/skbuff.h>
|
40 |
| -#include <linux/netdevice.h> |
| 39 | +#include <linux/uaccess.h> |
| 40 | +#include <linux/uio.h> |
41 | 41 |
|
42 | 42 | __noreturn void rust_helper_BUG(void)
|
43 | 43 | {
|
@@ -161,26 +161,26 @@ EXPORT_SYMBOL_GPL(rust_helper_readq_relaxed);
|
161 | 161 |
|
162 | 162 | void rust_helper_writeb_relaxed(u8 value, volatile void __iomem *addr)
|
163 | 163 | {
|
164 |
| - writeb_relaxed(value, addr); |
| 164 | + writeb_relaxed(value, addr); |
165 | 165 | }
|
166 | 166 | EXPORT_SYMBOL_GPL(rust_helper_writeb_relaxed);
|
167 | 167 |
|
168 | 168 | void rust_helper_writew_relaxed(u16 value, volatile void __iomem *addr)
|
169 | 169 | {
|
170 |
| - writew_relaxed(value, addr); |
| 170 | + writew_relaxed(value, addr); |
171 | 171 | }
|
172 | 172 | EXPORT_SYMBOL_GPL(rust_helper_writew_relaxed);
|
173 | 173 |
|
174 | 174 | void rust_helper_writel_relaxed(u32 value, volatile void __iomem *addr)
|
175 | 175 | {
|
176 |
| - writel_relaxed(value, addr); |
| 176 | + writel_relaxed(value, addr); |
177 | 177 | }
|
178 | 178 | EXPORT_SYMBOL_GPL(rust_helper_writel_relaxed);
|
179 | 179 |
|
180 | 180 | #ifdef CONFIG_64BIT
|
181 | 181 | void rust_helper_writeq_relaxed(u64 value, volatile void __iomem *addr)
|
182 | 182 | {
|
183 |
| - writeq_relaxed(value, addr); |
| 183 | + writeq_relaxed(value, addr); |
184 | 184 | }
|
185 | 185 | EXPORT_SYMBOL_GPL(rust_helper_writeq_relaxed);
|
186 | 186 | #endif
|
@@ -217,7 +217,9 @@ EXPORT_SYMBOL_GPL(rust_helper_spin_unlock);
|
217 | 217 | unsigned long rust_helper_spin_lock_irqsave(spinlock_t *lock)
|
218 | 218 | {
|
219 | 219 | unsigned long flags;
|
| 220 | + |
220 | 221 | spin_lock_irqsave(lock, flags);
|
| 222 | + |
221 | 223 | return flags;
|
222 | 224 | }
|
223 | 225 | EXPORT_SYMBOL_GPL(rust_helper_spin_lock_irqsave);
|
@@ -254,7 +256,9 @@ EXPORT_SYMBOL_GPL(rust_helper_raw_spin_unlock);
|
254 | 256 | unsigned long rust_helper_raw_spin_lock_irqsave(raw_spinlock_t *lock)
|
255 | 257 | {
|
256 | 258 | unsigned long flags;
|
| 259 | + |
257 | 260 | raw_spin_lock_irqsave(lock, flags);
|
| 261 | + |
258 | 262 | return flags;
|
259 | 263 | }
|
260 | 264 | EXPORT_SYMBOL_GPL(rust_helper_raw_spin_lock_irqsave);
|
@@ -403,13 +407,13 @@ struct task_struct *rust_helper_get_current(void)
|
403 | 407 | }
|
404 | 408 | EXPORT_SYMBOL_GPL(rust_helper_get_current);
|
405 | 409 |
|
406 |
| -void rust_helper_get_task_struct(struct task_struct * t) |
| 410 | +void rust_helper_get_task_struct(struct task_struct *t) |
407 | 411 | {
|
408 | 412 | get_task_struct(t);
|
409 | 413 | }
|
410 | 414 | EXPORT_SYMBOL_GPL(rust_helper_get_task_struct);
|
411 | 415 |
|
412 |
| -void rust_helper_put_task_struct(struct task_struct * t) |
| 416 | +void rust_helper_put_task_struct(struct task_struct *t) |
413 | 417 | {
|
414 | 418 | put_task_struct(t);
|
415 | 419 | }
|
@@ -555,7 +559,8 @@ const struct cred *rust_helper_get_cred(const struct cred *cred)
|
555 | 559 | }
|
556 | 560 | EXPORT_SYMBOL_GPL(rust_helper_get_cred);
|
557 | 561 |
|
558 |
| -void rust_helper_put_cred(const struct cred *cred) { |
| 562 | +void rust_helper_put_cred(const struct cred *cred) |
| 563 | +{ |
559 | 564 | put_cred(cred);
|
560 | 565 | }
|
561 | 566 | EXPORT_SYMBOL_GPL(rust_helper_put_cred);
|
|
0 commit comments