Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- net/core/net-sysfs.c: In function 'netdev_queue_attr_show':
- net/core/net-sysfs.c:815: error: 'struct netdev_queue' has no member named 'kobj'
- net/core/net-sysfs.c:815: warning: type defaults to 'int' in declaration of '__mptr'
- net/core/net-sysfs.c:815: warning: initialization from incompatible pointer type
- net/core/net-sysfs.c:815: error: 'struct netdev_queue' has no member named 'kobj'
- net/core/net-sysfs.c: In function 'netdev_queue_attr_store':
- net/core/net-sysfs.c:828: error: 'struct netdev_queue' has no member named 'kobj'
- net/core/net-sysfs.c:828: warning: type defaults to 'int' in declaration of '__mptr'
- net/core/net-sysfs.c:828: warning: initialization from incompatible pointer type
- net/core/net-sysfs.c:828: error: 'struct netdev_queue' has no member named 'kobj'
- net/core/net-sysfs.c: In function 'netdev_queue_release':
- net/core/net-sysfs.c:1058: error: 'struct netdev_queue' has no member named 'kobj'
- net/core/net-sysfs.c:1058: warning: type defaults to 'int' in declaration of '__mptr'
- net/core/net-sysfs.c:1058: warning: initialization from incompatible pointer type
- net/core/net-sysfs.c:1058: error: 'struct netdev_queue' has no member named 'kobj'
- net/core/net-sysfs.c: In function 'netdev_queue_add_kobject':
- net/core/net-sysfs.c:1116: error: 'struct netdev_queue' has no member named 'kobj'
- net/core/net-sysfs.c:1119: error: 'struct net_device' has no member named 'queues_kset'
- net/core/net-sysfs.c: In function 'netdev_queue_update_kobjects':
- net/core/net-sysfs.c:1150: error: 'struct netdev_queue' has no member named 'kobj'
- net/core/net-sysfs.c: In function 'register_queue_kobjects':
- net/core/net-sysfs.c:1163: error: 'struct net_device' has no member named 'queues_kset'
- net/core/net-sysfs.c:1165: error: 'struct net_device' has no member named 'queues_kset'
- net/core/net-sysfs.c: In function 'remove_queue_kobjects':
- net/core/net-sysfs.c:1204: error: 'struct net_device' has no member named 'queues_kset'
- make[2]: *** [net/core/net-sysfs.o] Error 1
- make[1]: *** [net/core] Error 2
- make: *** [net] Error 2
- Please enable this option when you configure your kernel, using 'make menuconfig'.
- Networking support --> Networking options --> RPS
- Because 'struct netdev_queue' has the member 'kobj' only when CONFIG_RPS is defined.
- So does 'queues_kset' in 'struct net_device'.
- You can find the definition in 'include/linux/netdevice.h'.
- struct net_device {
- ...
- #ifdef CONFIG_RPS
- struct kset *queues_kset;
- struct netdev_rx_queue *_rx;
- /* Number of RX queues allocated at register_netdev() time */
- unsigned int num_rx_queues;
- /* Number of RX queues currently active in device */
- unsigned int real_num_rx_queues;
- #ifdef CONFIG_RFS_ACCEL
- /* CPU reverse-mapping for RX completion interrupts, indexed by RX queue number. Assigned by driver.
- * This must only be set if the ndo_rx_flow_steer operation is defined. */
- struct cpu_rmap *rx_cpu_rmap;
- #endif
- #endif
- ...
- };
- ...
- struct netdev_queue {
- ...
- #ifdef CONFIG_RPS
- struct kobject kobj;
- #endif
- ...
- } ____cacheline_aligned_in_smp;
- Have a good day!
Add Comment
Please, Sign In to add comment