Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2980973rdg; Tue, 17 Oct 2023 00:13:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHKQIOcr4amnMH+eR07CtkqQXwJ4zzTLJU+l43zaVAiGGpOKzgUlGqmdTRoDYTVEdJI2JQE X-Received: by 2002:a17:90a:e393:b0:27d:63f1:2d24 with SMTP id b19-20020a17090ae39300b0027d63f12d24mr1644505pjz.0.1697526817364; Tue, 17 Oct 2023 00:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697526817; cv=none; d=google.com; s=arc-20160816; b=jd3+uh1QmI7fSRVqVpvcy6P7mA1bsj1hayVwbA3l3N22UYDOQzBpY8qVXlfEmrksRi oI0rqZ9TDyX3PfFnQs6qE4FcDoNYJYHy6k9QpUpXt3ufJ89yoE6B6pInKjgU9+L+0/BZ +1GB212CW+axGjE2JWltCuHUF6FIjigfp2H7owozJkCXcL+cL0eOcL4zsnoYTq7gMMsi 9RVHytrnotcsvb3zK4kh2eRSbNDLhRmatxj51gFOplxQoo7wNpkbX5Q1CoRGCiTQHo7h nksjgSN8ufSvt3JHIiP1gja0VO1drRz5wV6/ijfM3SdmkvMv8J4i0smBFeuOy3xZiE7V M86A== 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:dkim-signature; bh=/Cp4sIDZuAHttjW5/d3HS3AQcLSYmKIlzLvLFO8m9yQ=; fh=Go/hXhE4YwiPU4tp+Z0WR7xPbTLcIVvyjXV2ofX1vSo=; b=kh6t8tzUmHKytsVB9ki8W6x5VWX71ZF7AyV8kngfo+IT6Is/IlRWLQP+T5UgenU1ZD jz0jMkIyJf+C3+PvJv/CR78NeEW9Y9IZ8JMqUpITnnKy/a0PBuAhOxa5mXd5GYsh6vo3 hBIWu0iqI7e0UdHmz+36aJ8ARSMEKA3/LHwbiAh+la5h7sziBmye5LhbPDowdaBOrzSW KQx1MrVby9VX23kdaTTAbpvx0VNFbawtc02xh4/hp024+adzXKn29cDUBIb4ioNhgjfG oi8tAjCR6COr2swCOiqhwbMnCDjTlVOJTWj8/gTM3l+DH0IgqjTN/4IyRs9twLrTXhf6 ld2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fGS01ESE; 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=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id ie9-20020a17090b400900b0027491203b43si7555746pjb.189.2023.10.17.00.13.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 00:13:37 -0700 (PDT) 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=@intel.com header.s=Intel header.b=fGS01ESE; 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=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 85D4B80B189A; Tue, 17 Oct 2023 00:13:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234536AbjJQHNY (ORCPT + 99 others); Tue, 17 Oct 2023 03:13:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234422AbjJQHNX (ORCPT ); Tue, 17 Oct 2023 03:13:23 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57CF795 for ; Tue, 17 Oct 2023 00:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697526802; x=1729062802; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=OcjndigWoYUZeEtnMbkIadupo5rOMlyozMHNgpWU4zg=; b=fGS01ESE9PvAPgdWTeu7zHtDCn6StInYHfkOACP2VxPKSW0KadsjP92n nOr9GP+tV6b6eQz5gWDbKdhF4xTEL3KrZZEUxDBmTLgt7MKOeniP0a2Or LQ2+vYWdjs4zWC+jmbgpFbZkf1dwjYw3XHUgnDNmR/OAJM2j/+ygSwn13 MBv/xjgCAy2529Gp8TmA9fERLau5ReWNH4t7t6P1kjfkEuXf0JB8a9xVe Aa4JV1KKG/U07HQ/la2lZDfrJUeC8d4rzx26T7yhN8j+VHQWDaxhRIVRk IyEN7bFlwjlycTbw6dYAE0ysQyRdYjdqlHiaf53HDIuRGSeNYTv/HW7yq Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="452193851" X-IronPort-AV: E=Sophos;i="6.03,231,1694761200"; d="scan'208";a="452193851" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2023 00:13:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="826325363" X-IronPort-AV: E=Sophos;i="6.03,231,1694761200"; d="scan'208";a="826325363" Received: from lkp-server02.sh.intel.com (HELO f64821696465) ([10.239.97.151]) by fmsmga004.fm.intel.com with ESMTP; 17 Oct 2023 00:13:19 -0700 Received: from kbuild by f64821696465 with local (Exim 4.96) (envelope-from ) id 1qseGT-0009E3-27; Tue, 17 Oct 2023 07:13:17 +0000 Date: Tue, 17 Oct 2023 15:12:20 +0800 From: kernel test robot To: KaiLong Wang , mark@fasheh.com, jlbec@evilplan.org, akpm@linux-foundation.org Cc: oe-kbuild-all@lists.linux.dev, ocfs2-devel@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ocfs2/dlm: Clean up errors in dlmdomain.c Message-ID: <202310171436.cr0GHO3X-lkp@intel.com> References: <62e91e34.969.18b27f9ec40.Coremail.wangkailong@jari.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <62e91e34.969.18b27f9ec40.Coremail.wangkailong@jari.cn> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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]); Tue, 17 Oct 2023 00:13:34 -0700 (PDT) Hi KaiLong, kernel test robot noticed the following build warnings: [auto build test WARNING on akpm-mm/mm-everything] [also build test WARNING on linus/master v6.6-rc6 next-20231017] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/KaiLong-Wang/ocfs2-dlm-Clean-up-errors-in-dlmdomain-c/20231017-115916 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/62e91e34.969.18b27f9ec40.Coremail.wangkailong%40jari.cn patch subject: [PATCH] ocfs2/dlm: Clean up errors in dlmdomain.c config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20231017/202310171436.cr0GHO3X-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231017/202310171436.cr0GHO3X-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202310171436.cr0GHO3X-lkp@intel.com/ All warnings (new ones prefixed by >>): fs/ocfs2/dlm/dlmdomain.c: In function 'dlm_alloc_pagevec': >> fs/ocfs2/dlm/dlmdomain.c:78:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 78 | for (i = 0; i < pages; i++) | ^~~ fs/ocfs2/dlm/dlmdomain.c:80:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 80 | if (!(vec[i])) | ^~ vim +/for +78 fs/ocfs2/dlm/dlmdomain.c 03d864c02c3ea8 Daniel Phillips 2006-03-10 69 03d864c02c3ea8 Daniel Phillips 2006-03-10 70 static void **dlm_alloc_pagevec(int pages) 03d864c02c3ea8 Daniel Phillips 2006-03-10 71 { 6da2ec56059c3c Kees Cook 2018-06-12 72 void **vec = kmalloc_array(pages, sizeof(void *), GFP_KERNEL); 03d864c02c3ea8 Daniel Phillips 2006-03-10 73 int i; 03d864c02c3ea8 Daniel Phillips 2006-03-10 74 03d864c02c3ea8 Daniel Phillips 2006-03-10 75 if (!vec) 03d864c02c3ea8 Daniel Phillips 2006-03-10 76 return NULL; 03d864c02c3ea8 Daniel Phillips 2006-03-10 77 03d864c02c3ea8 Daniel Phillips 2006-03-10 @78 for (i = 0; i < pages; i++) 8586048e6e9be0 KaiLong Wang 2023-10-13 79 vec[i] = (void *)__get_free_page(GFP_KERNEL); 8586048e6e9be0 KaiLong Wang 2023-10-13 80 if (!(vec[i])) 03d864c02c3ea8 Daniel Phillips 2006-03-10 81 goto out_free; c8f33b6e86af74 Joel Becker 2006-03-16 82 685f1adb3872d9 Mark Fasheh 2006-03-23 83 mlog(0, "Allocated DLM hash pagevec; %d pages (%lu expected), %lu buckets per page\n", f5a923d1ba648b Mark Fasheh 2006-11-28 84 pages, (unsigned long)DLM_HASH_PAGES, f5a923d1ba648b Mark Fasheh 2006-11-28 85 (unsigned long)DLM_BUCKETS_PER_PAGE); 03d864c02c3ea8 Daniel Phillips 2006-03-10 86 return vec; 03d864c02c3ea8 Daniel Phillips 2006-03-10 87 out_free: 03d864c02c3ea8 Daniel Phillips 2006-03-10 88 dlm_free_pagevec(vec, i); 03d864c02c3ea8 Daniel Phillips 2006-03-10 89 return NULL; 03d864c02c3ea8 Daniel Phillips 2006-03-10 90 } 03d864c02c3ea8 Daniel Phillips 2006-03-10 91 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki