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 73FBDC282CD for ; Sat, 1 Mar 2025 17:50:16 +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-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5IE6qRT8T/TuM6a4BH8RP7w5kbjSJCRbGgfIR7TwTuk=; b=abM1tdekmjlpGFFUjeeOxEcazX mu5zWA2t5K8nUNydddO2qKb2ydF4NvqkTb7pKpABIhwY7d9K3myPZV786+PP0epX6bn1UiHq0JaLU Xl/P6Jcvl7tyU6ROzIVEQeu2oe6flDCuRFpKeuAicVw2g1EHEfb/2YnKIBnLoQ1GjyspIQ9IsKwBH zD2Ja0L3lx6lTdX01x+wZiIV02N7kpEMojYgWx3z4rPAvg2E10mHJa1eEwvsxXRV/PPDozUKGlJyS Tl0NsgI0ag/kRpbVxfpeSTvVnkn2UwHc678f6iRQrn94RbDRppPc/MlHXF8nX/4evaD+3vgHmRymy t1rMcXLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1toQyW-0000000EidH-1OBn; Sat, 01 Mar 2025 17:50:08 +0000 Received: from mgamail.intel.com ([192.198.163.17]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1toQww-0000000EiUT-1x0v; Sat, 01 Mar 2025 17:48:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1740851310; x=1772387310; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=IMSIu8jvdDwIJAM4fLeDemvtPcKTwRRhp37hHpIn+X4=; b=aItFFWsC2x64dQLdnGQi2xEwaRiaZbAbhVMhhINZb6mEZyZuzBhp17Pm bQP+zTbSZUMPBC+D8zVRTeO3nsQ5yUnBsPdlJ3RswEW73uKxN7fAVQHJR D5zLd6ywrPTn8Sp2kTEBF+iUIVnzRkQiqZFSgi3POyevW/txiTPPJ7h8Y mrHQTsrPQYUlxnMRtgeB9H9cyKxF926Q2yObkJVS1MzchUeNRI5z5B/YC h5UQDz8bP9Lmy8wuRrUi7BkohCYYjo2sYbMnNBbneKhbcZzQFAqyAQn4n I1zrJseuAtF5Gv7RQZi8S4JBbf7CA+2kdvcJyxZ22qNjUltyezyWRuRnJ w==; X-CSE-ConnectionGUID: Nf2BlhC6SCKKdRQ3tuDbMA== X-CSE-MsgGUID: dC+J0IY/TxewCF5FZFKsqA== X-IronPort-AV: E=McAfee;i="6700,10204,11360"; a="41650277" X-IronPort-AV: E=Sophos;i="6.13,325,1732608000"; d="scan'208";a="41650277" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2025 09:48:29 -0800 X-CSE-ConnectionGUID: vgYcIYDcRt+mQdx99iLk9w== X-CSE-MsgGUID: L50jgmYYT9+XgO2hztfjcg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,325,1732608000"; d="scan'208";a="140844857" Received: from lkp-server02.sh.intel.com (HELO 76cde6cc1f07) ([10.239.97.151]) by fmviesa002.fm.intel.com with ESMTP; 01 Mar 2025 09:48:24 -0800 Received: from kbuild by 76cde6cc1f07 with local (Exim 4.96) (envelope-from ) id 1toQwo-000GWE-0u; Sat, 01 Mar 2025 17:48:22 +0000 Date: Sun, 2 Mar 2025 01:47:17 +0800 From: kernel test robot To: =?iso-8859-1?Q?Andr=E9?= Draszik , Chanwoo Choi , Krzysztof Kozlowski , Alexandre Belloni , Joel Stanley , Andrew Jeffery , Hans Ulli Kroll , Linus Walleij , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , =?iso-8859-1?Q?T=F3th_J=E1nos?= , Dianlong Li Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-amlogic@lists.infradead.org, =?iso-8859-1?Q?Andr=E9?= Draszik Subject: Re: [PATCH 02/18] rtc: s5m: drop needless struct s5m_rtc_info::i2c member Message-ID: <202503020150.LkqTktVQ-lkp@intel.com> References: <20250228-rtc-cleanups-v1-2-b44cec078481@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20250228-rtc-cleanups-v1-2-b44cec078481@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250301_094830_551422_2D63F77D X-CRM114-Status: GOOD ( 13.89 ) 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 André, kernel test robot noticed the following build warnings: [auto build test WARNING on 0226d0ce98a477937ed295fb7df4cc30b46fc304] url: https://github.com/intel-lab-lkp/linux/commits/Andr-Draszik/rtc-max77686-drop-needless-struct-max77686_rtc_info-rtc-member/20250228-221320 base: 0226d0ce98a477937ed295fb7df4cc30b46fc304 patch link: https://lore.kernel.org/r/20250228-rtc-cleanups-v1-2-b44cec078481%40linaro.org patch subject: [PATCH 02/18] rtc: s5m: drop needless struct s5m_rtc_info::i2c member config: arm-randconfig-004-20250301 (https://download.01.org/0day-ci/archive/20250302/202503020150.LkqTktVQ-lkp@intel.com/config) compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 14170b16028c087ca154878f5ed93d3089a965c6) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250302/202503020150.LkqTktVQ-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/202503020150.LkqTktVQ-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/rtc/rtc-s5m.c:11: In file included from include/linux/i2c.h:19: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:21: In file included from include/linux/mm.h:2287: include/linux/vmstat.h:507:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 507 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ >> drivers/rtc/rtc-s5m.c:678:46: warning: variable 'i2c' is uninitialized when used here [-Wuninitialized] 678 | i2c = devm_i2c_new_dummy_device(&pdev->dev, i2c->adapter, | ^~~ drivers/rtc/rtc-s5m.c:642:24: note: initialize the variable 'i2c' to silence this warning 642 | struct i2c_client *i2c; | ^ | = NULL 2 warnings generated. vim +/i2c +678 drivers/rtc/rtc-s5m.c 637 638 static int s5m_rtc_probe(struct platform_device *pdev) 639 { 640 struct sec_pmic_dev *s5m87xx = dev_get_drvdata(pdev->dev.parent); 641 struct s5m_rtc_info *info; 642 struct i2c_client *i2c; 643 const struct regmap_config *regmap_cfg; 644 int ret, alarm_irq; 645 646 info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL); 647 if (!info) 648 return -ENOMEM; 649 650 switch (platform_get_device_id(pdev)->driver_data) { 651 case S2MPS15X: 652 regmap_cfg = &s2mps14_rtc_regmap_config; 653 info->regs = &s2mps15_rtc_regs; 654 alarm_irq = S2MPS14_IRQ_RTCA0; 655 break; 656 case S2MPS14X: 657 regmap_cfg = &s2mps14_rtc_regmap_config; 658 info->regs = &s2mps14_rtc_regs; 659 alarm_irq = S2MPS14_IRQ_RTCA0; 660 break; 661 case S2MPS13X: 662 regmap_cfg = &s2mps14_rtc_regmap_config; 663 info->regs = &s2mps13_rtc_regs; 664 alarm_irq = S2MPS14_IRQ_RTCA0; 665 break; 666 case S5M8767X: 667 regmap_cfg = &s5m_rtc_regmap_config; 668 info->regs = &s5m_rtc_regs; 669 alarm_irq = S5M8767_IRQ_RTCA1; 670 break; 671 default: 672 dev_err(&pdev->dev, 673 "Device type %lu is not supported by RTC driver\n", 674 platform_get_device_id(pdev)->driver_data); 675 return -ENODEV; 676 } 677 > 678 i2c = devm_i2c_new_dummy_device(&pdev->dev, i2c->adapter, 679 RTC_I2C_ADDR); 680 if (IS_ERR(i2c)) { 681 dev_err(&pdev->dev, "Failed to allocate I2C for RTC\n"); 682 return PTR_ERR(i2c); 683 } 684 685 info->regmap = devm_regmap_init_i2c(i2c, regmap_cfg); 686 if (IS_ERR(info->regmap)) { 687 ret = PTR_ERR(info->regmap); 688 dev_err(&pdev->dev, "Failed to allocate RTC register map: %d\n", 689 ret); 690 return ret; 691 } 692 693 info->dev = &pdev->dev; 694 info->s5m87xx = s5m87xx; 695 info->device_type = platform_get_device_id(pdev)->driver_data; 696 697 if (s5m87xx->irq_data) { 698 info->irq = regmap_irq_get_virq(s5m87xx->irq_data, alarm_irq); 699 if (info->irq <= 0) { 700 dev_err(&pdev->dev, "Failed to get virtual IRQ %d\n", 701 alarm_irq); 702 return -EINVAL; 703 } 704 } 705 706 platform_set_drvdata(pdev, info); 707 708 ret = s5m8767_rtc_init_reg(info); 709 if (ret) 710 return ret; 711 712 info->rtc_dev = devm_rtc_allocate_device(&pdev->dev); 713 if (IS_ERR(info->rtc_dev)) 714 return PTR_ERR(info->rtc_dev); 715 716 info->rtc_dev->ops = &s5m_rtc_ops; 717 718 info->rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_2000; 719 info->rtc_dev->range_max = RTC_TIMESTAMP_END_2099; 720 721 if (!info->irq) { 722 clear_bit(RTC_FEATURE_ALARM, info->rtc_dev->features); 723 } else { 724 ret = devm_request_threaded_irq(&pdev->dev, info->irq, NULL, 725 s5m_rtc_alarm_irq, 0, "rtc-alarm0", 726 info); 727 if (ret < 0) { 728 dev_err(&pdev->dev, "Failed to request alarm IRQ: %d: %d\n", 729 info->irq, ret); 730 return ret; 731 } 732 device_init_wakeup(&pdev->dev, true); 733 } 734 735 return devm_rtc_register_device(info->rtc_dev); 736 } 737 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki