Message ID | 20240513062419.2042278-1-neal.frager@amd.com |
---|---|
State | Accepted, archived |
Headers |
Return-Path: <newlib-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9EE52386F429 for <patchwork@sourceware.org>; Mon, 13 May 2024 06:24:46 +0000 (GMT) X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2068.outbound.protection.outlook.com [40.107.244.68]) by sourceware.org (Postfix) with ESMTPS id B4FD83858C52 for <newlib@sourceware.org>; Mon, 13 May 2024 06:24:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B4FD83858C52 Authentication-Results: sourceware.org; dmarc=fail (p=quarantine dis=none) header.from=amd.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=amd.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B4FD83858C52 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.244.68 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1715581471; cv=pass; b=HRHKFGJDKIfZqwoTyuBmwU+yLQO13+rK57i2fGQ9zgfROukdCAkaS/HuK2vdRIytA1iLFcbwQ0/hXGgQXT8lG23zLnN9ZLQiYiiUCJfN/90Q8HuDGnMDQpulzSsx2OB/gvezP+B5SnAZXTjTYlO8nyga69FC4jshPCn2blh7x8k= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1715581471; c=relaxed/simple; bh=jx++14I39FZ4iVL3fwVTdAx8IPys0aZOPezA3YPqsMQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=LyOgGxbqPlOOM1PabRWUhVZRgLM+9/yqomaLIBCDTKaavCCA9wACtzy5QKaO7nSv3bhE7AqC40iNldDHqXzkr3FaLUMsyvGKjBvLxL8BSC/NkDWuzUAkYbmMonj5goQQ6THFLDOwcKrlirWFl7WDYf/jHjSd1zyoFBWKzelUHic= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YwObqOjNzfrs3yBMZSBouG+F6F5UnDOuPa6KqusgQlHXLy8ub7Lhfd2FrUVo27fv+mmrUJF+VEYZOBrN55TcXWKo5njDelIfni8qRhoG25laL6X6rFNuh73rF8Ai9/qRYsnPjSpvsiHc/IMqXyy+vqWXZMnXGwLxiHn+DJjmSH7Y96q4Urr1radjZwN8xdeZlfmamEaf4sajW7GWTP+s201ISnH1nM4nmLXpiF2K/jVN8/P5UWFa3HA9iMlfMxFqZh/ORoQUvkjw1tBoLBW2qjDb90wAWewXDNhBTdH3RzUJZqmzBrocjZCjq0HYn+f/wYLXZ3JdUCYJWte6Em4YNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=96UsxudtiWVrwFqGe5+OKfO+wLuXYmmzhyDkQQ7XrmY=; b=Zm2GOXX18t0Sy9ZBLj7ec1WHROcvQpVBxBaNE6hd0TfV3JOnog6ndyVMd8Wx30yR4bUSnaAP9yAov9ti0rQDjnBLFeTxD8rdRE6AoFBpARnzuhExxWabDeU3D7xQgI6C7IeF5JrWp9GRJYAHRp8Momn9leUsDhekod+zMKHmPvZUXzTqBaUjqt96ge55fpdDpxbTRfatcSpuCNshiDTjB0KpVoWtLxzivqP+WAeRo8srZeHeODRmNjer+sUZFnCTdnLm+gaUDLovOiZMjPMooOrm0V5pnHsQoafJXE1OT97IQLMB/rFOkXjPg73h6yJvZezsU7Q3SQw2ITXGsbulHA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=sourceware.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=96UsxudtiWVrwFqGe5+OKfO+wLuXYmmzhyDkQQ7XrmY=; b=ev15Vbq6asfEM5S4siOfG+N5TP1DHV6OrYQqZHU97Y08xG35wqQBipz6OcK/9V1yAsgXkM9jq/paR4OUivFzhIXVMOMZV5D/xBJ14tsn7B713o4YWvcjO1LGF+qX0/P8R6VUNDvHx/QAQbrb+g1b0+k2G7ptNViI/r1kYIgntJA= Received: from MN2PR15CA0066.namprd15.prod.outlook.com (2603:10b6:208:237::35) by CH0PR12MB8532.namprd12.prod.outlook.com (2603:10b6:610:191::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.55; Mon, 13 May 2024 06:24:23 +0000 Received: from MN1PEPF0000F0E2.namprd04.prod.outlook.com (2603:10b6:208:237:cafe::1) by MN2PR15CA0066.outlook.office365.com (2603:10b6:208:237::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.55 via Frontend Transport; Mon, 13 May 2024 06:24:23 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by MN1PEPF0000F0E2.mail.protection.outlook.com (10.167.242.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7587.21 via Frontend Transport; Mon, 13 May 2024 06:24:23 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 13 May 2024 01:24:22 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 13 May 2024 01:24:22 -0500 Received: from xirengwts09.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Mon, 13 May 2024 01:24:21 -0500 From: Neal Frager <neal.frager@amd.com> To: <newlib@sourceware.org> CC: <cjwfirmware@vxmdesign.com>, <jjohnstn@redhat.com>, <thomas.petazzoni@bootlin.com>, <vapier@gentoo.org>, Neal Frager <neal.frager@amd.com> Subject: [PATCH v1 1/1] libgloss: microblaze: fix read and _write declarations Date: Mon, 13 May 2024 07:24:19 +0100 Message-ID: <20240513062419.2042278-1-neal.frager@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Received-SPF: None (SATLEXMB05.amd.com: neal.frager@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000F0E2:EE_|CH0PR12MB8532:EE_ X-MS-Office365-Filtering-Correlation-Id: 1c92251f-4688-407d-dbef-08dc731554b0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|1800799015|376005|36860700004|82310400017; X-Microsoft-Antispam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mIOLbxmHqcsoP1xKNH7qie4heVPKMMAb0hs63hA2s6JfhinDD5LGj/7vAKPsAmxQFpKA8/WICHq1WC4MvO97Ms5NPdpWSCFdVts2+pX49gS6jCTJcfKpMSMXIZsW97PFDg9XE9no8/joqNHcb8Pmc4rpVWld/7Fw+89rLycNedxtLzMTa4AA0Pl3KlS7qD4VvCEh438a8BQD3973rioY83Af3XLk5nr/+NdDyM8MvZ6rO3R9LgSVr84ydqV9/VT8q0XwZvmmd9oydrmjNxNxw1l++yyG+zqFUJiqYFb3e+aBR/h1WDdBc6yWjRNBCUo5pbrxTlhg8WWCnJGR00v5lOr X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(1800799015)(376005)(36860700004)(82310400017); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2024 06:24:23.1683 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1c92251f-4688-407d-dbef-08dc731554b0 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: MN1PEPF0000F0E2.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB8532 X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Newlib mailing list <newlib.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/newlib>, <mailto:newlib-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/newlib/> List-Post: <mailto:newlib@sourceware.org> List-Help: <mailto:newlib-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/newlib>, <mailto:newlib-request@sourceware.org?subject=subscribe> Errors-To: newlib-bounces+patchwork=sourceware.org@sourceware.org |
Series |
[v1,1/1] libgloss: microblaze: fix read and _write declarations
|
|
Commit Message
Neal Frager
May 13, 2024, 6:24 a.m. UTC
This patch resolves the following build error which occurs with gcc 14.1.0:
../../.././libgloss/microblaze/linux-outbyte.c: In function 'outbyte':
../../.././libgloss/microblaze/linux-outbyte.c:3:9: error: implicit declaration of function '_write' [-Wimplicit-function-declaration]
3 | _write(1, &c, 1);
Signed-off-by: Neal Frager <neal.frager@amd.com>
---
libgloss/microblaze/linux-inbyte.c | 2 ++
libgloss/microblaze/linux-outbyte.c | 2 ++
2 files changed, 4 insertions(+)
Comments
Patch applied. Thanks. -- Jeff J. On Mon, May 13, 2024 at 2:24 AM Neal Frager <neal.frager@amd.com> wrote: > This patch resolves the following build error which occurs with gcc 14.1.0: > ../../.././libgloss/microblaze/linux-outbyte.c: In function 'outbyte': > ../../.././libgloss/microblaze/linux-outbyte.c:3:9: error: implicit > declaration of function '_write' [-Wimplicit-function-declaration] > 3 | _write(1, &c, 1); > > Signed-off-by: Neal Frager <neal.frager@amd.com> > --- > libgloss/microblaze/linux-inbyte.c | 2 ++ > libgloss/microblaze/linux-outbyte.c | 2 ++ > 2 files changed, 4 insertions(+) > > diff --git a/libgloss/microblaze/linux-inbyte.c > b/libgloss/microblaze/linux-inbyte.c > index 58fdf1957..2f8d33871 100644 > --- a/libgloss/microblaze/linux-inbyte.c > +++ b/libgloss/microblaze/linux-inbyte.c > @@ -1,3 +1,5 @@ > +extern int read (int, char *, int); > + > int inbyte(void) > { > char ch = 0; > diff --git a/libgloss/microblaze/linux-outbyte.c > b/libgloss/microblaze/linux-outbyte.c > index 9d7bc4890..46de511f6 100644 > --- a/libgloss/microblaze/linux-outbyte.c > +++ b/libgloss/microblaze/linux-outbyte.c > @@ -1,3 +1,5 @@ > +extern int _write (int, char *, int); > + > void outbyte (unsigned char c) > { > _write(1, &c, 1); > -- > 2.25.1 > >
diff --git a/libgloss/microblaze/linux-inbyte.c b/libgloss/microblaze/linux-inbyte.c index 58fdf1957..2f8d33871 100644 --- a/libgloss/microblaze/linux-inbyte.c +++ b/libgloss/microblaze/linux-inbyte.c @@ -1,3 +1,5 @@ +extern int read (int, char *, int); + int inbyte(void) { char ch = 0; diff --git a/libgloss/microblaze/linux-outbyte.c b/libgloss/microblaze/linux-outbyte.c index 9d7bc4890..46de511f6 100644 --- a/libgloss/microblaze/linux-outbyte.c +++ b/libgloss/microblaze/linux-outbyte.c @@ -1,3 +1,5 @@ +extern int _write (int, char *, int); + void outbyte (unsigned char c) { _write(1, &c, 1);