diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2017-09-28 12:24:48 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-10-02 21:59:33 -0500 |
commit | 47cb47a1c0dad85514773fd7686fb50e5ace3966 (patch) | |
tree | 90cb7168382f56e54030ec39ea61ec12c6974cbc /hdata | |
parent | a3945efe9df4d3792c2f0c7a4a824a08dfbc6f6e (diff) | |
download | skiboot-47cb47a1c0dad85514773fd7686fb50e5ace3966.zip skiboot-47cb47a1c0dad85514773fd7686fb50e5ace3966.tar.gz skiboot-47cb47a1c0dad85514773fd7686fb50e5ace3966.tar.bz2 |
hdata: Fix sparse warning in add_ecid_data()
warning:
hdata/spira.c:433:33: warning: restricted beint64_t degrades to integer
Reported-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r-- | hdata/spira.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hdata/spira.c b/hdata/spira.c index a153fe0..58e365f 100644 --- a/hdata/spira.c +++ b/hdata/spira.c @@ -430,7 +430,7 @@ static void add_ecid_data(const struct HDIF_common_hdr *hdr, * each containing a code). */ for (i = 0; i < 10; i++) { - tmp = (u8)((ecid->low >> (i * 6)) & 0x3f); + tmp = (u8)((be64_to_cpu(ecid->low) >> (i * 6)) & 0x3f); if (tmp <= 9) wafer_id[9 - i] = tmp + '0'; else if (tmp >= 0xA && tmp <= 0x23) |