mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-16 14:30:06 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Cross-merge networking fixes after downstream PR. Conflicts: drivers/net/ethernet/stmicro/stmmac/dwmac5.c drivers/net/ethernet/stmicro/stmmac/dwmac5.h drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c drivers/net/ethernet/stmicro/stmmac/hwif.h37e4b8df27("net: stmmac: fix FPE events losing")c3f3b97238("net: stmmac: Refactor EST implementation") https://lore.kernel.org/all/20231206110306.01e91114@canb.auug.org.au/ Adjacent changes: net/ipv4/tcp_ao.c9396c4ee93("net/tcp: Don't store TCP-AO maclen on reqsk")7b0f570f87("tcp: Move TCP-AO bits from cookie_v[46]_check() to tcp_ao_syncookie().") Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env python3
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
import fnmatch
|
||||
import os
|
||||
import glob
|
||||
import re
|
||||
import argparse
|
||||
|
||||
@@ -81,10 +81,20 @@ def print_compat(filename, compatibles):
|
||||
else:
|
||||
print(*compatibles, sep='\n')
|
||||
|
||||
def glob_without_symlinks(root, glob):
|
||||
for path, dirs, files in os.walk(root):
|
||||
# Ignore hidden directories
|
||||
for d in dirs:
|
||||
if fnmatch.fnmatch(d, ".*"):
|
||||
dirs.remove(d)
|
||||
for f in files:
|
||||
if fnmatch.fnmatch(f, glob):
|
||||
yield os.path.join(path, f)
|
||||
|
||||
def files_to_parse(path_args):
|
||||
for f in path_args:
|
||||
if os.path.isdir(f):
|
||||
for filename in glob.iglob(f + "/**/*.c", recursive=True):
|
||||
for filename in glob_without_symlinks(f, "*.c"):
|
||||
yield filename
|
||||
else:
|
||||
yield f
|
||||
|
||||
@@ -339,8 +339,7 @@ static int relayout_struct(tree type)
|
||||
|
||||
/*
|
||||
* enforce that we don't randomize the layout of the last
|
||||
* element of a struct if it's a 0 or 1-length array
|
||||
* or a proper flexible array
|
||||
* element of a struct if it's a proper flexible array
|
||||
*/
|
||||
if (is_flexible_array(newtree[num_fields - 1])) {
|
||||
has_flexarray = true;
|
||||
|
||||
Reference in New Issue
Block a user