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 984BAC433EF for ; Thu, 16 Jun 2022 08:59:08 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2+P7r923cWqL5r+WLEFCbKThnp6gS3Kv4S9QxGL82EM=; b=vjv+1Ji9tY50Hg zSQM7OvYXAEeOjfm2/CJp8KGvsTO+PHKrRHxVvvbIcq+reGhkO+QXv2D7lrFOQ+0aJRmfd7L19AgU zD2P5Pap7PLY4ecvSMbHjJSWRuGMwtHYoeLogOqjuOpU7QKtM3GjJt1P6P7HKWEmy4ewBjUAlcG3U 90AK0/qxKUDuxRId4HwRTVWcme0/VYigamG9byxSTNvm3v69iUvVtx0TFZSc57XlmRtVfAm8bNKpL Xjl+5W4lTSPLZ50nRRAJCRFel9v+xttiQOHzSjYCZDxiEuujZsUAd4QJbfy0I7dLSJlfc6HysrYEO ho1nZDVtByCrh7NQAr4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1lJl-001VS9-EW; Thu, 16 Jun 2022 08:57:33 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1lJj-001VQc-3y for linux-arm-kernel@lists.infradead.org; Thu, 16 Jun 2022 08:57:32 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8A72512FC; Thu, 16 Jun 2022 01:57:29 -0700 (PDT) Received: from [10.57.84.206] (unknown [10.57.84.206]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B8A4B3F7F5; Thu, 16 Jun 2022 01:57:28 -0700 (PDT) Message-ID: Date: Thu, 16 Jun 2022 09:57:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] arm64/cpufeature: Unexport set_cpu_feature() To: Mark Brown , Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org References: <20220615191504.626604-1-broonie@kernel.org> From: Suzuki K Poulose In-Reply-To: <20220615191504.626604-1-broonie@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220616_015731_248497_5ED218A0 X-CRM114-Status: GOOD ( 15.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 15/06/2022 20:15, Mark Brown wrote: > We currently export set_cpu_feature() to modules but there are no in tree > users that can be built as modules and it is hard to see cases where it > would make sense for there to be any such users. Remove the export to avoid > anyone else having to worry about why it is there and ensure that any users > that do get added get a bit more visiblity. > > Signed-off-by: Mark Brown Also, it doesn't sound safe to expose this to the modules anyways. Acked-by: Suzuki K Poulose > --- > arch/arm64/kernel/cpufeature.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c > index 79fac13ab2ef..8d88433de81d 100644 > --- a/arch/arm64/kernel/cpufeature.c > +++ b/arch/arm64/kernel/cpufeature.c > @@ -3101,7 +3101,6 @@ void cpu_set_feature(unsigned int num) > WARN_ON(num >= MAX_CPU_FEATURES); > elf_hwcap |= BIT(num); > } > -EXPORT_SYMBOL_GPL(cpu_set_feature); > > bool cpu_have_feature(unsigned int num) > { _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel