LibBSD | Draft: gcc15: Fix warnings building with gcc15 (!100)

Chris Johns (@chris) gitlab at rtems.org
Wed Sep 17 07:19:44 UTC 2025




Chris Johns commented: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/merge_requests/100#note_131080


There are more warnings with an `arm` build:

```
In file included from ../../rtemsbsd/include/machine/rtems-bsd-kernel-space.h:136,
                 from ../../freebsd/sys/dev/sdhci/sdhci_fdt_gpio.c:1:
../../freebsd/sys/dev/sdhci/sdhci_fdt_gpio.c: In function 'cd_setup':
../../rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h:2272:38: error: implicit declaration of function '_bsd_gpio_pin_get_by_ofw_property'; did you mean 'gpio_pin_get_by_ofw_property'? [-Wimplicit-function-declaration]
 2272 | #define gpio_pin_get_by_ofw_property _bsd_gpio_pin_get_by_ofw_property
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../freebsd/sys/dev/sdhci/sdhci_fdt_gpio.c:105:13: note: in expansion of macro 'gpio_pin_get_by_ofw_property'
  105 |         if (gpio_pin_get_by_ofw_property(dev, node, "cd-gpios", &gpio->cd_pin))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

This one looks to be related to the `FDT` define.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/merge_requests/100#note_131080
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250917/f29c4ac0/attachment.htm>


More information about the bugs mailing list