mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
![Randy Dunlap](/assets/img/avatar_default.png)
Don't use "SUCCESS" as a macro name. This collides with SCSI's macro of the same name, but with a different value: drivers/staging/keucr/smcommon.h:9:9: warning: preprocessor token SUCCESS redefined include/scsi/scsi.h:463:9: this was the original definition Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
31 lines
1.4 KiB
C
31 lines
1.4 KiB
C
/*----- < SMCommon.h> --------------------------------------------------*/
|
|
#ifndef SMCOMMON_INCD
|
|
#define SMCOMMON_INCD
|
|
|
|
|
|
/***************************************************************************
|
|
Define Difinetion
|
|
***************************************************************************/
|
|
#define SMSUCCESS 0x0000 /* SUCCESS */
|
|
#define ERROR 0xFFFF /* ERROR */
|
|
#define CORRECT 0x0001 /* CORRECTABLE */
|
|
|
|
/***************************************************************************/
|
|
#define NO_ERROR 0x0000 /* NO ERROR */
|
|
#define ERR_WriteFault 0x0003 /* Peripheral Device Write Fault */
|
|
#define ERR_HwError 0x0004 /* Hardware Error */
|
|
#define ERR_DataStatus 0x0010 /* DataStatus Error */
|
|
#define ERR_EccReadErr 0x0011 /* Unrecovered Read Error */
|
|
#define ERR_CorReadErr 0x0018 /* Recovered Read Data with ECC */
|
|
#define ERR_OutOfLBA 0x0021 /* Illegal Logical Block Address */
|
|
#define ERR_WrtProtect 0x0027 /* Write Protected */
|
|
#define ERR_ChangedMedia 0x0028 /* Medium Changed */
|
|
#define ERR_UnknownMedia 0x0030 /* Incompatible Medium Installed */
|
|
#define ERR_IllegalFmt 0x0031 /* Medium Format Corrupted */
|
|
#define ERR_NoSmartMedia 0x003A /* Medium Not Present */
|
|
|
|
/***************************************************************************/
|
|
void StringCopy(char *, char *, int);
|
|
int StringCmp(char *, char *, int);
|
|
|
|
#endif
|