Skip to content

Commit 9474c62

Browse files
WerkovPaolo Abeni
authored andcommitted
net/sched: Add module alias for sch_fq_pie
The commit 2c15a5a ("net/sched: Load modules via their alias") starts loading modules via aliases and not canonical names. The new aliases were added in commit 241a94a ("net/sched: Add module aliases for cls_,sch_,act_ modules") via a Coccinele script. sch_fq_pie.c is missing module.h header and thus Coccinele did not patch it. Add the include and module alias manually, so that autoloading works for sch_fq_pie too. (Note: commit message in commit 241a94a ("net/sched: Add module aliases for cls_,sch_,act_ modules") was mangled due to '#' misinterpretation. The predicate haskernel is: | @ haskernel @ | @@ | | #include <linux/module.h> | .) Fixes: 241a94a ("net/sched: Add module aliases for cls_,sch_,act_ modules") Signed-off-by: Michal Koutný <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent c9b3b81 commit 9474c62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/sched/sch_fq_pie.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*/
1111

1212
#include <linux/jhash.h>
13+
#include <linux/module.h>
1314
#include <linux/sizes.h>
1415
#include <linux/vmalloc.h>
1516
#include <net/pkt_cls.h>
@@ -563,6 +564,7 @@ static struct Qdisc_ops fq_pie_qdisc_ops __read_mostly = {
563564
.dump_stats = fq_pie_dump_stats,
564565
.owner = THIS_MODULE,
565566
};
567+
MODULE_ALIAS_NET_SCH("fq_pie");
566568

567569
static int __init fq_pie_module_init(void)
568570
{

0 commit comments

Comments
 (0)