Message ID | 20230920052139.10570-11-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4062045vqi; Wed, 20 Sep 2023 04:30:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGl/VHSRmMpCfILyvkoN6H4Kc1kFXoJuFvUOOGdqu0PEIpwqXUUl8xQELEgekTs4n7eFzqj X-Received: by 2002:a17:903:32c5:b0:1b8:8ff5:2cee with SMTP id i5-20020a17090332c500b001b88ff52ceemr2292208plr.64.1695209429450; Wed, 20 Sep 2023 04:30:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695209429; cv=none; d=google.com; s=arc-20160816; b=yTFIr0rO4gGj/vg9cC/8aPUGGpifoXjeWc/MofdlCFBLmH7Cc3FmmLTUdLbf5Bq36R zZsw3RAgLoRKlgR1ZFTZm3yE9j0wHLS0hEooZrNPJCu5g/CceiG0XRwqCsOgHMhAwcKT jXhKMl9aITEViNSo96msk5HFigHJRlzWdqrgzJoE5yI0aCU6zXmiUt6GlnUBq4kl6pDp CMlLjjumfGNPPjEhz2cHHYlLD76dgJNfZNZFw140ZmNiVhiCCMEXUCZaKV2HkoT2o7ER nknabyNV5+NVx3Ne6rpI8NAXh400X3urnvfX056X2+C4iPhlJAI2A0rwE3qCDbTj/Od4 ws1w== 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=4HIhMY7GzHluaw6zpJ+7jZBwZYJkux/Wi2WftldLB38=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=mmRkzw+bcEvkyei+Y4q+TVXrUyLTxKdgGNAgK4DSY7xE11a5oL3bz4WRK8Hs8W3H7V J4TCkizTgc0c9HJDl7OqbiVRM+tZN2h+eALBB04ZJo2MXER5W8DWoXdqT72/aFRBj0ES nc1qr0pYGomVhSHtN9WG6tUzmDQezDE5KOiIVdgxFTA1u3DBctKeA/EARDGL1xlEwRrK E+xA60aKZAQQnwyfyXVP9rmEJjd00pJDGCgQ3s/0PiRowuBNVRXWIZ9+BpBoJsz8u9Qq TSgW5ILKh+zq026QLpVST/wyesVxoSS4nRVEl4cvwp/IaNTG8PY5Y2m+VX6sxwzlkDCI GWkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=RcDjiSTf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id km16-20020a17090327d000b001c3346175acsi11400688plb.137.2023.09.20.04.30.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 04:30:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=RcDjiSTf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id F193A80D7725; Tue, 19 Sep 2023 22:23:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232885AbjITFW5 (ORCPT <rfc822;toshivichauhan@gmail.com> + 26 others); Wed, 20 Sep 2023 01:22:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232529AbjITFVv (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 20 Sep 2023 01:21:51 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40BBBC2 for <linux-kernel@vger.kernel.org>; Tue, 19 Sep 2023 22:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=4HIhMY7GzHluaw6zpJ+7jZBwZYJkux/Wi2WftldLB38=; b=RcDjiSTfO6D/u/E2n07xRc/WUb LFK30atEO3ctcQ7/z/XmRxrOxrAtmNGu5Hp7p2paAmXIBbEB4Dj1307NCfwmv1ySxzF0zXxk8OUY8 3lt6Hj+z1Lfw1cLfUpco219XLo47Hq1DeDTsqHYoIFVLtQXHwK4HyIUpyUV1TP2bmYNqaPRHzeYjz nZMFtD4sl4EuX57ABKcT1kj3/YG4QoH9q4w0etVI0VM4Vz51hGzvR13ju73m9zE68BK5XiVPmBY2Q ZR3G4DLF9vI4I65LT1xeWfJP/RH/shRHbQrHZIohJ/4dD8MN8fFWHDOphLVEKEo6KrzmgnnlQLOJe 5BjTi6LQ==; Received: from [2601:1c2:980:9ec0::9fed] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qipej-001tym-04; Wed, 20 Sep 2023 05:21:45 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, Chris Zankel <chris@zankel.net>, Max Filippov <jcmvbkbc@gmail.com> Subject: [PATCH 10/16] xtensa: smp: add headers for missing function prototypes Date: Tue, 19 Sep 2023 22:21:33 -0700 Message-ID: <20230920052139.10570-11-rdunlap@infradead.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230920052139.10570-1-rdunlap@infradead.org> References: <20230920052139.10570-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 22:23:20 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777555922358088986 X-GMAIL-MSGID: 1777555922358088986 |
Series |
xtensa: fix W=1 build warnings
|
|
Commit Message
Randy Dunlap
Sept. 20, 2023, 5:21 a.m. UTC
Use <asm/smp.h> to provide the prototype for secondary_start_kernel().
Use <linux/profile.h> to provide the prototype for
setup_profiling_timer().
arch/xtensa/kernel/smp.c:119:6: warning: no previous prototype for 'secondary_start_kernel' [-Wmissing-prototypes]
119 | void secondary_start_kernel(void)
arch/xtensa/kernel/smp.c:461:5: warning: no previous prototype for 'setup_profiling_timer' [-Wmissing-prototypes]
461 | int setup_profiling_timer(unsigned int multiplier)
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
---
arch/xtensa/include/asm/smp.h | 1 +
arch/xtensa/kernel/smp.c | 1 +
2 files changed, 2 insertions(+)
diff -- a/arch/xtensa/include/asm/smp.h b/arch/xtensa/include/asm/smp.h --- a/arch/xtensa/include/asm/smp.h +++ b/arch/xtensa/include/asm/smp.h @@ -23,6 +23,7 @@ struct cpumask; void arch_send_call_function_ipi_mask(const struct cpumask *mask); void arch_send_call_function_single_ipi(int cpu); +void secondary_start_kernel(void); void smp_init_cpus(void); void secondary_init_irq(void); void ipi_init(void); diff -- a/arch/xtensa/kernel/smp.c b/arch/xtensa/kernel/smp.c --- a/arch/xtensa/kernel/smp.c +++ b/arch/xtensa/kernel/smp.c @@ -21,6 +21,7 @@ #include <linux/irq.h> #include <linux/kdebug.h> #include <linux/module.h> +#include <linux/profile.h> #include <linux/sched/mm.h> #include <linux/sched/hotplug.h> #include <linux/sched/task_stack.h>