Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1213424 > unrolled thread
| Started by | Paul Gortmaker <paul.gortmaker@windriver.com> |
|---|---|
| First post | 2015-08-26 01:10 +0200 |
| Last post | 2015-09-01 15:20 +0200 |
| Articles | 5 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH] drivers/firmware: make efi/esrt.c driver explicitly non-modular Paul Gortmaker <paul.gortmaker@windriver.com> - 2015-08-26 01:10 +0200
Re: [PATCH] drivers/firmware: make efi/esrt.c driver explicitly non-modular Matt Fleming <matt@codeblueprint.co.uk> - 2015-08-26 19:20 +0200
Re: [PATCH] drivers/firmware: make efi/esrt.c driver explicitly non-modular Peter Jones <pjones@redhat.com> - 2015-08-31 16:00 +0200
Re: [PATCH] drivers/firmware: make efi/esrt.c driver explicitly non-modular Matt Fleming <matt@codeblueprint.co.uk> - 2015-09-01 11:00 +0200
Re: [PATCH] drivers/firmware: make efi/esrt.c driver explicitly non-modular Peter Jones <pjones@redhat.com> - 2015-09-01 15:20 +0200
| From | Paul Gortmaker <paul.gortmaker@windriver.com> |
|---|---|
| Date | 2015-08-26 01:10 +0200 |
| Subject | [PATCH] drivers/firmware: make efi/esrt.c driver explicitly non-modular |
| Message-ID | <q1vvQ-4st-15@gated-at.bofh.it> |
The Kconfig for this driver is currently hidden with:
config EFI_ESRT
bool
...meaning that it currently is not being built as a module by anyone.
Lets remove the modular code that is essentially orphaned, so that
when reading the driver there is no doubt it is builtin-only.
Since module_init translates to device_initcall in the non-modular
case, the init ordering remains unchanged with this commit.
We leave some tags like MODULE_AUTHOR for documentation purposes.
We don't replace module.h with init.h since the file already has that.
Cc: Matt Fleming <matt.fleming@intel.com>
Cc: Peter Jones <pjones@redhat.com>
Cc: linux-efi@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
diff --git a/drivers/firmware/efi/esrt.c b/drivers/firmware/efi/esrt.c
index a5b95d61ae71..22c5285f7705 100644
--- a/drivers/firmware/efi/esrt.c
+++ b/drivers/firmware/efi/esrt.c
@@ -20,7 +20,6 @@
#include <linux/kobject.h>
#include <linux/list.h>
#include <linux/memblock.h>
-#include <linux/module.h>
#include <linux/slab.h>
#include <linux/types.h>
@@ -450,22 +449,10 @@ err:
esrt = NULL;
return error;
}
+device_initcall(esrt_sysfs_init);
-static void __exit esrt_sysfs_exit(void)
-{
- pr_debug("esrt-sysfs: unloading.\n");
- cleanup_entry_list();
- kset_unregister(esrt_kset);
- sysfs_remove_group(esrt_kobj, &esrt_attr_group);
- kfree(esrt);
- esrt = NULL;
- kobject_del(esrt_kobj);
- kobject_put(esrt_kobj);
-}
-
-module_init(esrt_sysfs_init);
-module_exit(esrt_sysfs_exit);
-
+/*
MODULE_AUTHOR("Peter Jones <pjones@redhat.com>");
MODULE_DESCRIPTION("EFI System Resource Table support");
MODULE_LICENSE("GPL");
+*/
--
2.2.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Matt Fleming <matt@codeblueprint.co.uk> |
|---|---|
| Date | 2015-08-26 19:20 +0200 |
| Subject | Re: [PATCH] drivers/firmware: make efi/esrt.c driver explicitly non-modular |
| Message-ID | <q1MwG-3Km-3@gated-at.bofh.it> |
| In reply to | #1213424 |
On Tue, 25 Aug, at 07:00:48PM, Paul Gortmaker wrote: > The Kconfig for this driver is currently hidden with: > > config EFI_ESRT > bool > > ...meaning that it currently is not being built as a module by anyone. > Lets remove the modular code that is essentially orphaned, so that > when reading the driver there is no doubt it is builtin-only. > > Since module_init translates to device_initcall in the non-modular > case, the init ordering remains unchanged with this commit. > > We leave some tags like MODULE_AUTHOR for documentation purposes. > > We don't replace module.h with init.h since the file already has that. > > Cc: Matt Fleming <matt.fleming@intel.com> > Cc: Peter Jones <pjones@redhat.com> > Cc: linux-efi@vger.kernel.org > Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Looks good to me. I know Peter is on vacation right now, so I'm still expecting a response from him. In the meantime, I'll queue this up in the EFI 'next' branch. Thanks! -- Matt Fleming, Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Peter Jones <pjones@redhat.com> |
|---|---|
| Date | 2015-08-31 16:00 +0200 |
| Subject | Re: [PATCH] drivers/firmware: make efi/esrt.c driver explicitly non-modular |
| Message-ID | <q3xMT-13i-51@gated-at.bofh.it> |
| In reply to | #1214055 |
On Wed, Aug 26, 2015 at 06:11:28PM +0100, Matt Fleming wrote:
> On Tue, 25 Aug, at 07:00:48PM, Paul Gortmaker wrote:
> > The Kconfig for this driver is currently hidden with:
> >
> > config EFI_ESRT
> > bool
> >
> > ...meaning that it currently is not being built as a module by anyone.
> > Lets remove the modular code that is essentially orphaned, so that
> > when reading the driver there is no doubt it is builtin-only.
> >
> > Since module_init translates to device_initcall in the non-modular
> > case, the init ordering remains unchanged with this commit.
> >
> > We leave some tags like MODULE_AUTHOR for documentation purposes.
> >
> > We don't replace module.h with init.h since the file already has that.
> >
> > Cc: Matt Fleming <matt.fleming@intel.com>
> > Cc: Peter Jones <pjones@redhat.com>
> > Cc: linux-efi@vger.kernel.org
> > Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
>
> Looks good to me. I know Peter is on vacation right now, so I'm still
> expecting a response from him. In the meantime, I'll queue this up in
> the EFI 'next' branch. Thanks!
Looks fine to me as well.
--
Peter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Matt Fleming <matt@codeblueprint.co.uk> |
|---|---|
| Date | 2015-09-01 11:00 +0200 |
| Subject | Re: [PATCH] drivers/firmware: make efi/esrt.c driver explicitly non-modular |
| Message-ID | <q3PA7-1Ef-27@gated-at.bofh.it> |
| In reply to | #1216200 |
On Mon, 31 Aug, at 09:52:02AM, Peter Jones wrote: > On Wed, Aug 26, 2015 at 06:11:28PM +0100, Matt Fleming wrote: > > > > Looks good to me. I know Peter is on vacation right now, so I'm still > > expecting a response from him. In the meantime, I'll queue this up in > > the EFI 'next' branch. Thanks! > > Looks fine to me as well. Thanks Peter. May I add your ACK? -- Matt Fleming, Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Peter Jones <pjones@redhat.com> |
|---|---|
| Date | 2015-09-01 15:20 +0200 |
| Subject | Re: [PATCH] drivers/firmware: make efi/esrt.c driver explicitly non-modular |
| Message-ID | <q3TDI-7C5-19@gated-at.bofh.it> |
| In reply to | #1216704 |
On Tue, Sep 01, 2015 at 09:57:08AM +0100, Matt Fleming wrote:
> On Mon, 31 Aug, at 09:52:02AM, Peter Jones wrote:
> > On Wed, Aug 26, 2015 at 06:11:28PM +0100, Matt Fleming wrote:
> > >
> > > Looks good to me. I know Peter is on vacation right now, so I'm still
> > > expecting a response from him. In the meantime, I'll queue this up in
> > > the EFI 'next' branch. Thanks!
> >
> > Looks fine to me as well.
>
> Thanks Peter. May I add your ACK?
Yes, sorry:
Acked-by: Peter Jones <pjones@redhat.com>
--
Peter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web