From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (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 8ADB7621 for ; Sat, 9 Apr 2022 02:38:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649471937; x=1681007937; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=7aR8m2ikj3v7u6h4AcK9g+khiMuvadGO9El6+uN/BJ0=; b=UVen5aLxZ8V7Mv7lTqciCOnYYPjh0Zl8flCadik1Syqij44G335pvQC8 8ehlSl2mGXChT5eQbjvo59TGDFiRTIwH+SG/97oAN50Osbi48KrN4+KKY ABEdurrbNVzhsrEn4bRsr+IqUM5Ad57Icvu0DTdEsTEqg6FwWJV66kK5+ Z/UzEkck/EodUMRJmodjZDcX1cyVSEVPBFCXNEmstkIrJ4rxdozKxKtTK c2nLJ70tNPsVM5+1HCY08qsWJ/9kvzqINnzKgzNLY4djrVE3azClCThId vAoVuEpOhoGJvxLKCVYkndrL2CVPe/a3onVDNNcEDqGDfAO3XHMNJzz6l A==; X-IronPort-AV: E=McAfee;i="6400,9594,10311"; a="286744820" X-IronPort-AV: E=Sophos;i="5.90,246,1643702400"; d="scan'208";a="286744820" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2022 19:38:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,246,1643702400"; d="scan'208";a="610021726" Received: from lkp-server02.sh.intel.com (HELO 7e80bc2a00a0) ([10.239.97.151]) by fmsmga008.fm.intel.com with ESMTP; 08 Apr 2022 19:38:54 -0700 Received: from kbuild by 7e80bc2a00a0 with local (Exim 4.95) (envelope-from ) id 1nd101-0000ou-DP; Sat, 09 Apr 2022 02:38:53 +0000 Date: Sat, 9 Apr 2022 10:38:32 +0800 From: kernel test robot To: Andy Shevchenko , Rob Herring , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , "Rafael J. Wysocki" , Frank Rowand , Len Brown Subject: Re: [PATCH v6 4/5] device property: Constify fwnode_handle_get() Message-ID: <202204091049.rHkbqiFm-lkp@intel.com> References: <20220408184844.22829-4-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220408184844.22829-4-andriy.shevchenko@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Hi Andy, I love your patch! Yet something to improve: [auto build test ERROR on driver-core/driver-core-testing] [also build test ERROR on rafael-pm/linux-next robh/for-next linus/master v5.18-rc1 next-20220408] [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] url: https://github.com/intel-lab-lkp/linux/commits/Andy-Shevchenko/device-property-Allow-error-pointer-to-be-passed-to-fwnode-APIs/20220409-025056 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git 3123109284176b1532874591f7c81f3837bbdc17 config: hexagon-randconfig-r041-20220408 (https://download.01.org/0day-ci/archive/20220409/202204091049.rHkbqiFm-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c29a51b3a257908aebc01cd7c4655665db317d66) 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://github.com/intel-lab-lkp/linux/commit/477683439b5ee0954b08970d8c356b4cdaca8bc0 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Andy-Shevchenko/device-property-Allow-error-pointer-to-be-passed-to-fwnode-APIs/20220409-025056 git checkout 477683439b5ee0954b08970d8c356b4cdaca8bc0 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/base/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/base/property.c:782:10: error: returning 'const struct fwnode_handle *' from a function with result type 'struct fwnode_handle *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] return fwnode; ^~~~~~ 1 error generated. vim +782 drivers/base/property.c 613e97218ccbd7 Adam Thomson 2016-06-21 772 e7887c284969a2 Sakari Ailus 2017-03-28 773 /** e7887c284969a2 Sakari Ailus 2017-03-28 774 * fwnode_handle_get - Obtain a reference to a device node e7887c284969a2 Sakari Ailus 2017-03-28 775 * @fwnode: Pointer to the device node to obtain the reference to. cf89a31ca55272 Sakari Ailus 2017-09-19 776 * cf89a31ca55272 Sakari Ailus 2017-09-19 777 * Returns the fwnode handle. e7887c284969a2 Sakari Ailus 2017-03-28 778 */ 477683439b5ee0 Andy Shevchenko 2022-04-08 779 struct fwnode_handle *fwnode_handle_get(const struct fwnode_handle *fwnode) e7887c284969a2 Sakari Ailus 2017-03-28 780 { cf89a31ca55272 Sakari Ailus 2017-09-19 781 if (!fwnode_has_op(fwnode, get)) cf89a31ca55272 Sakari Ailus 2017-09-19 @782 return fwnode; cf89a31ca55272 Sakari Ailus 2017-09-19 783 cf89a31ca55272 Sakari Ailus 2017-09-19 784 return fwnode_call_ptr_op(fwnode, get); e7887c284969a2 Sakari Ailus 2017-03-28 785 } e7887c284969a2 Sakari Ailus 2017-03-28 786 EXPORT_SYMBOL_GPL(fwnode_handle_get); e7887c284969a2 Sakari Ailus 2017-03-28 787 -- 0-DAY CI Kernel Test Service https://01.org/lkp