From nobody Thu Apr 25 15:18:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=koconnor.net Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1639851080174195.6063901908566; Sat, 18 Dec 2021 10:11:20 -0800 (PST) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 1BF9216E3D2E; Sat, 18 Dec 2021 18:11:15 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 2677516E3D20 for ; Sat, 18 Dec 2021 18:11:02 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) for ; Sat, 18 Dec 2021 10:11:01 -0800 (PST) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.gmail.com with ESMTPSA id i23sm7366894qkl.101.2021.12.18.10.11.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Dec 2021 10:11:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=koconnor.net; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=MATQQo4kEyNgPPPwS4HrkHF5n0aT+TKXJinGaifaJrc=; b=gU7hBHs/qg0QVjqyLzaVyU8BLCg+godupSuPQ/814p0i8IJaRDw6uNZl8FtoFnguLl X1/+gteBzvNxUdBS6aoUZj9cyzj49uTWdNG9XtSy69On9MROcxEGQ2w4vMr9d9EYHx7e r7o1VzKQbgmshnHVtmcdSVFLnM538jLCt/aXQ= 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=MATQQo4kEyNgPPPwS4HrkHF5n0aT+TKXJinGaifaJrc=; b=zpHKGLWoNLrqeHND3Gov7lo6g7SYvBMpYBOihapUqfXAfiMWDJxhCRgw/PRUZT5C9K Td9lzSYO0/5UxsYFLa64B6QOFS2Lf1I0O8SY0zY/u+c3g8DRZvUN1dXwYulkU4wWYkUd 7KzVc0R3psncAYMqpYLtoFeRl8zJfrxAZDI1waEpDdTfD/DGtQBDGJDV3Wfm2C5873H3 Jmnp8Vju6Eo1z9ky5dLN1lye6fbq5AXOtDnNMarhuVAOUOFeRjtabgZ7/Ce53YlPkMbh unurf8eh8J37utM2qc4f7L9jNijetw1AS0xo+83BwV0ufKpK8cWffyNShQr1gGTdPRMW aaMA== X-Gm-Message-State: AOAM531ewBGs9Ev9NRkKAYrZN2EVRpAjwVbpxhSAxMw5VkXWME898GpG Uj7Ipbv8RQgv8qPmkcaAHD4kiG8BhcO4mJro X-Google-Smtp-Source: ABdhPJxPBC85EiTJQHfgDT0e+1c6w2UDiodHZjGIZ6G2N9SdrqMy3ajoLAH5Glvv/r8pDTtczI6XGg== X-Received: by 2002:a37:a485:: with SMTP id n127mr4872107qke.81.1639851060912; Sat, 18 Dec 2021 10:11:00 -0800 (PST) From: Kevin O'Connor To: seabios@seabios.org Date: Sat, 18 Dec 2021 13:10:56 -0500 Message-Id: <20211218181056.3848842-1-kevin@koconnor.net> MIME-Version: 1.0 X-Spam-Level: ** Message-ID-Hash: KCV5A4GZQDFNANU7QZYR4Y6ZNFGMEJQN X-Message-ID-Hash: KCV5A4GZQDFNANU7QZYR4Y6ZNFGMEJQN X-MailFrom: kevin@koconnor.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.5rc1 Precedence: list Subject: [SeaBIOS] [PATCH] memmap: Fix gcc out-of-bounds warning List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org X-Spamd-Bar: / X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1639851081125100001 Content-Type: text/plain; charset="utf-8" Use a different definition for the linker script symbol to avoid a gcc warning. Signed-off-by: Kevin O'Connor Tested-by: Paul Menzel --- src/memmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memmap.h b/src/memmap.h index 22bd4bc..32ca265 100644 --- a/src/memmap.h +++ b/src/memmap.h @@ -15,7 +15,7 @@ static inline void *memremap(u32 addr, u32 len) { } =20 // Return the value of a linker script symbol (see scripts/layoutrom.py) -#define SYMBOL(SYM) ({ extern char SYM; (u32)&SYM; }) +#define SYMBOL(SYM) ({ extern char SYM[]; (u32)SYM; }) #define VSYMBOL(SYM) ((void*)SYMBOL(SYM)) =20 #endif // memmap.h --=20 2.31.1 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org