kernel-doc comment with anonymous variable in anonymous union?
Subsystems (2)
Hi,
kernel-doc reports warning on include/crypto/skcipher.h:
WARNING: ./include/crypto/skcipher.h:166 struct member 'SKCIPHER_ALG_COMMON' not described in 'skcipher_alg'
skciper_alg struct is defined as:
struct skcipher_alg {
int (*setkey)(struct crypto_skcipher *tfm, const u8 *key,
unsigned int keylen);
int (*encrypt)(struct skcipher_request *req);
int (*decrypt)(struct skcipher_request *req);
int (*export)(struct skcipher_request *req, void *out);
int (*import)(struct skcipher_request *req, const void *in);
int (*init)(struct crypto_skcipher *tfm);
void (*exit)(struct crypto_skcipher *tfm);
unsigned int walksize;
union {
struct SKCIPHER_ALG_COMMON;
struct skcipher_alg_common co;
};
};Note the first member in the union, which is an anonymous (i.e. unnamed) variable.
What can I do on it? Should the offending member be deleted?
Thanks.
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Herbert Xu
maintainerQuoted 26 lines · Bagas Sanjaya
Hi,
kernel-doc reports warning on
include/crypto/skcipher.h:WARNING: ./include/crypto/skcipher.h:166 struct member 'SKCIPHER_ALG_COMMON' not described in 'skcipher_alg'
skciper_algstruct is defined as:struct skcipher_alg { int (*setkey)(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen); int (*encrypt)(struct skcipher_request *req); int (*decrypt)(struct skcipher_request *req); int (*export)(struct skcipher_request *req, void *out); int (*import)(struct skcipher_request *req, const void *in); int (*init)(struct crypto_skcipher *tfm); void (*exit)(struct crypto_skcipher *tfm); unsigned int walksize; union { struct SKCIPHER_ALG_COMMON; struct skcipher_alg_common co; }; };
Quoted 3 lines
Note the first member in the union, which is an anonymous (i.e. unnamed) variable.
What can I do on it? Should the offending member be deleted?
You could either add a comment about SKCIPHER_ALG_COMMON, or fix up all the code that uses it by adding "co."
Thanks,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Quoted 27 lines · Herbert Xu
Quoted 26 lines · Bagas Sanjaya
Hi,
kernel-doc reports warning on
include/crypto/skcipher.h:WARNING: ./include/crypto/skcipher.h:166 struct member 'SKCIPHER_ALG_COMMON' not described in 'skcipher_alg'
skciper_algstruct is defined as:struct skcipher_alg { int (*setkey)(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen); int (*encrypt)(struct skcipher_request *req); int (*decrypt)(struct skcipher_request *req); int (*export)(struct skcipher_request *req, void *out); int (*import)(struct skcipher_request *req, const void *in); int (*init)(struct crypto_skcipher *tfm); void (*exit)(struct crypto_skcipher *tfm); unsigned int walksize; union { struct SKCIPHER_ALG_COMMON; struct skcipher_alg_common co; }; };
Quoted 6 lines
Quoted 3 lines
Note the first member in the union, which is an anonymous (i.e. unnamed) variable.
What can I do on it? Should the offending member be deleted?
You could either add a comment about
SKCIPHER_ALG_COMMON, or fix up all the code that uses it by adding "co."
But that SKCIPHER_ALG_COMMON doesn't have any variable name, though.
Jon?
Signature · 1 line
An old man doll... just what I always wanted! - Clara