Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2116922rdf; Mon, 6 Nov 2023 05:20:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHk4yKkpEmmVsL8Hd92nZT+athL8Ll2o8KEPO+FThzph/8YjMPx43vjP2jBpe2GO+ekGGcq X-Received: by 2002:a05:6a20:1383:b0:17a:fa76:805f with SMTP id hn3-20020a056a20138300b0017afa76805fmr25324203pzc.23.1699276844941; Mon, 06 Nov 2023 05:20:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699276844; cv=none; d=google.com; s=arc-20160816; b=se4LvjTmhgewX4ZdQM4MVigzDZPr+cpWLRUf9riKOyIJZ/za/iszHJ8qlQe16q7axI eXvTi2BgackowP4Cko8PFUMUs/fJuXJLj5alLveaTycBzymxgw00+p3f8peAg50mmX9M vxKWQ2BO/1pQ/RQcxpHi4mIrT/NKsGjuipm9014bn6Va5RF1EuirwYAmYddbLei896TS ke6Q3J3PavahLIxncPn3HiquEWEbe9Xzfa5iOgiWVj1hR3JIKGvsE1rYii2OabZplZVK xkuvYFMMk6eBNHy3Vn4DZcj6Ns3GFqC2/SCpP4O2gqBOSekNUFPzYcQ8lXAPvtWq2fbN Nxow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=fiUiGTDw2L16fzzzRKog25kYUOwp+f3RU1IqM1t1EJw=; fh=JMl1w0QyM58QB0gmKBld6lCYg/9Msbtmwd1jpnnobeQ=; b=scuSMqtk6o53vr4X8xEYInGdPaAFXAM0acH2fpMyBrC19D9rG/viDFxnIuTro/JBmO x+11uom1wgAK/f5O2xD6u4UZAO7Io8b9wMH0cnd15S0i8tXUQTe+wZHu/x+i5071XaXI /qT4R7m+6vdEOf+y4tmnLO471x6mzfKLknsCsTEPj0+v4WcEsTqq1vvZcOspJY8Gj8+B ihdV55s21W+uxiJbm5jvgztHe4zlXD7RB99gU61MobH/mfk7F/y56qdM7QwZx+xIi2uD +3gAyf9Wkhux5+K7okt9w5EIloaj22YHCpjBCEjLN8SW99vNhxdfkpfIUCbg/TVK9rYF 5pLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PK+Wa1CJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id b23-20020a630c17000000b005b3b8896199si7271938pgl.591.2023.11.06.05.20.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 05:20:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PK+Wa1CJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 405F080A7921; Mon, 6 Nov 2023 05:20:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232370AbjKFNTt (ORCPT + 99 others); Mon, 6 Nov 2023 08:19:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232323AbjKFNTr (ORCPT ); Mon, 6 Nov 2023 08:19:47 -0500 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55914D8 for ; Mon, 6 Nov 2023 05:19:45 -0800 (PST) Received: by mail-yb1-xb33.google.com with SMTP id 3f1490d57ef6-d9abc069c8bso3736743276.3 for ; Mon, 06 Nov 2023 05:19:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699276784; x=1699881584; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=fiUiGTDw2L16fzzzRKog25kYUOwp+f3RU1IqM1t1EJw=; b=PK+Wa1CJAw4KJe5dtG2df/+I+JsR0ZVpEN225df7FZlsa9KOZrCIP53uEn7I7CTb5X 7RvpJPYg6LIEl1+wspkFAXGXOeLmjSZcDLD0abmB5/O0vS+WhBkbh4HlsPE5NOzIv93g tBYb4QGSRDCvwy1+MDb3Brr2+Kro5L2bJ4Pzrg0pUYviqjLROP4CH1FtiNAu144C8q6j 5rBqKno8gpWV1slscNTaMP53Tp4wEHb7geZZrEMzkD0EmZpWYJK/pkdHG7tZaL7NYcna sZeZ+n74VIzy3aokQC2gGm7Aw8e5pQ/L+ZtjJqFsTV/qorg3q9ea92acRonFGBUulr+F uT+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699276784; x=1699881584; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fiUiGTDw2L16fzzzRKog25kYUOwp+f3RU1IqM1t1EJw=; b=f6Tr1/yYoodkbnVoa/YSWt7iwMRarEfTE0vwr8WJ8t1l9Fqi/vmXeyNAZWzaiSv0Ny 3hbA9j84QzrxxSO9wl0/wZTP67GgRL2WQws0NynwbJ+vfBJTdDgXJ8exfOOH6aBKyKbV q/VRuwv4gpQnFGpEKvs3nbVQYPx/i9WuWCOiEWyRxBiW7cFXZ48FS8a4jBUVt1+/kpsZ 5UAt6cuIRXFEPgJXW2sDvowZW8eUBADc5pD0Al2YrdNmHCkJ14VemIUMlZN+6pajZvXZ DUh1mhsmmX2S5H0gPchoE8LpI5x9SjLFiNejK8ehQupIetnb0HIt3a+5AmIoOWBDiHCX 9lHA== X-Gm-Message-State: AOJu0YzmwD5iJA3CCzu1Wx8cduqULULIwu0GugvoyobFzioi5rFIPgLL Q8j4IzbrRruykYF4NuOq8djk2LxMoldNcOaoi34LRPHOp/sUsncC X-Received: by 2002:a25:874a:0:b0:da0:48e0:ca with SMTP id e10-20020a25874a000000b00da048e000camr23268258ybn.29.1699276784527; Mon, 06 Nov 2023 05:19:44 -0800 (PST) MIME-Version: 1.0 References: <202310182007.8ziiRe0j-lkp@intel.com> In-Reply-To: <202310182007.8ziiRe0j-lkp@intel.com> From: Linus Walleij Date: Mon, 6 Nov 2023 14:19:33 +0100 Message-ID: Subject: Re: arch/arm/kernel/hibernate.c:29:40: warning: array subscript -1 is outside array bounds of 'const void[2147483647]' To: kernel test robot Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Mon, 06 Nov 2023 05:20:03 -0800 (PST) Hi Robot, On Wed, Oct 18, 2023 at 2:17=E2=80=AFPM kernel test robot w= rote: > arch/arm/kernel/hibernate.c: In function 'pfn_is_nosave': > >> arch/arm/kernel/hibernate.c:29:40: warning: array subscript -1 is outs= ide array bounds of 'const void[2147483647]' [-Warray-bounds=3D] > 29 | unsigned long nosave_end_pfn =3D virt_to_pfn(&__nosave= _end - 1); > | ^~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~ So the concern is that &__nosave_end could be 0 and the -1 would make it wrap around? It still has nothing to do with arrays, I don't get it. Yours, Linus Walleij