From patchwork Wed Sep 20 05:21:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 142491 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4222904vqi; Wed, 20 Sep 2023 08:28:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF8JlcxEt3BKB9n6YtmoPHJ9v+oBrVrGwwOJ2qB9sLJvOOrymoUQgMyuqT9X0TwKPxtZk19 X-Received: by 2002:a17:902:ea0c:b0:1c1:fc5c:b31b with SMTP id s12-20020a170902ea0c00b001c1fc5cb31bmr4339979plg.9.1695223700553; Wed, 20 Sep 2023 08:28:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695223700; cv=none; d=google.com; s=arc-20160816; b=ho4PSe33arPFLnAJBsnkozPWuN5e8pxPfR+BuLEWAnzmg5hZyvz2sdrh6Y/aak/iO0 UueBmEZ+g4auOYRUYvx+/RKJNqaNcQ/xRvlgYxCnvZN7enq13ZynQbstGYHyJdzpBLpN 0+ArI2puKSLWZeY6El5BAC57GzBpxzABfJ0+Va+xOT8nFNu1nJqEKR+CdhoCz5Gz+uD3 5RR+ZMDUIJjRk8UsXj1WevyYOtsApIWK5Uy/F1LMS+kKMfFeH2GMPrdg6hX0UY3gOmX+ 4bd1ckDnE5gsTeNDeHQajnn6KVYhtRoqgirk8NWZHyqAErchOUnxzGl6rOBLOyUMXGoU 8aPA== 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=muiwzLxZMy2jBRh4Pcbc7GxkV5wLF//W5T5aDFUGToo=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=gPCBjtCH9UB7Qz5T8bhTbR85VZfl2TfmHWK0lsh/+xqE97GSvmOLMerQ7XpkyINyZi Tj8hKFm6CRR186Ouh6nByff2FnxU1/77WvSjBwsmrWMXndGM5JjRx931t+h3PpN6Aa0q 75c5XiTRx5TkfA/xq5DWfjnlH/IIAetpMnJxNpCBUDviGY/1+d2KBkNrBM7pO9CI0vMJ OJY6YeL0RvYfSxNsn/JisjUVBgqyblCkzwnwakS5j8+BrhaIFnWg2FL68Gw+gczUM994 AJD9tPDM4Hj3Q9TcxEeBrvkWlgmHE02Sq90k6qyuWmD55Z3f1yTbj+bOXbai2TGzXlmJ qIMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Z1VwBgv4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id p15-20020a170902e74f00b001bde8c9800esi12579478plf.459.2023.09.20.08.28.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 08:28:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Z1VwBgv4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 DFACA802C17E; Tue, 19 Sep 2023 22:22:54 -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 S232799AbjITFWt (ORCPT + 26 others); Wed, 20 Sep 2023 01:22:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232543AbjITFVv (ORCPT ); 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 CF95FD7 for ; 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=muiwzLxZMy2jBRh4Pcbc7GxkV5wLF//W5T5aDFUGToo=; b=Z1VwBgv4GnNAEnNv9MdCTu7HQK jHpWqEkNRqm058IC99bKK7tUqs1ukIg+6+ZdyJP+fTHKNpeSdgBdm9vjjd8NFQamC69nYGBgg4RWL QiTZ5bkOzDqISdieJjn+r7kIRMJNUv/BIyi9FuPTiEbOdJAKHzIdNoOXl6bDWGFi7AajbK+BPD700 dMoUuCr76hm8tWGihZrDYxoXvCPqQEW8mAQls80UQmOBd/fLfBkuNB/q5DS83ugJYJy/N9NAiYZSo dp0B0Z25hOX4Ka7Ow/lDmHSLQgMICe6s7ufeiLzsGpEsndwVJpz/VxUGY4LUK76MtQeM+pyn6fR4h hHrXhiSw==; 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-1t; Wed, 20 Sep 2023 05:21:45 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Chris Zankel , Max Filippov Subject: [PATCH 12/16] xtensa: tlb: include for missing prototype Date: Tue, 19 Sep 2023 22:21:35 -0700 Message-ID: <20230920052139.10570-13-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=-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: 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:22:54 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777570887057013569 X-GMAIL-MSGID: 1777570887057013569 Add the prototype for check_tlb_sanity() to and use that header to prevent a build warning: arch/xtensa/mm/tlb.c:273:6: warning: no previous prototype for 'check_tlb_sanity' [-Wmissing-prototypes] 273 | void check_tlb_sanity(void) Signed-off-by: Randy Dunlap Cc: Chris Zankel Cc: Max Filippov --- arch/xtensa/include/asm/tlb.h | 2 ++ arch/xtensa/mm/tlb.c | 1 + 2 files changed, 3 insertions(+) diff -- a/arch/xtensa/include/asm/tlb.h b/arch/xtensa/include/asm/tlb.h --- a/arch/xtensa/include/asm/tlb.h +++ b/arch/xtensa/include/asm/tlb.h @@ -18,4 +18,6 @@ #define __pte_free_tlb(tlb, pte, address) pte_free((tlb)->mm, pte) +void check_tlb_sanity(void); + #endif /* _XTENSA_TLB_H */ diff -- a/arch/xtensa/mm/tlb.c b/arch/xtensa/mm/tlb.c --- a/arch/xtensa/mm/tlb.c +++ b/arch/xtensa/mm/tlb.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include