From patchwork Tue Nov 26 14:32:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 13886096 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ED453D3B996 for ; Tue, 26 Nov 2024 14:33:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:From:Cc:MIME-Version:Message-ID:Date :Subject:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=rj2Nx3KZXohTGnRQt4AhITPIOp2ti35oLupHeaJNw34=; b=hn6nqEsDWBg9vQ leQpKBjQrY2OX9052pVVkNkHbuzksZNcqBmF222E0M/Zy1vugzi+QMDQ8Gqovv6npLKuzq3gTztkD 5bnnsNpdXa4wwJSidooxPU2938+TnvKorq61I+3xulRYzGa3P8HK4nwIll4JCTznuA1jz0uJaX8rv yazxXIUD4lNu2hBNX9SO0etBVGj0+g0S4xGEZyTVktmEsuBsGNfMZCifIJdPZWCS5pM3HKq98NClG vPUiJT+6pk3CRCMgfO2YAFBHOr4TZReftfJAQawtgnjkMDVTYO2IqzozC/CqFb/uYzHNMxWpwogee sjZwDXjNUGz8C0no/clg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tFwcs-0000000AsPO-0cWD; Tue, 26 Nov 2024 14:33:14 +0000 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tFwco-0000000AsMv-2hPD for linux-riscv@lists.infradead.org; Tue, 26 Nov 2024 14:33:12 +0000 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-7245a9d0e92so6315878b3a.0 for ; Tue, 26 Nov 2024 06:33:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1732631589; x=1733236389; darn=lists.infradead.org; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:from:to:cc:subject:date:message-id:reply-to; bh=mupxBHsaoCYNVEDwdoHYv6SSRLAF/zY+Vk0gFGxEgOg=; b=3awDRFiLkFHKl+TmLCmJJWGTzVfCgUwbweRZTedwGDNNYhGmopr55XNjcZdCcqZsNO L5/lN4EwV3uIWFiZLRuZRmesHnbq9mI7oL6W1h3sLwNcm6vy3Wlp7WZDmL9ieFm8jkqa 3EDRfVXpoNz64WYm9Pntp1gcdGvKosXCR4JajSFwc47XDS0evrQfMRguikF5SyR+nFsG bWpNhqPlhc5kxGNzCLqMbJZTie+6Ycikk81Su4DU1RfH3/xj3ArmvwpuuftFZIaIx22T pKhF/ZJIDgg5dvHqBVD6KjHOlRtKXTGW/d7BW7VqMUFInk4b0azxKZm8WklHPZ/Knv62 M/vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732631589; x=1733236389; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mupxBHsaoCYNVEDwdoHYv6SSRLAF/zY+Vk0gFGxEgOg=; b=WWE7+DcvF/eagDVEVG+1rzDgM1TSWJ9L+aZ8eE5D/Ex3cFd54YzpHMrbxePCMeY+3J lfkys6OnK34+t9r+RppTJHRAENPYHheAgiV8yqBZ3enBERM1g+Zt7Jl9gpa9bRBffqrB hzk3ifF0kkq0iY+0wihLg81KjznSWO24VlZ2cFfbRyLm2m1kv5cGUY55vfBypvGXRp7X 03WSC+gutlNNEd7HxV9m+n5RUZcdsr7xAcdU0LkwIXCw0eviBy8lyxK0Sby2WHHb4agg 4M8DvxC75xrmOe14g75E09seOOAY5SzkinSkb1XWVqglSMfw3xqOFZvwuTVnfNtjgvvV dyLw== X-Gm-Message-State: AOJu0Yyjl77ZYxxlHze+2dGYKEMXVZ8vbaLTZQQ6uSWbjePuB/bN4Fzk YuKTY+9ODtXjhyQXLWGWsrnLIPxJvi0icCFbuybtJZWtH5xg++k5tcsFpQvAJO+1qg+x9F0cZKe h X-Gm-Gg: ASbGnctUBzKRo7Z9zMqF6rHQj78vDn4Q7hxww2KLFJCh9YnPDobg+qTphtxx9SdGQM2 pGx7XToP9I0IGcCzLddfGQXCOqRp7whGocDgx5y1YwDyKW0kEgOutUijV9qAHiWMx4u4jgZg8cN aKyF1SN4IOmuhVRdazePLwb4+q71f3OhhozqFetYpKJ3CGgD48h/RahzleRAqmz2Mr8igxnSlRq VUIv0arVFK7JakCLoC3jm1GuwMJZiYW9B0buAvCQKXNcDtF X-Google-Smtp-Source: AGHT+IF+rcJZjnN6V6SKmX3MXts9npgA2UuoNeWqP83fdeNumO/mz1uFb5TDfGJJ+sw6pVK5at/pxw== X-Received: by 2002:a05:6a00:2d10:b0:71e:3b8:666b with SMTP id d2e1a72fcca58-724df604670mr16595256b3a.15.1732631588932; Tue, 26 Nov 2024 06:33:08 -0800 (PST) Received: from localhost ([192.184.165.199]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-724de47d186sm8472744b3a.76.2024.11.26.06.33.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2024 06:33:08 -0800 (PST) Subject: [PATCH] RISC-V: Remove unnecessary include from compat.h Date: Tue, 26 Nov 2024 06:32:50 -0800 Message-ID: <20241126143250.29708-1-palmer@rivosinc.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Cc: Palmer Dabbelt From: Palmer Dabbelt To: linux-riscv@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241126_063310_947708_C28D8063 X-CRM114-Status: GOOD ( 10.17 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Without this I get a bunch of build errors like In file included from ./include/linux/sched/task_stack.h:12, from ./arch/riscv/include/asm/compat.h:12, from ./arch/riscv/include/asm/pgtable.h:115, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:30, from arch/riscv/kernel/asm-offsets.c:8: ./include/linux/kasan.h:50:37: error: ‘MAX_PTRS_PER_PTE’ undeclared here (not in a function); did you mean ‘PTRS_PER_PTE’? 50 | extern pte_t kasan_early_shadow_pte[MAX_PTRS_PER_PTE + PTE_HWTABLE_PTRS]; | ^~~~~~~~~~~~~~~~ | PTRS_PER_PTE ./include/linux/kasan.h:51:8: error: unknown type name ‘pmd_t’; did you mean ‘pgd_t’? 51 | extern pmd_t kasan_early_shadow_pmd[MAX_PTRS_PER_PMD]; | ^~~~~ | pgd_t ./include/linux/kasan.h:51:37: error: ‘MAX_PTRS_PER_PMD’ undeclared here (not in a function); did you mean ‘PTRS_PER_PGD’? 51 | extern pmd_t kasan_early_shadow_pmd[MAX_PTRS_PER_PMD]; | ^~~~~~~~~~~~~~~~ | PTRS_PER_PGD ./include/linux/kasan.h:52:8: error: unknown type name ‘pud_t’; did you mean ‘pgd_t’? 52 | extern pud_t kasan_early_shadow_pud[MAX_PTRS_PER_PUD]; | ^~~~~ | pgd_t ./include/linux/kasan.h:52:37: error: ‘MAX_PTRS_PER_PUD’ undeclared here (not in a function); did you mean ‘PTRS_PER_PGD’? 52 | extern pud_t kasan_early_shadow_pud[MAX_PTRS_PER_PUD]; | ^~~~~~~~~~~~~~~~ | PTRS_PER_PGD ./include/linux/kasan.h:53:8: error: unknown type name ‘p4d_t’; did you mean ‘pgd_t’? 53 | extern p4d_t kasan_early_shadow_p4d[MAX_PTRS_PER_P4D]; | ^~~~~ | pgd_t ./include/linux/kasan.h:53:37: error: ‘MAX_PTRS_PER_P4D’ undeclared here (not in a function); did you mean ‘PTRS_PER_PGD’? 53 | extern p4d_t kasan_early_shadow_p4d[MAX_PTRS_PER_P4D]; | ^~~~~~~~~~~~~~~~ | PTRS_PER_PGD Signed-off-by: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/riscv/include/asm/compat.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/riscv/include/asm/compat.h b/arch/riscv/include/asm/compat.h index aa103530a5c8..6081327e55f5 100644 --- a/arch/riscv/include/asm/compat.h +++ b/arch/riscv/include/asm/compat.h @@ -9,7 +9,6 @@ */ #include #include -#include #include static inline int is_compat_task(void)