Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3015481iob; Mon, 16 May 2022 11:06:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoKsXIBv6boH9y5vgkZSq7aqQ2PVcwL2cqDcrNSQYXGVA8UyH8y/cn8oJ3+cMlBOwlqY0T X-Received: by 2002:a05:6402:3485:b0:427:cde4:2097 with SMTP id v5-20020a056402348500b00427cde42097mr14854216edc.264.1652724383112; Mon, 16 May 2022 11:06:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652724383; cv=none; d=google.com; s=arc-20160816; b=dUlN6rC1eGsEc5f4GVOsW1yQwTAR0gXxEwOkHMvuL1MrC05LY4EQFHT0nNUa8MW2Fm ZvVKdUXg/Ofyi9Dm37qPOOlCK3kiLaohwZ7DODeSFMLjj8HzF3Ba9WMMvnOz+RwDcH/v adT5ObCx6dVhpIds8l3+OHWNW31dVQ5MrYM9omluaH7qj1diMPR3uvip1jeI0gLWLOu8 ghmngTZIff6XOaI8wD3kux2QHDoSMw8F+o/bXUsT8Gn7e/gzeclRb0WblJc03VgyGx1g TK7dB9Qh6khKwjF63Dw4nDKP/IPxw8UBQjYl3XGqolQiTsi5cyTCI5PA1zeeLUzcqd5q iOMw== 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=IRH1P70NpND9FXhKPrlcZlMoxs+1IDy69MRztPD9Umw=; b=vOILAyU7DQ/tDdWczh2YuzzCg2Oq/pXxjqGjcPcoLTGxCxxsZNih9x6xs9lS9mPYQ/ epcjW0wGwTmGrbe+g2TLpVlaz9oCFUKE7fg57S4BCs6m2wProNUjxFKPl/Od2wjes7BN emFPETw+nQHJ/Ol3lNGR1hOF1Bulnmg3hTttcJ6psMME1tExx1lRQAUfEwIIcD2tZTDQ jyGWUDU7/2RasHYY7e4bS4TepI5siKrxRGq9hEegbWmqeParj4gm/sDMQBvsWC9+4Rq7 RIxxSwJ9d6OEjOvfFl580mD/XFF8rZc7Z5t5TkBQ6u25257lff7Tv7U/MyRGZJvpnE0c snVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eMuxa1GX; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb12-20020a1709077e8c00b006e812fe9f78si41478ejc.461.2022.05.16.11.05.51; Mon, 16 May 2022 11:06:23 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=eMuxa1GX; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245531AbiEPQBq (ORCPT + 99 others); Mon, 16 May 2022 12:01:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245487AbiEPQBn (ORCPT ); Mon, 16 May 2022 12:01:43 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DABF62BEA for ; Mon, 16 May 2022 09:01:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652716901; x=1684252901; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=fBNoPYC+AzPfsuy4pnV76WxKwm4bho5IO8lAkn5pzEU=; b=eMuxa1GXo8ZQQOndLxUvTAju8TiMAgA6s34JUG0nZSPcsvvWC4GPmy2b BqIoqkavbuaynFLSxOD2y/j0JdeznihgBrFoqxgQCGXpQ7NlToLK2/+5H H3wyCTzlqiZaR3ED6ub7XscR7flKQ+flGTvPd3ViONoU+/Y38WN5C9QAD qSunNWW4+CLV0A0D6v4EVjLulqcab3z4VqAiV/jSYXvVNa00n6LJzzgdJ F32JQa/vqnER/rubkzP7VBAgD4DTDb4/vc9739waa+pw9z15UQ5e2tTdG h8Oz29+qbkcSh//ojxFHlgggMC8He6Po6jOfI46KHWl/adrUoh4rH2921 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10349"; a="258443335" X-IronPort-AV: E=Sophos;i="5.91,230,1647327600"; d="scan'208";a="258443335" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2022 09:01:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,230,1647327600"; d="scan'208";a="574076757" Received: from lkp-server02.sh.intel.com (HELO 242b25809ac7) ([10.239.97.151]) by fmsmga007.fm.intel.com with ESMTP; 16 May 2022 09:01:37 -0700 Received: from kbuild by 242b25809ac7 with local (Exim 4.95) (envelope-from ) id 1nqdA8-0000Ag-O2; Mon, 16 May 2022 16:01:36 +0000 Date: Tue, 17 May 2022 00:01:13 +0800 From: kernel test robot To: Hsin-Yi Wang , Phillip Lougher , Matthew Wilcox , Xiongwei Song Cc: kbuild-all@lists.01.org, Zheng Liang , Zhang Yi , Hou Tao , Miao Xie , Andrew Morton , Linux Memory Management List , "squashfs-devel @ lists . sourceforge . net" , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] squashfs: implement readahead Message-ID: <202205162301.zVca8ZpM-lkp@intel.com> References: <20220516105100.1412740-3-hsinyi@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220516105100.1412740-3-hsinyi@chromium.org> X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Hi Hsin-Yi, Thank you for the patch! Yet something to improve: [auto build test ERROR on next-20220513] [cannot apply to akpm-mm/mm-everything v5.18-rc7 v5.18-rc6 v5.18-rc5 v5.18-rc7] [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] url: https://github.com/intel-lab-lkp/linux/commits/Hsin-Yi-Wang/Implement-readahead-for-squashfs/20220516-185438 base: 1e1b28b936aed946122b4e0991e7144fdbbfd77e config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20220516/202205162301.zVca8ZpM-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 11.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/573e1f2ced0df097c30c595d5bf5a9e7a5fcb8d5 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Hsin-Yi-Wang/Implement-readahead-for-squashfs/20220516-185438 git checkout 573e1f2ced0df097c30c595d5bf5a9e7a5fcb8d5 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): fs/squashfs/file.c: In function 'squashfs_readahead': >> fs/squashfs/file.c:526:17: error: implicit declaration of function 'squashfs_page_actor_init_special'; did you mean 'squashfs_page_actor_init'? [-Werror=implicit-function-declaration] 526 | actor = squashfs_page_actor_init_special(pages, max_pages, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | squashfs_page_actor_init fs/squashfs/file.c:526:15: warning: assignment to 'struct squashfs_page_actor *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 526 | actor = squashfs_page_actor_init_special(pages, max_pages, 0); | ^ fs/squashfs/file.c: At top level: >> fs/squashfs/file.c:577:9: error: request for member 'readahead' in something not a structure or union 577 | .readahead = squashfs_readahead | ^ cc1: some warnings being treated as errors vim +526 fs/squashfs/file.c 498 499 static void squashfs_readahead(struct readahead_control *ractl) 500 { 501 struct inode *inode = ractl->mapping->host; 502 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; 503 size_t mask = (1UL << msblk->block_log) - 1; 504 size_t shift = msblk->block_log - PAGE_SHIFT; 505 loff_t req_end = readahead_pos(ractl) + readahead_length(ractl); 506 loff_t start = readahead_pos(ractl) &~ mask; 507 size_t len = readahead_length(ractl) + readahead_pos(ractl) - start; 508 struct squashfs_page_actor *actor; 509 unsigned int nr_pages = 0; 510 struct page **pages; 511 u64 block = 0; 512 int bsize, res, i, index; 513 int file_end = i_size_read(inode) >> msblk->block_log; 514 unsigned int max_pages = 1UL << shift; 515 516 readahead_expand(ractl, start, (len | mask) + 1); 517 518 if (readahead_pos(ractl) + readahead_length(ractl) < req_end || 519 file_end == 0) 520 return; 521 522 pages = kmalloc_array(max_pages, sizeof(void *), GFP_KERNEL); 523 if (!pages) 524 return; 525 > 526 actor = squashfs_page_actor_init_special(pages, max_pages, 0); 527 if (!actor) 528 goto out; 529 530 for (;;) { 531 nr_pages = __readahead_batch(ractl, pages, max_pages); 532 if (!nr_pages) 533 break; 534 535 if (readahead_pos(ractl) >= i_size_read(inode) || 536 nr_pages < max_pages) 537 goto skip_pages; 538 539 index = pages[0]->index >> shift; 540 if ((pages[nr_pages - 1]->index >> shift) != index) 541 goto skip_pages; 542 543 bsize = read_blocklist(inode, index, &block); 544 if (bsize == 0) 545 goto skip_pages; 546 547 res = squashfs_read_data(inode->i_sb, block, bsize, NULL, 548 actor); 549 550 if (res >= 0) 551 for (i = 0; i < nr_pages; i++) 552 SetPageUptodate(pages[i]); 553 554 for (i = 0; i < nr_pages; i++) { 555 unlock_page(pages[i]); 556 put_page(pages[i]); 557 } 558 } 559 560 kfree(actor); 561 kfree(pages); 562 return; 563 564 skip_pages: 565 for (i = 0; i < nr_pages; i++) { 566 unlock_page(pages[i]); 567 put_page(pages[i]); 568 } 569 570 kfree(actor); 571 out: 572 kfree(pages); 573 } 574 575 const struct address_space_operations squashfs_aops = { 576 .read_folio = squashfs_read_folio > 577 .readahead = squashfs_readahead -- 0-DAY CI Kernel Test Service https://01.org/lkp