Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp354628pxb; Thu, 17 Feb 2022 05:43:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNW98S4muREwiwz7HpdVM5iilnaN98QOA4udMdvCPQJU45jSsKWJLbJky3bF4bOLvimdpw X-Received: by 2002:a17:906:2a1b:b0:6ce:a15b:a561 with SMTP id j27-20020a1709062a1b00b006cea15ba561mr2476128eje.403.1645105422831; Thu, 17 Feb 2022 05:43:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645105422; cv=none; d=google.com; s=arc-20160816; b=qX26w2o3a1FBFnfCMChS2s6uVICI1BZAIo8/lysTnDErKIIKCos2oUbp6wHMMjTP1O uUUp/9hwHIkBn+r0wZ2UdQtT1nk6NU+Z+WLGBenve9d4WhDXKS6Aka3IlUkcfz1wYNrA 5dBa7a12UuRB63i/D9wfboemGfK7LrKya5lZcT4BE0lDrYJ1lXqyzfPwwGdcA/UrMEeo q/A3Rs9706xLHeYsa7oMnVSOL2t4UnCKO5pvHZbEqeETmfvukxCkSB1OqtyX7A35h7hz K2d9PcWfNq/oWj6JGNvCiyjUjlpugDoukHTn7RDsDKh8PsAIZGZprQ171D3eAI0v6+Ur duJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=OIdkRLIafwB+9DOERB88I8pUvpI7eOIn+QqYZfdUyY0=; b=ShQutdUesYfk/k8aT+L5Wv/LONRnPnWBPTMHztIPk1X3Af/O9fFm7DE2ChZSI22lmG IAzpheDcPw2nJJY3nJ1tpB30YAsqb96YjiehGxWTcYQLg02HGwqjm2/kAJvDcFuq0xKq GkrW+90BUTFCvj8ThTlbz87gc7ffVtAARSpX+iVNazFR6ytZY3NW5AZ1PW8aacbhqctO Ones9N7bqJXNssEQohxUe4yx4nV+BbUyaPQAAV7jUQfVv+MvlFE5GiL2spTxpwP9ImYo BaTZ1aLW5zHhzyZWkWYjU7MOuWYHTuKz4hlhnsfn3QDeY94DxFSaHb0tJHFDo93PssBc vTuQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 5si1767833edx.36.2022.02.17.05.43.16; Thu, 17 Feb 2022 05:43:42 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238861AbiBQMGR (ORCPT + 99 others); Thu, 17 Feb 2022 07:06:17 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240230AbiBQMGP (ORCPT ); Thu, 17 Feb 2022 07:06:15 -0500 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 166C92AD667; Thu, 17 Feb 2022 04:06:00 -0800 (PST) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 2CB5692009D; Thu, 17 Feb 2022 13:05:58 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 2664092009C; Thu, 17 Feb 2022 12:05:58 +0000 (GMT) Date: Thu, 17 Feb 2022 12:05:58 +0000 (GMT) From: "Maciej W. Rozycki" To: Dan Carpenter , Greg Kroah-Hartman cc: kbuild@lists.01.org, Jiri Slaby , lkp@intel.com, kbuild-all@lists.01.org, Andy Shevchenko , Mike Skoog , Mike Korreng , info@endruntechnologies.com, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] serial: 8250: Add proper clock handling for OxSemi PCIe devices In-Reply-To: <202202130027.ZKBCgtm5-lkp@intel.com> Message-ID: References: <202202130027.ZKBCgtm5-lkp@intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 On Thu, 17 Feb 2022, Dan Carpenter wrote: > url: https://github.com/0day-ci/linux/commits/Maciej-W-Rozycki/serial-8250-Fixes-for-Oxford-Semiconductor-950-UARTs/20220212-164255 > base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing > config: x86_64-randconfig-m001 (https://download.01.org/0day-ci/archive/20220213/202202130027.ZKBCgtm5-lkp@intel.com/config) > compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > Reported-by: Dan Carpenter > > New smatch warnings: > drivers/tty/serial/8250/8250_pci.c:1171 pci_oxsemi_tornado_get_divisor() error: uninitialized symbol 'tcr'. > drivers/tty/serial/8250/8250_pci.c:1172 pci_oxsemi_tornado_get_divisor() error: uninitialized symbol 'quot'. > drivers/tty/serial/8250/8250_pci.c:1180 pci_oxsemi_tornado_get_divisor() error: uninitialized symbol 'cpr'. These variables do get assigned to in the first iteration of the loop, because the deviation calculated (`srem') is normalised to the range of [0,spre/2] and that divided by the original divisor (`spre') always works out at within [0,0.5], so `squot' will be within [0,32768]. I guess the static analyser is too dumb to figure it out, so I'll see how to paper it over unless someone has a better proposal. Greg: shall I send an update patch or a replacement v4 of the series? Maciej