From mboxrd@z Thu Jan 1 00:00:00 1970 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 8C29CC433EF for ; Thu, 14 Jul 2022 12:24:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C90DA9401A6; Thu, 14 Jul 2022 08:24:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C40889401A5; Thu, 14 Jul 2022 08:24:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B09759401A6; Thu, 14 Jul 2022 08:24:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id A17E79401A5 for ; Thu, 14 Jul 2022 08:24:19 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id 7458B812C4 for ; Thu, 14 Jul 2022 12:24:19 +0000 (UTC) X-FDA: 79685623038.16.5B491A5 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by imf08.hostedemail.com (Postfix) with ESMTP id 86CC316006D for ; Thu, 14 Jul 2022 12:24:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657801458; x=1689337458; h=date:from:to:cc:subject:message-id:mime-version; bh=b5n3uqqFX9OVlCqhzlsnHIeY4hIIEtG22HTQgIB1QSY=; b=MAjkrM8iVTxs0+YpbZrQotJ9BfVH6adlmCmj+JoxEi9NglWlhzgtMJxO 3pwaB56lwXjYOfFtbyIyJd4VRJTCSvAvhcUQ2h1bpcj3m/3TDfSDIEqmt 0w2AVbENgfmX6vFyCatV3cxN9IHIDeA0BgZn0SqlN8gXYmiAgnPa6idQ+ kvY+zBITcddIeJnRjlIrgFC/x1KIM6hixO0RM4DPUgFR7xNsqVn8Jv5Mw ZKg3S3tXqdp3DF4/PXHqIpl3ageLZn926eM8/Z71HcL3Cp8hFmVnoPKVi Gy+z/zpj0MypbGZze3yQwcL3WARFy7t+ZexMAO35e7wYMHQxW18WhUJh2 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10407"; a="284254256" X-IronPort-AV: E=Sophos;i="5.92,271,1650956400"; d="scan'208";a="284254256" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2022 05:24:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,271,1650956400"; d="scan'208";a="923051658" Received: from lkp-server01.sh.intel.com (HELO fd2c14d642b4) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 14 Jul 2022 05:24:15 -0700 Received: from kbuild by fd2c14d642b4 with local (Exim 4.95) (envelope-from ) id 1oBxt8-0000bD-RK; Thu, 14 Jul 2022 12:24:14 +0000 Date: Thu, 14 Jul 2022 20:23:55 +0800 From: kernel test robot To: John Johansen Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List Subject: [linux-next:master 10519/10678] security/apparmor/policy_ns.c:83:20: warning: no previous prototype for function 'alloc_unconfined' Message-ID: <202207142026.qqAoch7S-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1657801459; a=rsa-sha256; cv=none; b=XLiw2z67mc63JGPxTuq4AA1dtQZiHWTkEYdAbQu6kNuDyAC6cV9QTkIS+NENc5vZhM1v4/ wjHgVVc15wvZYpUZe/wqq4o1vYKZMpjoxjF3Us1dhCNGy9AX9Y7OJrg57+jU8NH/2iFaBo f559QaT+W6/Zr+cv53Fl1wgtBC+y+xY= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=MAjkrM8i; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf08.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.120) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1657801459; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=I4DhUqj3POKBno4cMIZouSuXHX1/09fU1EpQbqKleDE=; b=MjJU4LRnaLcVwM1G607MLaiy8Yv5odH0QezlXzbifR3LUITAmHTKcUHPcFRSpdhOSjAfLi JccoqaOuMO5e6y8giEHeh2M1XFa8paXKrXlmGmqQAnZ9frAwGzhaeHNgbBmtkO8SqFO9sH 1LBddQGqtgCpWTb+OEfj8UzJWQ4+3Eg= Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=MAjkrM8i; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf08.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.120) smtp.mailfrom=lkp@intel.com X-Rspam-User: X-Stat-Signature: 99m83ewgsxwugj6kh4akk7ij56wc1prd X-Rspamd-Queue-Id: 86CC316006D X-Rspamd-Server: rspam08 X-HE-Tag: 1657801458-870535 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 37b355fdaf31ee18bda9a93c2a438dc1cbf57ec9 commit: 95c0581f9bfdfbe97126ba1c7f5650a9dd064dda [10519/10678] apparmor: add a kernel label to use on kernel objects config: x86_64-randconfig-a016 (https://download.01.org/0day-ci/archive/20220714/202207142026.qqAoch7S-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 5e61b9c556267086ef9b743a0b57df302eef831b) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=95c0581f9bfdfbe97126ba1c7f5650a9dd064dda git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 95c0581f9bfdfbe97126ba1c7f5650a9dd064dda # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash security/apparmor/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> security/apparmor/policy_ns.c:83:20: warning: no previous prototype for function 'alloc_unconfined' [-Wmissing-prototypes] struct aa_profile *alloc_unconfined(const char *name) ^ security/apparmor/policy_ns.c:83:1: note: declare 'static' if the function is not intended to be used outside of this translation unit struct aa_profile *alloc_unconfined(const char *name) ^ static 1 warning generated. vim +/alloc_unconfined +83 security/apparmor/policy_ns.c 82 > 83 struct aa_profile *alloc_unconfined(const char *name) 84 { 85 struct aa_profile *profile; 86 87 profile = aa_alloc_profile(name, NULL, GFP_KERNEL); 88 if (!profile) 89 return NULL; 90 91 profile->label.flags |= FLAG_IX_ON_NAME_ERROR | 92 FLAG_IMMUTIBLE | FLAG_NS_COUNT | FLAG_UNCONFINED; 93 profile->mode = APPARMOR_UNCONFINED; 94 profile->file.dfa = aa_get_dfa(nulldfa); 95 profile->policy.dfa = aa_get_dfa(nulldfa); 96 97 return profile; 98 } 99 -- 0-DAY CI Kernel Test Service https://01.org/lkp