Skip to content

Commit d4d7c05

Browse files
tamirdojeda
authored andcommitted
rust: helpers: remove unnecessary header includes
Commit e26fa54 ("rust: kbuild: auto generate helper exports") removed the need for these by automatically generating the exports; it removed the explicit uses of `EXPORT_SYMBOL_GPL` but didn't remove the `#include <linux/export.h>`s. Signed-off-by: Tamir Duberstein <tamird@gmail.com> Reviewed-by: Gary Guo <gary@garyguo.net> Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org> Link: https://lore.kernel.org/r/20241009162553.27845-2-tamird@gmail.com [ Reworded title. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 54c5dc5 commit d4d7c05

File tree

10 files changed

+0
-10
lines changed

10 files changed

+0
-10
lines changed

rust/helpers/build_bug.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0
22

3-
#include <linux/export.h>
43
#include <linux/errname.h>
54

65
const char *rust_helper_errname(int err)

rust/helpers/err.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
22

33
#include <linux/err.h>
4-
#include <linux/export.h>
54

65
__force void *rust_helper_ERR_PTR(long err)
76
{

rust/helpers/kunit.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
22

33
#include <kunit/test-bug.h>
4-
#include <linux/export.h>
54

65
struct kunit *rust_helper_kunit_get_current_test(void)
76
{

rust/helpers/mutex.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0
22

3-
#include <linux/export.h>
43
#include <linux/mutex.h>
54

65
void rust_helper_mutex_lock(struct mutex *lock)

rust/helpers/refcount.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0
22

3-
#include <linux/export.h>
43
#include <linux/refcount.h>
54

65
refcount_t rust_helper_REFCOUNT_INIT(int n)

rust/helpers/signal.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0
22

3-
#include <linux/export.h>
43
#include <linux/sched/signal.h>
54

65
int rust_helper_signal_pending(struct task_struct *t)

rust/helpers/spinlock.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0
22

3-
#include <linux/export.h>
43
#include <linux/spinlock.h>
54

65
void rust_helper___spin_lock_init(spinlock_t *lock, const char *name,

rust/helpers/task.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0
22

3-
#include <linux/export.h>
43
#include <linux/sched/task.h>
54

65
struct task_struct *rust_helper_get_current(void)

rust/helpers/wait.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0
22

3-
#include <linux/export.h>
43
#include <linux/wait.h>
54

65
void rust_helper_init_wait(struct wait_queue_entry *wq_entry)

rust/helpers/workqueue.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0
22

3-
#include <linux/export.h>
43
#include <linux/workqueue.h>
54

65
void rust_helper_init_work_with_key(struct work_struct *work, work_func_t func,

0 commit comments

Comments
 (0)