From patchwork Tue May 16 19:35:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 94883 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp659790vqo; Tue, 16 May 2023 12:39:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7jQpE75PO4JL+jPxt6yk5AV/JnsOwT7abTrjwRgux0jFmLEXTYLsLfTg4ehkg0rPPmCU8x X-Received: by 2002:a17:902:ce8c:b0:1ad:f138:b2f6 with SMTP id f12-20020a170902ce8c00b001adf138b2f6mr16831490plg.16.1684265999662; Tue, 16 May 2023 12:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684265999; cv=none; d=google.com; s=arc-20160816; b=oo4X3TZuov0vG4dd9GTL8oOS6akt+zMsWfhFtr2fxijq71KZwBt5HUWRSpqaq1WIQ1 zPV2ThFLTimKTmpRVPC51OodGQJo3+aTOaheEZ7mpnhRcGV9t/DDztIEkRZIbhJ0g5gc x7QVQbRKdF1eSw+lxrn9jCYsxQCx44O7PElrkAVr4t8QqUw6jyAuWSkXuFGb1QIX+rY2 q8NzmR6CCv96bTE7WcMtyCif94h4aRK9HuEE5KI4EA66b7X+7d+z1bSVtCze8PlyABGo 8hPd4VMolRmFNCE8Kwa/Gwwr3QJEhtOCeAPOMsNiTYmnKKLW12y+EtE1tYxONc2pumOk 1MOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1dbyLDVJGTc0cXrEQAOecdZFteFRqkiQmJwAzs9ZGDw=; b=kwUgTWF0/NKjuN3TcwdysN8sOQa9uAQdyOb7J6zRsFIzIP52WjcsJFIgJxmS/dVqbe x2plu6YJzb+jv0g3umTa8vx8oCclL7H/v8a6TertouvDf7MCixUTSldqcy+pm0xQilV7 Znz85is/j2OSmv930Geb72Tb12akVx7MM+e1odBzxej/h/BRPrm6hjSK/ifnK2svh8BC u63safNMXrUdWaAmOojZZAZPBWThZJ7Nfz5SJy2u9UbznVq8FLjC0/V0gD4GX6bPs+fW DU3CCi55m3Nic+PWy9sQYSypqHbAZy3mgOjPRUwbYI+jXgIrYRBLNoowd9MVe4f5ySc1 u/0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QzHHLwTI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e19-20020a170902f1d300b001addf547a59si10786871plc.0.2023.05.16.12.39.47; Tue, 16 May 2023 12:39:59 -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=@kernel.org header.s=k20201202 header.b=QzHHLwTI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229849AbjEPTjA (ORCPT + 99 others); Tue, 16 May 2023 15:39:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230397AbjEPTir (ORCPT ); Tue, 16 May 2023 15:38:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B6D08A58; Tue, 16 May 2023 12:38:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E945D63E22; Tue, 16 May 2023 19:37:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5BB4C433D2; Tue, 16 May 2023 19:37:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265865; bh=ePOLp5lrYksDFnI5SruvVtfGvFIosnERaoYqbpISZdc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QzHHLwTINJvvcADDWDAFD53gb0rzvbfM+9frChQz9nOeJdPvDbN96AuXaWQc9Zvxr aIMvdYvF3T+QNbI/k5wpwc6MSujK2ulBi7AB+gIW4MAFtORYIB6dloPpaU3136n4im 28e0oQ/gFuMmWEVqE32GvMwA8QC1R8ZOSDj5aB75yht+WU7UenY2JSg291k/G5ntiU 9aBuw8l68CYZc+TZWL+A0oDAj4k2nTmi3WAfSETq8X/lpMsTNhdlRU1e3qXY/DCjc8 kbTXiAG5OAPFlElt+nbApNzKv5CT7DQpkoHI/Mebhyj1HGkKmozLCY+jMgkk1Bebd7 De/Gp233G0FBg== From: Arnd Bergmann To: x86@kernel.org Cc: Arnd Bergmann , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Andy Lutomirski , Steven Rostedt , Masami Hiramatsu , Mark Rutland , Juergen Gross , "Srivatsa S. Bhat (VMware)" , Alexey Makhalov , VMware PV-Drivers Reviewers , Peter Zijlstra , Darren Hart , Andy Shevchenko , Boris Ostrovsky , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-pci@vger.kernel.org, platform-driver-x86@vger.kernel.org, xen-devel@lists.xenproject.org, linux-pm@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 16/20] x86: vdso: include vdso/processor.h Date: Tue, 16 May 2023 21:35:45 +0200 Message-Id: <20230516193549.544673-17-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516193549.544673-1-arnd@kernel.org> References: <20230516193549.544673-1-arnd@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766080904556110017?= X-GMAIL-MSGID: =?utf-8?q?1766080904556110017?= From: Arnd Bergmann __vdso_getcpu is declared in a header but this is not included before the definition, causing a W=1 warning: arch/x86/entry/vdso/vgetcpu.c:13:1: error: no previous prototype for '__vdso_getcpu' [-Werror=missing-prototypes] arch/x86/entry/vdso/vdso32/../vgetcpu.c:13:1: error: no previous prototype for '__vdso_getcpu' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/x86/entry/vdso/vgetcpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/entry/vdso/vgetcpu.c b/arch/x86/entry/vdso/vgetcpu.c index 0a9007c24056..e4640306b2e3 100644 --- a/arch/x86/entry/vdso/vgetcpu.c +++ b/arch/x86/entry/vdso/vgetcpu.c @@ -8,6 +8,7 @@ #include #include #include +#include notrace long __vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused)