Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2495554rdb; Sun, 3 Dec 2023 21:01:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBZenufMiHz4iKQoJWFh55U5jz4J52q6rVtD8xskPUxoOmRr9/nSsMxSqwj+XcIE9Ia/gy X-Received: by 2002:a17:902:76cc:b0:1cc:bf6b:f3b1 with SMTP id j12-20020a17090276cc00b001ccbf6bf3b1mr969875plt.37.1701666076495; Sun, 03 Dec 2023 21:01:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701666076; cv=none; d=google.com; s=arc-20160816; b=oCKiRVSH/nk511eg5xoibDJ+b4UMnfjfVP/kknKDGUDHcwkIBJ4VMzje2FWYDGOaBH /Xj5XxV5T5GNOeixCzatW73YCeBoxC98bqsUZyMh0UNnIHr8m3R7bSobXvZKbRIKOrTY 0sKp5GQbx+lNsR28SxO3v3EHFbJyQdIA3jMIekb5YqH4jU8DCva8a4urSc7E6p3sUGbd XDZCGtR9hrSEoqqRMKpHkAjLaRaS5iSo+s5mFcZTI0JyiThpBdTW3yHu5OVst6PSTdji BUmMvFsazKoe9+z/XmaPIVSLDOPLvfFOReN98wBmirbycciPZcsLqrPREn8SuKYd67uM HGzw== 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-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=ru/NPj09V1ASiEGDCszqcY2Rb4Q+L/jQQ4h1Ot3L8XU=; fh=nyUs4i48QfYfnpR1A38kMumOy5chYWysjKgCzinv0sc=; b=jNb1IL/XdEX9EM7eFNTR3VSAPxQ1kYTZDkeIW+55KSTc6xby06aHAh8ZXVhcvtar/M mRY2onnjTlE+nIjKxCCVNaBTSiLTMajn38fnGnJmh3Pow6PDditjvN0sKH8MqYPTRRq9 KH9/A4iMhphVW420UiTelYJvJoG3kfaMRKK3CbzshruI6YarLBLj6wj7eKvoKHZrSk6L IHz8Pu/7ecudieLKa1XPA/MirD+bDkQctk+3xMH0UV9y8Z7DlEJv9TpVaGXLIRavCf48 0EQQe8huz8xY6AmGDTAMAzIz60N0WxDAQ9M+RVks+EXuoo5VM/uKDOsdSTstrdO1tsH3 AOkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fRdzqUSJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id x22-20020a170902821600b001cfd52a2266si4313870pln.403.2023.12.03.21.01.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 21:01:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fRdzqUSJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 17BBE807D579; Sun, 3 Dec 2023 21:00:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229869AbjLDFAc (ORCPT + 99 others); Mon, 4 Dec 2023 00:00:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjLDFAa (ORCPT ); Mon, 4 Dec 2023 00:00:30 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 098EEE6 for ; Sun, 3 Dec 2023 21:00:37 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-40b2ddab817so41377375e9.3 for ; Sun, 03 Dec 2023 21:00:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701666033; x=1702270833; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=ru/NPj09V1ASiEGDCszqcY2Rb4Q+L/jQQ4h1Ot3L8XU=; b=fRdzqUSJVk+LuT3rPfr+CyqFGUuBdjbJEEFxA7UYPRFGyC2T/gygOCQaMdghvXA02g QFsz1TmxxBIb4oCN71Y4W2xl+LImsXA5mXBZYkoQ0UjHaSpcKvv4z8mn1AYK6VwpY0pp SfTKIDwpaJxNl6EU5XtX5aLhfXMqxjkG7iMdNPDFHLjZM7lBeEpuc9HmOhCFW7wc0OSL Vuv5QfBigVJxsHuESIwPNefyFiWSu3tBWBMiumMCKCHg5aOl37n5w9gdOEXfhkDCwUDf 5yLA7WRAgGpD+hcOBAo0jOOIvLvzHc/27yqIrB5PDpkq1yVyj1c/1E3dFVXKnzkfgNcq Z2Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701666033; x=1702270833; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ru/NPj09V1ASiEGDCszqcY2Rb4Q+L/jQQ4h1Ot3L8XU=; b=LJUu3Xq39L59yWFdOLG7Csqm0N5QRNkZ2HkKBFPtjqbHYigHxJXdmSUyMiS26r0Pxm NJVWo8xN3KRn2EIn+0RhJ6NzxyyFJaGzbTtmlGfd+7zYk2+9KhoX1sTKfXAlF55Lba8E Ojasxs6lO1ZRDiAqCwAZjC9AZCLavaB69u2q2MP9ZLGvID3CVVJHjJSm+oJSr/t7xKt8 becexLemwinv4fO43KtlE35HCzlLvXJ9N+DVZPgebBWn/zlLD7E8Hgqq5u/V5OUGqFfB 7Uttbq2LAJb8jaye5WSYc2avq1HuTiJ/f4Xf3tkhIJA6qDqrM5MeiqH75NcIG5EJqQo/ 71wQ== X-Gm-Message-State: AOJu0YwUfZcKi8wIoaH3R8QJOUbZ0NsmT9HqV6wqd7SMF5/O8+CcOMdi 3EoLVigtMeCffUUy9sq62kge4w== X-Received: by 2002:a7b:ce8b:0:b0:40b:5e59:daa3 with SMTP id q11-20020a7bce8b000000b0040b5e59daa3mr1958418wmj.182.1701666033441; Sun, 03 Dec 2023 21:00:33 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id o15-20020a05600c510f00b004064cd71aa8sm12143279wms.34.2023.12.03.21.00.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 21:00:32 -0800 (PST) Date: Mon, 4 Dec 2023 08:00:29 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, Rasmus Villemoes , Greg Kroah-Hartman , Jiri Slaby Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, devicetree@vger.kernel.org, Andy Shevchenko , Lukas Wunner , Rasmus Villemoes , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH 2/2] serial: core: implement support for rs485-mux-gpios Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231120151056.148450-3-linux@rasmusvillemoes.dk> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 03 Dec 2023 21:00:50 -0800 (PST) Hi Rasmus, kernel test robot noticed the following build warnings: https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Rasmus-Villemoes/dt-bindings-serial-rs485-add-rs485-mux-gpios-binding/20231120-231551 base: v6.7-rc2 patch link: https://lore.kernel.org/r/20231120151056.148450-3-linux%40rasmusvillemoes.dk patch subject: [PATCH 2/2] serial: core: implement support for rs485-mux-gpios config: hexagon-randconfig-r071-20231121 (https://download.01.org/0day-ci/archive/20231203/202312031811.pmLZJIf5-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce: (https://download.01.org/0day-ci/archive/20231203/202312031811.pmLZJIf5-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 | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202312031811.pmLZJIf5-lkp@intel.com/ New smatch warnings: drivers/tty/serial/serial_core.c:3651 uart_get_rs485_mode() warn: passing zero to 'PTR_ERR' Old smatch warnings: drivers/tty/serial/serial_core.c:2996 iomem_base_show() warn: argument 3 to %lX specifier is cast from pointer vim +/PTR_ERR +3651 drivers/tty/serial/serial_core.c 7cda0b9eb6eb9e Andy Shevchenko 2023-10-03 3641 dflags = (rs485conf->flags & SER_RS485_RX_DURING_TX) ? 163f080eb717d2 Christoph Niedermaier 2022-12-02 3642 GPIOD_OUT_HIGH : GPIOD_OUT_LOW; 7cda0b9eb6eb9e Andy Shevchenko 2023-10-03 3643 desc = devm_gpiod_get_optional(dev, "rs485-rx-during-tx", dflags); 7cda0b9eb6eb9e Andy Shevchenko 2023-10-03 3644 if (IS_ERR(desc)) 7cda0b9eb6eb9e Andy Shevchenko 2023-10-03 3645 return dev_err_probe(dev, PTR_ERR(desc), "Cannot get rs485-rx-during-tx-gpios\n"); 7cda0b9eb6eb9e Andy Shevchenko 2023-10-03 3646 port->rs485_rx_during_tx_gpio = desc; 163f080eb717d2 Christoph Niedermaier 2022-12-02 3647 da0ccd117da1e4 Rasmus Villemoes 2023-11-20 3648 dflags = (rs485conf->flags & SER_RS485_ENABLED) ? GPIOD_OUT_HIGH : GPIOD_OUT_LOW; da0ccd117da1e4 Rasmus Villemoes 2023-11-20 3649 desc = devm_gpiod_get_optional(dev, "rs485-mux", dflags); da0ccd117da1e4 Rasmus Villemoes 2023-11-20 3650 if (IS_ERR(desc)) da0ccd117da1e4 Rasmus Villemoes 2023-11-20 @3651 return dev_err_probe(dev, PTR_ERR(port->rs485_mux_gpio), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ s/port->rs485_mux_gpio/desc/ da0ccd117da1e4 Rasmus Villemoes 2023-11-20 3652 "Cannot get rs485-mux-gpios\n"); da0ccd117da1e4 Rasmus Villemoes 2023-11-20 3653 port->rs485_mux_gpio = desc; da0ccd117da1e4 Rasmus Villemoes 2023-11-20 3654 c150c0f362c1e5 Lukas Wunner 2020-05-12 3655 return 0; ef838a81dd4de1 Uwe Kleine-K?nig 2017-09-13 3656 } -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki