Ignore:
Timestamp:
Mar 15, 2017, 2:42:58 AM (6 weeks ago)
Author:
brainslayer
Message:

use new squashfs in all kernels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/drivers/acpi/nfit/core.c

    r31574 r31662  
    16041604}
    16051605
    1606 static int cmp_map(const void *m0, const void *m1)
     1606static int cmp_map_compat(const void *m0, const void *m1)
    16071607{
    16081608        const struct nfit_set_info_map *map0 = m0;
     
    16111611        return memcmp(&map0->region_offset, &map1->region_offset,
    16121612                        sizeof(u64));
     1613}
     1614
     1615static int cmp_map(const void *m0, const void *m1)
     1616{
     1617        const struct nfit_set_info_map *map0 = m0;
     1618        const struct nfit_set_info_map *map1 = m1;
     1619
     1620        return map0->region_offset - map1->region_offset;
    16131621}
    16141622
     
    16681676                        cmp_map, NULL);
    16691677        nd_set->cookie = nd_fletcher64(info, sizeof_nfit_set_info(nr), 0);
     1678
     1679        /* support namespaces created with the wrong sort order */
     1680        sort(&info->mapping[0], nr, sizeof(struct nfit_set_info_map),
     1681                        cmp_map_compat, NULL);
     1682        nd_set->altcookie = nd_fletcher64(info, sizeof_nfit_set_info(nr), 0);
     1683
    16701684        ndr_desc->nd_set = nd_set;
    16711685        devm_kfree(dev, info);
Note: See TracChangeset for help on using the changeset viewer.