Linux Drive Error: Error: function declaration isn’t a prototype

1. The problem is as follows:

2. The solutions are as follows:

When linux driver writes a function, when there is no formal parameter, void type data should be passed in.

static int led_init(void)
{
    int ret = 0;

    return ret; 
}

Read More: