]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
rasdaemon: rearrange HiSilicon HIP07 decoding function table
authorShiju Jose <shiju.jose@huawei.com>
Mon, 17 Jun 2019 14:28:48 +0000 (15:28 +0100)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 21 Jun 2019 18:38:20 +0000 (15:38 -0300)
This patch rearranges the decoding function table for the
HiSilicon HIP07 non-standard errors.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
non-standard-hisi_hip07.c

index 3e9dabd757665d684178d3998e6b12aea4690ef3..19a5c479f148e3a1050c834c71af6056d42eeaba 100644 (file)
 #define HISI_SAS_VALID_ERR_TYPE       BIT(2)
 #define HISI_SAS_VALID_AXI_ERR_INFO   BIT(3)
 
-static int decode_hip07_sas_error(struct trace_seq *s, const void *error);
-static int decode_hip07_hns_error(struct trace_seq *s, const void *error);
-
-struct ras_ns_dec_tab hisi_ns_dec_tab[] = {
-       {
-               .sec_type = "daffd8146eba4d8c8a91bc9bbf4aa301",
-               .decode = decode_hip07_sas_error,
-       },
-       {
-               .sec_type = "fbc2d923ea7a453dab132949f5af9e53",
-               .decode = decode_hip07_hns_error,
-       },
-};
-
 struct hisi_sas_err_sec {
        uint64_t   val_bits;
        uint64_t   physical_addr;
@@ -138,6 +124,18 @@ static int decode_hip07_hns_error(struct trace_seq *s, const void *error)
 {
        return 0;
 }
+
+struct ras_ns_dec_tab hisi_ns_dec_tab[] = {
+       {
+               .sec_type = "daffd8146eba4d8c8a91bc9bbf4aa301",
+               .decode = decode_hip07_sas_error,
+       },
+       {
+               .sec_type = "fbc2d923ea7a453dab132949f5af9e53",
+               .decode = decode_hip07_hns_error,
+       },
+};
+
 __attribute__((constructor))
 static void hip07_init(void)
 {