Skip to content

Incompatible function pointer types initializing #7

@pavlinux

Description

@pavlinux

Linux 6.14.0-rc7+
clang version 21.0.0git (https://github.com/llvm/llvm-project.git c482b8faeace855332a8c070cffaf3d0732cc79e)

igb_main.c:2499:18: error: incompatible function pointer types initializing 
'int (*)(struct ndmsg *, struct nlattr **, struct net_device *, const unsigned char *, u16, u16, bool *, struct netlink_ext_ack *)' 

(aka 'int (*)(struct ndmsg *, struct nlattr **, struct net_device *, const unsigned char *, unsigned short, unsigned short, _Bool *, struct netlink_ext_ack *)') 

with an expression of type 

'int (struct ndmsg *, struct nlattr **, struct net_device *, const unsigned char *, u16, u16, struct netlink_ext_ack *)' 

(aka 'int (struct ndmsg *, struct nlattr **, struct net_device *, const unsigned char *, unsigned short, unsigned short, struct netlink_ext_ack *)') [-Wincompatible-function-pointer-types]

 2499 |         .ndo_fdb_add            = igb_ndo_fdb_add,      
      |                                   ^~~~~~~~~~~~~~~

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