linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build warning after merge of the cgroup tree
@ 2017-12-13  3:56 Stephen Rothwell
  2017-12-15  9:58 ` Arnd Bergmann
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Rothwell @ 2017-12-13  3:56 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Linux-Next Mailing List, Linux Kernel Mailing List, Ma Shimiao

Hi Tejun,

After merging the cgroup tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:

kernel/cgroup/cgroup.c: In function 'init_cgroup_root':
kernel/cgroup/cgroup.c:1867:3: warning: ignoring return value of 'strscpy', declared with attribute warn_unused_result [-Wunused-result]
   strscpy(root->release_agent_path, opts->release_agent, PATH_MAX);
   ^
kernel/cgroup/cgroup.c:1869:3: warning: ignoring return value of 'strscpy', declared with attribute warn_unused_result [-Wunused-result]
   strscpy(root->name, opts->name, MAX_CGROUP_ROOT_NAMELEN);
   ^
kernel/cgroup/cgroup.c: In function 'cgroup_file_name':
kernel/cgroup/cgroup.c:1400:3: warning: ignoring return value of 'strscpy', declared with attribute warn_unused_result [-Wunused-result]
   strscpy(buf, cft->name, CGROUP_FILE_NAME_MAX);
   ^

Introduced by commit

  e7fd37ba1217 ("cgroup: avoid copying strings longer than the buffers")

-- 
Cheers,
Stephen Rothwell

^ permalink raw reply	[flat|nested] 9+ messages in thread
* linux-next: build warning after merge of the cgroup tree
@ 2023-07-11  1:15 Stephen Rothwell
  2023-07-11  1:22 ` Tejun Heo
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Rothwell @ 2023-07-11  1:15 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Miaohe Lin, Linux Kernel Mailing List, Linux Next Mailing List

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

Hi all,

After merging the cgroup tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:

kernel/cgroup/cgroup.c:503:36: warning: 'cgroup_tryget_css' defined but not used [-Wunused-function]
  503 | static struct cgroup_subsys_state *cgroup_tryget_css(struct cgroup *cgrp,
      |                                    ^~~~~~~~~~~~~~~~~

Introduced by commit

  1299eb2b0ad5 ("cgroup: minor cleanup for cgroup_extra_stat_show()")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
* linux-next: build warning after merge of the cgroup tree
@ 2017-05-01  4:53 Stephen Rothwell
  0 siblings, 0 replies; 9+ messages in thread
From: Stephen Rothwell @ 2017-05-01  4:53 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Linux-Next Mailing List, Linux Kernel Mailing List

Hi Tejun,

After merging the cgroup tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:

kernel/cgroup/cgroup.c:439:13: warning: 'cgroup_get' defined but not used [-Wunused-function]
 static void cgroup_get(struct cgroup *cgrp)
             ^

Introduced by commit

  a590b90d472f ("cgroup: fix spurious warnings on cgroup_is_dead() from cgroup_sk_alloc()")

CONFIG_SOCK_CGROUP_DATA is not set for this build.

-- 
Cheers,
Stephen Rothwell

^ permalink raw reply	[flat|nested] 9+ messages in thread
* linux-next: build warning after merge of the cgroup tree
@ 2013-08-27 10:17 Stephen Rothwell
  2013-08-27 18:33 ` Tejun Heo
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Rothwell @ 2013-08-27 10:17 UTC (permalink / raw)
  To: Tejun Heo; +Cc: linux-next, linux-kernel

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

Hi Tejun,

After merging the cgroup tree, today's linux-next build (i386 defconfig)
produced this warning:

kernel/cgroup.c: In function 'css_from_id':
kernel/cgroup.c:5723:3: warning: passing argument 2 of 'cgroup_css' makes pointer from integer without a cast [enabled by default]
kernel/cgroup.c:237:36: note: expected 'struct cgroup_subsys *' but argument is of type 'int'

Introduced by commit ca8bdcaff0d7 ("cgroup: make cgroup_css() take
cgroup_subsys * instead and allow NULL subsys").

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2023-07-11  2:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-13  3:56 linux-next: build warning after merge of the cgroup tree Stephen Rothwell
2017-12-15  9:58 ` Arnd Bergmann
2017-12-15 13:10   ` Tejun Heo
  -- strict thread matches above, loose matches on Subject: below --
2023-07-11  1:15 Stephen Rothwell
2023-07-11  1:22 ` Tejun Heo
2023-07-11  2:06   ` Miaohe Lin
2017-05-01  4:53 Stephen Rothwell
2013-08-27 10:17 Stephen Rothwell
2013-08-27 18:33 ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).