Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp196784imn; Tue, 2 Aug 2022 23:38:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR5h2gJhrjbJSc6YvGwaQEuehKVgyWh0RuuFzgRq7KwPhH9+CvCHztYrbjeL2QUcEUVFpDj8 X-Received: by 2002:a17:90b:2496:b0:1ef:a94:7048 with SMTP id nt22-20020a17090b249600b001ef0a947048mr3390928pjb.244.1659508703086; Tue, 02 Aug 2022 23:38:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659508703; cv=none; d=google.com; s=arc-20160816; b=erlWFrW7wz8ZhDB9LXtopGuis+cv6WrgvAQ1Dui7ZABAQY7OhobFG8KHDNXDNALzNE THGTyX/nzi+AITnHmyN4J3sGR0yMyPTsqWuoSidyuzBRVq6nxrIfOOvZbsqdgim4TPZW J7VMAiby5hGPmqGL2PPkiGXsDMz4gqwP2UFdorpf1DSZVPQ5KM5qkQKu9JEkuXVIyeEV vorJ0zWKE2MM/5UtRh8ACsrB1+SLMs4kCTOAsp78p7aQ2DEIMhDPChkwPx7LDXijfbMi bQT4wmZ0AuVv4Ky+/stJdBm7l2aFIabWactZ7Qxq/Vqz6AEUbEVUxxXFgDJc01zH2lqj 8KjQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=OzId+F46IaLnzWfW2BSyAFKdP9KBL4ckAbH6G9go3O4=; b=kRm6aXoKfdhOKvz2nh7B/IhU0k9bYYS8xzIjBH79HGm/Ao2AXtUcpI5TlRvkNd+4X5 OzdzEiJIIggu+EgTxQu9l3mAZJON/DUMdjKqoWslWIDqOIX8w4kCBhPVF6x/lYhDak2+ g7SUvdp6IJex/CXjgj7JFkyQBqKo6PF72kWc6v7O794abiLho4cyjcpovIDHplAUNVzw 5ya11fNA9InmiiNL8srBNl+6OckcummdbSi+pXEvlprrA+POwcrUu6u8eUqtlYpI5/9W m4vTPoNIkkg1pVPSM7gGnGUhzawtCuORzKUlWqNP84nkF9SiSs39HFlTLh1k/BJihipH 2l2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=OMxCPuEp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c123-20020a624e81000000b0052542cfb5c4si16729518pfb.235.2022.08.02.23.38.07; Tue, 02 Aug 2022 23:38:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=OMxCPuEp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236831AbiHCGZE (ORCPT + 99 others); Wed, 3 Aug 2022 02:25:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231150AbiHCGZC (ORCPT ); Wed, 3 Aug 2022 02:25:02 -0400 Received: from out0.migadu.com (out0.migadu.com [IPv6:2001:41d0:2:267::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 197664A80F; Tue, 2 Aug 2022 23:25:01 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1659507899; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=OzId+F46IaLnzWfW2BSyAFKdP9KBL4ckAbH6G9go3O4=; b=OMxCPuEpWoKH0M7VnBlll4RRmC3J3I0AfRjI5zOVDD0kApvjp9qzWgzmlmL79DzkYio6+f bw3LkESEBOWdqawAyOULKoBJQzX7572bml5HNNa2Ct8ipaSKYTTxz4DB9tYBlRmeHD56dt tiEQeMbBY8zEfjfW9UNONnVxZHRbzIg= From: Yajun Deng To: peterz@infradead.org, mingo@redhat.com, will@kernel.org, bigeasy@linutronix.de Cc: linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, Yajun Deng Subject: [PATCH 5.10-rt] locking/rtmutex: switch to EXPORT_SYMBOL() for ww_mutex_lock{,_interruptible}() Date: Wed, 3 Aug 2022 14:24:30 +0800 Message-Id: <20220803062430.1307312-1-yajun.deng@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS 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 We can use EXPORT_SYMBOL() instead of EXPORT_SYMBOL_GPL() in ww_mutex_lock_interruptible() and ww_mutex_lock(). That match ww_mutex_unlock() well. And also good for 3rd kernel modules. Signed-off-by: Yajun Deng --- kernel/locking/rtmutex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/locking/rtmutex.c b/kernel/locking/rtmutex.c index 31b374d36d04..b110fc57f733 100644 --- a/kernel/locking/rtmutex.c +++ b/kernel/locking/rtmutex.c @@ -2513,7 +2513,7 @@ ww_mutex_lock_interruptible(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) return ret; } -EXPORT_SYMBOL_GPL(ww_mutex_lock_interruptible); +EXPORT_SYMBOL(ww_mutex_lock_interruptible); int __sched ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) @@ -2533,7 +2533,7 @@ ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) return ret; } -EXPORT_SYMBOL_GPL(ww_mutex_lock); +EXPORT_SYMBOL(ww_mutex_lock); void __sched ww_mutex_unlock(struct ww_mutex *lock) { -- 2.25.1