Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp430462lqz; Sat, 30 Mar 2024 02:59:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmidjhJk2hS/Qf62i+82xuoMLHzTlx0XQahMLZi+23LxYOOnlLladASFJd54R2++0SOld7LuJqRHoKBBHcayGG95TdYtLtYYSDjkj9kQ== X-Google-Smtp-Source: AGHT+IGkdwBQBdZWBRr5gOs2MlVJWwGpyUjuEPLBoZfp2qf1qgI/c96BhouThYbquetf8Og8ajXe X-Received: by 2002:a05:620a:28cc:b0:789:e71e:2692 with SMTP id l12-20020a05620a28cc00b00789e71e2692mr5665500qkp.48.1711792764612; Sat, 30 Mar 2024 02:59:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711792764; cv=pass; d=google.com; s=arc-20160816; b=o83JeK+mrhwI1ZcQvFjlOwUbybdQyblWd1uieyhNQI493BtvGWCmPz5PeV7+Sn/8pi nVTM3E28P3nUJEVpUy8mxo1CiWtm/4l7jE6I5nUbHy/PTD/E+L/Tzm5fRdxesS+leZ44 mZI1WIcGGfaKHHbyK98cwRKh6G8aQdRZ/8fxoTlcxt7UGSUr2vpQeqHMericVRnrXebf FlzaN+wSeE3OqDciqzRpyB5e9ImDAjmP8jI8UFo2AjCoIdvfFnMMWzczhRCT+OeH4loQ bkMKd72RFESEZojhf9nI24OuAxRM4ZLcAA2lJOwhjwO/xl7mqnCCltrSf5GYQYMXBuax XTuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=4FTfp94RT8zHQE6TU3xHehWXKcI4tDro/xSwqNDfSz8=; fh=GXoUT2HKXUQzXvT30jHaRNwHOEro+CbAiNXRieX5N7A=; b=Gg1ITobbXHP6QsVTK4FCA5wxpEzaJWN/KQINFsfJul/xWWSnDo6T8kCyPzC6nIn5ET fxkHn6+L24/Q35xh2F1xkVa5gKAxVchUKI10yqnBwkDVfWadja4Wz/ps8SvgpAgnf06z o5byRYmszfXhi47xdFvgw6nUNo2K3jPeUZbDOqepiilsMOG2O2BUWMKkFd9q3qSkrnxS NYvg2COX6ldFKCcOgJf9MNjOeKOPZNXA0gzrDmvevsxgaa1hA11jrTr0uGuCoRPOZLVa gO487NrCTA5+5rqpuWTADuC0AH9rlQXM4MDCQ5aIiC2c4PPYV3zcXgvDuFIHEUun1/sP KmKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=odzuW5+u; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-125659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125659-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id n19-20020ae9c313000000b00787b85281e7si5170287qkg.714.2024.03.30.02.59.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 02:59:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=odzuW5+u; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-125659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125659-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5AB371C214EE for ; Sat, 30 Mar 2024 09:59:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A423A40BE2; Sat, 30 Mar 2024 09:58:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="odzuW5+u" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 77520224DA; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; cv=none; b=a/sjNxlAFIW7Ou5DJBefuJMgUNDJWmOisYl6sSt8Z42gT02ETeWUhNN/owcIH0cunOcWrn1xXQpu6ikjtTt/ogEgNQgtYkifz+8I5jOqAsc0gdW6FO1XISUkf3yaZ1xlFJII4Y8xQszChq0l70sf9rVHSFbFzbQkIcC4aPgZDts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; c=relaxed/simple; bh=AVnxMaD8P3lGJwIeugtBUSpep/nX1zh+KPd+aSmXedU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QXCNmd3SbBjkWK0umrxmpZblmffqWFEzHw5HMGwimqE/uTV+qxC3ZsUZjTQBveNXtNSqksN5ncnE9avmGYjiNELuctuMfS/v4qNTR8ZMMo4dheCMxF0W9/MTsSkMhtMDwszWKuCLlIsAIIzNZCBHcKaDVTcVCxmrchwtz2g16eo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=odzuW5+u; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 45DC7C43601; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711792677; bh=AVnxMaD8P3lGJwIeugtBUSpep/nX1zh+KPd+aSmXedU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=odzuW5+u/B/jYnzavgkMaEERbZf1qIKGj60zuug5SPLmJS1ofIqgQgZ9v7N+Eh2pO GwkMdXXATupfvRYwTPRR7iOlWSqbsmwDTcO8W1/fK40xmak4stFtBUEL+aqwnLrJ2J gNfxhXQ8IwvK1+2RnYOtOCk6tdWIidIJvjcgf/vHmZXJXH+nfCptSnmwgBt8KwtMAP Pqw5kc22Pmh0FHy74R0U+LFgDn41ebLXdwVaFeOrBLDswJrvs12dgcOhxF9Jz7mcRh nsa806NfOm10v+TDYt2roJYQXbvCsP+4FNLhtnikD5fX0ZSPwpnkljYWWqndDmkvGY zFSSJD3G+l0LA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F67ECD1290; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) From: Sam Ravnborg via B4 Relay Date: Sat, 30 Mar 2024 10:57:46 +0100 Subject: [PATCH 10/10] sparc64: Fix prototype warnings for vdso Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240330-sparc64-warnings-v1-10-37201023ee2f@ravnborg.org> References: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> In-Reply-To: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> To: Andreas Larsson , "David S. Miller" , sparclinux@vger.kernel.org Cc: Nick Bowler , linux-kernel@vger.kernel.org, Arnd Bergmann , Sam Ravnborg X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711792675; l=2638; i=sam@ravnborg.org; s=20230107; h=from:subject:message-id; bh=R3MJg/E/GhMxnu0wstTitJ5mJt9vPs+kNGIj3nVyBSg=; b=4VEx0rmCrYuq7fkcXCME2F2VaTvqyGizSK4moRhBlf1ov0rAPRrYYeczpL2dZngQSGnIn9AKOHKW VHWtcmrbCPy4hZGFW+ksDOU06O+Ax51RL6YmSQBF7KdC78OA3ryF X-Developer-Key: i=sam@ravnborg.org; a=ed25519; pk=R0+pqV7BRYOAeOIGkyOrSNke7arx5y3LkEuNi37YEyU= X-Endpoint-Received: by B4 Relay for sam@ravnborg.org/20230107 with auth_id=22 X-Original-From: Sam Ravnborg Reply-To: sam@ravnborg.org From: Sam Ravnborg Fix the following warnings: arch/sparc/vdso/vclock_gettime.c:254:1: error: no previous prototype for ‘__vdso_clock_gettime’ arch/sparc/vdso/vclock_gettime.c:282:1: error: no previous prototype for ‘__vdso_clock_gettime_stick’ arch/sparc/vdso/vclock_gettime.c:307:1: error: no previous prototype for ‘__vdso_gettimeofday’ arch/sparc/vdso/vclock_gettime.c:343:1: error: no previous prototype for ‘__vdso_gettimeofday_stick’ arch/sparc/vdso/vdso32/../vclock_gettime.c:254:1: error: no previous prototype for ‘__vdso_clock_gettime’ arch/sparc/vdso/vdso32/../vclock_gettime.c:282:1: error: no previous prototype for ‘__vdso_clock_gettime_stick’ arch/sparc/vdso/vdso32/../vclock_gettime.c:307:1: error: no previous prototype for ‘__vdso_gettimeofday’ arch/sparc/vdso/vdso32/../vclock_gettime.c:343:1: error: no previous prototype for ‘__vdso_gettimeofday_stick’ The warnings were fixed by adding the proper prototypes to asm/vdso.h. The better fix would be to convert sparc to be y2038 compliant so the generic variant of vdso.h could be used. Signed-off-by: Sam Ravnborg Cc: Andreas Larsson Cc: "David S. Miller" Cc: Arnd Bergmann --- arch/sparc/include/asm/vdso.h | 10 ++++++++++ arch/sparc/vdso/vclock_gettime.c | 1 + 2 files changed, 11 insertions(+) diff --git a/arch/sparc/include/asm/vdso.h b/arch/sparc/include/asm/vdso.h index 59e79d35cd73..af630cad185c 100644 --- a/arch/sparc/include/asm/vdso.h +++ b/arch/sparc/include/asm/vdso.h @@ -5,6 +5,16 @@ #ifndef _ASM_SPARC_VDSO_H #define _ASM_SPARC_VDSO_H +#include +#include +#include +#include + +notrace int __vdso_clock_gettime(clockid_t clock, struct __kernel_old_timespec *ts); +notrace int __vdso_clock_gettime_stick(clockid_t clock, struct __kernel_old_timespec *ts); +notrace int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz); +notrace int __vdso_gettimeofday_stick(struct __kernel_old_timeval *tv, struct timezone *tz); + struct vdso_image { void *data; unsigned long size; /* Always a multiple of PAGE_SIZE */ diff --git a/arch/sparc/vdso/vclock_gettime.c b/arch/sparc/vdso/vclock_gettime.c index e794edde6755..a3f85d9cea52 100644 --- a/arch/sparc/vdso/vclock_gettime.c +++ b/arch/sparc/vdso/vclock_gettime.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #ifdef CONFIG_SPARC64 -- 2.34.1