]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
Eliminate sparse warning - bad constant expression
authorshirishpargaonkar@gmail.com <shirishpargaonkar@gmail.com>
Tue, 24 Aug 2010 16:53:48 +0000 (11:53 -0500)
committerSteve French <sfrench@us.ibm.com>
Tue, 24 Aug 2010 18:12:52 +0000 (18:12 +0000)
commit2d20ca835867d93ead6ce61780d883a4b128106d
tree519a2bff48470a78406e55428a8410ed63c63c48
parent24e6cf92fde1f140d8eb0bf7cd24c2c78149b6b2
Eliminate sparse warning - bad constant expression

Eliminiate sparse warning during usage of crypto_shash_* APIs
       error: bad constant expression

Allocate memory for shash descriptors once, so that we do not kmalloc/kfree it
for every signature generation (shash descriptor for md5 hash).

From ed7538619817777decc44b5660b52268077b74f3 Mon Sep 17 00:00:00 2001
From: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Date: Tue, 24 Aug 2010 11:47:43 -0500
Subject: [PATCH] eliminate sparse warnings during crypto_shash_* APis usage

Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsencrypt.c
fs/cifs/cifsglob.h