-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
None
-
None
-
3
-
9223372036854775807
While building b_es6_0 branch with patch series https://review.whamcloud.com/63294 ("LU-19459 build: Compatability updates for kernel v6.17") against kernel 6.17.0-8-generic on Ubuntu 25.10, the CSDC codes failed as follows:
In file included from lustre/obdclass/lustre_compr.c:108: /root/lustre-release-ex/lustre/include/lustre_crypto.h:64:52: error: ‘struct crypto_comp’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 64 | static inline void ll_crypto_comp_set_level(struct crypto_comp *cc, int level) | ^~~~~~~~~~~ /root/lustre-release-ex/lustre/include/lustre_crypto.h: In function ‘ll_crypto_comp_set_level’: /root/lustre-release-ex/lustre/include/lustre_crypto.h:66:30: error: implicit declaration of function ‘crypto_comp_tfm’; did you mean ‘crypto_free_tfm’? [-Wimplicit-function-declaration] 66 | crypto_tfm_set_flags(crypto_comp_tfm(cc), | ^~~~~~~~~~~~~~~ | crypto_free_tfm /root/lustre-release-ex/lustre/include/lustre_crypto.h:66:30: error: passing argument 1 of ‘crypto_tfm_set_flags’ makes pointer from integer without a cast [-Wint-conversion] 66 | crypto_tfm_set_flags(crypto_comp_tfm(cc), | ^~~~~~~~~~~~~~~~~~~ | | | int In file included from /usr/src/linux-headers-6.17.0-8-generic/include/crypto/hash.h:11, from /root/lustre-release-ex/lustre/include/lustre_nodemap.h:35, from /root/lustre-release-ex/lustre/include/lustre_quota.h:41, from /root/lustre-release-ex/lustre/include/obd.h:57, from /root/lustre-release-ex/lustre/include/lustre_debug.h:42, from lustre/obdclass/lustre_compr.c:106: /usr/src/linux-headers-6.17.0-8-generic/include/linux/crypto.h:472:60: note: expected ‘struct crypto_tfm *’ but argument is of type ‘int’ 472 | static inline void crypto_tfm_set_flags(struct crypto_tfm *tfm, u32 flags) | ~~~~~~~~~~~~~~~~~~~^~~ In file included from lustre/obdclass/lustre_compr.c:109: /root/lustre-release-ex/lustre/include/lustre_compr.h: At top level: /root/lustre-release-ex/lustre/include/lustre_compr.h:33:43: error: ‘struct crypto_comp’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 33 | unsigned int *lvl, struct crypto_comp **cc); | ^~~~~~~~~~~ /root/lustre-release-ex/lustre/include/lustre_compr.h:35:45: error: ‘struct crypto_comp’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 35 | unsigned int *lvl, struct crypto_comp **cc); | ^~~~~~~~~~~ /root/lustre-release-ex/lustre/include/lustre_compr.h:36:49: error: ‘struct crypto_comp’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 36 | int compress_chunk(const char *obd_name, struct crypto_comp *cc, | ^~~~~~~~~~~ /root/lustre-release-ex/lustre/include/lustre_compr.h:52:51: error: ‘struct crypto_comp’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 52 | int decompress_chunk(const char *obd_name, struct crypto_comp *cc, | ^~~~~~~~~~~ lustre/obdclass/lustre_compr.c:187:33: error: ‘struct crypto_comp’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 187 | struct crypto_comp **cc, bool decompress) | ^~~~~~~~~~~ lustre/obdclass/lustre_compr.c: In function ‘__alloc_compr’: lustre/obdclass/lustre_compr.c:236:15: error: implicit declaration of function ‘crypto_alloc_comp’; did you mean ‘crypto_alloc_acomp’? [-Wimplicit-function-declaration] 236 | *cc = crypto_alloc_comp(crypto_name_from_type(*type, *lvl), 0, 0); | ^~~~~~~~~~~~~~~~~ | crypto_alloc_acomp lustre/obdclass/lustre_compr.c:236:13: error: assignment to ‘struct crypto_comp *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 236 | *cc = crypto_alloc_comp(crypto_name_from_type(*type, *lvl), 0, 0); | ^ lustre/obdclass/lustre_compr.c:272:50: error: passing argument 1 of ‘ll_crypto_comp_set_level’ from incompatible pointer type [-Wincompatible-pointer-types] 272 | ll_crypto_comp_set_level(*cc, *lvl); | ^~~ | | | struct crypto_comp * /root/lustre-release-ex/lustre/include/lustre_crypto.h:64:65: note: expected ‘struct crypto_comp *’ but argument is of type ‘struct crypto_comp *’ 64 | static inline void ll_crypto_comp_set_level(struct crypto_comp *cc, int level) | ~~~~~~~~~~~~~~~~~~~~^~ lustre/obdclass/lustre_compr.c: At top level: lustre/obdclass/lustre_compr.c:281:43: error: ‘struct crypto_comp’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 281 | unsigned int *lvl, struct crypto_comp **cc) | ^~~~~~~~~~~ lustre/obdclass/lustre_compr.c:280:5: error: conflicting types for ‘alloc_compr’; have ‘int(struct client_obd *, enum ll_compr_type *, unsigned int *, struct crypto_comp **)’ 280 | int alloc_compr(struct client_obd *cli, enum ll_compr_type *type, | ^~~~~~~~~~~ /root/lustre-release-ex/lustre/include/lustre_compr.h:32:5: note: previous declaration of ‘alloc_compr’ with type ‘int(struct client_obd *, enum ll_compr_type *, unsigned int *, struct crypto_comp **)’ 32 | int alloc_compr(struct client_obd *cli, enum ll_compr_type *type, | ^~~~~~~~~~~ lustre/obdclass/lustre_compr.c: In function ‘alloc_compr’: lustre/obdclass/lustre_compr.c:283:52: error: passing argument 5 of ‘__alloc_compr’ from incompatible pointer type [-Wincompatible-pointer-types] 283 | return __alloc_compr(cli, NULL, type, lvl, cc, false); | ^~ | | | struct crypto_comp ** lustre/obdclass/lustre_compr.c:187:47: note: expected ‘struct crypto_comp **’ but argument is of type ‘struct crypto_comp **’ 187 | struct crypto_comp **cc, bool decompress) | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /usr/src/linux-headers-6.17.0-8-generic/include/linux/linkage.h:7, from /usr/src/linux-headers-6.17.0-8-generic/include/linux/printk.h:8, from /usr/src/linux-headers-6.17.0-8-generic/include/asm-generic/bug.h:22, from /usr/src/linux-headers-6.17.0-8-generic/arch/x86/include/asm/bug.h:103, from /usr/src/linux-headers-6.17.0-8-generic/arch/x86/include/asm/alternative.h:9, from /usr/src/linux-headers-6.17.0-8-generic/arch/x86/include/asm/barrier.h:5, from /usr/src/linux-headers-6.17.0-8-generic/include/linux/list.h:11, from /usr/src/linux-headers-6.17.0-8-generic/include/linux/kobject.h:19, from /root/lustre-release-ex/lustre/include/lustre_net.h:53, from /root/lustre-release-ex/lustre/include/lustre_debug.h:41: lustre/obdclass/lustre_compr.c: At top level: lustre/obdclass/lustre_compr.c:285:15: error: conflicting types for ‘alloc_compr’; have ‘int(struct client_obd *, enum ll_compr_type *, unsigned int *, struct crypto_comp **)’ 285 | EXPORT_SYMBOL(alloc_compr); | ^~~~~~~~~~~ /usr/src/linux-headers-6.17.0-8-generic/include/linux/export.h:76:28: note: in definition of macro ‘__EXPORT_SYMBOL’ 76 | extern typeof(sym) sym; \ | ^~~ /usr/src/linux-headers-6.17.0-8-generic/include/linux/export.h:89:41: note: in expansion of macro ‘_EXPORT_SYMBOL’ 89 | #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "") | ^~~~~~~~~~~~~~ lustre/obdclass/lustre_compr.c:285:1: note: in expansion of macro ‘EXPORT_SYMBOL’ 285 | EXPORT_SYMBOL(alloc_compr); | ^~~~~~~~~~~~~ /root/lustre-release-ex/lustre/include/lustre_compr.h:32:5: note: previous declaration of ‘alloc_compr’ with type ‘int(struct client_obd *, enum ll_compr_type *, unsigned int *, struct crypto_comp **)’ 32 | int alloc_compr(struct client_obd *cli, enum ll_compr_type *type, | ^~~~~~~~~~~ lustre/obdclass/lustre_compr.c:288:43: error: ‘struct crypto_comp’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 288 | unsigned int *lvl, struct crypto_comp **cc) | ^~~~~~~~~~~ lustre/obdclass/lustre_compr.c:287:5: error: conflicting types for ‘alloc_decompr’; have ‘int(const char *, enum ll_compr_type *, unsigned int *, struct crypto_comp **)’ 287 | int alloc_decompr(const char *obd_name, enum ll_compr_type *type, | ^~~~~~~~~~~~~ /root/lustre-release-ex/lustre/include/lustre_compr.h:34:5: note: previous declaration of ‘alloc_decompr’ with type ‘int(const char *, enum ll_compr_type *, unsigned int *, struct crypto_comp **)’ 34 | int alloc_decompr(const char *obd_name, enum ll_compr_type *type, | ^~~~~~~~~~~~~ lustre/obdclass/lustre_compr.c: In function ‘alloc_decompr’: lustre/obdclass/lustre_compr.c:290:57: error: passing argument 5 of ‘__alloc_compr’ from incompatible pointer type [-Wincompatible-pointer-types] 290 | return __alloc_compr(NULL, obd_name, type, lvl, cc, true); | ^~ | | | struct crypto_comp ** lustre/obdclass/lustre_compr.c:187:47: note: expected ‘struct crypto_comp **’ but argument is of type ‘struct crypto_comp **’ 187 | struct crypto_comp **cc, bool decompress) | ~~~~~~~~~~~~~~~~~~~~~^~ lustre/obdclass/lustre_compr.c: At top level: lustre/obdclass/lustre_compr.c:292:15: error: conflicting types for ‘alloc_decompr’; have ‘int(const char *, enum ll_compr_type *, unsigned int *, struct crypto_comp **)’ 292 | EXPORT_SYMBOL(alloc_decompr); | ^~~~~~~~~~~~~ /usr/src/linux-headers-6.17.0-8-generic/include/linux/export.h:76:28: note: in definition of macro ‘__EXPORT_SYMBOL’ 76 | extern typeof(sym) sym; \ | ^~~ /usr/src/linux-headers-6.17.0-8-generic/include/linux/export.h:89:41: note: in expansion of macro ‘_EXPORT_SYMBOL’ 89 | #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "") | ^~~~~~~~~~~~~~ lustre/obdclass/lustre_compr.c:292:1: note: in expansion of macro ‘EXPORT_SYMBOL’ 292 | EXPORT_SYMBOL(alloc_decompr); | ^~~~~~~~~~~~~ /root/lustre-release-ex/lustre/include/lustre_compr.h:34:5: note: previous declaration of ‘alloc_decompr’ with type ‘int(const char *, enum ll_compr_type *, unsigned int *, struct crypto_comp **)’ 34 | int alloc_decompr(const char *obd_name, enum ll_compr_type *type, | ^~~~~~~~~~~~~ lustre/obdclass/lustre_compr.c:320:49: error: ‘struct crypto_comp’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 320 | int compress_chunk(const char *obd_name, struct crypto_comp *cc, | ^~~~~~~~~~~ lustre/obdclass/lustre_compr.c:320:5: error: conflicting types for ‘compress_chunk’; have ‘int(const char *, struct crypto_comp *, const unsigned char *, unsigned int, unsigned char *, unsigned int *, enum ll_compr_type, unsigned int, unsigned int)’ 320 | int compress_chunk(const char *obd_name, struct crypto_comp *cc, | ^~~~~~~~~~~~~~ /root/lustre-release-ex/lustre/include/lustre_compr.h:36:5: note: previous declaration of ‘compress_chunk’ with type ‘int(const char *, struct crypto_comp *, const unsigned char *, unsigned int, unsigned char *, unsigned int *, enum ll_compr_type, unsigned int, unsigned int)’ 36 | int compress_chunk(const char *obd_name, struct crypto_comp *cc, | ^~~~~~~~~~~~~~ lustre/obdclass/lustre_compr.c: In function ‘compress_chunk’: lustre/obdclass/lustre_compr.c:340:14: error: implicit declaration of function ‘crypto_comp_compress’; did you mean ‘crypto_acomp_compress’? [-Wimplicit-function-declaration] 340 | rc = crypto_comp_compress(cc, in, in_len, | ^~~~~~~~~~~~~~~~~~~~ | crypto_acomp_compress lustre/obdclass/lustre_compr.c: At top level: lustre/obdclass/lustre_compr.c:381:15: error: conflicting types for ‘compress_chunk’; have ‘int(const char *, struct crypto_comp *, const unsigned char *, unsigned int, unsigned char *, unsigned int *, enum ll_compr_type, unsigned int, unsigned int)’ 381 | EXPORT_SYMBOL(compress_chunk); | ^~~~~~~~~~~~~~ /usr/src/linux-headers-6.17.0-8-generic/include/linux/export.h:76:28: note: in definition of macro ‘__EXPORT_SYMBOL’ 76 | extern typeof(sym) sym; \ | ^~~ /usr/src/linux-headers-6.17.0-8-generic/include/linux/export.h:89:41: note: in expansion of macro ‘_EXPORT_SYMBOL’ 89 | #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "") | ^~~~~~~~~~~~~~ lustre/obdclass/lustre_compr.c:381:1: note: in expansion of macro ‘EXPORT_SYMBOL’ 381 | EXPORT_SYMBOL(compress_chunk); | ^~~~~~~~~~~~~ /root/lustre-release-ex/lustre/include/lustre_compr.h:36:5: note: previous declaration of ‘compress_chunk’ with type ‘int(const char *, struct crypto_comp *, const unsigned char *, unsigned int, unsigned char *, unsigned int *, enum ll_compr_type, unsigned int, unsigned int)’ 36 | int compress_chunk(const char *obd_name, struct crypto_comp *cc, | ^~~~~~~~~~~~~~ lustre/obdclass/lustre_compr.c:447:51: error: ‘struct crypto_comp’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 447 | int decompress_chunk(const char *obd_name, struct crypto_comp *cc, | ^~~~~~~~~~~ lustre/obdclass/lustre_compr.c:447:5: error: conflicting types for ‘decompress_chunk’; have ‘int(const char *, struct crypto_comp *, unsigned char *, unsigned int, unsigned char *, unsigned int *, enum ll_compr_type, unsigned int)’ 447 | int decompress_chunk(const char *obd_name, struct crypto_comp *cc, | ^~~~~~~~~~~~~~~~ /root/lustre-release-ex/lustre/include/lustre_compr.h:52:5: note: previous declaration of ‘decompress_chunk’ with type ‘int(const char *, struct crypto_comp *, unsigned char *, unsigned int, unsigned char *, unsigned int *, enum ll_compr_type, unsigned int)’ 52 | int decompress_chunk(const char *obd_name, struct crypto_comp *cc, | ^~~~~~~~~~~~~~~~ lustre/obdclass/lustre_compr.c: In function ‘decompress_chunk’: lustre/obdclass/lustre_compr.c:457:14: error: implicit declaration of function ‘crypto_comp_decompress’; did you mean ‘crypto_acomp_decompress’? [-Wimplicit-function-declaration] 457 | rc = crypto_comp_decompress(cc, in, in_len, out, out_len); | ^~~~~~~~~~~~~~~~~~~~~~ | crypto_acomp_decompress lustre/obdclass/lustre_compr.c: At top level: lustre/obdclass/lustre_compr.c:466:15: error: conflicting types for ‘decompress_chunk’; have ‘int(const char *, struct crypto_comp *, unsigned char *, unsigned int, unsigned char *, unsigned int *, enum ll_compr_type, unsigned int)’ 466 | EXPORT_SYMBOL(decompress_chunk); | ^~~~~~~~~~~~~~~~ /usr/src/linux-headers-6.17.0-8-generic/include/linux/export.h:76:28: note: in definition of macro ‘__EXPORT_SYMBOL’ 76 | extern typeof(sym) sym; \ | ^~~ /usr/src/linux-headers-6.17.0-8-generic/include/linux/export.h:89:41: note: in expansion of macro ‘_EXPORT_SYMBOL’ 89 | #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "") | ^~~~~~~~~~~~~~ lustre/obdclass/lustre_compr.c:466:1: note: in expansion of macro ‘EXPORT_SYMBOL’ 466 | EXPORT_SYMBOL(decompress_chunk); | ^~~~~~~~~~~~~ /root/lustre-release-ex/lustre/include/lustre_compr.h:52:5: note: previous declaration of ‘decompress_chunk’ with type ‘int(const char *, struct crypto_comp *, unsigned char *, unsigned int, unsigned char *, unsigned int *, enum ll_compr_type, unsigned int)’ 52 | int decompress_chunk(const char *obd_name, struct crypto_comp *cc, | ^~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
- duplicates
-
EX-13360 Loading...