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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 24C53C27C6E for ; Fri, 14 Jun 2024 20:04:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=PnbAMknd8D26kPVqolmwL5+Jfvb5G2WrrvpHPtDGM+M=; b=zlNxZ3mpmnfaa/imGFqo0jhts1 uaHrMHDKKdoZUI4Gy9GNwIbMnExbS9W8vQdfuYJtT8dfimapuvS89tF4ybfNO9xAa/m/eO2/yFGcN 0+lY6+9/+KKaU+by6O7K1vtanYUZsR6jcb/RfQ5ZYfbz4ZL0UG59+nib4oke6ASvpzpLaTv4C1AWe Ou4mtESaA4BsJR2gmC6hEtPcsc/Mw06/R3tXJSy5Q/+TY/94rtasLismciFiPAES0N125toZ9ny1A v86ZhId0NiPc7hZv3eCnwuLOCMvNvBAdYjesiGIHIeKZVxYDkihnIMeOXiWUrGLZ/aN7ZHRueBTyT qkn5kNPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sID9h-00000003wPi-1OI1; Fri, 14 Jun 2024 20:04:13 +0000 Received: from mgamail.intel.com ([198.175.65.10]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sIC28-00000003oOd-1gte; Fri, 14 Jun 2024 18:52:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718391140; x=1749927140; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=i1/JajuCHgwTdekrpE3K1vL6mofCP5cR98PS+SfZc88=; b=FmNv1v3AsLux2VJNtOWlpQU8Q5mz3WxaY/M+7s5EAft/rcyBkrOUzKln 211xk+pQbRkltgHcjClg/ykYn+fjPCHx0Zeo94mMADfS6ydMvmvxfjuX4 8jf5PZr0MNEQoXbk6N+k0jpQqpnqssHLZs5x5HiwhHD3WpFEWO6V5AXbP FoQvVe0tz15N0/zzBz14KjPHQS8cYVng836efO8dfuaLNXMwcLucIS6fR SFrmDGs41fowlKneLY8MJcOeH6yxQWmssKnYN4lm/ye6IcdeBUhxicaEA ZmLvEFNrRBUrjMsPU+HuQjFLykU6YEdXgO2BXdujBzv/hSZ16QnePR2iU A==; X-CSE-ConnectionGUID: JtnZQBDCQcC7wleYC5IrYg== X-CSE-MsgGUID: imLk4zXNSe2IaKZyNNumFA== X-IronPort-AV: E=McAfee;i="6700,10204,11103"; a="32770696" X-IronPort-AV: E=Sophos;i="6.08,238,1712646000"; d="scan'208";a="32770696" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2024 11:52:19 -0700 X-CSE-ConnectionGUID: 8BCAEC1eQ0iiBVgU7P+7Sw== X-CSE-MsgGUID: UHK9p5C2SaG4ROqDiYQuCg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,238,1712646000"; d="scan'208";a="44956943" Received: from lkp-server01.sh.intel.com (HELO 9e3ee4e9e062) ([10.239.97.150]) by fmviesa003.fm.intel.com with ESMTP; 14 Jun 2024 11:52:16 -0700 Received: from kbuild by 9e3ee4e9e062 with local (Exim 4.96) (envelope-from ) id 1sIC22-0001fn-0j; Fri, 14 Jun 2024 18:52:14 +0000 Date: Sat, 15 Jun 2024 02:51:35 +0800 From: kernel test robot To: "Jason-JH.Lin" , Jassi Brar , Chun-Kuang Hu , AngeloGioacchino Del Regno Cc: oe-kbuild-all@lists.linux.dev, Matthias Brugger , "Jason-JH . Lin" , Singo Chang , Nancy Lin , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com Subject: Re: [PATCH 1/2] mailbox: Add power_get/power_put API to mbox_chan_ops Message-ID: <202406150214.pVxsbllC-lkp@intel.com> References: <20240614040133.24967-2-jason-jh.lin@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240614040133.24967-2-jason-jh.lin@mediatek.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240614_115220_532559_AB2CA272 X-CRM114-Status: GOOD ( 13.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Jason-JH.Lin, kernel test robot noticed the following build warnings: [auto build test WARNING on linus/master] [also build test WARNING on fujitsu-integration/mailbox-for-next v6.10-rc3 next-20240613] [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/Jason-JH-Lin/mailbox-Add-power_get-power_put-API-to-mbox_chan_ops/20240614-120412 base: linus/master patch link: https://lore.kernel.org/r/20240614040133.24967-2-jason-jh.lin%40mediatek.com patch subject: [PATCH 1/2] mailbox: Add power_get/power_put API to mbox_chan_ops config: i386-randconfig-062-20240614 (https://download.01.org/0day-ci/archive/20240615/202406150214.pVxsbllC-lkp@intel.com/config) compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240615/202406150214.pVxsbllC-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/202406150214.pVxsbllC-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/mailbox/mailbox.c:382:39: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got void * @@ drivers/mailbox/mailbox.c:382:39: sparse: expected int drivers/mailbox/mailbox.c:382:39: sparse: got void * drivers/mailbox/mailbox.c: note: in included file (through include/linux/smp.h, include/linux/alloc_tag.h, include/linux/percpu.h, ...): include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true vim +382 drivers/mailbox/mailbox.c 355 356 static int __mbox_bind_client(struct mbox_chan *chan, struct mbox_client *cl) 357 { 358 struct device *dev = cl->dev; 359 unsigned long flags; 360 int ret; 361 362 if (chan->cl || !try_module_get(chan->mbox->dev->driver->owner)) { 363 dev_dbg(dev, "%s: mailbox not free\n", __func__); 364 return -EBUSY; 365 } 366 367 spin_lock_irqsave(&chan->lock, flags); 368 chan->msg_free = 0; 369 chan->msg_count = 0; 370 chan->active_req = NULL; 371 chan->cl = cl; 372 init_completion(&chan->tx_complete); 373 374 if (chan->txdone_method == TXDONE_BY_POLL && cl->knows_txdone) 375 chan->txdone_method = TXDONE_BY_ACK; 376 377 spin_unlock_irqrestore(&chan->lock, flags); 378 379 if (chan->mbox->ops->power_get) { 380 ret = chan->mbox->ops->power_get(chan); 381 if (ret < 0) > 382 return ERR_PTR(ret); 383 } 384 385 if (chan->mbox->ops->startup) { 386 ret = chan->mbox->ops->startup(chan); 387 388 if (ret) { 389 dev_err(dev, "Unable to startup the chan (%d)\n", ret); 390 mbox_free_channel(chan); 391 return ret; 392 } 393 } 394 395 return 0; 396 } 397 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki