[v3,5/6] net/macb: fix tab errors in meson.build file
Checks
Commit Message
Replace tabs with spaces to resolve indentation
issues in meson.build file.
Fixes: 97fd6a929cf8 ("net/macb: add new driver")
Cc: liwencheng@phytium.com.cn
Signed-off-by: Wencheng Li <liwencheng@phytium.com.cn>
---
drivers/net/macb/base/meson.build | 25 ++++++++++++-------------
drivers/net/macb/meson.build | 6 +++---
2 files changed, 15 insertions(+), 16 deletions(-)
Comments
On Tue, 10 Dec 2024 07:08:35 +0000
Wencheng Li <liwencheng@phytium.com.cn> wrote:
> Replace tabs with spaces to resolve indentation
> issues in meson.build file.
>
> Fixes: 97fd6a929cf8 ("net/macb: add new driver")
> Cc: liwencheng@phytium.com.cn
>
> Signed-off-by: Wencheng Li <liwencheng@phytium.com.cn>
Since this is a new driver, please fix this in the earlier patch that
adds it rather than including a fixup patch. You can do this with
git rebase and squashing the patches.
Each patch in a new driver should be clean of basic stuff like
whitespace, bad flags, etc. And after each patch the build should
be clean.
On Tue, 10 Dec 2024 07:08:35 +0000
Wencheng Li <liwencheng@phytium.com.cn> wrote:
> Replace tabs with spaces to resolve indentation
> issues in meson.build file.
>
> Fixes: 97fd6a929cf8 ("net/macb: add new driver")
> Cc: liwencheng@phytium.com.cn
>
> Signed-off-by: Wencheng Li <liwencheng@phytium.com.cn>
> ---
Fix the formatting in the original patch since it is not
merged upstream yet.
@@ -2,25 +2,24 @@
# Copyright(c) 2022 Phytium Technology Co., Ltd.
sources = [
- 'macb_common.c',
- 'macb_uio.c',
- 'generic_phy.c',
+ 'macb_common.c',
+ 'macb_uio.c',
+ 'generic_phy.c',
]
error_cflags = ['-Wno-unused-value',
- '-Wno-unused-but-set-variable',
- '-Wno-unused-variable',
- '-Wno-unused-parameter',
-]
+ '-Wno-unused-but-set-variable',
+ '-Wno-unused-variable',
+ '-Wno-unused-parameter',
+ ]
c_args = cflags
-
foreach flag: error_cflags
- if cc.has_argument(flag)
- c_args += flag
- endif
+ if cc.has_argument(flag)
+ c_args += flag
+ endif
endforeach
base_lib = static_library('macb_base', sources,
- dependencies: static_rte_eal,
- c_args: c_args)
+ dependencies: static_rte_eal,
+ c_args: c_args)
base_objs = base_lib.extract_all_objects()
@@ -11,9 +11,9 @@ subdir('base')
objs = [base_objs]
sources = files(
- 'macb_ethdev.c',
- 'macb_rxtx.c',
- )
+ 'macb_ethdev.c',
+ 'macb_rxtx.c',
+)
if host_machine.cpu_family() == 'aarch64'
sources += files('macb_rxtx_vec_neon.c')