Centos-kernel-stream-9/tools/net/ynl/samples
Petr Oros e3624f1548 tools: ynl: error check scanf() in a sample
JIRA: https://issues.redhat.com/browse/RHEL-57756

Upstream commit(s):
commit 3d8806f37d318b10ddf9fa686821f58bc6301c7b
Author: Jakub Kicinski <kuba@kernel.org>
Date:   Wed Aug 28 10:36:09 2024 -0700

    tools: ynl: error check scanf() in a sample

    Someone reported on GitHub that the YNL NIPA test is failing
    when run locally. The test builds the tools, and it hits:

      netdev.c:82:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
      82 | scanf("%d", &ifindex);

    I can't repro this on my setups but error seems clear enough.

    Link: https://github.com/linux-netdev/nipa/discussions/37
    Reviewed-by: Simon Horman <horms@kernel.org>
    Reviewed-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
    Link: https://patch.msgid.link/20240828173609.2951335-1-kuba@kernel.org
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Signed-off-by: Petr Oros <poros@redhat.com>
2024-12-10 10:37:56 +01:00
..
.gitignore tools: ynl: generate code for ovs families 2024-11-20 10:13:41 +01:00
Makefile tools: ynl: add distclean to .PHONY in all makefiles 2024-11-20 10:13:44 +01:00
devlink.c tools: ynl: add sample for devlink 2024-04-10 09:19:24 +02:00
ethtool.c tools: ynl: add sample for ethtool 2024-04-10 09:19:26 +02:00
netdev.c tools: ynl: error check scanf() in a sample 2024-12-10 10:37:56 +01:00
ovs.c tools: ynl: generate code for ovs families 2024-11-20 10:13:41 +01:00
page-pool.c ynl: samples: fix recycling rate calculation 2024-11-20 10:13:45 +01:00