Message ID | 20240620162316.3674955-12-arnd@kernel.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:508d:0:b0:362:4979:7f74 with SMTP id a13csp378465wrt; Thu, 20 Jun 2024 09:26:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUOsNYhVX19D1NkhjvTBrgeSt9t/IKeDhpfI4XXce/KddJInNynDWGWdWGMn32VR3qqm4LVQftfBz9SO2G/l2lg X-Google-Smtp-Source: AGHT+IHJYjj+GLT7NZYxp0cLgZn5QsdePZ9KndhGm2p7zHozC7Lu39yqDF5O+iQaDuOTH/coWQBf X-Received: by 2002:a67:f49a:0:b0:48f:1782:c26d with SMTP id ada2fe7eead31-48f1782c3d5mr5321599137.27.1718900772353; Thu, 20 Jun 2024 09:26:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718900772; cv=pass; d=google.com; s=arc-20160816; b=yUzJHuJpEwhqKY+Qeew0TQvedl3mTLxTh4ocTZvYpK6GydgD02yyWKXRGwSH+puH4E bvLJRy8j6k071wpvSJpIyWlHHA7tedvaoZ0jMw8V+DkJ8RoCcrqj2HY4x9HLPwv+V20h N0X3nhfXs78AS1mm5iM7KrbD+JlfieSWjrc4826cqdgykofMjEccVX37K7yNd+OTjGvJ QnNuE1dfYS0oxVjetBeD+GJN1Pu9KIfb2UVnKL7Y4wXJZWyarlVX5XwKPCw+JFu1toyE LRtM/CSDA381z4T5NvkIV5iIIr51Ixs0nkvoLRBNQomd9NOMfIDsOovi3n4/lZzebFU2 sJrw== ARC-Message-Signature: i=2; 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=CziElLPuHTSKYbxdCeLmGf3AuIz4XMkaqSzFyCfNlSI=; fh=z7WBpRnpEcajsi+eCrB9be3IBpnFpuOD2qMP8Shfqmo=; b=OdT+ZietQ/Fnc+yA53twZNVZ5QRxL9PmHoB6V1kCf4mII9AyRAiEFSeo0Vr/2XgxWI 0vrqeaUUuUSA4RzfpeW+yeaDy+z+K+ZWGMPpyBavsQ9m957nNgjNhI+lUQJAhOER0xfQ lZRrJ6ZmVUSFdfRHkwtA9EgVGgbXk5CrICv65klamX44JJgDNZPyNSUao+IaFO05dlfT BnMTePcUXQ7XmGiXcGmCq3Ctd6nXbx4yn93QFLrVVRgUmO/Nez4gq9khB/xpjP3QQNYf gpFtu30Nfpld4xf+Txe7XieuoE2GKE2OCR/ePEGDZ+GSVZCHeo5v9wAsGeDmo7zKqFSC SE0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="liP+clW/"; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: <libc-alpha-bounces+patch=linaro.org@sourceware.org> Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id ada2fe7eead31-48dd1ee91fcsi2153297137.799.2024.06.20.09.26.11 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 09:26:12 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="liP+clW/"; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AFEB93894C33 for <patch@linaro.org>; Thu, 20 Jun 2024 16:26:11 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by sourceware.org (Postfix) with ESMTPS id 6ACD13892474 for <libc-alpha@sourceware.org>; Thu, 20 Jun 2024 16:24:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6ACD13892474 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kernel.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6ACD13892474 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=139.178.84.217 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718900696; cv=none; b=BhNFIEKY5+kaHOb+AZz5lQpJdcTwCV80XQb/b1QMxSGLt59PdifYlkhlOCg9z/P/Li0sZ1q/ZpNSAXl+L0RZwoFgH8Ac5vTQ4t+UT2hTFGMOlHBjXvFA3yWKqWjcIQzr1SOEjBzKqMZrYEXGxNPyoSr4JNK+nu8eCy2eb2grdS0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718900696; c=relaxed/simple; bh=CTMiij8diPtp23L47nQHWXQrj3MX4OJNEzgig287ZPA=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=hPmtJYQcJmSvJ8EmaoEaH+KopGEbKwjUsbiDfiooMBe2kGkf0/8zAXGJLCiQo4+hLfuI6AWf5QrQLehiN7ltqI5LkZ3ytSMVsGB/QJwI00sas7HDzBK1/iCeapsDk59zckqQfc44gXpb1bUUJwkCftUYihT49x/ndxIuDvCcAMc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id D4CB9621EF; Thu, 20 Jun 2024 16:24:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DEAEC2BD10; Thu, 20 Jun 2024 16:24:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718900691; bh=CTMiij8diPtp23L47nQHWXQrj3MX4OJNEzgig287ZPA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=liP+clW/FYJDMFwHv7e2XTi4LYa5eTnDyL47NLmiZ3cdTxaeJVM6WiqLSOvjZXten pE6JYMMTtK2vXsP1OXrG0X/wzRuupXj07RgRMay50dms6iT69PyESvm8MZAALUCwW6 ScElgo7HBzd1he0cQvkNBktxqXYA3+ZQp+4j7Eyi0zUX6iTS+26CH6314rMnHOCsxp 2GZ0MxgqvDjTVnlva8n8/w9P6j9/14JsdOE3xslLC/hd1U15iSxzjY7Gdw5OPMjGTi FxE0zxbrXL4hhuRiBxV9AFKTmJuqA88W9aUdlZqe/hk7lAm9X+hHNtXkp5bF7KXdDP LnYwGSfr5+nRQ== From: Arnd Bergmann <arnd@kernel.org> To: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Arnd Bergmann <arnd@arndb.de>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, linux-mips@vger.kernel.org, Helge Deller <deller@gmx.de>, linux-parisc@vger.kernel.org, "David S. Miller" <davem@davemloft.net>, Andreas Larsson <andreas@gaisler.com>, sparclinux@vger.kernel.org, Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, "Naveen N . Rao" <naveen.n.rao@linux.ibm.com>, linuxppc-dev@lists.ozlabs.org, Brian Cain <bcain@quicinc.com>, linux-hexagon@vger.kernel.org, Guo Ren <guoren@kernel.org>, linux-csky@vger.kernel.org, Heiko Carstens <hca@linux.ibm.com>, linux-s390@vger.kernel.org, Rich Felker <dalias@libc.org>, John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>, linux-sh@vger.kernel.org, "H. Peter Anvin" <hpa@zytor.com>, Alexander Viro <viro@zeniv.linux.org.uk>, Christian Brauner <brauner@kernel.org>, linux-fsdevel@vger.kernel.org, libc-alpha@sourceware.org, musl@lists.openwall.com, ltp@lists.linux.it, stable@vger.kernel.org Subject: [PATCH 11/15] hexagon: fix fadvise64_64 calling conventions Date: Thu, 20 Jun 2024 18:23:12 +0200 Message-Id: <20240620162316.3674955-12-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240620162316.3674955-1-arnd@kernel.org> References: <20240620162316.3674955-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces+patch=linaro.org@sourceware.org |
Series |
linux system call fixes
|
expand
|
diff --git a/arch/hexagon/include/asm/syscalls.h b/arch/hexagon/include/asm/syscalls.h new file mode 100644 index 000000000000..40f2d08bec92 --- /dev/null +++ b/arch/hexagon/include/asm/syscalls.h @@ -0,0 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#include <asm-generic/syscalls.h> + +asmlinkage long sys_hexagon_fadvise64_64(int fd, int advice, + u32 a2, u32 a3, u32 a4, u32 a5); diff --git a/arch/hexagon/kernel/syscalltab.c b/arch/hexagon/kernel/syscalltab.c index 0fadd582cfc7..5d98bdc494ec 100644 --- a/arch/hexagon/kernel/syscalltab.c +++ b/arch/hexagon/kernel/syscalltab.c @@ -14,6 +14,13 @@ #undef __SYSCALL #define __SYSCALL(nr, call) [nr] = (call), +SYSCALL_DEFINE6(hexagon_fadvise64_64, int, fd, int, advice, + SC_ARG64(offset), SC_ARG64(len)) +{ + return ksys_fadvise64_64(fd, SC_VAL64(loff_t, offset), SC_VAL64(loff_t, len), advice); +} +#define sys_fadvise64_64 sys_hexagon_fadvise64_64 + void *sys_call_table[__NR_syscalls] = { #include <asm/unistd.h> };