Skip to content

EMC driver #8

@StidOfficial

Description

@StidOfficial

Hi,

I cannot compile correctly the divers on the latest kernel, i got this error :
drivers/net/ethernet/nuvoton/nuvoton-emc.c:769:9: error: implicit declaration of function 'strlcpy'; did you mean 'strscpy'? [-Werror=implicit-function-declaration]

strlcpy seem to be deprecated https://www.kernel.org/doc/html/v6.8-rc4/process/deprecated.html#strlcpy and need to be replace by strscpy.

strlcpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver));
strlcpy(info->version, DRV_MODULE_VERSION, sizeof(info->version));

EDIT: I also got an issue when udhcpc set ip's :

[   37.040000] nuvoton-emc b0003000.ethernet eth1: NCSI: No channel found to configure!                                                                                    
[   38.080000] nuvoton-emc b0003000.ethernet eth1: Wrong NCSI state 0x100 in workqueue

No IPv4 is set, only IPv6 work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions