Skip to content

Compilation failure on ARM in led.c #3

@gavoco

Description

@gavoco

Getting the following error in compilation on ARM (rpi 5)

CC [M] /home/foo/morse_driver/led.o /home/foo/morse_driver/led.c:46:5: error: no previous prototype for ‘morse_led_register’ [-Werror=missing-prototypes] 46 | int morse_led_register(struct morse *mors, struct morse_led *led, int pin_num, | ^~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[3]: *** [/usr/src/linux-headers-6.12.25+rpt-common-rpi/scripts/Makefile.build:249: /home/vocovo/morse_driver/led.o] Error 1 make[2]: *** [/usr/src/linux-headers-6.12.25+rpt-common-rpi/Makefile:1974: /home/foo/morse_driver] Error 2 make[1]: *** [/usr/src/linux-headers-6.12.25+rpt-common-rpi/Makefile:236: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.12.25+rpt-rpi-2712' make: *** [Makefile:179: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions