CC [M] drivers/md/dm-bufio.o
drivers/md/dm-bufio.c:988:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/dm-bufio.c:988:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/dm-bufio.c:988:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/md/dm-bufio.c:997:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/dm-bufio.c:997:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/dm-bufio.c:997:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/md/dm-bufio.c:1006:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/dm-bufio.c:1006:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/dm-bufio.c:1006:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/md/dm-bufio.c:1036:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/dm-bufio.c:1036:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/dm-bufio.c:1036:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/md/dm-bufio.c:1049:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/dm-bufio.c:1049:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/dm-bufio.c:1049:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/md/dm-bufio.c:1059:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/dm-bufio.c:1059:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/dm-bufio.c:1059:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/md/dm-bufio.c:1135:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/dm-bufio.c:1135:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/dm-bufio.c:1135:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/md/dm-bufio.c:1158:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/dm-bufio.c:1158:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/dm-bufio.c:1158:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/md/dm-bufio.c:1232:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/dm-bufio.c:1232:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/dm-bufio.c:1232:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/md/dm-bufio.c:1238:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/dm-bufio.c:1238:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/dm-bufio.c:1238:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/md/dm-bufio.c:1245:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/dm-bufio.c:1245:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/dm-bufio.c:1245:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/md/dm-bufio.c:1251:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/dm-bufio.c:1251:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/dm-bufio.c:1251:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/md/dm-bufio.c:1257:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/dm-bufio.c:1257:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/dm-bufio.c:1257:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/md/dm-bufio.c:1263:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/dm-bufio.c:1263:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/dm-bufio.c:1263:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/md/dm-bufio.c:1269:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/dm-bufio.c:1269:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/dm-bufio.c:1269:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/md/dm-bufio.c:1489:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/dm-bufio.c:1489:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/dm-bufio.c:1489:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/md/dm-bufio.c:1534:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/dm-bufio.c:1534:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/dm-bufio.c:1534:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/md/dm-bufio.c:1676:63: error: expected ‘)’ before ‘ulong’
drivers/md/dm-bufio.c:1677:40: error: expected ‘)’ before string constant
drivers/md/dm-bufio.c:1679:55: error: expected ‘)’ before ‘uint’
drivers/md/dm-bufio.c:1680:35: error: expected ‘)’ before string constant
drivers/md/dm-bufio.c:1682:67: error: expected ‘)’ before ‘ulong’
drivers/md/dm-bufio.c:1683:40: error: expected ‘)’ before string constant
drivers/md/dm-bufio.c:1685:79: error: expected ‘)’ before ‘ulong’
drivers/md/dm-bufio.c:1686:46: error: expected ‘)’ before string constant
drivers/md/dm-bufio.c:1688:87: error: expected ‘)’ before ‘ulong’
drivers/md/dm-bufio.c:1689:50: error: expected ‘)’ before string constant
drivers/md/dm-bufio.c:1691:73: error: expected ‘)’ before ‘ulong’
drivers/md/dm-bufio.c:1692:43: error: expected ‘)’ before string constant
drivers/md/dm-bufio.c:1694:73: error: expected ‘)’ before ‘ulong’
drivers/md/dm-bufio.c:1695:43: error: expected ‘)’ before string constant
drivers/md/dm-bufio.c:1697:15: error: expected declaration specifiers or ‘...’ before string constant
drivers/md/dm-bufio.c:1698:20: error: expected declaration specifiers or ‘...’ before string constant
drivers/md/dm-bufio.c:1699:16: error: expected declaration specifiers or ‘...’ before string constant
make[2]: *** [drivers/md/dm-bufio.o] Błąd 1
make[1]: *** [drivers/md] Błąd 2
make: *** [drivers] Błąd 2
COde is new, so it probably new bug not regression.
Regards,
Witek
--
Witold Baryluk
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
11-07-2011, 12:46 PM
Alasdair G Kergon
Error when compiling drivers/md/dm-bufio.c
On Mon, Nov 07, 2011 at 09:22:31AM +0100, Witold Baryluk wrote:
> I just got error on todays Linus' tree
> CC [M] drivers/md/dm-bufio.o
> drivers/md/dm-bufio.c:988:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
Probably related to this merge:
commit 32aaeffbd4a7457bf2f7448b33b5946ff2a960eb
Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/ker
Previously module.h was included via another header file.
Now, bufio.c needs an explicit
#include <linux/module.h>
Alasdair
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
11-07-2011, 02:36 PM
Mikulas Patocka
Error when compiling drivers/md/dm-bufio.c
On Mon, 7 Nov 2011, Alasdair G Kergon wrote:
> On Mon, Nov 07, 2011 at 09:22:31AM +0100, Witold Baryluk wrote:
> > I just got error on todays Linus' tree
> > CC [M] drivers/md/dm-bufio.o
> > drivers/md/dm-bufio.c:988:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
>
> Probably related to this merge:
> commit 32aaeffbd4a7457bf2f7448b33b5946ff2a960eb
> Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/ker
>
> Previously module.h was included via another header file.
> Now, bufio.c needs an explicit
>
> #include <linux/module.h>
>
> Alasdair
>
Mikulas--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
11-07-2011, 03:15 PM
Witold Baryluk
Error when compiling drivers/md/dm-bufio.c
On 11-07 10:36, Mikulas Patocka wrote:
>
>
> On Mon, 7 Nov 2011, Alasdair G Kergon wrote:
>
> > On Mon, Nov 07, 2011 at 09:22:31AM +0100, Witold Baryluk wrote:
> > > I just got error on todays Linus' tree
> > > CC [M] drivers/md/dm-bufio.o
> > > drivers/md/dm-bufio.c:988:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
> >
> > Probably related to this merge:
> > commit 32aaeffbd4a7457bf2f7448b33b5946ff2a960eb
> > Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/ker
> >
> > Previously module.h was included via another header file.
> > Now, bufio.c needs an explicit
> >
> > #include <linux/module.h>
> >
> > Alasdair
> >
>
> Yes, apply this patch:
>
> dm-bufio: Include <linux/module.h>
>
> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
>
> ---
> drivers/md/dm-bufio.c | 1 +
> 1 file changed, 1 insertion(+)
>
> Index: linux-2.6-compile/drivers/md/dm-bufio.c
> ================================================== =================
> --- linux-2.6-compile.orig/drivers/md/dm-bufio.c 2011-11-07 16:31:34.000000000 +0100
> +++ linux-2.6-compile/drivers/md/dm-bufio.c 2011-11-07 16:31:41.000000000 +0100
> @@ -8,6 +8,7 @@
>
> #include "dm-bufio.h"
>
> +#include <linux/module.h>
> #include <linux/device-mapper.h>
> #include <linux/dm-io.h>
> #include <linux/slab.h>
>
> Mikulas
Compiles.
However, I get similar warnings (not errors this times,
because only variables are used probably, and implicitly used as ints)
CC [M] drivers/md/persistent-data/dm-space-map-checker.o
drivers/md/persistent-data/dm-space-map-checker.c:427:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/persistent-data/dm-space-map-checker.c:427:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/persistent-data/dm-space-map-checker.c:427:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/md/persistent-data/dm-space-map-checker.c:433:1: warning: data definition has no type or storage class [enabled by default]
drivers/md/persistent-data/dm-space-map-checker.c:433:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
drivers/md/persistent-data/dm-space-map-checker.c:433:1: warning: parameter names (without types) in function declaration [enabled by default]
CC [M] drivers/md/persistent-data/dm-space-map-common.o
Adding similar include to dm-space-map-checker.c, resolves problem.
No further problems found (however I do not have all CONFIG_DM_* enabled).
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
11-07-2011, 03:18 PM
Linus Torvalds
Error when compiling drivers/md/dm-bufio.c
On Mon, Nov 7, 2011 at 7:36 AM, Mikulas Patocka <mpatocka@redhat.com> wrote:
>
> Yes, apply this patch:
>
> dm-bufio: Include <linux/module.h>
Actually, is just <linux/export.h> sufficient?
It's much better to use just export.h if you have the choice - lots of
code doesn't need the whole module thing that brings in just about all
the headers in the whole kernel (ok, not quite, but still..)
That was kind of the whole point of the split.
Linus
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
11-07-2011, 03:20 PM
Alasdair G Kergon
Error when compiling drivers/md/dm-bufio.c
On Mon, Nov 07, 2011 at 05:15:14PM +0100, Witold Baryluk wrote:
> Adding similar include to dm-space-map-checker.c, resolves problem.
In there, try the new
#include <linux/export.h>
Alasdair
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
11-07-2011, 03:23 PM
Mikulas Patocka
Error when compiling drivers/md/dm-bufio.c
On Mon, 7 Nov 2011, Linus Torvalds wrote:
> On Mon, Nov 7, 2011 at 7:36 AM, Mikulas Patocka <mpatocka@redhat.com> wrote:
> >
> > Yes, apply this patch:
> >
> > dm-bufio: Include <linux/module.h>
>
> Actually, is just <linux/export.h> sufficient?
>
> It's much better to use just export.h if you have the choice - lots of
> code doesn't need the whole module thing that brings in just about all
> the headers in the whole kernel (ok, not quite, but still..)
>
> That was kind of the whole point of the split.
>
> Linus
No, with <linux/export.h> included, it fails when compiling
"module_param_named" macro.
Mikulas
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
11-07-2011, 03:32 PM
Witold Baryluk
Error when compiling drivers/md/dm-bufio.c
On 11-07 08:18, Linus Torvalds wrote:
> On Mon, Nov 7, 2011 at 7:36 AM, Mikulas Patocka <mpatocka@redhat.com> wrote:
> >
> > Yes, apply this patch:
> >
> > dm-bufio: Include <linux/module.h>
>
> Actually, is just <linux/export.h> sufficient?
I changed include to <linux/export.h>, and dm-bufio.c
gives error
CC [M] drivers/md/dm-bufio.o
drivers/md/dm-bufio.c:1677:63: error: expected ‘)’ before ‘ulong’
drivers/md/dm-bufio.c:1678:40: error: expected ‘)’ before string constant
drivers/md/dm-bufio.c:1680:55: error: expected ‘)’ before ‘uint’
drivers/md/dm-bufio.c:1681:35: error: expected ‘)’ before string constant
drivers/md/dm-bufio.c:1683:67: error: expected ‘)’ before ‘ulong’
drivers/md/dm-bufio.c:1684:40: error: expected ‘)’ before string constant
drivers/md/dm-bufio.c:1686:79: error: expected ‘)’ before ‘ulong’
drivers/md/dm-bufio.c:1687:46: error: expected ‘)’ before string constant
drivers/md/dm-bufio.c:1689:87: error: expected ‘)’ before ‘ulong’
drivers/md/dm-bufio.c:1690:50: error: expected ‘)’ before string constant
drivers/md/dm-bufio.c:1692:73: error: expected ‘)’ before ‘ulong’
drivers/md/dm-bufio.c:1693:43: error: expected ‘)’ before string constant
drivers/md/dm-bufio.c:1695:73: error: expected ‘)’ before ‘ulong’
drivers/md/dm-bufio.c:1696:43: error: expected ‘)’ before string constant
drivers/md/dm-bufio.c:1698:15: error: expected declaration specifiers or ‘...’ before string constant
drivers/md/dm-bufio.c:1699:20: error: expected declaration specifiers or ‘...’ before string constant
drivers/md/dm-bufio.c:1700:16: error: expected declaration specifiers or ‘...’ before string constant
It is using module_param_named, and MODULE_PARAM_DESC, MODULE_AUTHOR,
MODULE_DESCRIPTION, MODULE_LICENSE macros.
(and module_init() and module_exit() also).
However dm-space-map-checker.c compiles fine.
Update patch atached.
>
> It's much better to use just export.h if you have the choice - lots of
> code doesn't need the whole module thing that brings in just about all
> the headers in the whole kernel (ok, not quite, but still..)
>
> That was kind of the whole point of the split.
>
> Linus
On Mon, Nov 07, 2011 at 05:32:15PM +0100, Witold Baryluk wrote:
> Update patch atached.
More module.h files can now be export.h I think, so try this version:
http://git.kernel.org/?p=linux/kernel/git/agk/linux-dm.git;a=patch;h=bef30d3d2059b80b8994ad6a9db861251 8ea7a10
commit bef30d3d2059b80b8994ad6a9db8612518ea7a10
Author: Alasdair G Kergon <agk@redhat.com>
Date: Mon Nov 7 18:45:18 2011 +0000
dm: fix module export includes
Fix the use of export.h and module.h in new thin provisioning code.