From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752190AbdLMD4b (ORCPT ); Tue, 12 Dec 2017 22:56:31 -0500 Received: from ozlabs.org ([103.22.144.67]:34187 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751577AbdLMD43 (ORCPT ); Tue, 12 Dec 2017 22:56:29 -0500 Date: Wed, 13 Dec 2017 14:56:27 +1100 From: Stephen Rothwell To: Tejun Heo Cc: Linux-Next Mailing List , Linux Kernel Mailing List , Ma Shimiao Subject: linux-next: build warning after merge of the cgroup tree Message-ID: <20171213145627.656e3909@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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