From patchwork Sun Aug 21 11:35:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 12949888 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 D06F0C00140 for ; Sun, 21 Aug 2022 11:36:44 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YOOHAc+Z4LDNv8ZmEVvNlUNeuKQX9hDyiVVlMZGno0Y=; b=kijr3tcm0BPsQu L28L8wFXbE/96GHZmdkyxfF/7OLJsL/6IMN1Zo8Cs6Uj+ohhdXH5kE8ubG9e9zX1zLDemrrtFh7Vk Wnm9YJdYh5WIQJ/z2z9ZGOQ/a+q0g0diL4flLT7eRtW33bYnYmGBiV8jmp62xaw4NKW2aWAdxHq87 nDB3Q3Spbvr49VWEZlusjVM8U1tYFCrE6mMkZjDABcA2ZS0G2I7jYlmGOXcaJqcOf/MlYJ5fvAzHp yiDjN33dzPGgbjXZbnrQMgsD9NJpmcTnH5e1Pqdiwj/pIJ+PQk+/0ts6NJ2Vq/gWOa3ID4Kv7YgEW pouuKik2zd77KCrfUbfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPjFi-009mn8-Kf; Sun, 21 Aug 2022 11:36:26 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPjFc-009mfe-H0 for linux-riscv@lists.infradead.org; Sun, 21 Aug 2022 11:36:22 +0000 Received: by mail-wr1-x434.google.com with SMTP id bq11so3482317wrb.12 for ; Sun, 21 Aug 2022 04:36:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=UGvwPzXngv88+qXXF2O4AJ0Z86Zyohdzp8L49ZwcrUI=; b=RFEWL69QfCRQQBK2lSa24K7nmexDHde5oOE9gK1KPgEWu/3N9BF1FKy/yant22fc7r SovDED+cd6fyc8s48RsE9t5Hb3/EgfWZ8sE3O0GnkOdMg4SdBVoDYmAToK0UlC8wMjST Dy83emsgcvHF06ICzpd5w01aqlAlScw3qmuXagdS4mHF7olMtod+7IqWIhUdkXJ+916y U1Es8YS/+TK13ci36gErubIgfOBWFCDMDaoX4eO6VW8NZFXjHEZ/W3FjivuixLu0wK4X zDWTdTcgDyHjq82/Wl3ihmDAM4A9lKTGfM1UAU6X5jcP18LNvlgBNWHiNIjIB1igLJZQ vXWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=UGvwPzXngv88+qXXF2O4AJ0Z86Zyohdzp8L49ZwcrUI=; b=T1Z6l+K8g8DrPA3ND/3oq2Pfb0ftwn1boKsGPhp9Qw8J7pWKbScYXUlXtrea0K/Yoh LML/UxPX5XNb0uhzK2G2FS9XsjZQNBnr7+RSfnNqRaQfivMGiPCGbz25gfaCK2+iK4tn 133yD9+cpP/Mg7WBNAYL+oSVbeH4UpxrtaWKkwhQioN4r1GZdmOHaKMA7c6dBQp0tI6D GkP9L8dhHWX3KOhi7Dwn49OgFb08I29zKoQL6K7QVGG7YLSOTxq10ozyIuiJ2aMYMeYA XN2yJa/5pExBOX1iTwQbRGax8S0wmPwkxsTdvfTphbe9/8gJAeaLdIoKVArC0k/rbYms pN/Q== X-Gm-Message-State: ACgBeo0WapY8Oy8Tu7dIb2HoQAo44JKo+7Gh9osd1JFovaM4PQH1k+Yh Va4H1DRQdxFO1b/hN/BGlo/bGw== X-Google-Smtp-Source: AA6agR6HxOhtorb8TKIhxX8S9RXjgPAg541CyxctPo1Ydg0AdY48FkmATY5ytrYfPqqcMNSVf1d3pg== X-Received: by 2002:a5d:6841:0:b0:225:3558:972d with SMTP id o1-20020a5d6841000000b002253558972dmr6441695wrw.461.1661081778602; Sun, 21 Aug 2022 04:36:18 -0700 (PDT) Received: from henark71.. ([51.37.149.245]) by smtp.gmail.com with ESMTPSA id m9-20020a7bce09000000b003a3442f1229sm14071361wmc.29.2022.08.21.04.36.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Aug 2022 04:36:18 -0700 (PDT) From: Conor Dooley To: Michal Simek , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Yoshinori Sato , Rich Felker , "David S . Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , Arnd Bergmann Cc: Geert Uytterhoeven , Conor Dooley , Kees Cook , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org Subject: [PATCH 1/6] asm-generic: add a cpuinfo_ops definition in shared code Date: Sun, 21 Aug 2022 12:35:08 +0100 Message-Id: <20220821113512.2056409-2-mail@conchuod.ie> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220821113512.2056409-1-mail@conchuod.ie> References: <20220821113512.2056409-1-mail@conchuod.ie> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220821_043620_614923_CA2EA3C3 X-CRM114-Status: GOOD ( 13.95 ) 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 From: Conor Dooley On RISC-V sparse complains that: arch/riscv/kernel/cpu.c:204:29: warning: symbol 'cpuinfo_op' was not declared. Should it be static? Sure, it could be dumped into asm/processor.h like other archs have done, but putting it in an asm-generic header seems to be a saner strategy. Fixes: 76d2a0493a17 ("RISC-V: Init and Halt Code") Signed-off-by: Conor Dooley --- arch/riscv/include/asm/processor.h | 1 + include/asm-generic/processor.h | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 include/asm-generic/processor.h diff --git a/arch/riscv/include/asm/processor.h b/arch/riscv/include/asm/processor.h index 19eedd4af4cd..dd2c9a382192 100644 --- a/arch/riscv/include/asm/processor.h +++ b/arch/riscv/include/asm/processor.h @@ -9,6 +9,7 @@ #include #include +#include #include diff --git a/include/asm-generic/processor.h b/include/asm-generic/processor.h new file mode 100644 index 000000000000..2ec9af562e9b --- /dev/null +++ b/include/asm-generic/processor.h @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __ASM_PROCESSOR_H +#define __ASM_PROCESSOR_H + +extern const struct seq_operations cpuinfo_op; + +#endif /* __ASM_PROCESSOR_H */ From patchwork Sun Aug 21 11:35:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 12949890 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 A1FE2C32772 for ; Sun, 21 Aug 2022 11:36:45 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=R9rM52oJ2xKQszUbuRK0SYuwG366jWy19AVw9c7rPp8=; b=KK4XscuHC/Mhjx tiIuTynD5Kr31WuGkKIv7OkMDe9upE4yhngdJIFJkA94DyRIUrkoa8+0ieRfcJSKMshg8IxwMjN98 1oiRfKBBvFbBHTCm7t/NCBVmG6QLVDEXN/o09SSrQ7q2Qi2CdYQLJ7HuEAMZ/pMo0xLtxfNmgf6nx daoZca+CVgYoMIdTbGC19uyX0+ThG73C7jzroZqUwi3reOBWDLW7R5Hg3YwcHh7UhzJlzp0PgY4Ou ie37xuqwqvVdGik0aB/m4D2sQCG8WG3O1apvbhLocOD5U/0V1gmxabMhA/BU/A5MPMdpINafYABN9 divF5b4pYpDx5doDopBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPjFo-009mu8-EB; Sun, 21 Aug 2022 11:36:32 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPjFe-009miX-Dv for linux-riscv@lists.infradead.org; Sun, 21 Aug 2022 11:36:27 +0000 Received: by mail-wr1-x42f.google.com with SMTP id h5so9255300wru.7 for ; Sun, 21 Aug 2022 04:36:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=XFcC8WCeCDvxB/v+0OTyUBSnoJfVKZTiHSkk+ggPSsY=; b=I9p8YQn3K62FrSJWSUFKpOt0UsIp+9bsVsD+oJfNVAcT5h+CZYJtepbN0KIrbvEqWC CfN+volyR9bkDOtWlZbTynhimAFp9312moQA2S0Vze0jmih9oIcwdFW38pAOKUPJseBw vMXObcP9ocBcIkaAz6g2imqEU6D0lOnKb5CehLfpmxYG+VEplogLacfxwfy+ksZUG/ba fWhm3yt3q55nHleahnjNEgTQWqs0O1LDRCrwF1Bfp0r4mcW8zfpLSVE+W3F607TvX0XO myClgiQ90dkmpbgSGL1SbcfaCzOiSRAATApsyLCyMyd3sSauWoR6ic4v0/7cwRhrog46 TWxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=XFcC8WCeCDvxB/v+0OTyUBSnoJfVKZTiHSkk+ggPSsY=; b=Bjrtq9hMZbzL3MDeY19GayCMUK5Mr6haYaoTBChsjQCoVYlJ2orMjYfDtUCSLTMwrx INGQ1EedzKYON7JmGgjUjSXntIoe0RuuemM6h30WlIvzh+vifYfJ/8nKqiTVTJJEbTCD BSGx+s7PEYDx4QKmUqW2/T/iOkYq+heL33EWpl5j5yfQ9YQYscbOyIZ9mfSgFfI/OioL gNigKqG0AoiE3Z5YUDok/AQUjFHmatJwijkI7ORNpI8udeezmsxcy2IL2s65/z1SLVmy +9hW199X+B8QMUCaM+OjlqXBo1CpfBuYrMj6h8vLeiNz5UEBHOAQIvbd1kb9zBOvZ+bg Bjiw== X-Gm-Message-State: ACgBeo1CA0aSKsRufR/tnFewLqdS86kAB8kXnCT6nJkXNGVuSIuLQ40J Qy751wsYrVGpT3tsNN1JuKJ0AQ== X-Google-Smtp-Source: AA6agR7yQJr2EFqeBiX7zFLHOZnS6xuQZ2CSX2d2szPgHhQ8PkJnM5BxqWwAIlAcnq3r7wGuyd1j6Q== X-Received: by 2002:a05:6000:381:b0:221:7540:b1ee with SMTP id u1-20020a056000038100b002217540b1eemr8123300wrf.307.1661081780659; Sun, 21 Aug 2022 04:36:20 -0700 (PDT) Received: from henark71.. ([51.37.149.245]) by smtp.gmail.com with ESMTPSA id m9-20020a7bce09000000b003a3442f1229sm14071361wmc.29.2022.08.21.04.36.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Aug 2022 04:36:19 -0700 (PDT) From: Conor Dooley To: Michal Simek , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Yoshinori Sato , Rich Felker , "David S . Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , Arnd Bergmann Cc: Geert Uytterhoeven , Conor Dooley , Kees Cook , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org Subject: [PATCH 2/6] microblaze: use the asm-generic version of cpuinfo_op Date: Sun, 21 Aug 2022 12:35:09 +0100 Message-Id: <20220821113512.2056409-3-mail@conchuod.ie> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220821113512.2056409-1-mail@conchuod.ie> References: <20220821113512.2056409-1-mail@conchuod.ie> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220821_043623_580613_FA49ADB5 X-CRM114-Status: GOOD ( 11.39 ) 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 From: Conor Dooley There's little point in duplicating the declaration of cpuinfo_op now that there's a shared version of it, so drop it & include the generic header. Signed-off-by: Conor Dooley --- arch/microblaze/include/asm/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/microblaze/include/asm/processor.h b/arch/microblaze/include/asm/processor.h index 7e9e92670df3..45a86692e90f 100644 --- a/arch/microblaze/include/asm/processor.h +++ b/arch/microblaze/include/asm/processor.h @@ -13,10 +13,10 @@ #include #include #include +#include # ifndef __ASSEMBLY__ /* from kernel/cpu/mb.c */ -extern const struct seq_operations cpuinfo_op; # define cpu_relax() barrier() From patchwork Sun Aug 21 11:35:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 12949893 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 79DD5C32793 for ; Sun, 21 Aug 2022 11:36:50 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HcV6cam0yyrMDgZ58OY9rFWjpQoUhG1I4xqKsovmt5c=; b=dH92EnYxQc7QbQ siQny0fxGfnNDWi8Uo3bCFPOzc39FskTz6GHzt7QdmdMXIBhdd3e3LsgblvkYaoh8fpkdthzFPBwz egQxDHrsI27jMcfvzcoz7dIoqUKU5bDwEja0W5FsaICEXdy5jYrB5YbWvkGeJFFI5KjskrQSZW4bl eGHpAU4H2iPVoPojnugSpXTvFsvvVkAYF6IapEGgQx3F2Ay4DRDetsrAyKKOCI8513luXBtslxmb3 PM4cksHjLdiiTMhIqq5d/T0unafN/9SLsExKI84FoktQQD+bD7JHoOzXxpsfcfjEZqfvxtu1WZJD7 7S6AEpBhdLbxLUeVip0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPjFm-009mrz-Bo; Sun, 21 Aug 2022 11:36:30 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPjFf-009mjN-D7 for linux-riscv@lists.infradead.org; Sun, 21 Aug 2022 11:36:25 +0000 Received: by mail-wr1-x431.google.com with SMTP id h24so10055861wrb.8 for ; Sun, 21 Aug 2022 04:36:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=ktqp5nP81udpM1MG+l3gnY1pzvY8/PrjfTARX1xGZ74=; b=AW0FWHnYgwNCmESZ2n9ygpoNMqROFdVrXmoyjs1i/V3e6l8BazQwWJHi9XMO+O637d Df4riE6PC/V/IgPUH8moc0EAfx7R5nCWwvG8iSYiE51RO1IzaDNMxbVkluZz63D/jFsp sQfEu3LXgHPhM16VTmczW97sJwY69CLLTXVNAY8pZeDKe4dB8m3oCjol2mhGPp1ahO2V ComPKJXyP3hAynPugfvZ3yXbmXZ7FkJXWMP8Y43x82GZahVFA7F1jqsxQLkrc9fWCoJf P8nByGfCjdrtXVcb5dZ+jg18p6ejOPnoJLMHJlkjhG/J8lyAObKocbWp1a2AGk+RECcD /M2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=ktqp5nP81udpM1MG+l3gnY1pzvY8/PrjfTARX1xGZ74=; b=47hLQXPUM9uhDitEKQ2TQbaBG4KM4yHaHDTpne7Hrb1nFwCZz8QkXNNPqm0c7ahIiK W6smIIFJeVqGnq7QsmFHIoqz1LNr6VcOdG0I+QXWbboSAzmB/JMpotjw9OXBwRAfI2Vo WH458ivU7avKt5Z/j8KVvcWMN+a5vSPdMkxYpsDbcmI4Q6StEgFJhmF0OzErFW2V5cUo bqxdN53hn9R8idPXhSNdaBGSUh9+v7fMA1bIvcnhyijGIulVmuhRVLTi/zeED7krcvUK hwYd9Nha5XlwIviHVKuS7Nd3uGgFKtlNsaQXbHBFTHaFFLbapngABRqstoHfOEb8mU4H HZbw== X-Gm-Message-State: ACgBeo3CcOjm1E7Wy4f5oy7yy1bmRBszdvOEJM6tneH6fjWH9QwTOtOY g8V6RZKCf6NdlII4l2iDTY4EBA== X-Google-Smtp-Source: AA6agR6iyTE2UwdrwXTf+0eiBHvZb7pU8qO0Gz7AlF1LBKoiF+3yUIHGhx0/IDeGH85WpPOkmWdetw== X-Received: by 2002:a05:6000:184c:b0:223:2c8b:c43c with SMTP id c12-20020a056000184c00b002232c8bc43cmr8659598wri.16.1661081782206; Sun, 21 Aug 2022 04:36:22 -0700 (PDT) Received: from henark71.. ([51.37.149.245]) by smtp.gmail.com with ESMTPSA id m9-20020a7bce09000000b003a3442f1229sm14071361wmc.29.2022.08.21.04.36.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Aug 2022 04:36:21 -0700 (PDT) From: Conor Dooley To: Michal Simek , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Yoshinori Sato , Rich Felker , "David S . Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , Arnd Bergmann Cc: Geert Uytterhoeven , Conor Dooley , Kees Cook , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org Subject: [PATCH 3/6] s390: use the asm-generic version of cpuinfo_op Date: Sun, 21 Aug 2022 12:35:10 +0100 Message-Id: <20220821113512.2056409-4-mail@conchuod.ie> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220821113512.2056409-1-mail@conchuod.ie> References: <20220821113512.2056409-1-mail@conchuod.ie> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220821_043623_642519_8179C9A8 X-CRM114-Status: GOOD ( 11.98 ) 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 From: Conor Dooley There's little point in duplicating the declaration of cpuinfo_op now that there's a shared version of it, so drop it & include the generic header. Signed-off-by: Conor Dooley --- arch/s390/include/asm/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h index bd66f8e34949..48d2332a5899 100644 --- a/arch/s390/include/asm/processor.h +++ b/arch/s390/include/asm/processor.h @@ -41,6 +41,7 @@ #include #include #include +#include typedef long (*sys_call_ptr_t)(struct pt_regs *regs); @@ -80,7 +81,6 @@ void s390_adjust_jiffies(void); void s390_update_cpu_mhz(void); void cpu_detect_mhz_feature(void); -extern const struct seq_operations cpuinfo_op; extern void execve_tail(void); extern void __bpon(void); unsigned long vdso_size(void); From patchwork Sun Aug 21 11:35:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 12949889 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 4CA11C32789 for ; Sun, 21 Aug 2022 11:36:45 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9qOrOaO26rvBLCmG6IjhRY8fGu3qmj0rUJyuWzU5Yko=; b=VLimx4JWUhHS/8 /xve48hGHek+AVqS4qnVD28xS6ESujswzxzELTcFomLy5sgd7xOyJFLnfsifIAGW1Rb0LTDBu77dz 51ed6QRYW96pjYBo1YEd+dpprErOFiPAC6692DCtaANaf7OhwHtz4mWd45XIIQG8ORdDUheUMfqpB DjjVa02a2nPkHrcITqsGloWjRl7M+mOdRfluCY0PhS2z8dwLST+JzKUrch5zPk82lThjlQi4+fTVN TF9d2mB5vzQDWaVUkKSgYZoIqX2fZDyNYB0XpABmyCrRCSx7VQ0zpooJ66m8NIsaaMo0c4/K8vAhO ++pPtoLSFp9R9i+dlJaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPjFq-009mvZ-9W; Sun, 21 Aug 2022 11:36:34 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPjFh-009mkv-Ik for linux-riscv@lists.infradead.org; Sun, 21 Aug 2022 11:36:27 +0000 Received: by mail-wr1-x435.google.com with SMTP id u14so10053331wrq.9 for ; Sun, 21 Aug 2022 04:36:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=iRydGNWOVxx1HqAigFxDEMCuXoX5Io4IU5ztqyzaPAs=; b=Y1WaN5EAlXdoOlvAydRCG82PKL3F1frMO2Gueklv8Hl+oRlW3+ER52FQNA65qlT4ar Z7WCuQ1OFzwV34ttvUMnnPCxnyOST7zPOvFzJnEfB+4j9LdkZRYIp6/YyrcDINihXi58 Mi56g3YyTvh3AlocFbuYHF9KLeRtMj+gJZRl7xjIB1eNlD6/JSYjnAvfIJHSWd6ub0ac OCinSVK1v+4gLgh4cdvz9HZxI3kVUH04Zi9qadv4lPjNlRfWpHjmC5O0WECWQc0OFyyR pCJxCnow4Yga7OV0QJIHOuik6NTHAoDHxEufFMcUkn3qy31H1Se8nChjkuwao431/pXh hafQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=iRydGNWOVxx1HqAigFxDEMCuXoX5Io4IU5ztqyzaPAs=; b=UJTcDufe5b8IpKC16GYrP+KCo++y71sAbrVSP9yr2BPyQfR6JEmcaIat+WUoSh83J7 wK1LqeYny8A+o9DGLEXfbNirVq9VeHqyDXpOp7UPiJ/3n9U7Sm/CjBEVZjoDFf5it5zm gwdo8rT4P+Ub+kKi05NpM8xCjF2xhlTbBTM3w9YRAZIIYU5+p4e4HpqcVI24XR/Hdy5v 5dIPGRARYwSjh0A+MI4C5LkRI0AP1qBfqHwzeggQF2sCD0+9ZWW9bGCF6QuOkvVqtF/a gFq1RhP0gon6yyi5RXe53K5iWZDuC2Rq0Kvgh5W9KfqiN2ce6qqfjz2wGlvF0yqiNUIP x/5A== X-Gm-Message-State: ACgBeo3x2VQM3oJFfjc4zlUyi7JwOPGwBMW8YLS1YbmhzEr1wurtTFAh NofQ7XnB4Io3rfLNj9Qp0KO72A== X-Google-Smtp-Source: AA6agR5T0RaXBxKPuBVBjPGUHGtJfc4tSWj3x0g4PlWZixJIT3RipsnS2LEVMZyj6NI4Nvr7MxTB/A== X-Received: by 2002:a05:6000:1545:b0:220:61fa:64a with SMTP id 5-20020a056000154500b0022061fa064amr8748201wry.174.1661081783798; Sun, 21 Aug 2022 04:36:23 -0700 (PDT) Received: from henark71.. ([51.37.149.245]) by smtp.gmail.com with ESMTPSA id m9-20020a7bce09000000b003a3442f1229sm14071361wmc.29.2022.08.21.04.36.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Aug 2022 04:36:23 -0700 (PDT) From: Conor Dooley To: Michal Simek , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Yoshinori Sato , Rich Felker , "David S . Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , Arnd Bergmann Cc: Geert Uytterhoeven , Conor Dooley , Kees Cook , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org Subject: [PATCH 4/6] sh: use the asm-generic version of cpuinfo_op Date: Sun, 21 Aug 2022 12:35:11 +0100 Message-Id: <20220821113512.2056409-5-mail@conchuod.ie> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220821113512.2056409-1-mail@conchuod.ie> References: <20220821113512.2056409-1-mail@conchuod.ie> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220821_043625_655337_D287EBE3 X-CRM114-Status: GOOD ( 12.35 ) 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 From: Conor Dooley There's little point in duplicating the declaration of cpuinfo_op now that there's a shared version of it, so drop it & include the generic header. Signed-off-by: Conor Dooley --- arch/sh/include/asm/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sh/include/asm/processor.h b/arch/sh/include/asm/processor.h index 85a6c1c3c16e..4125494515c9 100644 --- a/arch/sh/include/asm/processor.h +++ b/arch/sh/include/asm/processor.h @@ -4,6 +4,7 @@ #include #include +#include #ifndef __ASSEMBLY__ /* @@ -123,7 +124,6 @@ extern unsigned int mem_init_done; /* arch/sh/kernel/setup.c */ const char *get_cpu_subtype(struct sh_cpuinfo *c); -extern const struct seq_operations cpuinfo_op; /* thread_struct flags */ #define SH_THREAD_UAC_NOPRINT (1 << 0) From patchwork Sun Aug 21 11:35:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 12949891 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 56D64C00140 for ; Sun, 21 Aug 2022 11:36:48 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7boC/NBOMYdIk1XBw2HRcAAt7B/IWNGQ1ps5mrSIZH4=; b=ii+uajFFmSdM0q JtqI9JPL8CGEOFfi/I23mTfyTFHrG93/aFllmDgA60u4rn+alVwEEFRQDgSw1GfQH14uc1E1afY0W luIrY5HS3wFZZV/CyVjCYAHihcEM/HTruSDkitkgVPXzwYkSSjie7/wFeo9Sr8Ie7ueHNVBn2XX86 cmS8iBVxlLw240lzp2Cp5W7ZFwfmUN2HyWQlhbMtoU4ouUDtNB4pvp6/zjPR6hNDev5rr1vqJdi5q w0OfSGI7SM/lrQKuC4+4DSM4xItZPKDzZL3F5h1JFXdrh5yd5blCWR0NZwnAozClFK0mSsOXENX93 Lcd9qKJafrmDsSI+kutg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPjFs-009mwi-3y; Sun, 21 Aug 2022 11:36:36 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPjFj-009mmq-C3 for linux-riscv@lists.infradead.org; Sun, 21 Aug 2022 11:36:29 +0000 Received: by mail-wm1-x332.google.com with SMTP id k17so4275213wmr.2 for ; Sun, 21 Aug 2022 04:36:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=JBm3JbYzVZyjjb4o90s9QqDUxEn4h4q/mRrSSGBV0DA=; b=Ndo3cUOFcvU9vobg4ECMxbbBto0GCzZXLsi58Tc0a+aRUV5xaiUrQ1WE7WGMGonuyM pWjbfzMTxC3WZgc7Kd0dzvv55RE+rugIoVU2gm2JxNlyXxX9JvbfPqO3Wty5HComkoNy z/FrSVdRGmSxD9J/eeQS+gl4LKuNcnIyYhmaQk9x7zmNI/cHYJ6Crrta8wcLAAZP0Vvm 849bGJo2CDf1HG1GvbOSuL5QodydxN1S9/JynQLmjaY6zPYxKiVXg8b4sMMwqt3psm61 gyMTlAo4Cdjc4j6KyvB94c1XgT2tVCzfF/EiZnUD3iXReG81rvWzDLu4vp4rZTEsjGL4 ygbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=JBm3JbYzVZyjjb4o90s9QqDUxEn4h4q/mRrSSGBV0DA=; b=5UcZhlyuCUUOjVsyNLoYS2Cp2Cy0MIpJjRVaYFA6BiefORh0+GjfbdR/OtWjIc3gWd PtX+txKaFWPbTBBSxQbcz2FKwCEnx55Cx/BCpuaXCZEu2HzU79VLWinp0Iiub50DzzEO IkzNmcxXw+qkkiVcSY216Z6TGXE2zuhjPd4VFExr3iLTO15INWNbx9DrSnV6cxbPIg6M YR3mMw1hFWtxkDtpOl88SG+fptmjCzocJVzM2mk13MIx+D0YYjDSep/G9xqOzWcYZAer TeCEhETfQsayK0G7RZgp6LmOKGgK85CcuNYgMTsx7mzdJZKipZzBTV31axAePsvjXDc1 iL2A== X-Gm-Message-State: ACgBeo0MK04rWu5v9bm/Md+K95W5xlPNxRlI2B7jK3Em3RFVGmNyEHV+ oqknbtwrqPGLZ2sD9uW9yuuaVA== X-Google-Smtp-Source: AA6agR7fUuguxyVoajzO5r2IzhUFn/jBjXj29sCwHWGo+An40pD5GMxu5Abtd+UzorNvMppKEiQWPQ== X-Received: by 2002:a05:600c:3ba0:b0:3a5:b73a:8773 with SMTP id n32-20020a05600c3ba000b003a5b73a8773mr12497956wms.64.1661081785402; Sun, 21 Aug 2022 04:36:25 -0700 (PDT) Received: from henark71.. ([51.37.149.245]) by smtp.gmail.com with ESMTPSA id m9-20020a7bce09000000b003a3442f1229sm14071361wmc.29.2022.08.21.04.36.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Aug 2022 04:36:24 -0700 (PDT) From: Conor Dooley To: Michal Simek , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Yoshinori Sato , Rich Felker , "David S . Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , Arnd Bergmann Cc: Geert Uytterhoeven , Conor Dooley , Kees Cook , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org Subject: [PATCH 5/6] sparc: use the asm-generic version of cpuinfo_op Date: Sun, 21 Aug 2022 12:35:12 +0100 Message-Id: <20220821113512.2056409-6-mail@conchuod.ie> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220821113512.2056409-1-mail@conchuod.ie> References: <20220821113512.2056409-1-mail@conchuod.ie> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220821_043627_534864_7CAA4FF1 X-CRM114-Status: GOOD ( 10.80 ) 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 From: Conor Dooley There's little point in duplicating the declaration of cpuinfo_op now that there's a shared version of it, so drop it & include the generic header. Signed-off-by: Conor Dooley --- arch/sparc/include/asm/cpudata.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/sparc/include/asm/cpudata.h b/arch/sparc/include/asm/cpudata.h index d213165ee713..af6ef3c028a9 100644 --- a/arch/sparc/include/asm/cpudata.h +++ b/arch/sparc/include/asm/cpudata.h @@ -6,8 +6,7 @@ #include #include - -extern const struct seq_operations cpuinfo_op; +#include #endif /* !(__ASSEMBLY__) */ From patchwork Sun Aug 21 11:35:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 12949892 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 F214EC3F6B0 for ; Sun, 21 Aug 2022 11:36:50 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CWPtDXNxa1pA2qi72Em4ZYdGTBdUdn1kCMrtxrWqUkA=; b=e5a8tiV+A98KU1 moURTo2ShiP56WRbwMD3oMW5wpxw68Hrw31vO7tpqpfjbgpy9/i7obb72/i0210odQXyDHridgVvF OUKOtEZiIf8QzNHc3TCR34jdk3TkaOrAq3C374Cju9SEHPKkwVg1EJnE5Sl2mN00JCFGfLyY/hBIf ieZ/oXyAHZTbTCCmBA0phbl1dJ7qQMyyeg1buW+wzEvNjXUCkpFXxhe8Q4d9xvrgKW0c6SOkGonL0 NJ9F8mwnfhrwQFLg4TQ1nrBLXFbWiBDFPBkarEHAuAdYcbKR7fIpQ85oY+7dRYaWTUVHZLaKR+qDD XFVxEmpYATl0w7WqDUKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPjFu-009mzN-Er; Sun, 21 Aug 2022 11:36:38 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPjFk-009mny-Is for linux-riscv@lists.infradead.org; Sun, 21 Aug 2022 11:36:30 +0000 Received: by mail-wm1-x32a.google.com with SMTP id j26so4286986wms.0 for ; Sun, 21 Aug 2022 04:36:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=2hp0XgWencqFe8kXeBG8b3/XdH3S4lc4e5c8N+bw8RQ=; b=LAUaEh2tAFhDJlCpu8MUfNuM9zMtSGqKo7XN911tRo/xHZRFSssv95uBSiWYBXRNvp 7UlrwRnOdY0JZcF2H4jZdEU94MUwWA/ozhhj1ZMuEKiKFqthJPnpE4k3HwjOguILHVB7 d53U+CGg5Q7M4H04caRUuup7XTmPnhFCyOm/hWyHEyUf2/qJeM+8MH/mEPJBDVXky01V 0BTGH+zJ3dWWXixtmU3ecjvrZJmJJxA5T0UJsfGk3o7lT6SAQZhCJdPsna2QhaozU6fC b2WWAWI58CNPdJH9MfcZW1ZfCpmYx0ybFfF3XGsEfu7E+JgPdnqeALGmlhdXaGB53p7o /tfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=2hp0XgWencqFe8kXeBG8b3/XdH3S4lc4e5c8N+bw8RQ=; b=ecT7iP8oxL+UjZGKnZUBVCTnxfqJCyRyycCWIEdOQuiONg8A8hsrMAmr3+MdlDJxww SXO20idUR5nk+9al22WT75ZGjbhE+DnvVyiZqULu8rf0dOwxe2S2ptz2Yd/yNCSVzg5w hNusGRcE9Y3apZ6pRa218jA1tVa9EsL9O6cIKSN37eCYsp2fQ4+JqVU2q10n9nPfEn6I jVSs7toEdZa0Z0T5d24gQQAwfJVaoKzuaZ+cKdgC0iHApoETQAXk5AMOUErNzp9vDLU8 9NWoewCCKXNVEQgUd4hLRBVZ5Nmvq7xdEpn6i5rOerQmGwX9vLsWftlFvnIP3CN26VrA tLhw== X-Gm-Message-State: ACgBeo1zHfqTyQQ3hZbU90fC7KZgirutqGrvAoHyfvTKqgaBNQk0QR0i Ua8xXjUwQiIFJfmCUCWhG/3xSw== X-Google-Smtp-Source: AA6agR4OY+ZRYMqpTNiJlmmD03DUaN+6WGm/km0jEjdnK9nEEF9nc9erLrZ3IW+Npyz9CAeI8E6ZBg== X-Received: by 2002:a05:600c:4f90:b0:3a6:2bda:dc19 with SMTP id n16-20020a05600c4f9000b003a62bdadc19mr8143133wmq.17.1661081786790; Sun, 21 Aug 2022 04:36:26 -0700 (PDT) Received: from henark71.. ([51.37.149.245]) by smtp.gmail.com with ESMTPSA id m9-20020a7bce09000000b003a3442f1229sm14071361wmc.29.2022.08.21.04.36.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Aug 2022 04:36:26 -0700 (PDT) From: Conor Dooley To: Michal Simek , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Yoshinori Sato , Rich Felker , "David S . Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , Arnd Bergmann Cc: Geert Uytterhoeven , Conor Dooley , Kees Cook , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org Subject: [PATCH 6/6] x86: use the asm-generic version of cpuinfo_op Date: Sun, 21 Aug 2022 12:35:13 +0100 Message-Id: <20220821113512.2056409-7-mail@conchuod.ie> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220821113512.2056409-1-mail@conchuod.ie> References: <20220821113512.2056409-1-mail@conchuod.ie> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220821_043628_971131_09EC5814 X-CRM114-Status: GOOD ( 11.59 ) 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 From: Conor Dooley There's little point in duplicating the declaration of cpuinfo_op now that there's a shared version of it, so drop it & include the generic header. Signed-off-by: Conor Dooley --- arch/x86/include/asm/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index 356308c73951..175b0e750675 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -27,6 +27,7 @@ struct vm86; #include #include #include +#include #include #include @@ -188,7 +189,6 @@ DECLARE_PER_CPU_READ_MOSTLY(struct cpuinfo_x86, cpu_info); #define cpu_data(cpu) boot_cpu_data #endif -extern const struct seq_operations cpuinfo_op; #define cache_line_size() (boot_cpu_data.x86_cache_alignment)