Message ID | 20220426081734.585462414@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A587C433F5 for <stable@archiver.kernel.org>; Tue, 26 Apr 2022 08:26:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344844AbiDZI3g (ORCPT <rfc822;stable@archiver.kernel.org>); Tue, 26 Apr 2022 04:29:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344890AbiDZI3D (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 26 Apr 2022 04:29:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27DA642A1C; Tue, 26 Apr 2022 01:24:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D8F3C61778; Tue, 26 Apr 2022 08:24:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E651DC385A4; Tue, 26 Apr 2022 08:24:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650961465; bh=Cg6uVNnAnKhZwmZtm1NgSHIhtNMaNG4XByu/JiDv5a0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rB3RqsrhHu/GF0SrFAXEUrkTi3HQ0woM8pfCdLYsPrle3T6D0gjdTER4/D+tfHuh5 EbTrZnz0sBdk6x32z737MED5yqIDOUsNxgtlTYPLrxjWKLAY43GKHhWtGU1AmKVd2A j6AvXnshuuvN8s1Brh0jJKgsd4M4j/wNmy2cUSA8= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Xiongwei Song <sxwjean@gmail.com>, Arthur Marsh <arthur.marsh@internode.on.net>, Andrew Morton <akpm@linux-foundation.org>, Linus Torvalds <torvalds@linux-foundation.org>, Khem Raj <raj.khem@gmail.com> Subject: [PATCH 4.14 02/43] mm: page_alloc: fix building error on -Werror=array-compare Date: Tue, 26 Apr 2022 10:20:44 +0200 Message-Id: <20220426081734.585462414@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220426081734.509314186@linuxfoundation.org> References: <20220426081734.509314186@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6737,7 +6737,7 @@ void __init mem_init_print_info(const ch */ #define adj_init_size(start, end, size, pos, adj) \ do { \ - if (start <= pos && pos < end && size > adj) \ + if (&start[0] <= &pos[0] && &pos[0] < &end[0] && size > adj) \ size -= adj; \ } while (0)