From patchwork Mon Oct 1 21:28:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 147934 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4392635lji; Mon, 1 Oct 2018 14:29:15 -0700 (PDT) X-Google-Smtp-Source: ACcGV63WeS2HOKp7phQT+Hq4KI1rN6ruhZaAZ9FyaEpo6PXKdljzKPRZykCkzCsMm5m+TD385r2n X-Received: by 2002:a62:4151:: with SMTP id o78-v6mr7434712pfa.66.1538429355764; Mon, 01 Oct 2018 14:29:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538429355; cv=none; d=google.com; s=arc-20160816; b=pf/Gf1yxfYGc3nsYS7WLVjmZWUwCnDOEV/WiIeegPxyZfStwPTDsBwVzyE+IEOhZ+f SzyShIF3CXoQy0zvyrBE1Ritn3D0seigFo5V0B4r9XUfWAlLvM56dE1oa0k+l+/hFEQ8 8Q6ZOCbmDld6X8ZKUdvufSrdsV77ruHNt3IyhhlGtMpIgd1BV+0Q39gqWeePF1iAaHPy rYeeWxCB87IKgCwjG4LbXTiFjrC7ZqYH87zaY8/53lLIk80xhPOl6catUCeBV8hAfdI0 DrzE2LhrSBwWzeZEvGArPBM8gceEujLaB2ZaeHfY9u16OxLMFhKiLk19NdzXYi86PZPf z4gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature :delivered-to:sender:list-help:list-post:list-archive:list-subscribe :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=SQayXCWy7yfJFvc4rzphpyNV8xeJISOKpPy92tGVCI0=; b=io+CKuXt4RDymHfGJDY0nJSkSW9AaorKJKzuuUBfyTy1St+R9UEBxgCtTOHqBdcQx7 0Trsg4NCq4QwnDQ8VtvM9bTk0HaoNpOylpKfF5kz2Gr09z766NzaztLtXa0f0k6Y66Nl bPOt9vlc11xTKZRBFAIhdVwh4N+kf34A6nBpgskiZG8G+rw0Omw6NVSG7TLqofamWw4z FxxfhiAUkDPok5pRFHgfRmT3w3llE3/CmkO2G2q16DUQwime6MthjkVevpQGzAWGADX2 1moA70LSro0VY+jUWaQM5WzbXRyr3d6ZY1fYXjEWOs/+/ZDIDo50ipbwAGs7Eal5XuU/ 0C9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b="pxcZgb/U"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aN6YiBoP; spf=pass (google.com: domain of newlib-return-16503-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="newlib-return-16503-patch=linaro.org@sourceware.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id l2-v6si13835270pgc.196.2018.10.01.14.29.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Oct 2018 14:29:15 -0700 (PDT) Received-SPF: pass (google.com: domain of newlib-return-16503-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b="pxcZgb/U"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aN6YiBoP; spf=pass (google.com: domain of newlib-return-16503-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="newlib-return-16503-patch=linaro.org@sourceware.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type; q=dns; s=default; b=Km2Lm9YPS6qXQNtRaV8xDV+fU7QRZ LdQ4OnsT4dNK5I2zEjS1+pMeyaALvHJ0prasniqlHGQ3yG0TJy4iHQpfpz/vBIk9 e399nOGRAbA8ZA0eoXNZykaLUy5ncp25Fz5RFFZk2BR4dsbH/xmhTLt6U9sj2eyh QD1kCrOwFbmlkg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type; s=default; bh=1bCm+zKrbxMrcUNrUZ/GyjpOgdE=; b=pxc Zgb/UbLuo9238LK6rE1cH0Yzo13j3iZI6vOipqA9J1e1EN2jXhITAvskdwCn4EOL MacxJhmoabKVZUM7ezs/bqAamtfpI8JhRrm/pNh6EgTHVaQzdpeTHGDFFe2N8/xy SIGsnntX8C1xo/Df9sqhrBpR2+KrDxZycCB9rFC0= Received: (qmail 31002 invoked by alias); 1 Oct 2018 21:29:07 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Delivered-To: mailing list newlib@sourceware.org Received: (qmail 30976 invoked by uid 89); 1 Oct 2018 21:29:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-vs1-f41.google.com Received: from mail-vs1-f41.google.com (HELO mail-vs1-f41.google.com) (209.85.217.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 01 Oct 2018 21:29:04 +0000 Received: by mail-vs1-f41.google.com with SMTP id e206so2265164vsd.0 for ; Mon, 01 Oct 2018 14:29:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=3gKDlAcUPTSfuXL7ZhAq9KfrT4TYgU6TtCzf1rwAoS4=; b=aN6YiBoP4P5x++EC7B6/HAADrjzpWKQ/0w5FicJ8AdddWSV6ZXyKstFTO9ARripXVH Y+ZGy4ET07KmZDVbId2vUqyjXIC5pFdicaCIYDdVqbTiTZYKlF5m64eQu3CPsPmMlh5U 8YbmZ48P0Op7SgQ3CStU7doH7L+X/MPE6Goug= MIME-Version: 1.0 From: Christophe Lyon Date: Mon, 1 Oct 2018 23:28:51 +0200 Message-ID: Subject: [ARM] Fix _unlink prototype under ARM_RDI_MONITOR. To: newlib@sourceware.org X-IsSubscribed: yes Hi, I noticed that "path" is actually used when compiling with ARM_RDI_MONITOR, so this small patch removes the unused attribute in that case. OK? Christophe commit 421cd7000646b4462df0195ba2d43a093fdd9851 Author: Christophe Lyon Date: Mon Oct 1 16:15:35 2018 +0000 [ARM] Fix _unlink prototype under ARM_RDI_MONITOR. 2018-10-01 Christophe Lyon * newlib/libc/sys/arm/syscalls.c (_unlink): Remove unused attribute when compiling with ARM_RDI_MONITOR. diff --git a/newlib/libc/sys/arm/syscalls.c b/newlib/libc/sys/arm/syscalls.c index 311b28d..6d2ad79 100644 --- a/newlib/libc/sys/arm/syscalls.c +++ b/newlib/libc/sys/arm/syscalls.c @@ -534,7 +534,11 @@ _link (const char *__path1 __attribute__ ((unused)), } int +#ifdef ARM_RDI_MONITOR +_unlink (const char *path) +#else _unlink (const char *path __attribute__ ((unused))) +#endif { #ifdef ARM_RDI_MONITOR int block[2];