Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2507685lqo; Tue, 14 May 2024 00:10:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVVhkaCOn1dBFvVdHS97wQ3/oYeQ3EPJ/zIE8Os6oqBi/gtoK1Lapb2N3FsqAyl9fmQ1GFR/LgiV5NWrI9PHu+025DxdMixj7h9Qb9Odg== X-Google-Smtp-Source: AGHT+IE5UrpI4u2Y1KR3Ggds9Kw0p589VpOcuwkyQXmUXWnPpy8Lz9jzmOuMDLnTTDC02ynjTadj X-Received: by 2002:a05:6808:6399:b0:3c9:9632:a277 with SMTP id 5614622812f47-3c997048b78mr11649143b6e.20.1715670635057; Tue, 14 May 2024 00:10:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715670635; cv=pass; d=google.com; s=arc-20160816; b=Gvaqq63hQalYSDtpN9sMLIpM722PsAk7iHvoIzz7kloaW4FIabwyDvh7MDxB6Z+Xxb 7WQEaGCCBYe1yIf6hikuqcJ6A3i0s5MwPFuDmg6ocBRSM5mVFps9uuUXkVz4rc5336zK h8iIIEjPP/AC4vx1v9VFn/8VUheK0+kC/QCIimC5vTHxvzvpbDG3tObMHmTu0OnRwWyl yl9VI0b5X3H2cuD0JxRYkjtwaal1hIW1RRKFqoQweLrVzPonKLFBOOModTpnZkbaVzJ0 KcY9cxmmRaZXqQkNSjXhw/b4OPuIYyz3ez1BXVvJHR9n7gnfNJM+ZWvpqnWbKvkzqo0m eUbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xanFIrXV3zfzWjxfInFgadwU2F7/BWKGTRUFj8zTzxg=; fh=l8aBQRkjV6azkI5yOLKbMx9A//BHyXG7d/9vewOWWh8=; b=YkkJB61CXcecDtGsix+PhjdjYUNf17z9DUzVY0BwTUvLj2v145VVAym266qiYiLhfJ fGNHzwXc3fhf3U3vBQ9xjrYTNOYWUi5elfp41KlJ9xao+iAXM40dOMT57aeuDpHlc0W5 Pq0bsgCD6IM/pcAO8pwA+KhQ/RZxRcauT5raL9iuzcvIqjXG1zVuWSYMmRD8mW9WqWqf wnBeVEPPfFpIpUwIM0vWoAIPt26W4pz2vSOaIr5/M/oJDiaLLdWd5qx84ikd/qYXjW3A OdXJ9duuMFkIFgOtpo0UioOw2GgSuQMllC+Y3b8jFRxNblNjNwKgCuQLfDdzWv2VNDdt aKLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=C2FTA2Ds; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-178365-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf336b59si1106259785a.439.2024.05.14.00.10.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 00:10:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178365-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=C2FTA2Ds; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-178365-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id ADB7D1C20CC4 for ; Tue, 14 May 2024 07:10:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C457410A22; Tue, 14 May 2024 07:10:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="C2FTA2Ds" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 A1035F9F5; Tue, 14 May 2024 07:10:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715670629; cv=none; b=TowYw8xPk2HlZAtoKMhHAITiZ4MXXmIsZBnCtcsQDbq/xTNDxTELoBIpQVsDb0oKGDex3qsB2JHFyZYwyNPukNKIc8YsDKOAgbuW1U1jL6Fq3A+NbbSlSdlnB6wkJBuZ1vo27HRMBif8O49TK+b8Pe/I+uuaMVmh0cI5jixyUIk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715670629; c=relaxed/simple; bh=zdNUasxvJx2ymttYyTXszLP8zbd0eSQT87cFGXnRuu8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gyTZA+EqiJlDppmzAX5FbSEOZ4LRUCeuzXMVss+XwaoV6oG4Bfp40r9Y7uTdbvkQXQuOnDOk3XVnpUVI7EeP/vh0Fl8Z90zKTqa73iZ+ZD6B419ZqQY7PR9+aWFydiTHvX4jj9lamu5952lu3MsofDG8Ctpyrm/DHIM4uOAGPAk= 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=C2FTA2Ds; arc=none smtp.client-ip=198.175.65.12 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715670627; x=1747206627; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=zdNUasxvJx2ymttYyTXszLP8zbd0eSQT87cFGXnRuu8=; b=C2FTA2DsCTC+EfeHkrpwCwWQqC/yLmlUN4Hi3MIG0/tb4pU11A+iW9dZ 4BttdP28dJlFcHGaLILBnNbBW+m5QgsRMHRknQLfwLcsMm9w4TFzsofY5 4MareU1u0QvNrw/fdyuQ+qGmvX4Qgf9tH3JFea9h7KmwDALRQPs5SsT0g VOerXv86n+sK+zGbNHqDS7jcyNnt6p5h8JC/I+kNTJNihtizhJg8etRf9 TblV858V3B2O7jQXYAUz3w6gKC83dt26Dw4+ZdQAgdT9rueYs3qIYKFdc A7i1C2D64fjpWe2zMV3A17W7OlvtIBkWefk5z02dNwz0A/dpAc0nEKBvw A==; X-CSE-ConnectionGUID: 5tWW/wQgSzaJm0h75tSRbA== X-CSE-MsgGUID: bShBIFGeSq+NCO2PjIQfCQ== X-IronPort-AV: E=McAfee;i="6600,9927,11072"; a="23039888" X-IronPort-AV: E=Sophos;i="6.08,159,1712646000"; d="scan'208";a="23039888" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2024 00:10:26 -0700 X-CSE-ConnectionGUID: yByfDjycSuy9TW0L2BpcbA== X-CSE-MsgGUID: zGLPV32cQqC5arFh/tkN2w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,159,1712646000"; d="scan'208";a="30540229" Received: from lkp-server01.sh.intel.com (HELO f8b243fe6e68) ([10.239.97.150]) by fmviesa007.fm.intel.com with ESMTP; 14 May 2024 00:10:24 -0700 Received: from kbuild by f8b243fe6e68 with local (Exim 4.96) (envelope-from ) id 1s6mIn-000BDb-2l; Tue, 14 May 2024 07:10:21 +0000 Date: Tue, 14 May 2024 15:09:30 +0800 From: kernel test robot To: Richard Genoud , Alexandre Belloni Cc: oe-kbuild-all@lists.linux.dev, Esteban Blanc , linux-rtc@vger.kernel.org, Lee Jones , linux-kernel@vger.kernel.org, Richard Genoud Subject: Re: [PATCH] rtc: tps6594: Add power management support Message-ID: <202405141408.o5jSp8nU-lkp@intel.com> References: <20240513162942.68484-1-richard.genoud@bootlin.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: <20240513162942.68484-1-richard.genoud@bootlin.com> Hi Richard, kernel test robot noticed the following build warnings: [auto build test WARNING on abelloni/rtc-next] [also build test WARNING on lee-mfd/for-mfd-next lee-leds/for-leds-next lee-mfd/for-mfd-fixes linus/master v6.9 next-20240513] [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/Richard-Genoud/rtc-tps6594-Add-power-management-support/20240514-003053 base: https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git rtc-next patch link: https://lore.kernel.org/r/20240513162942.68484-1-richard.genoud%40bootlin.com patch subject: [PATCH] rtc: tps6594: Add power management support config: sparc-randconfig-r081-20240514 (https://download.01.org/0day-ci/archive/20240514/202405141408.o5jSp8nU-lkp@intel.com/config) compiler: sparc64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240514/202405141408.o5jSp8nU-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/202405141408.o5jSp8nU-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/rtc/rtc-tps6594.c:471:12: warning: 'tps6594_rtc_suspend' defined but not used [-Wunused-function] 471 | static int tps6594_rtc_suspend(struct device *dev) | ^~~~~~~~~~~~~~~~~~~ >> drivers/rtc/rtc-tps6594.c:439:12: warning: 'tps6594_rtc_resume' defined but not used [-Wunused-function] 439 | static int tps6594_rtc_resume(struct device *dev) | ^~~~~~~~~~~~~~~~~~ vim +/tps6594_rtc_suspend +471 drivers/rtc/rtc-tps6594.c 438 > 439 static int tps6594_rtc_resume(struct device *dev) 440 { 441 struct tps6594 *tps = dev_get_drvdata(dev->parent); 442 struct rtc_device *rtc_dev = dev_get_drvdata(dev); 443 int ret; 444 445 ret = regmap_test_bits(tps->regmap, TPS6594_REG_INT_STARTUP, 446 TPS6594_BIT_RTC_INT); 447 if (ret < 0) { 448 dev_err(dev, "failed to read REG_INT_STARTUP: %d\n", ret); 449 goto out; 450 } 451 452 if (ret > 0) { 453 /* 454 * If the alarm bit is set, it means that the IRQ has been 455 * fired. But, the kernel may not have woke up yet when it 456 * happened. So, we have to clear it. 457 */ 458 ret = regmap_write(tps->regmap, TPS6594_REG_RTC_STATUS, 459 TPS6594_BIT_ALARM); 460 if (ret < 0) 461 dev_err(dev, "error clearing alarm bit: %d", ret); 462 463 rtc_update_irq(rtc_dev, 1, RTC_IRQF | RTC_AF); 464 } 465 out: 466 disable_irq_wake(tps->irq_rtc); 467 468 return 0; 469 } 470 > 471 static int tps6594_rtc_suspend(struct device *dev) 472 { 473 struct tps6594 *tps = dev_get_drvdata(dev->parent); 474 475 enable_irq_wake(tps->irq_rtc); 476 477 return 0; 478 } 479 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki