From patchwork Wed Sep 20 05:21:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 142245 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp3918835vqi; Tue, 19 Sep 2023 23:35:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGdMe5TUZA5LVlTs5+8FUYRI14FP6mKExkOajXHMoOGLLzX2XezAhHLUAN6x1cI9ZRE701q X-Received: by 2002:a54:4090:0:b0:3a3:f13f:8036 with SMTP id i16-20020a544090000000b003a3f13f8036mr1410689oii.11.1695191759300; Tue, 19 Sep 2023 23:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695191759; cv=none; d=google.com; s=arc-20160816; b=G2SCTTro9hbztCZD4I6PqNil5Ss0fZAYOi/TTD4wugNAEcKjEAafgMPX1cWpNJZh5R WUD8KiSbeUpd/M5qHyoYFn7zlQ6BQ6F6CgN/p7tr2HBJQyp303H6WmYOeqabI2IbdT2y MoPXTf8Dp7os77V36shylDecD1PyG+OfrKf+ZlGZ8haGxKWgAnmD+TUWNVUVV01bdJEo TBMfPh6SZI5GUEEMoBz222pFmjqGm62VmrP+tse6FSumoSaAsYHdQrbz2NIj7HUCdoBx CRHdeWXuqEc7y4QbD6MhDMnhOy7dV+WW3mFzksoJgT0eQoYrr2O642TrIWJSMRKYoo0I rnFQ== 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=kk6lZRO/t/J9IUZNk6Jb2vRh19MJNCWq1VrhGxnRYi8=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=pK/xypQE3unX114Cn+Vyr4bmb/aR5gJje8nY9Op53CNlk9HKmA0R2GUE8oUm1blV8l 9VLxgK7DvUrTAG1AEw+2uot1m7P+vSFI04CkqXvmdyv/syM9GDVRHJPLItKXZOAdZIp4 MHUkbNZsxwQiN61gYC2S3tdCosENScvTfkPvgKFtUfAPtSMd/YlJzTyvC9d2PZyAy2MH Uc7EldYecEAUa4CQzIJg1V9SefaOYvGTO9qwsfbd7Wz9KOntkFGmxquMtJFU8bGn/z9u rLMXRubhAw6ce4rykXZ4DFwXIAiN1QAIZyQsUnx6U+0NzQY7sIY16Xsq5+/u/DEDa1TI b88Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=gIuisHB8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id c16-20020a656190000000b00573fc6de956si10978223pgv.223.2023.09.19.23.35.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 23:35:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=gIuisHB8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 7F1A482CEFC8; Tue, 19 Sep 2023 22:22:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232591AbjITFWO (ORCPT + 26 others); Wed, 20 Sep 2023 01:22:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232446AbjITFVu (ORCPT ); Wed, 20 Sep 2023 01:21:50 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C444E110 for ; Tue, 19 Sep 2023 22:21:43 -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=kk6lZRO/t/J9IUZNk6Jb2vRh19MJNCWq1VrhGxnRYi8=; b=gIuisHB8CA3PMSlxEJHLzHsXqn K9TT1b2fTS35Y51d5hXTQl5kUvyCsHiWLpWymn00kdEeBQn79xhQPRktUY2dMy7bfz8tbQ/v4MUQ7 bAhptWXh/DI75Z8tKKEU5XE8yb7PvFVI+GJkVyCrW8WyddUuGkTvkgWCe2e3qZiAEQ7duYoO/ZmOf NXQHhcWQvGsVLPKJhZ92iCesGBhbKIQF65DSfpzFBBxvHIbJ+S9Jlj/1SqKpIY4QM6K3gMa5IiC52 5049TX/Zl7t2x3bxvzU+FI/1zx0M+kFoxBv1JD1PNL2EB5nNwySTEfk4US96J0avdQg/dKUTIdIzM mHd1dhlQ==; 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 1qipeh-001tym-1f; Wed, 20 Sep 2023 05:21:43 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Chris Zankel , Max Filippov Subject: [PATCH 05/16] xtensa: processor.h: add init_arch() prototype Date: Tue, 19 Sep 2023 22:21:28 -0700 Message-ID: <20230920052139.10570-6-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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 19 Sep 2023 22:22:19 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777537394007267410 X-GMAIL-MSGID: 1777537394007267410 Add the prototype for init_arch() to asm/processor.h to prevent a build warning: arch/xtensa/kernel/setup.c:244:13: warning: no previous prototype for 'init_arch' [-Wmissing-prototypes] 244 | void __init init_arch(bp_tag_t *bp_start) Signed-off-by: Randy Dunlap Cc: Chris Zankel Cc: Max Filippov --- arch/xtensa/include/asm/processor.h | 4 ++++ 1 file changed, 4 insertions(+) diff -- a/arch/xtensa/include/asm/processor.h b/arch/xtensa/include/asm/processor.h --- a/arch/xtensa/include/asm/processor.h +++ b/arch/xtensa/include/asm/processor.h @@ -14,6 +14,8 @@ #include #include + +#include #include #include #include @@ -217,6 +219,8 @@ struct mm_struct; extern unsigned long __get_wchan(struct task_struct *p); +void init_arch(bp_tag_t *bp_start); + #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) #define KSTK_ESP(tsk) (task_pt_regs(tsk)->areg[1])