X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=libcfs%2Fautoconf%2Flustre-libcfs.m4;h=da15da913f44efd3c63aa22a2781314bba1f3709;hb=2c84a5f145e1c28e43c1b8174fc42c7dd58f86e1;hp=8ff37b5d666e55e871b98b6d788f85480e17e6b6;hpb=39cecbf532a266aac8caea8b215dcec281a31d73;p=fs%2Flustre-release.git diff --git a/libcfs/autoconf/lustre-libcfs.m4 b/libcfs/autoconf/lustre-libcfs.m4 index 8ff37b5..da15da9 100644 --- a/libcfs/autoconf/lustre-libcfs.m4 +++ b/libcfs/autoconf/lustre-libcfs.m4 @@ -101,13 +101,10 @@ AC_DEFUN([LIBCFS_DIGEST_SETKEY_FLAGS], LB_LINUX_TRY_COMPILE([ #include #include - - static int foo(struct crypto_tfm *tfm, const u8 *key, unsigned int l, u32* f) - { - return 1; - } ],[ - struct digest_alg alg = {.dia_setkey=foo}; + struct digest_alg alg; + + alg.dia_setkey(NULL, NULL, 0, NULL); ],[ AC_MSG_RESULT([yes]) AC_DEFINE(HAVE_DIGEST_SETKEY_FLAGS, 1, [kernel dia_setkey takes 4 args]) @@ -116,7 +113,6 @@ LB_LINUX_TRY_COMPILE([ ]) ]) - # 2.6.19 API changes # kmem_cache_destroy(cachep) return void instead of # int