From: Ulf Hansson Date: Tue, 31 Mar 2015 10:41:55 +0000 (+0200) Subject: mmc: core: Convert the error field in struct mmc_command|data into an int X-Git-Tag: v4.9.8~4496^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5c5179b9a8ab8e3255f78e233d94ea54f23f832;p=platform%2Fkernel%2Flinux-rpi3.git mmc: core: Convert the error field in struct mmc_command|data into an int Everybody expects the error field in the struct mmc_command|data to be and int but it's actually an unsigned int. Let's convert it into an int to meet the expectations. Signed-off-by: Ulf Hansson --- diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h index 160448f..de722d4e 100644 --- a/include/linux/mmc/core.h +++ b/include/linux/mmc/core.h @@ -79,7 +79,7 @@ struct mmc_command { #define mmc_cmd_type(cmd) ((cmd)->flags & MMC_CMD_MASK) unsigned int retries; /* max number of retries */ - unsigned int error; /* command error */ + int error; /* command error */ /* * Standard errno values are used for errors, but some have specific @@ -108,7 +108,7 @@ struct mmc_data { unsigned int timeout_clks; /* data timeout (in clocks) */ unsigned int blksz; /* data block size */ unsigned int blocks; /* number of blocks */ - unsigned int error; /* data error */ + int error; /* data error */ unsigned int flags; #define MMC_DATA_WRITE (1 << 8)