Skip to content

EMC driver #8

Open
Open

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.

Activity

  1. neuschaefer commented on Mar 6, 2024

    @neuschaefer
    Owner

    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));

    Ah, I'll try to update it when I get around to it. I'll hopefully find some time for WPCM kernel work this weekend.

    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.

    Unfortunately I never really got NCSI to work, and I wonder if it even works on mainline for any other platforms

  2. neuschaefer commented on Mar 11, 2024

    @neuschaefer
    Owner

    Hi @StidOfficial, I've updated the wpcm-eth branch to build again on top of v6.8-rc7. I haven't use-tested it yet, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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