All of lore.kernel.org
 help / color / mirror / Atom feed
* [jpirko-mlxsw:petrm_wip 32/35] net/sched/sch_api.c:2261:25: sparse: sparse: symbol 'rtm_tca_qevent_policy' was not declared. Should it be static?
@ 2020-05-10 22:41 kbuild test robot
  2020-05-10 22:41 ` [RFC PATCH jpirko-mlxsw] rtm_tca_qevent_policy[] can be static kbuild test robot
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2020-05-10 22:41 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1015 bytes --]

tree:   https://github.com/jpirko/linux_mlxsw petrm_wip
head:   db0a26918a58afafeae818f805209958ae3fd543
commit: 1ae7b8315f99699717ac512be7e6c4300539f44f [32/35] qevent wip
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-191-gc51a0382-dirty
        git checkout 1ae7b8315f99699717ac512be7e6c4300539f44f
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)

>> net/sched/sch_api.c:2261:25: sparse: sparse: symbol 'rtm_tca_qevent_policy' was not declared. Should it be static?
>> net/sched/sch_api.c:2270:25: sparse: sparse: symbol 'sch_qevent_opts_policy' was not declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [RFC PATCH jpirko-mlxsw] rtm_tca_qevent_policy[] can be static
  2020-05-10 22:41 [jpirko-mlxsw:petrm_wip 32/35] net/sched/sch_api.c:2261:25: sparse: sparse: symbol 'rtm_tca_qevent_policy' was not declared. Should it be static? kbuild test robot
@ 2020-05-10 22:41 ` kbuild test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2020-05-10 22:41 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1178 bytes --]


Fixes: 1ae7b8315f99 ("qevent wip")
Signed-off-by: kbuild test robot <lkp@intel.com>
---
 sch_api.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index ecf348a429a6d..861aaccadecb5 100644
--- a/net/sched/sch_api.c
+++ b/net/sched/sch_api.c
@@ -2258,7 +2258,7 @@ static struct sch_qevent_ops *sch_qevent_lookup_ops(struct nlattr *kind)
 
 	return NULL;
 }
-const struct nla_policy rtm_tca_qevent_policy[TCA_MAX + 1] = {
+static const struct nla_policy rtm_tca_qevent_policy[TCA_MAX + 1] = {
 	[TCA_KIND]		= { .type = NLA_STRING },
 	[TCA_DUMP_INVISIBLE]	= { .type = NLA_FLAG },
 	[TCA_OPTIONS]		= { .type = NLA_NESTED },
@@ -2267,7 +2267,7 @@ const struct nla_policy rtm_tca_qevent_policy[TCA_MAX + 1] = {
 static const u32 sch_qevent_flags = TCA_CLS_FLAGS_SKIP_HW |
 				    TCA_CLS_FLAGS_SKIP_SW;
 
-const struct nla_policy sch_qevent_opts_policy[TCA_MAX + 1] = {
+static const struct nla_policy sch_qevent_opts_policy[TCA_MAX + 1] = {
 	[TCA_QEVENT_FLAGS]	= { .type = NLA_BITFIELD32,
 				    .validation_data = &sch_qevent_flags },
 	[TCA_QEVENT_ACT]	= { .type = NLA_NESTED },

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-10 22:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-10 22:41 [jpirko-mlxsw:petrm_wip 32/35] net/sched/sch_api.c:2261:25: sparse: sparse: symbol 'rtm_tca_qevent_policy' was not declared. Should it be static? kbuild test robot
2020-05-10 22:41 ` [RFC PATCH jpirko-mlxsw] rtm_tca_qevent_policy[] can be static kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.