提交 0f49ff07 编写于 作者: M Mathias Krause 提交者: David S. Miller

net: ptp: mark filter as __initdata

sk_unattached_filter_create() will copy the filter's instructions so we
don't need to have the master copy hanging around after initialization.
Signed-off-by: NMathias Krause <minipli@googlemail.com>
Acked-by: NAlexei Starovoitov <ast@plumgrid.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 98920ba6
...@@ -88,7 +88,7 @@ EXPORT_SYMBOL_GPL(ptp_classify_raw); ...@@ -88,7 +88,7 @@ EXPORT_SYMBOL_GPL(ptp_classify_raw);
void __init ptp_classifier_init(void) void __init ptp_classifier_init(void)
{ {
static struct sock_filter ptp_filter[] = { static struct sock_filter ptp_filter[] __initdata = {
{ 0x28, 0, 0, 0x0000000c }, { 0x28, 0, 0, 0x0000000c },
{ 0x15, 0, 12, 0x00000800 }, { 0x15, 0, 12, 0x00000800 },
{ 0x30, 0, 0, 0x00000017 }, { 0x30, 0, 0, 0x00000017 },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册