]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: lustre: Fix variable type declaration after refactoring
authorQuentin Lambert <lambert.quentin@gmail.com>
Thu, 8 Dec 2016 20:38:27 +0000 (21:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jan 2017 14:06:49 +0000 (15:06 +0100)
commit4091af4a09488039049d5bf91221983bdcd5107a
tree27264535957d09d7387e12e55c4997be70ed664f
parentefd6271be19425233ed819cda5daaa69cc832d41
staging: lustre: Fix variable type declaration after refactoring

A recent clean-up declared och_flags as a int rather than fmode_t. This
lead to the following sparse warning:

drivers/staging/lustre/lustre/llite/file.c:106:30: warning: restricted
fmode_t degrades to integer

This patch fixes this issue.

Fixes: 0a1200991234f7 ("staging: lustre: cleanup lustre_lib.h")
Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com>
Acked-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/obd.h