From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DB4C2C0F96; Tue, 28 Oct 2025 14:33:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761662003; cv=none; b=OaMDUte8A+GcS0K+w5VMXkhRF+mghdqaNGFo0ImdndqquHMfRRIbq04FE9dkvRHPcGBn9/wvnpX38Jca2CqI2AjESCBEE48tkgX1c12gmJ6C+lnV9edVc3Bv93WCGqwioNHxfxaUL4Wy3Uh0aEZpsukdj6utrPnrTXg9eCtV6fM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761662003; c=relaxed/simple; bh=cvbBAFvEUYF4/uygFqDXN5huAqBRxJ5CYiUtMJr8o68=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sV/VLiqwiXW3UixMkw5ccx2wh+cOg18Nbq0hFkZvhqvNLgwWCUtIsX5nBDf7j0vVgKUpvZZCSN62tMX8xctfwA0N/fcQ2gvkjiF///eAINN6tFnuA6Q/B9wzdjmVfVT9dgJ/RRefpvHn6ksVWP+hlpMplt62It0tr8hLpl6P8eU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Mf+lajln; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Mf+lajln" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1761662001; x=1793198001; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=cvbBAFvEUYF4/uygFqDXN5huAqBRxJ5CYiUtMJr8o68=; b=Mf+lajlnZCGhT0F7e0w1KWrm/EIiBkQwtBgCt5FYtco9nr2jeiLn+7B4 tFm+zuMoXhZDJUP4wbmhd5bbWw7jwAW6trIMRxmQS8vfKC261UWmOxWLU HCbIMJFVQRgHVsst6qJdBcBJo34jHisubX0ZTrhttfWz49qVk1wwh64nV d6xKyl2vI0akEemweam1FUU9bb+QfEP47Si7pG40/TMphMtHuxvqohc70 2w66O3iNJJ7AGBUULAzYpF+HwOKyYCqLxBgbDisYoFfqkXRkJuNVcv+uL xGBeW0Y98DTET1jR6S8pWWoOjx2xV6RPIe1zQJzWmO2XuML3gqPaofM7r g==; X-CSE-ConnectionGUID: QI0FUlclRT2jHrtwJaBDqA== X-CSE-MsgGUID: TyeVzs2TR1eVOZvgVYuLMQ== X-IronPort-AV: E=McAfee;i="6800,10657,11586"; a="63857745" X-IronPort-AV: E=Sophos;i="6.19,261,1754982000"; d="scan'208";a="63857745" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Oct 2025 07:33:20 -0700 X-CSE-ConnectionGUID: 0YNrc5QzTg2W8j79oeRWRg== X-CSE-MsgGUID: 8KNuQCivSDS0+oH1G/N0xQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,261,1754982000"; d="scan'208";a="185447887" Received: from lkp-server02.sh.intel.com (HELO 66d7546c76b2) ([10.239.97.151]) by orviesa008.jf.intel.com with ESMTP; 28 Oct 2025 07:33:17 -0700 Received: from kbuild by 66d7546c76b2 with local (Exim 4.96) (envelope-from ) id 1vDkl9-000JEb-0S; Tue, 28 Oct 2025 14:33:15 +0000 Date: Tue, 28 Oct 2025 22:32:59 +0800 From: kernel test robot To: Miaoqian Lin , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , "benjamin.gaignard@linaro.org" , Philippe Cornu , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, linmq006@gmail.com, stable@vger.kernel.org Subject: Re: [PATCH] drm/of: Fix device node reference leak in drm_of_panel_bridge_remove Message-ID: <202510282250.QkCSotB2-lkp@intel.com> References: <20251028060918.65688-1-linmq006@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251028060918.65688-1-linmq006@gmail.com> Hi Miaoqian, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on linus/master v6.18-rc3 next-20251028] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Miaoqian-Lin/drm-of-Fix-device-node-reference-leak-in-drm_of_panel_bridge_remove/20251028-141134 base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next patch link: https://lore.kernel.org/r/20251028060918.65688-1-linmq006%40gmail.com patch subject: [PATCH] drm/of: Fix device node reference leak in drm_of_panel_bridge_remove config: parisc-randconfig-002-20251028 (https://download.01.org/0day-ci/archive/20251028/202510282250.QkCSotB2-lkp@intel.com/config) compiler: hppa-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251028/202510282250.QkCSotB2-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/202510282250.QkCSotB2-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/gpu/drm/bridge/ti-dlpc3433.c:12: include/drm/drm_of.h: In function 'drm_of_panel_bridge_remove': include/drm/drm_of.h:174:2: error: implicit declaration of function 'of_node_put'; did you mean 'fwnode_init'? [-Werror=implicit-function-declaration] of_node_put(remote); ^~~~~~~~~~~ fwnode_init In file included from include/linux/irqdomain.h:14, from include/linux/i2c.h:21, from drivers/gpu/drm/bridge/ti-dlpc3433.c:18: include/linux/of.h: At top level: >> include/linux/of.h:129:13: warning: conflicting types for 'of_node_put' extern void of_node_put(struct device_node *node); ^~~~~~~~~~~ In file included from drivers/gpu/drm/bridge/ti-dlpc3433.c:12: include/drm/drm_of.h:174:2: note: previous implicit declaration of 'of_node_put' was here of_node_put(remote); ^~~~~~~~~~~ cc1: some warnings being treated as errors vim +/of_node_put +129 include/linux/of.h 0829f6d1f69e4f Pantelis Antoniou 2013-12-13 126 0f22dd395fc473 Grant Likely 2012-02-15 127 #ifdef CONFIG_OF_DYNAMIC 0f22dd395fc473 Grant Likely 2012-02-15 128 extern struct device_node *of_node_get(struct device_node *node); 0f22dd395fc473 Grant Likely 2012-02-15 @129 extern void of_node_put(struct device_node *node); 0f22dd395fc473 Grant Likely 2012-02-15 130 #else /* CONFIG_OF_DYNAMIC */ 3ecdd0515287af Rob Herring 2011-12-13 131 /* Dummy ref counting routines - to be implemented later */ 3ecdd0515287af Rob Herring 2011-12-13 132 static inline struct device_node *of_node_get(struct device_node *node) 3ecdd0515287af Rob Herring 2011-12-13 133 { 3ecdd0515287af Rob Herring 2011-12-13 134 return node; 3ecdd0515287af Rob Herring 2011-12-13 135 } 0f22dd395fc473 Grant Likely 2012-02-15 136 static inline void of_node_put(struct device_node *node) { } 0f22dd395fc473 Grant Likely 2012-02-15 137 #endif /* !CONFIG_OF_DYNAMIC */ 9448e55d032d99 Jonathan Cameron 2024-02-25 138 DEFINE_FREE(device_node, struct device_node *, if (_T) of_node_put(_T)) 3ecdd0515287af Rob Herring 2011-12-13 139 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki