From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FCA2C433B4 for ; Thu, 29 Apr 2021 08:58:37 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A7E676143D for ; Thu, 29 Apr 2021 08:58:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A7E676143D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id C6C216B006C; Thu, 29 Apr 2021 04:58:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BF7D76B006E; Thu, 29 Apr 2021 04:58:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A488E6B0070; Thu, 29 Apr 2021 04:58:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0153.hostedemail.com [216.40.44.153]) by kanga.kvack.org (Postfix) with ESMTP id 8583F6B006C for ; Thu, 29 Apr 2021 04:58:35 -0400 (EDT) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 35DE1180CC191 for ; Thu, 29 Apr 2021 08:58:35 +0000 (UTC) X-FDA: 78084803790.05.30CB346 Received: from userp2130.oracle.com (userp2130.oracle.com [156.151.31.86]) by imf25.hostedemail.com (Postfix) with ESMTP id 9209D600010F for ; Thu, 29 Apr 2021 08:58:29 +0000 (UTC) Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 13T8trx2070813; Thu, 29 Apr 2021 08:58:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : mime-version : content-type; s=corp-2020-01-29; bh=0b/0Diz2GnlfYPZ4TTL0CE+RjshdU0LlukZU950VnJA=; b=C83ihoVysDsUTI1ulfVfmepBody+8AKUrJWEhG8cA9OIwRiv60cEvbtbIe6lp07ShHFy b18XnbplT0xENhIAIhUI/FS4mKWid0LLlsEUQ/S+qRmecyy6hXiVRBPXqs02FrJE45Cs 4CcmO5e7TW+19aw8rMyUqODT72MhyDZnAeE7BWcEOlUI7lFUNelSt74yaKRm3DvHNuDt dls4AA0y1J1MKY21AHG3I7NX+R2HyN/OHDAYODCJ4Xy9Gssods8TgZW3gCIzUF1eUeuy Iaam5WitXKCCBaek0RgER4vk1JYOwYrVbtuyS6IxR6MnvItU0PkjsW7pV0i0SX0SroIT Nw== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 385aft3ks0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Apr 2021 08:58:25 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 13T8udZF124000; Thu, 29 Apr 2021 08:58:25 GMT Received: from pps.reinject (localhost [127.0.0.1]) by userp3020.oracle.com with ESMTP id 384w3vyqvy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Apr 2021 08:58:25 +0000 Received: from userp3020.oracle.com (userp3020.oracle.com [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 13T8wOOd129910; Thu, 29 Apr 2021 08:58:24 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3020.oracle.com with ESMTP id 384w3vyqvh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Apr 2021 08:58:24 +0000 Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 13T8wK2l003857; Thu, 29 Apr 2021 08:58:20 GMT Received: from kadam (/102.36.221.92) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 29 Apr 2021 08:58:20 +0000 Date: Thu, 29 Apr 2021 11:58:13 +0300 From: Dan Carpenter To: kbuild@lists.01.org, Gioh Kim Cc: lkp@intel.com, kbuild-all@lists.01.org, Linux Memory Management List , Jens Axboe , Jack Wang , Leon Romanovsky Subject: [linux-next:master 13667/14048] drivers/infiniband/ulp/rtrs/rtrs-clt.c:2922 rtrs_clt_rdma_cq_direct() error: uninitialized symbol 'cnt'. Message-ID: <202104211107.klEwvRy0-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-GUID: hfuVxaWpDV8p9Tal7v3RZTTPbyq12pt2 X-Proofpoint-ORIG-GUID: hfuVxaWpDV8p9Tal7v3RZTTPbyq12pt2 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9968 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 impostorscore=0 lowpriorityscore=0 mlxlogscore=999 malwarescore=0 phishscore=0 priorityscore=1501 clxscore=1011 spamscore=0 bulkscore=0 suspectscore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104290063 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 9209D600010F X-Stat-Signature: trikubu31dz4j5ce8wsppn9ykdouje8k Received-SPF: none (oracle.com>: No applicable sender policy available) receiver=imf25; identity=mailfrom; envelope-from=""; helo=userp2130.oracle.com; client-ip=156.151.31.86 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1619686709-496937 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 593ef1658ecf61d3619885bdbbcfffa3d1417891 commit: fa607fcb87f6e3dca38b9984c4ccde3e36a43721 [13667/14048] block/rnbd-clt: Support polling mode for IO latency optimization config: x86_64-randconfig-m031-20210420 (attached as .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 smatch warnings: drivers/infiniband/ulp/rtrs/rtrs-clt.c:2922 rtrs_clt_rdma_cq_direct() error: uninitialized symbol 'cnt'. vim +/cnt +2922 drivers/infiniband/ulp/rtrs/rtrs-clt.c fa607fcb87f6e3 Gioh Kim 2021-04-19 2901 int rtrs_clt_rdma_cq_direct(struct rtrs_clt *clt, unsigned int index) fa607fcb87f6e3 Gioh Kim 2021-04-19 2902 { fa607fcb87f6e3 Gioh Kim 2021-04-19 2903 int cnt; fa607fcb87f6e3 Gioh Kim 2021-04-19 2904 struct rtrs_con *con; fa607fcb87f6e3 Gioh Kim 2021-04-19 2905 struct rtrs_clt_sess *sess; fa607fcb87f6e3 Gioh Kim 2021-04-19 2906 struct path_it it; fa607fcb87f6e3 Gioh Kim 2021-04-19 2907 fa607fcb87f6e3 Gioh Kim 2021-04-19 2908 rcu_read_lock(); fa607fcb87f6e3 Gioh Kim 2021-04-19 2909 for (path_it_init(&it, clt); fa607fcb87f6e3 Gioh Kim 2021-04-19 2910 (sess = it.next_path(&it)) && it.i < it.clt->paths_num; it.i++) { fa607fcb87f6e3 Gioh Kim 2021-04-19 2911 if (READ_ONCE(sess->state) != RTRS_CLT_CONNECTED) fa607fcb87f6e3 Gioh Kim 2021-04-19 2912 continue; What if no sessions are connected? So we dont enter the loop or we hit continue every time? fa607fcb87f6e3 Gioh Kim 2021-04-19 2913 fa607fcb87f6e3 Gioh Kim 2021-04-19 2914 con = sess->s.con[index + 1]; fa607fcb87f6e3 Gioh Kim 2021-04-19 2915 cnt = ib_process_cq_direct(con->cq, -1); fa607fcb87f6e3 Gioh Kim 2021-04-19 2916 if (cnt) fa607fcb87f6e3 Gioh Kim 2021-04-19 2917 break; fa607fcb87f6e3 Gioh Kim 2021-04-19 2918 } fa607fcb87f6e3 Gioh Kim 2021-04-19 2919 path_it_deinit(&it); fa607fcb87f6e3 Gioh Kim 2021-04-19 2920 rcu_read_unlock(); fa607fcb87f6e3 Gioh Kim 2021-04-19 2921 fa607fcb87f6e3 Gioh Kim 2021-04-19 @2922 return cnt; fa607fcb87f6e3 Gioh Kim 2021-04-19 2923 } --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org