Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1318104pxb; Wed, 6 Apr 2022 14:53:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGcj4fW/XH8LhljiJGfUPmC2yuG53QTCMUOOkPpE1k57nF1ofr4RxPwojHiPsh62MxMcir X-Received: by 2002:a17:907:3d91:b0:6df:a01c:f7cd with SMTP id he17-20020a1709073d9100b006dfa01cf7cdmr10222742ejc.255.1649281984642; Wed, 06 Apr 2022 14:53:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649281984; cv=none; d=google.com; s=arc-20160816; b=nGAWnbZ0I5Sski27kQ4Mul1c85LiZoa/szgXUlzww84WS2uMz/+cRKQaQXDXySx0DY wS09dKrZ+4uzM+ORHc6ymFlrVStOd6YdEChykOOxzN8ue+dIIgDnUuPzDWWMFyOYCdkc r8Daef+8vSlgaxE1cUTy6QpYFOiSNnWm8Wx+QoVPXrg99uM+RNgQM8MUl6ZcF2PLqlyL 7R61XmMeMrqzsBejMGncNX8t0powzzxoH0AHag2utPNEAN3lAXO/VUjuIwBqHb7IU6JI wDI7lv84E82R9ThRIr0eBeSLY5Nj5A6mL+dzUbg3cw5+SHyt2vNwQT7NRHmoNBI/ingL UT1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2e2/zMk6Md/cHTD4MgMdYCL0ogrRYdIUwiiyWUJYsLI=; b=xCDcDpnvictjpJQS0iGNdylCVj6YwanhyPoxAgq0+fgHOKCnxZTxfhEbTcSi2vehkq p6AhdtC2xoG5laXdbWIZFHgLezparU9jFEuL3TrcP1t7W1Jgp98PXJRmnt2AQg0DpES5 tz9oknRUjkgtwnYmgQkXGQKqGPnHKq58lynMRmx0QAe48gpuMdJvZyqBBPCmsoPAjtkD TnycVDFJJ+hS3SYfI7bDYDUFqmoBTKAKfLdINOuslezxB6Mr/qLexY4B61zsteAy8WjK C/QAHAalsYvl0A4M7rjf9DnPoqDYNPwUv8LQ4eLhfuprLg2g7/BDtJEfLhoYZLwLWB5I aLPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Fw643oHH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a170906688800b006df76385ca9si11572253ejr.329.2022.04.06.14.52.38; Wed, 06 Apr 2022 14:53:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Fw643oHH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234308AbiDFU75 (ORCPT + 99 others); Wed, 6 Apr 2022 16:59:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234409AbiDFU7s (ORCPT ); Wed, 6 Apr 2022 16:59:48 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C170ECFBBB; Wed, 6 Apr 2022 12:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649273121; x=1680809121; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=cIm8qSlHUF8CXPEOlt0+3ZqAL8J3/3EDQ8gWoYdF/DE=; b=Fw643oHHZ1U6fZ97KCzBdomaKamVYs2Hv4owuGxlk3r4livi29UCLuLQ W/qonn2fTwShpAgNoIWmoszbqqlkFctCr5IknsNypp4II7MmnVE+XBuec Sas3S7KMFIxMmBozEvQeAKzMS51zXNn828EoS0GWLdUXemQFHrE/Fz3WE DpWDWFr4fnebt273W0v/r4MbQPhMeh2BDEKQ5sCku5acBtUQ0lvMBeQGi t8YJWK6Pg20qkLu5YRYKZYXW29ApqmFujSPSXoC1X076VrPz0aqM6RtGN tpEntOdIdXLXIPocmx/9qZAJZfhBvHT+cca7KIHmEEYm0EHiWSpktRVaQ Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10309"; a="258727468" X-IronPort-AV: E=Sophos;i="5.90,240,1643702400"; d="scan'208";a="258727468" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 12:24:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,240,1643702400"; d="scan'208";a="722647825" Received: from lkp-server02.sh.intel.com (HELO a44fdfb70b94) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 06 Apr 2022 12:24:30 -0700 Received: from kbuild by a44fdfb70b94 with local (Exim 4.95) (envelope-from ) id 1ncBGX-0004gD-Du; Wed, 06 Apr 2022 19:24:29 +0000 Date: Thu, 7 Apr 2022 03:24:12 +0800 From: kernel test robot To: Andy Shevchenko , linux-acpi@vger.kernel.org, linux-kernel@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" , Len Brown , Michael Walle Subject: Re: [PATCH v5 4/4] device property: Constify fwnode APIs that uses fwnode_get_next_parent() Message-ID: <202204070325.jqK23CqC-lkp@intel.com> References: <20220406130552.30930-4-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220406130552.30930-4-andriy.shevchenko@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 linus/master linux/master v5.18-rc1 next-20220406] [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/20220407-002511 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git 3123109284176b1532874591f7c81f3837bbdc17 config: hexagon-randconfig-r032-20220406 (https://download.01.org/0day-ci/archive/20220407/202204070325.jqK23CqC-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c4a1b07d0979e7ff20d7d541af666d822d66b566) 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/d9d353ada8d8c3b1b7f3965ad7fe191bd7dea930 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/20220407-002511 git checkout d9d353ada8d8c3b1b7f3965ad7fe191bd7dea930 # 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:647:28: error: passing 'const struct fwnode_handle *' to parameter of type 'struct fwnode_handle *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] return fwnode_handle_get(fwnode); ^~~~~~ include/linux/property.h:123:63: note: passing argument to parameter 'fwnode' here struct fwnode_handle *fwnode_handle_get(struct fwnode_handle *fwnode); ^ 1 error generated. vim +647 drivers/base/property.c 87e5e95db31a27d Sakari Ailus 2019-10-03 629 87e5e95db31a27d Sakari Ailus 2019-10-03 630 /** 87e5e95db31a27d Sakari Ailus 2019-10-03 631 * fwnode_get_nth_parent - Return an nth parent of a node 87e5e95db31a27d Sakari Ailus 2019-10-03 632 * @fwnode: The node the parent of which is requested 87e5e95db31a27d Sakari Ailus 2019-10-03 633 * @depth: Distance of the parent from the node 87e5e95db31a27d Sakari Ailus 2019-10-03 634 * 87e5e95db31a27d Sakari Ailus 2019-10-03 635 * Returns the nth parent of a node. If there is no parent at the requested 87e5e95db31a27d Sakari Ailus 2019-10-03 636 * @depth, %NULL is returned. If @depth is 0, the functionality is equivalent to 87e5e95db31a27d Sakari Ailus 2019-10-03 637 * fwnode_handle_get(). For @depth == 1, it is fwnode_get_parent() and so on. 87e5e95db31a27d Sakari Ailus 2019-10-03 638 * 87e5e95db31a27d Sakari Ailus 2019-10-03 639 * The caller is responsible for calling fwnode_handle_put() for the returned 87e5e95db31a27d Sakari Ailus 2019-10-03 640 * node. 87e5e95db31a27d Sakari Ailus 2019-10-03 641 */ d9d353ada8d8c3b Andy Shevchenko 2022-04-06 642 struct fwnode_handle *fwnode_get_nth_parent(const struct fwnode_handle *fwnode, unsigned int depth) 87e5e95db31a27d Sakari Ailus 2019-10-03 643 { 040f806ecab6cd6 Andy Shevchenko 2022-04-06 644 struct fwnode_handle *parent; 87e5e95db31a27d Sakari Ailus 2019-10-03 645 040f806ecab6cd6 Andy Shevchenko 2022-04-06 646 if (depth == 0) 040f806ecab6cd6 Andy Shevchenko 2022-04-06 @647 return fwnode_handle_get(fwnode); 87e5e95db31a27d Sakari Ailus 2019-10-03 648 040f806ecab6cd6 Andy Shevchenko 2022-04-06 649 fwnode_for_each_parent_node(fwnode, parent) { 040f806ecab6cd6 Andy Shevchenko 2022-04-06 650 if (--depth == 0) 040f806ecab6cd6 Andy Shevchenko 2022-04-06 651 return parent; 040f806ecab6cd6 Andy Shevchenko 2022-04-06 652 } 040f806ecab6cd6 Andy Shevchenko 2022-04-06 653 return NULL; 87e5e95db31a27d Sakari Ailus 2019-10-03 654 } 87e5e95db31a27d Sakari Ailus 2019-10-03 655 EXPORT_SYMBOL_GPL(fwnode_get_nth_parent); 87e5e95db31a27d Sakari Ailus 2019-10-03 656 -- 0-DAY CI Kernel Test Service https://01.org/lkp