Files
nixpkgs/pkgs/os-specific/linux/dmraid
ghpzin 3c8da751e6 dmraid: fix build with gcc15
- add rebased patch from alpine:
https://gitlab.alpinelinux.org/alpine/aports/-/raw/dc5b3135517ede55f5e3530e538ca75048d26565/main/dmraid/008-gcc15.patch
(does not apply with `fetchpatch` even with `stripLen` and `extraPrefix`)

Fixes build failure with gcc15:
```
activate/activate.c:893:34: error: passing argument 3 of 'do_device'
from incompatible pointer type [-Wincompatible-pointer-types]
  893 |         return do_device(lc, rs, dm_register_for_event);
      |                                  ^~~~~~~~~~~~~~~~~~~~~
      |                                  |
      |                                  int (*)(char *, char *)
activate/activate.c:869:62: note: expected 'int (*)(void)' but argument
is of type 'int (*)(char *, char *)'
  869 | do_device(struct lib_context *lc, struct raid_set *rs, int (*f) ())
      |                                                        ~~~~~~^~~~~
activate/activate.c:850:1: note: 'dm_register_for_event' declared here
  850 | dm_register_for_event(char *dev_name, char *lib_name)
      | ^~~~~~~~~~~~~~~~~~~~~
misc/file.c:66:17: error: initialization of 'ssize_t (*)(void)'
{aka 'long int (*)(void)'} from incompatible pointer type
'ssize_t (*)(int,  void *, size_t)' {aka 'long int (*)(int,  void *, long unsigned int)'} [-Wincompatible-pointer-types]
   66 |                 read, "read"}, {
      |                 ^~~~
misc/file.c:67:9: error: initialization of 'ssize_t (*)(void)' {aka 'long int (*)(void)'}
from incompatible pointer type 'ssize_t (*)(int,  const void *, size_t)'
{aka 'long int (*)(int,  const void *, long unsigned int)'} [-Wincompatible-pointer-types]
   67 |         write, "writ"},}, *rw = rw_spec + ((flags & O_WRONLY) ? 1 : 0);
      |         ^~~~~
misc/file.c:67:9: note: (near initialization for 'rw_spec[1].func')
```
2025-09-28 13:31:09 +03:00
..
2025-09-28 13:31:09 +03:00