From patchwork Mon May 13 06:24:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neal Frager X-Patchwork-Id: 796500 Delivered-To: patch@linaro.org Received: by 2002:a5d:452e:0:b0:34e:ceec:bfcd with SMTP id j14csp1859393wra; Sun, 12 May 2024 23:24:38 -0700 (PDT) X-Forwarded-Encrypted: i=4; AJvYcCU6DjiwiGjOlnvRFIxHPkMnAVoAwK/s63oaDH/gj6w86mUZj9GT6iHRKJcGSZsd2NlNphXOzwHQz3n6jFnvXgQS X-Google-Smtp-Source: AGHT+IEw+Xkbm3/OYsrGJpPw6gJMrB+UG9nHes1ra7UB8dQzzsCBQWwI2jPWa9BxoJxN/miss1cW X-Received: by 2002:a05:620a:845:b0:792:cd03:2fbe with SMTP id af79cd13be357-792cd033035mr829238585a.0.1715581478564; Sun, 12 May 2024 23:24:38 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1715581478; cv=pass; d=google.com; s=arc-20160816; b=ICSblJRqG7nq8CYT5CKUN2jw500so/VpA2+iqSqVE8oSNV9/Mcx+lYCgT2bjS6iYSj zdaGOq8dA/5fTWiHnWKWshkbITILjOLSsVeq4l7CryrRqJ2C7U5B8L9iSLdJHffmL46t u5S0RgLHPdKfzA9YbDVE/s0MlXf6s/8/ph3U1wEC5AV1HgvDeNLE8IOICLU7m0BzZsQN qZCKLE2dlfmKP5dJNmn1HFwxL20xPlQJpuhuRhn1T5r+vZ6dPcCiO1vOKHB4lIYLQ3U0 ZvNDAsp1roULW7e7L9T1NQxatllO7hm6ODzfzPQtjkXVJwwainNBeANN51p/xZg+9SXa ixKA== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=96UsxudtiWVrwFqGe5+OKfO+wLuXYmmzhyDkQQ7XrmY=; fh=dMMjN8OkhEbItmK/06e6vZFez8Z1bHHCGE5GZX5+7Vk=; b=06vuAo4BiM+tn8J00B3R/zWlW4sp++xPTopRjJkN8YhcKjwpJUzv5potlD7SKRPuj3 wMj+erAveZrXkRPuxKrz55CKB5TsSdG/DirRbDsmkUrjSg65YxB92bqazdOWK3Ir1qAB 9gU26JKARcwOqJLLS9qjjYqiVDFFSDRQ2bnWiP5QRbpyY/4Bd1W9PXNgLbT1lDyOiZEu 4PMEDx2K9ws53IkBuZuE/PXLJVs4p54cwHUusXHKvoah5Pu7bp7OMLGLKjo0icwQUWpZ 3j0/AMM2N7ZlRaYN+tWNNg9g5uNYlKhxrX//2yxFEHHkwNyHzJgPIvReBcOM2JtlPXw+ AqQw==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=ev15Vbq6; arc=pass (i=2); spf=pass (google.com: domain of newlib-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="newlib-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id af79cd13be357-792bf340160si892691285a.529.2024.05.12.23.24.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 23:24:38 -0700 (PDT) Received-SPF: pass (google.com: domain of newlib-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=ev15Vbq6; arc=pass (i=2); spf=pass (google.com: domain of newlib-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="newlib-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 001B3384AB40 for ; Mon, 13 May 2024 06:24:37 +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 ; 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 To: CC: , , , , Neal Frager 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 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-Message-Info: l2z3JDwuw8TirhLdI5/d5XGEL8uDdKwfcBHfkcpQfAb6hyI5vR86GvwQtHG9yMicLbyvq8750i0wlu1x8MGh1jRCIzR/qAIUYAvIJ1qkC8elsz6o5iL/YMLqJbeTOfh+u0KWcG4audzt+LnKMPFy2Ro3Fn/H+zdHAFyuPehX555FD22CCwtl0Oe5MvUbpKCjtUZwF9wrWV3FbWTI+vXU5SZqeUe77Kn/zqAWpLucwHFHgPZ59gDo4qurjmxEc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ydrmjNxNxw1l++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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: newlib-bounces+patch=linaro.org@sourceware.org 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 --- 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);