Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5458751rwb; Mon, 21 Nov 2022 23:38:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf7kEqoHJb9mCJchQfM2Q77z8LvmMxUz3JEegjUxfc+xFh8nv/VrDS95kOiJpCnSiSZPC6W0 X-Received: by 2002:a17:90a:7a82:b0:211:55d8:4cdd with SMTP id q2-20020a17090a7a8200b0021155d84cddmr24026812pjf.133.1669102714496; Mon, 21 Nov 2022 23:38:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669102714; cv=none; d=google.com; s=arc-20160816; b=Zf0gzqGYFYwWEIaoykqBuqp5tVY4alBnm62Xuh4QDU6viSjaf2mYj8WmB5a7LKBPTE sHumzv+n6aRPtsEKow6mMkhtn9z33E/UmSQ1XBaGACt81OLZh+USI0arAqHqMAPoEr1f qFNiceYtrNi2lVjRYg+A/xw0tUWtNVavbmyzmLHSToLQfxaagBWbUWXJTPk4VcWIixyx kbjzuMkVOJ/qutQBKC+SqQ6YWRR1R++di+84PEoFbfPMQAjo4+lPzoKKU1yXemUK5gZn e3icUo/E20X22m9qHnIX+buh3+NMwsWtQmXabsrvcde23BwTcl3iWkTNV1jAki54ni4O fomg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=+YQZ2hTVZG//Smv0UAJil8HcNjDm9fqYOaWpiHV3raQ=; b=m6jKCQl9aQ9g2mOp6eAYHciZiaILwKvFdTdYn4lIL4gJePTglCjlB06Dte6G7LKcLs BcQzfCDZJccReJebQX8KXyswsIVx//S5U8+wXRbo5+jcZY9v6xtUZ3BIBMdEn99biRgN gdgnxDDd/27WVivWZA8uVWIwTaMkI8KGO0yIMoQApFGkV32so1rGrZJ68FGXpfvvKH6I aNkDc0nR9GV7OjCApiAdI4v2UWs/TM+z3B0alsxeT7zjs8COcrPFqU9I+0npLjt508JR BaetOVHy5iLvAJ/xQ5USfdOwle9CSDIuzJNIVNfoecz1Yj7Z4KQVyPrnNRIyv+Ki04AL N/Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RIUIkfrI; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iw17-20020a170903045100b00186bb39ff55si301769plb.427.2022.11.21.23.38.21; Mon, 21 Nov 2022 23:38:34 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RIUIkfrI; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229459AbiKVHLP (ORCPT + 91 others); Tue, 22 Nov 2022 02:11:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbiKVHLL (ORCPT ); Tue, 22 Nov 2022 02:11:11 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C56E30F61 for ; Mon, 21 Nov 2022 23:11:10 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id n12so33612210eja.11 for ; Mon, 21 Nov 2022 23:11:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=+YQZ2hTVZG//Smv0UAJil8HcNjDm9fqYOaWpiHV3raQ=; b=RIUIkfrIA9DeE/cXt6YCUZ14WVUaMQTT10RshgDoBVM0bqyZhY99kvEX1J8x0Trsit V/N+2Sn3MZuIEBmwrzUYlfSA+7hF+zw0eEZbW5rsidZnFIiFV43ym5oNIoKwvwzbSrDz 0GRG8b3K7Rw0umPsICLDwJKfgMJmZYx5Yx4+VSFJOS+EPZG1uuvzDWCeTPhackYoGC1e 2KzqByEDOt96I19cl5znJ0yGBUgnns7qJ7bODtMLLJJnSaf/OHyU1sg285qNfiaviy7A /Y2aqvMBmdCxTtVbTX7SJ0phTYROtGb4Nk9bVjn+l9UhrmT8i3C3+59AfZAYGP0g7FTI V9lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=+YQZ2hTVZG//Smv0UAJil8HcNjDm9fqYOaWpiHV3raQ=; b=edC09BJ3TX+7aUFUeQenXMg7BOMJ5bSR42slCEJXbNkTctFYR/S/tYOx8D1wlti8PB 2WPzfygcFh8Pap8JtVehgrWlZ9lx/ZfxP8EPTaCCozXBd0jz9JlpKb5anE7qrni2BMqY fLxeUF2jceqb/A4oXbOp9zt1TEaBlSJG/xaHpEDhL93/GnM4QdGoUn2Firj1RvpTay+i qh0R8fY7C+487nJDJ7MuPZvxH8QLn+UjJgHMZdiA5hIxq6oyG539Zlx56BzZfVhPDeNA 9moaQKUBl3aN1yCo9NduLLJ42E4M+XHmQ4ig2+EbFobHj3iBitqyuB0qkREih+/MZk1X Y40g== X-Gm-Message-State: ANoB5pljv0Z66sKjK7+wD0vZ0vvUefFs+FImSUpy/pcxAq4koTNAery3 +03NYHSGtykRUZUnEU4Dg4I= X-Received: by 2002:a17:906:945a:b0:7a8:3597:34a8 with SMTP id z26-20020a170906945a00b007a8359734a8mr2136771ejx.628.1669101068857; Mon, 21 Nov 2022 23:11:08 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id q16-20020a17090676d000b0077d37a5d401sm5758693ejn.33.2022.11.21.23.11.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Nov 2022 23:11:08 -0800 (PST) Date: Tue, 22 Nov 2022 10:11:05 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, Randy Dunlap Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Palmer Dabbelt , Anup Patel Subject: drivers/cpuidle/cpuidle-riscv-sbi.c:506 sbi_genpd_probe() warn: missing error code 'ret' Message-ID: <202211220541.Ck9NkitJ-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: eb7081409f94a9a8608593d0fb63a1aa3d6f95d8 commit: f81f7861ee2aaa6f652f18e8f622547bdd379724 cpuidle: riscv: support non-SMP config date: 7 months ago config: riscv-randconfig-m031-20221121 compiler: riscv64-linux-gcc (GCC) 12.1.0 If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Reported-by: Dan Carpenter smatch warnings: drivers/cpuidle/cpuidle-riscv-sbi.c:506 sbi_genpd_probe() warn: missing error code 'ret' vim +/ret +506 drivers/cpuidle/cpuidle-riscv-sbi.c 6abf32f1d9c500 Anup Patel 2022-02-10 481 static int sbi_genpd_probe(struct device_node *np) 6abf32f1d9c500 Anup Patel 2022-02-10 482 { 6abf32f1d9c500 Anup Patel 2022-02-10 483 struct device_node *node; 6abf32f1d9c500 Anup Patel 2022-02-10 484 int ret = 0, pd_count = 0; 6abf32f1d9c500 Anup Patel 2022-02-10 485 6abf32f1d9c500 Anup Patel 2022-02-10 486 if (!np) 6abf32f1d9c500 Anup Patel 2022-02-10 487 return -ENODEV; 6abf32f1d9c500 Anup Patel 2022-02-10 488 6abf32f1d9c500 Anup Patel 2022-02-10 489 /* 6abf32f1d9c500 Anup Patel 2022-02-10 490 * Parse child nodes for the "#power-domain-cells" property and 6abf32f1d9c500 Anup Patel 2022-02-10 491 * initialize a genpd/genpd-of-provider pair when it's found. 6abf32f1d9c500 Anup Patel 2022-02-10 492 */ 6abf32f1d9c500 Anup Patel 2022-02-10 493 for_each_child_of_node(np, node) { 6abf32f1d9c500 Anup Patel 2022-02-10 494 if (!of_find_property(node, "#power-domain-cells", NULL)) 6abf32f1d9c500 Anup Patel 2022-02-10 495 continue; 6abf32f1d9c500 Anup Patel 2022-02-10 496 6abf32f1d9c500 Anup Patel 2022-02-10 497 ret = sbi_pd_init(node); 6abf32f1d9c500 Anup Patel 2022-02-10 498 if (ret) 6abf32f1d9c500 Anup Patel 2022-02-10 499 goto put_node; 6abf32f1d9c500 Anup Patel 2022-02-10 500 6abf32f1d9c500 Anup Patel 2022-02-10 501 pd_count++; 6abf32f1d9c500 Anup Patel 2022-02-10 502 } 6abf32f1d9c500 Anup Patel 2022-02-10 503 6abf32f1d9c500 Anup Patel 2022-02-10 504 /* Bail out if not using the hierarchical CPU topology. */ 6abf32f1d9c500 Anup Patel 2022-02-10 505 if (!pd_count) 6abf32f1d9c500 Anup Patel 2022-02-10 @506 goto no_pd; Error code? 6abf32f1d9c500 Anup Patel 2022-02-10 507 6abf32f1d9c500 Anup Patel 2022-02-10 508 /* Link genpd masters/subdomains to model the CPU topology. */ 6abf32f1d9c500 Anup Patel 2022-02-10 509 ret = dt_idle_pd_init_topology(np); 6abf32f1d9c500 Anup Patel 2022-02-10 510 if (ret) 6abf32f1d9c500 Anup Patel 2022-02-10 511 goto remove_pd; 6abf32f1d9c500 Anup Patel 2022-02-10 512 6abf32f1d9c500 Anup Patel 2022-02-10 513 return 0; 6abf32f1d9c500 Anup Patel 2022-02-10 514 6abf32f1d9c500 Anup Patel 2022-02-10 515 put_node: 6abf32f1d9c500 Anup Patel 2022-02-10 516 of_node_put(node); 6abf32f1d9c500 Anup Patel 2022-02-10 517 remove_pd: 6abf32f1d9c500 Anup Patel 2022-02-10 518 sbi_pd_remove(); 6abf32f1d9c500 Anup Patel 2022-02-10 519 pr_err("failed to create CPU PM domains ret=%d\n", ret); 6abf32f1d9c500 Anup Patel 2022-02-10 520 no_pd: 6abf32f1d9c500 Anup Patel 2022-02-10 521 return ret; 6abf32f1d9c500 Anup Patel 2022-02-10 522 } -- 0-DAY CI Kernel Test Service https://01.org/lkp