Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5401469rwr; Tue, 9 May 2023 00:30:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6tLpxccMh1DUcK+iKithHq3Eby1B3VCOYjECoGH3f1MV1yaRM1WQh+7hqPmhqSfUAjat9v X-Received: by 2002:a05:6a20:c705:b0:ef:f558:b7d with SMTP id hi5-20020a056a20c70500b000eff5580b7dmr13815690pzb.59.1683617404656; Tue, 09 May 2023 00:30:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683617404; cv=none; d=google.com; s=arc-20160816; b=FPARDUWBxV/3311aXA/WfYK8v37LW7rn0PrQMSWcarVsyr+geJJdxhG+V3k++zaoGn sYfasmo1gprLw2tleSeSAhs9lvAUKvB1QBy0cVXEDHJLbaX6Xi9WybxQIoXrMSk2eHkH fDTCyhjJo2RC9YsAMXOzggS/WVmIKAsKEkH6MeN9nn2lwTpk2cSn0tuuj1QOdk8dpoFn Gsv7NFtSB9BTko66jmogVM/mtpi1JEzi751GeALjeAvyhTG6gaGl+t8KBiotDDFLVqZh PH+J5zOxwmbaqad9U8PPHPFVEw14MWMIYEf71EqynodmKtMkq23OVqYOM3uprVAqPLCV 7y+Q== 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; bh=1+IuSAY02nDrd/pXvmVAWSaa/2xIReyNtZJu3Dm2b/U=; b=ge/+ptRUJ1z/V96ZAdenhWPw0i/Fe8SSmEgmGj8Xh9icXX0wxN04c4XYAxyAQ1saD/ HKFLgBBoBPbsrhlnIBbXQUxrpopgqQRp+KhNrQXhYCy0k1S+sUtw2xg7rkjP3NcpwWvq qGhkpPzOJF86Avg2eISd+bWN6hEVDS3iKBgNhBYqDHK61xwtuJABDEfRAKne4hwyvV/n tda6YHagH1RNNVPK6+Fg+L5S/BFz69+IUyCztOiZjkC7TTaIKIuxUMT16Pjk7C3Rg5bg R1yCMOZuzzXjdGZWtPIEsZa0H4J5T82VX7Iqt3kQd1/xC75nMkYhekIkV1dhe/M1gPbr /l2A== 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 b5-20020a62cf05000000b0063a149e3c85si1734697pfg.401.2023.05.09.00.29.50; Tue, 09 May 2023 00:30:04 -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; 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 S235131AbjEIG6Q (ORCPT + 99 others); Tue, 9 May 2023 02:58:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235173AbjEIG6F (ORCPT ); Tue, 9 May 2023 02:58:05 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E1B10D071; Mon, 8 May 2023 23:57:59 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 47CD6804D; Tue, 9 May 2023 06:57:59 +0000 (UTC) Date: Tue, 9 May 2023 09:57:58 +0300 From: Tony Lindgren To: kernel test robot Cc: Greg Kroah-Hartman , Jiri Slaby , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Andy Shevchenko , Dhruva Gole , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH v10 1/1] serial: core: Start managing serial controllers to enable runtime PM Message-ID: <20230509065758.GZ14287@atomide.com> References: <20230508110339.38699-1-tony@atomide.com> <202305090752.w4XZxmsN-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202305090752.w4XZxmsN-lkp@intel.com> 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 * kernel test robot [230508 23:13]: > >> drivers/tty/serial/serial_base_bus.c:97:13: warning: variable 'id' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] > } else if (type == &serial_port_type) { > ^~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/tty/serial/serial_base_bus.c:102:77: note: uninitialized use occurs here > err = dev_set_name(&sbd->dev, "%s.%s.%d", type->name, dev_name(port->dev), id); > ^~ > drivers/tty/serial/serial_base_bus.c:97:9: note: remove the 'if' if its condition is always true > } else if (type == &serial_port_type) { > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/tty/serial/serial_base_bus.c:83:13: note: initialize the variable 'id' to silence this warning > int err, id; > ^ > = 0 > 1 warning generated. Thanks I'll just add else goto err_free_dev for unknown types. Regards, Tony