return ret1 ? ret1 : ret2;
 }
 
+static int ahash_noimport(struct ahash_request *req, const void *in)
+{
+       return -ENOSYS;
+}
+
+static int ahash_noexport(struct ahash_request *req, void *out)
+{
+       return -ENOSYS;
+}
+
 static int hmac_sha1_init(struct ahash_request *req)
 {
        struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
                        .update = ahash_update,
                        .final = ahash_final,
                        .digest = ahash_sha1_digest,
+                       .export = ahash_noexport,
+                       .import = ahash_noimport,
                        .halg.digestsize = SHA1_DIGEST_SIZE,
                        .halg.statesize = sizeof(struct hash_ctx),
                        .halg.base = {
                        .update = ahash_update,
                        .final = ahash_final,
                        .digest = ahash_sha256_digest,
+                       .export = ahash_noexport,
+                       .import = ahash_noimport,
                        .halg.digestsize = SHA256_DIGEST_SIZE,
                        .halg.statesize = sizeof(struct hash_ctx),
                        .halg.base = {
                        .final = ahash_final,
                        .digest = hmac_sha1_digest,
                        .setkey = hmac_sha1_setkey,
+                       .export = ahash_noexport,
+                       .import = ahash_noimport,
                        .halg.digestsize = SHA1_DIGEST_SIZE,
                        .halg.statesize = sizeof(struct hash_ctx),
                        .halg.base = {
                        .final = ahash_final,
                        .digest = hmac_sha256_digest,
                        .setkey = hmac_sha256_setkey,
+                       .export = ahash_noexport,
+                       .import = ahash_noimport,
                        .halg.digestsize = SHA256_DIGEST_SIZE,
                        .halg.statesize = sizeof(struct hash_ctx),
                        .halg.base = {