Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5156484pxj; Tue, 22 Jun 2021 16:46:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3Lsy2wdRRTvo8BlocxJ9vJWCTgnc/Wdl/LWwiaQNVg3bSvGTBzSMLchmD7hoNNuv0RLgr X-Received: by 2002:a05:6e02:14c4:: with SMTP id o4mr849298ilk.6.1624405603163; Tue, 22 Jun 2021 16:46:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624405603; cv=none; d=google.com; s=arc-20160816; b=AdLraEb3uJklczFyesy+tPw31ZBJOHrdDsTmYTuzwLH84EalREFdRYmEGB//lrhpBr ZSXDqhEOQ/1J8i4QG6mdfZD+28MxKkDx4RU8oPmHOUNIRQq9YZO2kxHsLfe2beomje6q fvzCM69bsbRsUwUSo+oAfobIHsfewes2/TORxJ98PwQM5w/XOcz7iQwHgMgSunZC+BQy bJuUl5taVSCMDo2bpwc9uw+rNmotzvZ7jzXx9dz7nDENRevw/DWvZLcm5ikzSHcOj2uz TLVfRgn5ZncUjPZIhq8l+B4URSUWBERQ4iXGGd1wVCygUmVOtpwM1vOXHr8giUB2I8u2 lA8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject:dkim-signature; bh=7ZjE/ww3YHjumRnnXmlZ48b8zONwLCovGxxgZPzissI=; b=XMRFllQ6VxtHiIJWpLzri8TFEAsitRIXTj3RrBCV9V5+6ZaWMYEVDyR8PB8I8lXBz+ Ml915JeymgbugQqcQeR/O3DyR/YY8WFLjtublX0jLWi+roLXRAC4vo94Zim4DOUfnrx+ 1Fdjthxrl6erHFpU/xUESbte+dnNA+WtzVH1VKv7NEEs3/uGCrfSfEc+71AvIm50yIQs xriaNwS9qVflK9ONDEeBHZbELzcY0njJhcHRDJp0yt8tdiWOZcKqpEgqeOXsmM2T/O/r MH0jUV3hs0j2anfX65GQzPQv45yZ1kH/pG3CpKLqwKdhIsTLVE1N0lfeQBR69isPrGG+ wiTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=xMBiAXE2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q3si955762jac.31.2021.06.22.16.46.30; Tue, 22 Jun 2021 16:46:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=xMBiAXE2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229786AbhFVXsL (ORCPT + 99 others); Tue, 22 Jun 2021 19:48:11 -0400 Received: from gateway34.websitewelcome.com ([192.185.150.114]:17195 "EHLO gateway34.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbhFVXsK (ORCPT ); Tue, 22 Jun 2021 19:48:10 -0400 X-Greylist: delayed 1505 seconds by postgrey-1.27 at vger.kernel.org; Tue, 22 Jun 2021 19:48:10 EDT Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway34.websitewelcome.com (Postfix) with ESMTP id B994F33187 for ; Tue, 22 Jun 2021 17:59:26 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id vpMclzPY8uywRvpMclne1x; Tue, 22 Jun 2021 17:59:26 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=embeddedor.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:References:Cc:To:From:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7ZjE/ww3YHjumRnnXmlZ48b8zONwLCovGxxgZPzissI=; b=xMBiAXE21rcybaF27+y28VMSwg OhMwVYVp5qwAZT6Dp0pwvK7COZQXug2AcHAKkvFZEglx8JxjzxtD6ll5OZ+m3a9A23OxQxDoecPpd 1bIZtzlhajeCqVZWndCSmrW5I26+NqFe3bJgd7Q63xv1n/t6ziSNKryHaAnhOXuWUy+U2CcVz8gQ3 HMVU7vkGr4Gs6ad7Fu+mbwiSf3Fhz/P0YO73dRGAPyJst/pwQDT0nppRaNderShW72XhsTfQNoHyb 8KSRDpgZSKfOdBwsBu6qduvFv1GqmD/DaOQFlJSPIhXjmSm8giOqCz0T9NR43MaqeK4CJaQOZwfqu RY5/q18A==; Received: from 187-162-31-110.static.axtel.net ([187.162.31.110]:45694 helo=[192.168.15.8]) by gator4166.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1lvpMa-003BJR-9V; Tue, 22 Jun 2021 17:59:24 -0500 Subject: Re: linux-next: build warning after merge of the kspp-gustavo tree From: "Gustavo A. R. Silva" To: Stephen Rothwell Cc: Kees Cook , Linux Kernel Mailing List , Linux Next Mailing List , David Sterba References: <20210623083901.1d49d19d@canb.auug.org.au> Message-ID: <22c088e7-1ecf-3dab-de47-23e865d09d1c@embeddedor.com> Date: Tue, 22 Jun 2021 18:01:02 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 187.162.31.110 X-Source-L: No X-Exim-ID: 1lvpMa-003BJR-9V X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 187-162-31-110.static.axtel.net ([192.168.15.8]) [187.162.31.110]:45694 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 21 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/22/21 17:46, Gustavo A. R. Silva wrote: > Hi Stephen, > > I will remove that commit and work on fixing those issues before > trying again. Done: I just removed commit 8d7900f545f1 ("Makefile: Enable -Warray-bounds"): https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git/log/?h=for-next/kspp Sorry for the noise. Thanks -- Gustavo > > Thanks for the report! > -- > Gustavo > > On 6/22/21 17:39, Stephen Rothwell wrote: >> Hi all, >> >> After merging the kspp-gustavo tree, today's linux-next build (powerpc >> ppc64_defconfig) produced this warning: >> >> In file included from fs/btrfs/ctree.h:9, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/struct-funcs.c: In function 'btrfs_get_token_16': >> fs/btrfs/struct-funcs.c:80:46: warning: array subscript 1 is above array bounds of 'struct page *[1]' [-Warray-bounds] >> 80 | token->kaddr = page_address(token->eb->pages[idx + 1]); \ >> | ~~~~~~~~~~~~~~~~^~~~~~~~~ >> include/linux/mm.h:1627:48: note: in definition of macro 'page_address' >> 1627 | #define page_address(page) lowmem_page_address(page) >> | ^~~~ >> fs/btrfs/struct-funcs.c:161:1: note: in expansion of macro 'DEFINE_BTRFS_SETGET_BITS' >> 161 | DEFINE_BTRFS_SETGET_BITS(16) >> | ^~~~~~~~~~~~~~~~~~~~~~~~ >> In file included from fs/btrfs/ctree.h:32, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/extent_io.h:97:15: note: while referencing 'pages' >> 97 | struct page *pages[INLINE_EXTENT_BUFFER_PAGES]; >> | ^~~~~ >> In file included from fs/btrfs/ctree.h:9, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/struct-funcs.c: In function 'btrfs_get_16': >> fs/btrfs/struct-funcs.c:101:32: warning: array subscript 1 is above array bounds of 'struct page * const[1]' [-Warray-bounds] >> 101 | kaddr = page_address(eb->pages[idx + 1]); \ >> | ~~~~~~~~~^~~~~~~~~ >> include/linux/mm.h:1627:48: note: in definition of macro 'page_address' >> 1627 | #define page_address(page) lowmem_page_address(page) >> | ^~~~ >> fs/btrfs/struct-funcs.c:161:1: note: in expansion of macro 'DEFINE_BTRFS_SETGET_BITS' >> 161 | DEFINE_BTRFS_SETGET_BITS(16) >> | ^~~~~~~~~~~~~~~~~~~~~~~~ >> In file included from fs/btrfs/ctree.h:32, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/extent_io.h:97:15: note: while referencing 'pages' >> 97 | struct page *pages[INLINE_EXTENT_BUFFER_PAGES]; >> | ^~~~~ >> In file included from fs/btrfs/ctree.h:9, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/struct-funcs.c: In function 'btrfs_set_token_16': >> fs/btrfs/struct-funcs.c:133:46: warning: array subscript 1 is above array bounds of 'struct page *[1]' [-Warray-bounds] >> 133 | token->kaddr = page_address(token->eb->pages[idx + 1]); \ >> | ~~~~~~~~~~~~~~~~^~~~~~~~~ >> include/linux/mm.h:1627:48: note: in definition of macro 'page_address' >> 1627 | #define page_address(page) lowmem_page_address(page) >> | ^~~~ >> fs/btrfs/struct-funcs.c:161:1: note: in expansion of macro 'DEFINE_BTRFS_SETGET_BITS' >> 161 | DEFINE_BTRFS_SETGET_BITS(16) >> | ^~~~~~~~~~~~~~~~~~~~~~~~ >> In file included from fs/btrfs/ctree.h:32, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/extent_io.h:97:15: note: while referencing 'pages' >> 97 | struct page *pages[INLINE_EXTENT_BUFFER_PAGES]; >> | ^~~~~ >> In file included from fs/btrfs/ctree.h:9, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/struct-funcs.c: In function 'btrfs_set_16': >> fs/btrfs/struct-funcs.c:156:32: warning: array subscript 1 is above array bounds of 'struct page * const[1]' [-Warray-bounds] >> 156 | kaddr = page_address(eb->pages[idx + 1]); \ >> | ~~~~~~~~~^~~~~~~~~ >> include/linux/mm.h:1627:48: note: in definition of macro 'page_address' >> 1627 | #define page_address(page) lowmem_page_address(page) >> | ^~~~ >> fs/btrfs/struct-funcs.c:161:1: note: in expansion of macro 'DEFINE_BTRFS_SETGET_BITS' >> 161 | DEFINE_BTRFS_SETGET_BITS(16) >> | ^~~~~~~~~~~~~~~~~~~~~~~~ >> In file included from fs/btrfs/ctree.h:32, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/extent_io.h:97:15: note: while referencing 'pages' >> 97 | struct page *pages[INLINE_EXTENT_BUFFER_PAGES]; >> | ^~~~~ >> In file included from fs/btrfs/ctree.h:9, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/struct-funcs.c: In function 'btrfs_get_token_32': >> fs/btrfs/struct-funcs.c:80:46: warning: array subscript 1 is above array bounds of 'struct page *[1]' [-Warray-bounds] >> 80 | token->kaddr = page_address(token->eb->pages[idx + 1]); \ >> | ~~~~~~~~~~~~~~~~^~~~~~~~~ >> include/linux/mm.h:1627:48: note: in definition of macro 'page_address' >> 1627 | #define page_address(page) lowmem_page_address(page) >> | ^~~~ >> fs/btrfs/struct-funcs.c:162:1: note: in expansion of macro 'DEFINE_BTRFS_SETGET_BITS' >> 162 | DEFINE_BTRFS_SETGET_BITS(32) >> | ^~~~~~~~~~~~~~~~~~~~~~~~ >> In file included from fs/btrfs/ctree.h:32, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/extent_io.h:97:15: note: while referencing 'pages' >> 97 | struct page *pages[INLINE_EXTENT_BUFFER_PAGES]; >> | ^~~~~ >> In file included from fs/btrfs/ctree.h:9, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/struct-funcs.c: In function 'btrfs_get_32': >> fs/btrfs/struct-funcs.c:101:32: warning: array subscript 1 is above array bounds of 'struct page * const[1]' [-Warray-bounds] >> 101 | kaddr = page_address(eb->pages[idx + 1]); \ >> | ~~~~~~~~~^~~~~~~~~ >> include/linux/mm.h:1627:48: note: in definition of macro 'page_address' >> 1627 | #define page_address(page) lowmem_page_address(page) >> | ^~~~ >> fs/btrfs/struct-funcs.c:162:1: note: in expansion of macro 'DEFINE_BTRFS_SETGET_BITS' >> 162 | DEFINE_BTRFS_SETGET_BITS(32) >> | ^~~~~~~~~~~~~~~~~~~~~~~~ >> In file included from fs/btrfs/ctree.h:32, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/extent_io.h:97:15: note: while referencing 'pages' >> 97 | struct page *pages[INLINE_EXTENT_BUFFER_PAGES]; >> | ^~~~~ >> In file included from fs/btrfs/ctree.h:9, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/struct-funcs.c: In function 'btrfs_set_token_32': >> fs/btrfs/struct-funcs.c:133:46: warning: array subscript 1 is above array bounds of 'struct page *[1]' [-Warray-bounds] >> 133 | token->kaddr = page_address(token->eb->pages[idx + 1]); \ >> | ~~~~~~~~~~~~~~~~^~~~~~~~~ >> include/linux/mm.h:1627:48: note: in definition of macro 'page_address' >> 1627 | #define page_address(page) lowmem_page_address(page) >> | ^~~~ >> fs/btrfs/struct-funcs.c:162:1: note: in expansion of macro 'DEFINE_BTRFS_SETGET_BITS' >> 162 | DEFINE_BTRFS_SETGET_BITS(32) >> | ^~~~~~~~~~~~~~~~~~~~~~~~ >> In file included from fs/btrfs/ctree.h:32, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/extent_io.h:97:15: note: while referencing 'pages' >> 97 | struct page *pages[INLINE_EXTENT_BUFFER_PAGES]; >> | ^~~~~ >> In file included from fs/btrfs/ctree.h:9, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/struct-funcs.c: In function 'btrfs_set_32': >> fs/btrfs/struct-funcs.c:156:32: warning: array subscript 1 is above array bounds of 'struct page * const[1]' [-Warray-bounds] >> 156 | kaddr = page_address(eb->pages[idx + 1]); \ >> | ~~~~~~~~~^~~~~~~~~ >> include/linux/mm.h:1627:48: note: in definition of macro 'page_address' >> 1627 | #define page_address(page) lowmem_page_address(page) >> | ^~~~ >> fs/btrfs/struct-funcs.c:162:1: note: in expansion of macro 'DEFINE_BTRFS_SETGET_BITS' >> 162 | DEFINE_BTRFS_SETGET_BITS(32) >> | ^~~~~~~~~~~~~~~~~~~~~~~~ >> In file included from fs/btrfs/ctree.h:32, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/extent_io.h:97:15: note: while referencing 'pages' >> 97 | struct page *pages[INLINE_EXTENT_BUFFER_PAGES]; >> | ^~~~~ >> In file included from fs/btrfs/ctree.h:9, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/struct-funcs.c: In function 'btrfs_get_token_64': >> fs/btrfs/struct-funcs.c:80:46: warning: array subscript 1 is above array bounds of 'struct page *[1]' [-Warray-bounds] >> 80 | token->kaddr = page_address(token->eb->pages[idx + 1]); \ >> | ~~~~~~~~~~~~~~~~^~~~~~~~~ >> include/linux/mm.h:1627:48: note: in definition of macro 'page_address' >> 1627 | #define page_address(page) lowmem_page_address(page) >> | ^~~~ >> fs/btrfs/struct-funcs.c:163:1: note: in expansion of macro 'DEFINE_BTRFS_SETGET_BITS' >> 163 | DEFINE_BTRFS_SETGET_BITS(64) >> | ^~~~~~~~~~~~~~~~~~~~~~~~ >> In file included from fs/btrfs/ctree.h:32, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/extent_io.h:97:15: note: while referencing 'pages' >> 97 | struct page *pages[INLINE_EXTENT_BUFFER_PAGES]; >> | ^~~~~ >> In file included from fs/btrfs/ctree.h:9, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/struct-funcs.c: In function 'btrfs_get_64': >> fs/btrfs/struct-funcs.c:101:32: warning: array subscript 1 is above array bounds of 'struct page * const[1]' [-Warray-bounds] >> 101 | kaddr = page_address(eb->pages[idx + 1]); \ >> | ~~~~~~~~~^~~~~~~~~ >> include/linux/mm.h:1627:48: note: in definition of macro 'page_address' >> 1627 | #define page_address(page) lowmem_page_address(page) >> | ^~~~ >> fs/btrfs/struct-funcs.c:163:1: note: in expansion of macro 'DEFINE_BTRFS_SETGET_BITS' >> 163 | DEFINE_BTRFS_SETGET_BITS(64) >> | ^~~~~~~~~~~~~~~~~~~~~~~~ >> In file included from fs/btrfs/ctree.h:32, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/extent_io.h:97:15: note: while referencing 'pages' >> 97 | struct page *pages[INLINE_EXTENT_BUFFER_PAGES]; >> | ^~~~~ >> In file included from fs/btrfs/ctree.h:9, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/struct-funcs.c: In function 'btrfs_set_token_64': >> fs/btrfs/struct-funcs.c:133:46: warning: array subscript 1 is above array bounds of 'struct page *[1]' [-Warray-bounds] >> 133 | token->kaddr = page_address(token->eb->pages[idx + 1]); \ >> | ~~~~~~~~~~~~~~~~^~~~~~~~~ >> include/linux/mm.h:1627:48: note: in definition of macro 'page_address' >> 1627 | #define page_address(page) lowmem_page_address(page) >> | ^~~~ >> fs/btrfs/struct-funcs.c:163:1: note: in expansion of macro 'DEFINE_BTRFS_SETGET_BITS' >> 163 | DEFINE_BTRFS_SETGET_BITS(64) >> | ^~~~~~~~~~~~~~~~~~~~~~~~ >> In file included from fs/btrfs/ctree.h:32, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/extent_io.h:97:15: note: while referencing 'pages' >> 97 | struct page *pages[INLINE_EXTENT_BUFFER_PAGES]; >> | ^~~~~ >> In file included from fs/btrfs/ctree.h:9, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/struct-funcs.c: In function 'btrfs_set_64': >> fs/btrfs/struct-funcs.c:156:32: warning: array subscript 1 is above array bounds of 'struct page * const[1]' [-Warray-bounds] >> 156 | kaddr = page_address(eb->pages[idx + 1]); \ >> | ~~~~~~~~~^~~~~~~~~ >> include/linux/mm.h:1627:48: note: in definition of macro 'page_address' >> 1627 | #define page_address(page) lowmem_page_address(page) >> | ^~~~ >> fs/btrfs/struct-funcs.c:163:1: note: in expansion of macro 'DEFINE_BTRFS_SETGET_BITS' >> 163 | DEFINE_BTRFS_SETGET_BITS(64) >> | ^~~~~~~~~~~~~~~~~~~~~~~~ >> In file included from fs/btrfs/ctree.h:32, >> from fs/btrfs/struct-funcs.c:8: >> fs/btrfs/extent_io.h:97:15: note: while referencing 'pages' >> 97 | struct page *pages[INLINE_EXTENT_BUFFER_PAGES]; >> | ^~~~~ >> In file included from include/linux/bvec.h:14, >> from include/linux/blk_types.h:10, >> from include/linux/genhd.h:19, >> from include/linux/blkdev.h:8, >> from fs/btrfs/disk-io.c:7: >> fs/btrfs/disk-io.c: In function 'csum_tree_block': >> fs/btrfs/disk-io.c:225:34: warning: array subscript 1 is above array bounds of 'struct page *[1]' [-Warray-bounds] >> 225 | kaddr = page_address(buf->pages[i]); >> | ~~~~~~~~~~^~~ >> include/linux/mm.h:1627:48: note: in definition of macro 'page_address' >> 1627 | #define page_address(page) lowmem_page_address(page) >> | ^~~~ >> In file included from fs/btrfs/ctree.h:32, >> from fs/btrfs/disk-io.c:22: >> fs/btrfs/extent_io.h:97:15: note: while referencing 'pages' >> 97 | struct page *pages[INLINE_EXTENT_BUFFER_PAGES]; >> | ^~~~~ >> >> Introduced by commit >> >> 8d7900f545f1 ("Makefile: Enable -Warray-bounds") >>