Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp873813rdg; Fri, 11 Aug 2023 02:38:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFYC3j/Bq7TdbyNgFQTC7PA5BDYzA9VKnSKlrda7ExgLACvQ/SpO2d25M6Drw15QNN9GIhc X-Received: by 2002:a05:6808:2892:b0:3a7:9af0:604a with SMTP id eu18-20020a056808289200b003a79af0604amr1647041oib.3.1691746706368; Fri, 11 Aug 2023 02:38:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691746706; cv=none; d=google.com; s=arc-20160816; b=pvskb/9IKU5DYP8heA929ggyImjasTozXIinRMx+MhWXEm90IpCJfpTvuFjYdHZJWu Tch59uQznXNV59viA57QHvDwPav7A00etIhoYDzj3Qiw9G1Ispvs1AC20gMMhNPlPElw 4eU3BU84sLBsQb/qKhxTKGAcvtb/vlLdwGRIHNevolVgOrb0Q45+6NQo97P/JgzxoMZW hUSMjGIMDzhlC8cYUQ1KMSRWfQRueCUku9HtPfZ7WQfQ1tHADbVbtJc0ypbv5AvxZEN2 dXZetz7n3frYrQk0hWcJrdEFQsMASfU2k0HF4MWMNe/rOfPWk+2I0x4aFmhhq+/RkxXS mjDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=OL4AYFZyzV0IyAs6oX+QxBd0gaGJ0aoBa9K2dbekbkY=; fh=R4SCruNEM+J7dN9DtIlMNteBG68B+5sa0kufEeqje4E=; b=j6pVrjNgqh6LF1NmZ6V71/UGwGhD6JVXysy8FY0xj2i6DaXJYVIfjfuIx/MKbDtpzd iTKdourYAjcmzFxtddr2SVC9P4N+z/bGKEne/NcVHhMSSbpysn0ze4rfsjhcVDPwFk+U gZ8Imnz8cfc377ODJJk5SXAEG0IY1VjphY8PcaXclYwi8AKva4f8PNq2C39w30b2PMxd SHXUEeo0ta/0hm6UnZIht5WZsJz3HsTwOGwbPphdKDi6XPShrb/yhA6SQ11EW6K6iyXV DbG6Umai//ORts+E+UTrvryF8tGyeldoCUN5TI9krH/HBXBXo9oHIpfvgW51D19u30hY Ch2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b="mogk/r/N"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=knkQ54EK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b12-20020a63340c000000b0054fe295d487si3135717pga.434.2023.08.11.02.38.14; Fri, 11 Aug 2023 02:38:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b="mogk/r/N"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=knkQ54EK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233928AbjHKHd0 (ORCPT + 99 others); Fri, 11 Aug 2023 03:33:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233911AbjHKHdZ (ORCPT ); Fri, 11 Aug 2023 03:33:25 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F252312B; Fri, 11 Aug 2023 00:33:23 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 432595C015E; Fri, 11 Aug 2023 03:33:23 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Fri, 11 Aug 2023 03:33:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1691739203; x=1691825603; bh=OL 4AYFZyzV0IyAs6oX+QxBd0gaGJ0aoBa9K2dbekbkY=; b=mogk/r/N8yRt7QB9kN nerarNGuigc7ZWP4WZmeGAlA5wFDlMAsJDGjMqb5YqxKKDWpl4gOnGykt6axlq4I rhkzi7cnW1p+lCFTmC26NW6GrQ3hMjNdWk34Sy9yFtomKI2DNlZQ3BYcy5+HXj5L cBEH4cFxKGfFBf2qpSJ0OcVScCnH4gaEfY196SFNFRI6ChwocNlTf5riKunEOzJZ kr8KB84UEgBoD8HFUb7M9iSu+7SX7RdRgM17k4koiKZgZ8pWD1a2D5IwdAKfV9sK xmZEgewXUegev+ljO0pFPZ5fSKrCTf8s3WD1yxCvBjURZO+AdKv5Nsy8cVPphRel HMsA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1691739203; x=1691825603; bh=OL4AYFZyzV0Iy As6oX+QxBd0gaGJ0aoBa9K2dbekbkY=; b=knkQ54EKuud/lRkoQfZeo0qWOiFzb DI1Ez5BbouSpdayi3z+wmQWR382KJh0saLx9dGNvKgF4nvQ74HH89n9/ZMyECM5l Xd6mNnoBTUSI9mYiBhW0AvE9SKT4Reifbp2Acrels/GYSCLOvdgrAKkqVv5T3tBz HxOEmc5ST/7/EDzXcyqxsAfHkbpusPG26vULV6zWyIqpnhpw3O+tLzZMYB02C5xn AFJPovfLOChpmqJtI9dHFxrLNCLVcUejSuVT+LYkNTbkjhywpwydJwdHXHT4eZCy xwthmElWCQbmKkkPFJ7DOZKgEvpsBvD9Lildl4O/cKDzh0QjLREbC4psA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrleejgdduudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepvefhffeltdegheeffffhtdegvdehjedtgfekueevgfduffettedtkeekueef hedunecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id C8769B60089; Fri, 11 Aug 2023 03:33:22 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-624-g7714e4406d-fm-20230801.001-g7714e440 Mime-Version: 1.0 Message-Id: In-Reply-To: <20230811030750.1335526-1-guoren@kernel.org> References: <20230811030750.1335526-1-guoren@kernel.org> Date: Fri, 11 Aug 2023 09:32:59 +0200 From: "Arnd Bergmann" To: guoren Cc: "linux-csky@vger.kernel.org" , linux-kernel@vger.kernel.org, Linux-Arch , "Guo Ren" , "Arnd Bergmann" Subject: Re: [PATCH] csky: Fixup -Wmissing-prototypes warning Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 11, 2023, at 05:07, guoren@kernel.org wrote: > > Link: https://lore.kernel.org/lkml/20230810141947.1236730-17-arnd@kernel.org/ > Reported-by: Arnd Bergmann > Signed-off-by: Guo Ren > Signed-off-by: Guo Ren Thanks for addressing these! Reviewed-by: Arnd Bergmann > --- a/arch/csky/kernel/vdso/vgettimeofday.c > +++ b/arch/csky/kernel/vdso/vgettimeofday.c > @@ -3,24 +3,35 @@ > #include > #include > > +extern > +int __vdso_clock_gettime(clockid_t clock, > + struct old_timespec32 *ts); > int __vdso_clock_gettime(clockid_t clock, > struct old_timespec32 *ts) > { > return __cvdso_clock_gettime32(clock, ts); > } > This works, but it would be a bit nicer to move the declarations into a header. I see that we already handle this in three different ways across x86, arm and arm64, and you picked method from x86 (and loongarch) here, so I can't really complain. What we should probably have instead is a new header in include/vdso/ that declares the functions for every architecture. Arnd