From patchwork Thu Mar 31 16:54:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 12797473 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C022C433FE for ; Thu, 31 Mar 2022 16:55:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2C9936B0072; Thu, 31 Mar 2022 12:55:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 22A946B0073; Thu, 31 Mar 2022 12:55:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0A5606B0074; Thu, 31 Mar 2022 12:55:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.25]) by kanga.kvack.org (Postfix) with ESMTP id E81B36B0072 for ; Thu, 31 Mar 2022 12:55:01 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id BCEE624A6C for ; Thu, 31 Mar 2022 16:55:01 +0000 (UTC) X-FDA: 79305281202.12.BA63D9A Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by imf10.hostedemail.com (Postfix) with ESMTP id B7E26C001F for ; Thu, 31 Mar 2022 16:55:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648745700; x=1680281700; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=IP3Qpce+WyUMM7QQju7XQB09RXxl0bxyb7Ub1Mu6XFw=; b=lhjpts28fipMftOvfYSO/Ml/CzFbyxLrN0ZM4fJdFXs4TxjPbR5K4dGg zO6jMTBfzg5khur5FqS8g0dr9pWVQ+nDDbkyQmTvSDMOH3OW1KgZeAyO+ g8I7gy/VVCrb8U4wNJJXzRAeOhwjnxnrdpXc5p+rt/RHfvgNhsduEgoq4 QH3yH+L/0b0/hYDM28Glcr4JQApdFv3UYxUHs425c7Ho1fqx7boI0Q7Ao 7QHl7TYPkTjwaVX9eoZBWEIEbXnFDC+hjG+kLyi2A17XsA5VkmWDpt2nM B4hWHzahS7KmPn72MXugupoy1gozvItBrgvuV4PzeDusOuN2aHUd24dsz g==; X-IronPort-AV: E=McAfee;i="6200,9189,10302"; a="260077875" X-IronPort-AV: E=Sophos;i="5.90,225,1643702400"; d="scan'208";a="260077875" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2022 09:54:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,225,1643702400"; d="scan'208";a="522420778" Received: from lkp-server02.sh.intel.com (HELO 3231c491b0e2) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 31 Mar 2022 09:54:57 -0700 Received: from kbuild by 3231c491b0e2 with local (Exim 4.95) (envelope-from ) id 1nZy4W-0000SS-Hu; Thu, 31 Mar 2022 16:54:56 +0000 Date: Fri, 1 Apr 2022 00:54:41 +0800 From: kernel test robot To: Axel Rasmussen Cc: kbuild-all@lists.01.org, Linux Memory Management List , Andrew Morton , linux-kernel@vger.kernel.org Subject: [RFC PATCH linux-next] mm/secretmem: secretmem_iops can be static Message-ID: References: <202204010033.oeIla4qb-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <202204010033.oeIla4qb-lkp@intel.com> X-Stat-Signature: nxy5daj413uqnemqfyw3x1ptypy9o1qw X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: B7E26C001F Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=lhjpts28; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf10.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.115) smtp.mailfrom=lkp@intel.com X-Rspam-User: X-HE-Tag: 1648745700-455047 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: mm/secretmem.c:173:31: warning: symbol 'secretmem_iops' was not declared. Should it be static? Fixes: 24209f2f4d62 ("mm/secretmem: fix panic when growing a memfd_secret") Reported-by: kernel test robot Signed-off-by: kernel test robot --- mm/secretmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/secretmem.c b/mm/secretmem.c index a83e98aa3a7b3..ddf45c0435be7 100644 --- a/mm/secretmem.c +++ b/mm/secretmem.c @@ -170,7 +170,7 @@ static int secretmem_setattr(struct user_namespace *mnt_userns, return simple_setattr(mnt_userns, dentry, iattr); } -const struct inode_operations secretmem_iops = { +static const struct inode_operations secretmem_iops = { .setattr = secretmem_setattr, };