You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
Revert "treewide: Change list_sort to use const pointers"
This reverts commit55e6f8b3c0which is commit4f0f586bf0upstream. This commit is already in this branch, but in a different fashion, as CFI is included here. By having this version, there is a crc error that is due to the use of typedefs. Reverting this commit changes nothing and fixes the CRC issue. Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I97849a104acbc88599481f6c5c9d024570ec5c87
This commit is contained in:
@@ -2190,8 +2190,8 @@ static int vgic_its_restore_ite(struct vgic_its *its, u32 event_id,
|
||||
return offset;
|
||||
}
|
||||
|
||||
static int vgic_its_ite_cmp(void *priv, const struct list_head *a,
|
||||
const struct list_head *b)
|
||||
static int vgic_its_ite_cmp(void *priv, struct list_head *a,
|
||||
struct list_head *b)
|
||||
{
|
||||
struct its_ite *itea = container_of(a, struct its_ite, ite_list);
|
||||
struct its_ite *iteb = container_of(b, struct its_ite, ite_list);
|
||||
@@ -2329,8 +2329,8 @@ static int vgic_its_restore_dte(struct vgic_its *its, u32 id,
|
||||
return offset;
|
||||
}
|
||||
|
||||
static int vgic_its_device_cmp(void *priv, const struct list_head *a,
|
||||
const struct list_head *b)
|
||||
static int vgic_its_device_cmp(void *priv, struct list_head *a,
|
||||
struct list_head *b)
|
||||
{
|
||||
struct its_device *deva = container_of(a, struct its_device, dev_list);
|
||||
struct its_device *devb = container_of(b, struct its_device, dev_list);
|
||||
|
||||
@@ -255,8 +255,7 @@ static struct kvm_vcpu *vgic_target_oracle(struct vgic_irq *irq)
|
||||
* Return negative if "a" sorts before "b", 0 to preserve order, and positive
|
||||
* to sort "b" before "a".
|
||||
*/
|
||||
static int vgic_irq_cmp(void *priv, const struct list_head *a,
|
||||
const struct list_head *b)
|
||||
static int vgic_irq_cmp(void *priv, struct list_head *a, struct list_head *b)
|
||||
{
|
||||
struct vgic_irq *irqa = container_of(a, struct vgic_irq, ap_list);
|
||||
struct vgic_irq *irqb = container_of(b, struct vgic_irq, ap_list);
|
||||
|
||||
@@ -75,8 +75,7 @@ void blk_mq_sched_restart(struct blk_mq_hw_ctx *hctx)
|
||||
blk_mq_run_hw_queue(hctx, true);
|
||||
}
|
||||
|
||||
static int sched_rq_cmp(void *priv, const struct list_head *a,
|
||||
const struct list_head *b)
|
||||
static int sched_rq_cmp(void *priv, struct list_head *a, struct list_head *b)
|
||||
{
|
||||
struct request *rqa = container_of(a, struct request, queuelist);
|
||||
struct request *rqb = container_of(b, struct request, queuelist);
|
||||
|
||||
@@ -1924,8 +1924,7 @@ void blk_mq_insert_requests(struct blk_mq_hw_ctx *hctx, struct blk_mq_ctx *ctx,
|
||||
spin_unlock(&ctx->lock);
|
||||
}
|
||||
|
||||
static int plug_rq_cmp(void *priv, const struct list_head *a,
|
||||
const struct list_head *b)
|
||||
static int plug_rq_cmp(void *priv, struct list_head *a, struct list_head *b)
|
||||
{
|
||||
struct request *rqa = container_of(a, struct request, queuelist);
|
||||
struct request *rqb = container_of(b, struct request, queuelist);
|
||||
|
||||
@@ -1194,8 +1194,7 @@ static int __nfit_mem_init(struct acpi_nfit_desc *acpi_desc,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int nfit_mem_cmp(void *priv, const struct list_head *_a,
|
||||
const struct list_head *_b)
|
||||
static int nfit_mem_cmp(void *priv, struct list_head *_a, struct list_head *_b)
|
||||
{
|
||||
struct nfit_mem *a = container_of(_a, typeof(*a), list);
|
||||
struct nfit_mem *b = container_of(_b, typeof(*b), list);
|
||||
|
||||
@@ -558,8 +558,7 @@ static bool hmat_update_best(u8 type, u32 value, u32 *best)
|
||||
return updated;
|
||||
}
|
||||
|
||||
static int initiator_cmp(void *priv, const struct list_head *a,
|
||||
const struct list_head *b)
|
||||
static int initiator_cmp(void *priv, struct list_head *a, struct list_head *b)
|
||||
{
|
||||
struct memory_initiator *ia;
|
||||
struct memory_initiator *ib;
|
||||
|
||||
@@ -503,8 +503,8 @@ static int ti_sci_scan_clocks_from_fw(struct sci_clk_provider *provider)
|
||||
|
||||
#else
|
||||
|
||||
static int _cmp_sci_clk_list(void *priv, const struct list_head *a,
|
||||
const struct list_head *b)
|
||||
static int _cmp_sci_clk_list(void *priv, struct list_head *a,
|
||||
struct list_head *b)
|
||||
{
|
||||
struct sci_clk *ca = container_of(a, struct sci_clk, node);
|
||||
struct sci_clk *cb = container_of(b, struct sci_clk, node);
|
||||
|
||||
@@ -1290,8 +1290,7 @@ EXPORT_SYMBOL(drm_mode_prune_invalid);
|
||||
* Negative if @lh_a is better than @lh_b, zero if they're equivalent, or
|
||||
* positive if @lh_b is better than @lh_a.
|
||||
*/
|
||||
static int drm_mode_compare(void *priv, const struct list_head *lh_a,
|
||||
const struct list_head *lh_b)
|
||||
static int drm_mode_compare(void *priv, struct list_head *lh_a, struct list_head *lh_b)
|
||||
{
|
||||
struct drm_display_mode *a = list_entry(lh_a, struct drm_display_mode, head);
|
||||
struct drm_display_mode *b = list_entry(lh_b, struct drm_display_mode, head);
|
||||
|
||||
@@ -49,8 +49,7 @@ static const u8 uabi_classes[] = {
|
||||
[VIDEO_ENHANCEMENT_CLASS] = I915_ENGINE_CLASS_VIDEO_ENHANCE,
|
||||
};
|
||||
|
||||
static int engine_cmp(void *priv, const struct list_head *A,
|
||||
const struct list_head *B)
|
||||
static int engine_cmp(void *priv, struct list_head *A, struct list_head *B)
|
||||
{
|
||||
const struct intel_engine_cs *a =
|
||||
container_of((struct rb_node *)A, typeof(*a), uabi_node);
|
||||
|
||||
@@ -41,7 +41,7 @@ struct diff_mmio {
|
||||
|
||||
/* Compare two diff_mmio items. */
|
||||
static int mmio_offset_compare(void *priv,
|
||||
const struct list_head *a, const struct list_head *b)
|
||||
struct list_head *a, struct list_head *b)
|
||||
{
|
||||
struct diff_mmio *ma;
|
||||
struct diff_mmio *mb;
|
||||
|
||||
@@ -1075,8 +1075,7 @@ static int igt_ppgtt_shrink_boom(void *arg)
|
||||
return exercise_ppgtt(arg, shrink_boom);
|
||||
}
|
||||
|
||||
static int sort_holes(void *priv, const struct list_head *A,
|
||||
const struct list_head *B)
|
||||
static int sort_holes(void *priv, struct list_head *A, struct list_head *B)
|
||||
{
|
||||
struct drm_mm_node *a = list_entry(A, typeof(*a), hole_stack);
|
||||
struct drm_mm_node *b = list_entry(B, typeof(*b), hole_stack);
|
||||
|
||||
@@ -394,8 +394,8 @@ int radeon_cs_parser_init(struct radeon_cs_parser *p, void *data)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cmp_size_smaller_first(void *priv, const struct list_head *a,
|
||||
const struct list_head *b)
|
||||
static int cmp_size_smaller_first(void *priv, struct list_head *a,
|
||||
struct list_head *b)
|
||||
{
|
||||
struct radeon_bo_list *la = list_entry(a, struct radeon_bo_list, tv.head);
|
||||
struct radeon_bo_list *lb = list_entry(b, struct radeon_bo_list, tv.head);
|
||||
|
||||
@@ -83,8 +83,7 @@ usnic_uiom_interval_node_alloc(long int start, long int last, int ref_cnt,
|
||||
return interval;
|
||||
}
|
||||
|
||||
static int interval_cmp(void *priv, const struct list_head *a,
|
||||
const struct list_head *b)
|
||||
static int interval_cmp(void *priv, struct list_head *a, struct list_head *b)
|
||||
{
|
||||
struct usnic_uiom_interval_node *node_a, *node_b;
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ struct bcm_voter {
|
||||
u32 tcs_wait;
|
||||
};
|
||||
|
||||
static int cmp_vcd(void *priv, const struct list_head *a, const struct list_head *b)
|
||||
static int cmp_vcd(void *priv, struct list_head *a, struct list_head *b)
|
||||
{
|
||||
const struct qcom_icc_bcm *bcm_a =
|
||||
list_entry(a, struct qcom_icc_bcm, list);
|
||||
|
||||
@@ -953,8 +953,7 @@ static void dispatch_bio_list(struct bio_list *tmp)
|
||||
submit_bio_noacct(bio);
|
||||
}
|
||||
|
||||
static int cmp_stripe(void *priv, const struct list_head *a,
|
||||
const struct list_head *b)
|
||||
static int cmp_stripe(void *priv, struct list_head *a, struct list_head *b)
|
||||
{
|
||||
const struct r5pending_data *da = list_entry(a,
|
||||
struct r5pending_data, sibling);
|
||||
|
||||
@@ -144,8 +144,8 @@ static void sram_free_partitions(struct sram_dev *sram)
|
||||
}
|
||||
}
|
||||
|
||||
static int sram_reserve_cmp(void *priv, const struct list_head *a,
|
||||
const struct list_head *b)
|
||||
static int sram_reserve_cmp(void *priv, struct list_head *a,
|
||||
struct list_head *b)
|
||||
{
|
||||
struct sram_reserve *ra = list_entry(a, struct sram_reserve, list);
|
||||
struct sram_reserve *rb = list_entry(b, struct sram_reserve, list);
|
||||
|
||||
@@ -345,8 +345,7 @@ static int cdns_pcie_host_bar_config(struct cdns_pcie_rc *rc,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cdns_pcie_host_dma_ranges_cmp(void *priv, const struct list_head *a,
|
||||
const struct list_head *b)
|
||||
static int cdns_pcie_host_dma_ranges_cmp(void *priv, struct list_head *a, struct list_head *b)
|
||||
{
|
||||
struct resource_entry *entry1, *entry2;
|
||||
|
||||
|
||||
@@ -454,8 +454,7 @@ struct rx_ranges {
|
||||
u8 *end;
|
||||
};
|
||||
|
||||
static int rx_ranges_cmp(void *priv, const struct list_head *a,
|
||||
const struct list_head *b)
|
||||
static int rx_ranges_cmp(void *priv, struct list_head *a, struct list_head *b)
|
||||
{
|
||||
struct rx_ranges *rx_a = list_entry(a, struct rx_ranges, list);
|
||||
struct rx_ranges *rx_b = list_entry(b, struct rx_ranges, list);
|
||||
|
||||
@@ -1646,8 +1646,7 @@ struct btrfs_plug_cb {
|
||||
/*
|
||||
* rbios on the plug list are sorted for easier merging.
|
||||
*/
|
||||
static int plug_cmp(void *priv, const struct list_head *a,
|
||||
const struct list_head *b)
|
||||
static int plug_cmp(void *priv, struct list_head *a, struct list_head *b)
|
||||
{
|
||||
struct btrfs_raid_bio *ra = container_of(a, struct btrfs_raid_bio,
|
||||
plug_list);
|
||||
|
||||
@@ -4070,8 +4070,7 @@ static noinline int copy_items(struct btrfs_trans_handle *trans,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int extent_cmp(void *priv, const struct list_head *a,
|
||||
const struct list_head *b)
|
||||
static int extent_cmp(void *priv, struct list_head *a, struct list_head *b)
|
||||
{
|
||||
struct extent_map *em1, *em2;
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user