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 76E59E8FDCB for ; Wed, 4 Oct 2023 06:21:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2CFDC6B0250; Wed, 4 Oct 2023 02:21:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 281036B0254; Wed, 4 Oct 2023 02:21:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 16FA66B0292; Wed, 4 Oct 2023 02:21:41 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 06C726B0250 for ; Wed, 4 Oct 2023 02:21:41 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id BAE4F80179 for ; Wed, 4 Oct 2023 06:21:40 +0000 (UTC) X-FDA: 81306782760.30.63420EE Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by imf30.hostedemail.com (Postfix) with ESMTP id 42C7F80003 for ; Wed, 4 Oct 2023 06:21:37 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Og1aZ/hN"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf30.hostedemail.com: domain of lkp@intel.com designates 134.134.136.65 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1696400497; 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=6pfn4Yme5J/r8ldZpQmZRB0yP3jQPBoH3VQyK5JBf04=; b=jMQcTI2SBkkSkILU1tROaIjVXJKSsW/MR8Vxxcy02BFu7nJ8KO4cDJdkvHFQd6GSCPfvE/ X1BmaZaZAoo3A0lMPrXZ53z3HWVKQclOBMa7pNWFyXV0U2PXBVgX6YUf07yZBt+tivy825 l4sxg96bbEeqa2P1FimMsuahMQOdL4g= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Og1aZ/hN"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf30.hostedemail.com: domain of lkp@intel.com designates 134.134.136.65 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1696400497; a=rsa-sha256; cv=none; b=aGpTOz8xsK2DK5O1Wt67SJbioCWGEIS5nTRP02zHz3n0cSnhFQAEXsDluONI5qw4MU/wEO cYw4F2lR1LylxdMRXOep5kzecCQq9jonqkwTVi5MwjtJnUk5BWlG/kTzCFVWRSbUqdLleX jp7jW8SxFdWe7PIgRsS5s6qG+Y5iS18= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696400497; x=1727936497; h=date:from:to:cc:subject:message-id:mime-version; bh=T0zTjI59RLPGR2406pc3HlGg5WbitJiftFZfWUeb9lA=; b=Og1aZ/hNXSNeKFC7t8Yd8/OI7+VHljh7wAlf7qcCUDS9LpnbLiEou+Cl YNzaM6acO25HgYzenOd/shanXUVBP2eK9nxRbaGkjU8hsFX+jcfM11sI2 65HTAOvEWmRWTrysM5iGty7KHv0lrHcq3jOaB8wb9QSevhJbe4yBbG0S6 DogITZ3rVc+JqKs/w/79gAWQX6bGFIqkV5ReQRqTN9Oaf1XVD6v81PChz 7gavObCfWNjIVxo847y0Bbjba8DT4NQPJwWDAkZJLSIIfEgmx/Cwlzjvo 0PA/1NuLhti2vl4xaPgwOovPgfAHTnmlr6Kov2OoYGm5eIERir/pm7JW4 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10852"; a="386941193" X-IronPort-AV: E=Sophos;i="6.03,199,1694761200"; d="scan'208";a="386941193" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2023 23:21:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10852"; a="727891060" X-IronPort-AV: E=Sophos;i="6.03,199,1694761200"; d="scan'208";a="727891060" Received: from lkp-server02.sh.intel.com (HELO c3b01524d57c) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 03 Oct 2023 23:21:33 -0700 Received: from kbuild by c3b01524d57c with local (Exim 4.96) (envelope-from ) id 1qnvGF-000Czm-0t; Wed, 04 Oct 2023 06:21:31 +0000 Date: Wed, 4 Oct 2023 14:20:42 +0800 From: kernel test robot To: Christian Brauner Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: [linux-next:master 8396/9381] arch/powerpc/platforms/cell/spufs/coredump.c:79:6: warning: variable 'ctx' is used uninitialized whenever 'if' condition is false Message-ID: <202310041442.iukUNRze-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 42C7F80003 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: 6ae1ju73zwbt41h8npapjw6yogc487uh X-HE-Tag: 1696400497-815574 X-HE-Meta: U2FsdGVkX1/VfROc6mCGJfu22KobomUS+oyh1ref5qXeqtohu6RIojIm6rCEFya3veYA722tmIBmdDkuMkhgCtChGSEN3UJbGoE6wlU0yQ/v1gJHvZNu8NGxeF7nlUZPA6tdVlJSiOUUmGFl0YFIdCgWUvM65iU1IH0CM+brL7Rt4YggjoOX3EJ+pZEX0RiTT0y0Ce3HVXMdZK7Z13cP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iqhW33vj5g== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000002, 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: c9f2baaa18b5ea8f006a2b3a616da9597c71d15e commit: af66b51563ad7e625602809a0f4c45154df063d1 [8396/9381] file: convert to SLAB_TYPESAFE_BY_RCU config: powerpc64-allyesconfig (https://download.01.org/0day-ci/archive/20231004/202310041442.iukUNRze-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231004/202310041442.iukUNRze-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202310041442.iukUNRze-lkp@intel.com/ All warnings (new ones prefixed by >>): >> arch/powerpc/platforms/cell/spufs/coredump.c:79:6: warning: variable 'ctx' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 79 | if (file) { | ^~~~ arch/powerpc/platforms/cell/spufs/coredump.c:85:9: note: uninitialized use occurs here 85 | return ctx; | ^~~ arch/powerpc/platforms/cell/spufs/coredump.c:79:2: note: remove the 'if' if its condition is always true 79 | if (file) { | ^~~~~~~~~~ arch/powerpc/platforms/cell/spufs/coredump.c:69:25: note: initialize the variable 'ctx' to silence this warning 69 | struct spu_context *ctx; | ^ | = NULL 1 warning generated. vim +79 arch/powerpc/platforms/cell/spufs/coredump.c 54 55 /* 56 * The additional architecture-specific notes for Cell are various 57 * context files in the spu context. 58 * 59 * This function iterates over all open file descriptors and sees 60 * if they are a directory in spufs. In that case we use spufs 61 * internal functionality to dump them without needing to actually 62 * open the files. 63 */ 64 /* 65 * descriptor table is not shared, so files can't change or go away. 66 */ 67 static struct spu_context *coredump_next_context(int *fd) 68 { 69 struct spu_context *ctx; 70 struct file *file; 71 int n = iterate_fd(current->files, *fd, match_context, NULL); 72 if (!n) 73 return NULL; 74 *fd = n - 1; 75 76 rcu_read_lock(); 77 file = lookup_fdget_rcu(*fd); 78 rcu_read_unlock(); > 79 if (file) { 80 ctx = SPUFS_I(file_inode(file))->i_ctx; 81 get_spu_context(ctx); 82 fput(file); 83 } 84 85 return ctx; 86 } 87 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki