Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4018561rwd; Sat, 17 Jun 2023 06:12:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5PEiWG0Wz3bn1zQKTK7ZFFYu+DWlA38U9TIaOOwIKalrvT4GS7l1Uo3/u6ZLv0WSQPGzjp X-Received: by 2002:a05:6a20:a111:b0:10a:99a9:cb4b with SMTP id q17-20020a056a20a11100b0010a99a9cb4bmr6612670pzk.12.1687007554583; Sat, 17 Jun 2023 06:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687007554; cv=none; d=google.com; s=arc-20160816; b=IEsr6vNgAyVsVGd09ui6ef4E4MqJzjHfmC1p5NPz46Z62uoE27oXrlXltQXbJOEzDN QEwaQsGw+CuiF+TmgIlPfzNcYX2hyI3N1RrTDve0rQnKBVDh1ZLn4f7RjdHqMN/pqcBr 3eQKa3Kui4lH3NkEMtp8FK2z1O/7Y++u5bRTBA9m22FHe+pd+4QZ2zpVg1UFz20+MgH+ 5m6OPY2gJxvvPWiSxRLY2K/5b8EZTpexlLziNh9TnTCroWrijpUxbm8oVHrVL5rDse1u mVWmIrFXBMFyHcHo3RM1o1rdA5nGgcTehMxIHDPGFqxa2CyFhkS3Uz3iZn70FncqrGEa ZhWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6JomS77/LDNHJZ+NoH4OaeQuCKuoJhi2bdkHFcQ6wps=; b=Q2ljeigsDFtGeMayVP8lWS/TkmmHCf5r7OyTkfSgxZnBOOWb+VN3TIBqZj0Gz9vXKy R7HBPxmE/9j3CxUGED3inIkqfLIdwYPtcTO6kq/2yeQBs0UtK5b4LXYYDHk/kjSk5Vtl zd8wl55MHw72r/H3rUNEAlyHuUQh2dvbbX9adS0JmksZXIxGorqQL4ICWzSc8ZbVltST 7Ntv/HAPTf413k9Pb9c9IBWs0txwtZghckglCeVgfoTBIlCpNV8jPEetOKFoQNBPhmgZ jvkofZiIq5NTz10lsqgfmL0l40XlNOqj/aYZesfRGa3tjxAmkWVuJX7KCwbE1af4Pb8s mm4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FN8Faj1N; 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 y193-20020a6264ca000000b00666e9830c1csi2321565pfb.381.2023.06.17.06.12.22; Sat, 17 Jun 2023 06:12:34 -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=FN8Faj1N; 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 S234574AbjFQLzk (ORCPT + 99 others); Sat, 17 Jun 2023 07:55:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231504AbjFQLzi (ORCPT ); Sat, 17 Jun 2023 07:55:38 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45DAF196; Sat, 17 Jun 2023 04:55:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687002937; x=1718538937; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=G+HfwYIcm+n32dQlKCCmezW1oWNyiT7XDmX66Zx/zos=; b=FN8Faj1NzxnPiXShCJ4UXCM9Q/iLObRfLWEUQoMQPMuVbWPeK3jMfEww llO2sapz/JKLjYsIRivPHuK5naKeabXw+GkyPE7KYETak0s4ajCJqWlqy djEx2d2ey3GvQFTW7tOQNkuRtXehC7zBX9TR1iePdIrecEiF2s2YYMdCs QHRQ4ffHAazNztwuiZlFpO0IpLFf/7tq3WkAHkzM3kIRfNiQzepxA2zCx rX/fMpsK47K8XRhepPjY4BjQ9vJ7ZzLLDb+GhttEHSxZq9ABx1mqhqH3N 5Vd2+JhxJwtssdknSVTS4Y7a7mo4GyVuTz1/xtTJi86EOLh9LN+eV1IxS w==; X-IronPort-AV: E=McAfee;i="6600,9927,10743"; a="358255221" X-IronPort-AV: E=Sophos;i="6.00,250,1681196400"; d="scan'208";a="358255221" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jun 2023 04:55:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10743"; a="690546088" X-IronPort-AV: E=Sophos;i="6.00,250,1681196400"; d="scan'208";a="690546088" Received: from lkp-server01.sh.intel.com (HELO 783282924a45) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 17 Jun 2023 04:55:32 -0700 Received: from kbuild by 783282924a45 with local (Exim 4.96) (envelope-from ) id 1qAUWi-0002jQ-0S; Sat, 17 Jun 2023 11:55:32 +0000 Date: Sat, 17 Jun 2023 19:54:57 +0800 From: kernel test robot To: Frank Oltmanns , Michael Turquette , Stephen Boyd Cc: oe-kbuild-all@lists.linux.dev, Frank Oltmanns , "A.s. Dong" , Abel Vesa , Fabio Estevam , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, NXP Linux Team , Peng Fan , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Elaine Zhang Subject: Re: [PATCH v4 2/2] clk: fractional-divider: tests: Add test suite for edge cases Message-ID: <202306171912.PqJBpGMg-lkp@intel.com> References: <20230617102919.27564-3-frank@oltmanns.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230617102919.27564-3-frank@oltmanns.dev> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Frank, kernel test robot noticed the following build warnings: [auto build test WARNING on clk/clk-next] [also build test WARNING on linus/master v6.4-rc6 next-20230616] [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/Frank-Oltmanns/clk-fractional-divider-Improve-approximation-when-zero-based-and-export/20230617-183118 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next patch link: https://lore.kernel.org/r/20230617102919.27564-3-frank%40oltmanns.dev patch subject: [PATCH v4 2/2] clk: fractional-divider: tests: Add test suite for edge cases config: arm-randconfig-r046-20230617 (https://download.01.org/0day-ci/archive/20230617/202306171912.PqJBpGMg-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230617/202306171912.PqJBpGMg-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/202306171912.PqJBpGMg-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/clk/clk-fractional-divider_test.c: In function 'clk_fd_test_approximation_max_denominator': >> drivers/clk/clk-fractional-divider_test.c:26:48: warning: variable 'max_m' set but not used [-Wunused-but-set-variable] 26 | unsigned long rate, parent_rate, m, n, max_m, max_n; | ^~~~~ drivers/clk/clk-fractional-divider_test.c: In function 'clk_fd_test_approximation_max_denominator_zero_based': drivers/clk/clk-fractional-divider_test.c:88:48: warning: variable 'max_m' set but not used [-Wunused-but-set-variable] 88 | unsigned long rate, parent_rate, m, n, max_m, max_n; | ^~~~~ vim +/max_m +26 drivers/clk/clk-fractional-divider_test.c 15 16 /* 17 * Test the maximum denominator case for fd clock without flags. 18 * 19 * Expect the highest possible denominator to be used in order to get as close as possible to the 20 * requested rate. 21 */ 22 static void clk_fd_test_approximation_max_denominator(struct kunit *test) 23 { 24 struct clk_fractional_divider *fd; 25 struct clk_hw *hw; > 26 unsigned long rate, parent_rate, m, n, max_m, max_n; 27 28 fd = kunit_kzalloc(test, sizeof(*fd), GFP_KERNEL); 29 KUNIT_ASSERT_NOT_NULL(test, fd); 30 31 fd->mwidth = 3; 32 max_m = 7; 33 fd->nwidth = 3; 34 max_n = 7; 35 36 hw = &fd->hw; 37 38 rate = 240000000; 39 parent_rate = (max_n + 1) * rate; /* so that it exceeds the maximum divisor */ 40 41 clk_fractional_divider_general_approximation(hw, rate, &parent_rate, &m, &n); 42 KUNIT_EXPECT_EQ(test, parent_rate, (max_n + 1) * rate); /* parent remains unchanged */ 43 KUNIT_EXPECT_EQ(test, m, 1); 44 KUNIT_EXPECT_EQ(test, n, max_n); 45 } 46 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki