]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rust: helpers: remove unnecessary header includes
authorTamir Duberstein <tamird@gmail.com>
Wed, 9 Oct 2024 16:25:30 +0000 (12:25 -0400)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 21 Oct 2024 15:35:59 +0000 (17:35 +0200)
Commit e26fa546042a ("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>
rust/helpers/build_bug.c
rust/helpers/err.c
rust/helpers/kunit.c
rust/helpers/mutex.c
rust/helpers/refcount.c
rust/helpers/signal.c
rust/helpers/spinlock.c
rust/helpers/task.c
rust/helpers/wait.c
rust/helpers/workqueue.c

index e994f7b5928c0151e375ad7303fd02b12f522fbd..44e5794880373e5b4c3e9de5677d8e03ccd4a2be 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 
-#include <linux/export.h>
 #include <linux/errname.h>
 
 const char *rust_helper_errname(int err)
index be3d45ef78a25799bf812ca570579f76f201543b..544c7cb8663283edbe202318e5bca870708546f3 100644 (file)
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 
 #include <linux/err.h>
-#include <linux/export.h>
 
 __force void *rust_helper_ERR_PTR(long err)
 {
index 9d725067eb3bc10388fac94c83844910c866ac9e..b85a4d394c118906d35ffef85221cf1a8b3c6fe3 100644 (file)
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 
 #include <kunit/test-bug.h>
-#include <linux/export.h>
 
 struct kunit *rust_helper_kunit_get_current_test(void)
 {
index a17ca8cdb50ca0a8412c600eea6143d18488099a..7e00680958ef101f6cfda1026a8a75ae1fdea972 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 
-#include <linux/export.h>
 #include <linux/mutex.h>
 
 void rust_helper_mutex_lock(struct mutex *lock)
index f47afc148ec36cb07a136228b6555c9aaa220406..d6adbd2e45a185c7149bd4c9e9dad9e6f90513c9 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 
-#include <linux/export.h>
 #include <linux/refcount.h>
 
 refcount_t rust_helper_REFCOUNT_INIT(int n)
index 63c407f80c26b34401fba224a4976f36a3194d13..1a6bbe9438e281cd8b61141a390cea042949e7bd 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 
-#include <linux/export.h>
 #include <linux/sched/signal.h>
 
 int rust_helper_signal_pending(struct task_struct *t)
index 775ed4d549aefe9f609f6f46645fe09796a58ae1..b7b0945e8b3cb80e423ba1d402dc388f69e17fae 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 
-#include <linux/export.h>
 #include <linux/spinlock.h>
 
 void rust_helper___spin_lock_init(spinlock_t *lock, const char *name,
index 7ac789232d11cd1e200bf686b6d4e43335c7958a..190fdb2c8e2f49c6a1090477edf6aa29ead0c0c0 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 
-#include <linux/export.h>
 #include <linux/sched/task.h>
 
 struct task_struct *rust_helper_get_current(void)
index c7336bbf275071d66a3879e0eacd247a57f22ead..ae48e33d9da3b0a780722b79b89d8d766efae17b 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 
-#include <linux/export.h>
 #include <linux/wait.h>
 
 void rust_helper_init_wait(struct wait_queue_entry *wq_entry)
index f59427acc32373692aaa80b40d2d4fabf66f8df8..b2b82753509bf5dbd0f4ddebb96a95a51e5976b1 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 
-#include <linux/export.h>
 #include <linux/workqueue.h>
 
 void rust_helper_init_work_with_key(struct work_struct *work, work_func_t func,