From nobody Mon Feb 9 11:02:22 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1657716598; cv=none; d=zohomail.com; s=zohoarc; b=RwDiXOYiaoAERkaYgO2K0rYNr1OorXhZIOJiWXxn+BwyKOv3y/5enMlamZaUSVmfRiCoBYxIrT/RCs4sv7+FjKv4tZMyzKYwruCM7YipW98OaDOL4w48YL/msXH3D3KWdwICBphKZnRo5jYYLcatp4zErBcKUsW01nuFh7kK9Jw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1657716598; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=MtsR/tM7k67a4bE2GsvxVx53jg+bM1PYQJk4fjczQuA=; b=hHc1IpxbzAsU3KIrweiKi7s1qDZhzXEAbgNPLi1YJ1/N7ASOeCRWSwx/dlH0LLBiIUUYZZr/a+K0ALaqvm1cevBaUQdJQA8X19ps3j8MaKCPjskteH39fsik0n43n5T9rMfGNCnk/zKyMoEER35HLw8EWtNkXzA9Y1PVQ0+W5eE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1657716598272530.1278885784927; Wed, 13 Jul 2022 05:49:58 -0700 (PDT) Received: from localhost ([::1]:33074 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBboT-0002Hu-1n for importer@patchew.org; Wed, 13 Jul 2022 08:49:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBbkO-0007BY-DM for qemu-devel@nongnu.org; Wed, 13 Jul 2022 08:45:44 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:23615) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBbkL-0005HG-Pa for qemu-devel@nongnu.org; Wed, 13 Jul 2022 08:45:42 -0400 Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-52-FCzd2ykzPmiknr3o405DEw-1; Wed, 13 Jul 2022 08:45:38 -0400 Received: by mail-ed1-f72.google.com with SMTP id h17-20020a056402281100b0043aa5c0493dso8352858ede.16 for ; Wed, 13 Jul 2022 05:45:38 -0700 (PDT) Received: from goa-sendmail ([93.56.169.184]) by smtp.gmail.com with ESMTPSA id c5-20020aa7c745000000b0043a706d3a48sm7953991eds.76.2022.07.13.05.45.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 05:45:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657716339; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-type:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MtsR/tM7k67a4bE2GsvxVx53jg+bM1PYQJk4fjczQuA=; b=d1YqS2OHwJISqYDXxXapqCmRKhj2yZ+xvKI+JJqXYd/byLEa6v9Hxn9QTAoQaG6HG1He1+ Hf/XstCBeGEpFfTKPO+zK1yH7Y4bRnUt3fYuOGL5L9wUWv0p00Np50AfVA2LrabIcB+2Tq myZt+IoFIICELlZgXhPgqFPkuR0yKIM= X-MC-Unique: FCzd2ykzPmiknr3o405DEw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=MtsR/tM7k67a4bE2GsvxVx53jg+bM1PYQJk4fjczQuA=; b=HB7e3lPmDcQjNL9zyYX+yRiso8BxExY0JN+0LcA0Xr1jPIHzgkJ6MGANgZCMYcEYaU v9FAn945+6KK531ItTcRxeidXvYhQkM9rIQSIQ7jJLfYU0s4T3ume9EeuZ5NNt5gZty1 g11oVpcwKy858yoddj9aQ47PDtklv4NbjCbfohuHCqOCBOT28KuOEczT8iBx+aJL0TG5 mHMFvumE4f1PRpiWlo20O7Wvd1cU2RuldnL4gjpEzw2A1l5tzKWLt14+QLLsZpYytphI ibdukxVJlyF4BQyGv2xveYxT+GV5VtS7q4IiPQPEf4woWfzM5tDOrmh6dQ8k/vg5Bs2o BsOQ== X-Gm-Message-State: AJIora+NiXC18Eb2848WxwfnUrT8LS/pvi3lHd9QXSMp/ooTAfffrolw LK0Duae1cM7Tz4dUNx+vbT2UjeqN0tFifqcqYOB/kXUyiXcjQxSzT6O8Y1VLlxUOdNMwvU6dn+F nXljDCj3dUqVVCPK8lvyDQnCOslQUd3LnAcpMY1QlMQj0Ts96jqC58wlZWEFDNdAEe4o= X-Received: by 2002:a05:6402:f10:b0:43a:b4cb:4d04 with SMTP id i16-20020a0564020f1000b0043ab4cb4d04mr4801925eda.305.1657716337090; Wed, 13 Jul 2022 05:45:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ulxkf4RuL+c+3yIhCbQc4ubJhDWz97APPak9Y50HVRk0WVfg4ePjvBibteieJQkFAXun1LiQ== X-Received: by 2002:a05:6402:f10:b0:43a:b4cb:4d04 with SMTP id i16-20020a0564020f1000b0043ab4cb4d04mr4801882eda.305.1657716336778; Wed, 13 Jul 2022 05:45:36 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH] pc-bios/s390-ccw: add -Wno-array-bounds Date: Wed, 13 Jul 2022 14:45:35 +0200 Message-Id: <20220713124535.247989-1-pbonzini@redhat.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PP_MIME_FAKE_ASCII_TEXT=0.999, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1657716598932100001 The option generates a lot of warnings for integers casted to pointers, for example: /home/pbonzini/work/upstream/qemu/pc-bios/s390-ccw/dasd-ipl.c:174:19: warni= ng: array subscript 0 is outside array bounds of =E2=80=98CcwSeekData[0]=E2= =80=99 [-Warray-bounds] 174 | seekData->cyl =3D 0x00; | ~~~~~~~~~~~~~~^~~~~~ Signed-off-by: Paolo Bonzini --- pc-bios/s390-ccw/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/pc-bios/s390-ccw/Makefile b/pc-bios/s390-ccw/Makefile index 26ad40f94e..c8784c2a08 100644 --- a/pc-bios/s390-ccw/Makefile +++ b/pc-bios/s390-ccw/Makefile @@ -35,6 +35,7 @@ EXTRA_CFLAGS +=3D $(call cc-option,-Werror $(EXTRA_CFLAGS= ),-Wno-stringop-overflow) EXTRA_CFLAGS +=3D -ffreestanding -fno-delete-null-pointer-checks -fno-comm= on -fPIE EXTRA_CFLAGS +=3D -fwrapv -fno-strict-aliasing -fno-asynchronous-unwind-ta= bles EXTRA_CFLAGS +=3D $(call cc-option, $(EXTRA_CFLAGS), -fno-stack-protector) +EXTRA_CFLAGS +=3D $(call cc-option, $(EXTRA_CFLAGS), -Wno-array-bounds) EXTRA_CFLAGS +=3D -msoft-float EXTRA_CFLAGS +=3D $(call cc-option, $(EXTRA_CFLAGS),-march=3Dz900,-march= =3Dz10) EXTRA_CFLAGS +=3D -std=3Dgnu99 --=20 2.36.1