generic: import patch fixing workqueue compilation with gcc-13
authorNick Hainke <vincent@systemli.org>
Mon, 29 May 2023 19:37:37 +0000 (21:37 +0200)
committerNick Hainke <vincent@systemli.org>
Tue, 30 May 2023 13:01:13 +0000 (15:01 +0200)
commitd8e0163e74c8cd1f333dee60750f60ce1260628f
treee68691a23d0092c73a22308c947f2d396b469132
parent1c074ac9172e0f472d2049c5272ff84218384c75
generic: import patch fixing workqueue compilation with gcc-13

Already applied in wq/for-6.5 [0].

Fixes errors in the form of:
  kernel/workqueue.c: In function 'get_work_pwq':
  kernel/workqueue.c:705:24: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
    705 |                 return (void *)(data & WORK_STRUCT_WQ_DATA_MASK);
        |                        ^
  kernel/workqueue.c: In function 'get_work_pool':
  kernel/workqueue.c:733:25: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
    733 |                 return ((struct pool_workqueue *)
        |                         ^
  kernel/workqueue.c: In function 'get_work_pool_id':
  kernel/workqueue.c:755:25: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
    755 |                 return ((struct pool_workqueue *)
        |                         ^
  cc1: all warnings being treated as errors

[0] - https://lore.kernel.org/all/ZGmEmkcrfh7QdkIz@slm.duckdns.org/

Fixes: #12687 ("mt7621: kernel 5.15 compile failure with GCC 13")
Signed-off-by: Nick Hainke <vincent@systemli.org>
target/linux/generic/pending-5.15/160-workqueue-fix-enum-type-for-gcc-13.patch [new file with mode: 0644]
target/linux/generic/pending-6.1/160-workqueue-fix-enum-type-for-gcc-13.patch [new file with mode: 0644]