From patchwork Sat Jun 10 10:28:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 105927 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1467738vqr; Sat, 10 Jun 2023 03:49:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5+LP4dpwF6k5TA/6cHWW6z3SNvlEzsN9L6jq0syoLANyW9NQ11DRGG4fPtgXtujxBkbaaV X-Received: by 2002:a17:90a:31a:b0:255:63e0:1248 with SMTP id 26-20020a17090a031a00b0025563e01248mr3307068pje.0.1686394186448; Sat, 10 Jun 2023 03:49:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686394186; cv=none; d=google.com; s=arc-20160816; b=bANI7BqjoIG4HSehYIh42vw6h+A9BJWiUMzG/jMJShwJcRDTNHOKx3h5K5LaESFNau GR50S9zwrUvumU8y848nIgeL23bXlnqU/Tf2uU73/6g0TorjZ5cx4efm/nqR6x6XVPFi 28M+RsHo+APOVDh6GkFpyUT/pVomow1wXnm0gBRan/G56Eo12nDbK/h6KfT1TLMP66u/ n+qj8KjwqgVHST1n6Koh01nsO/v1FxAd62LQZD7myH+gHgcRnKgIMpv6Gia0oIMYFEmK DsJMN8gu601Bypm9rn9AD9beFIJdUlSHX1I3iAfqGedycCeQYELmNTMdSIZ5E4JoVUdo 1Q/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=8WilWZuQ6dJ1OnuZe7SWFqStOL2fxlKUKGdQEUKEKS0=; b=ICxUkyHq3wlQRIuv3SYgxM+gXg/nz+DdhtajjuSwqeO9SUrSCSPCrvhSSzz729XMgm P4HGPr3eZWhjeaQp0pL/yAHSw9BmZDc0X3gdyoWU/Hnfmc7pE5dbFeWwoKkco3QTP7Bu kOyihpeaVkQJcrKv5gK8bivN4iExQDgDO4VqEuyKChBjP0MJvE6gVSRyboWUYLfR8M01 RLpSCeW4TK+hMVKwVXkerPedMp9f6eoIteLIjyFi4SS8UrPyV32zswi5JUGhi4jmq6sY z369kBj1TN2mV3nhTR+2DIp+r5CpwmSUGzTW2l3YOFsLkrrbebwbh/8wsNZySxzoM/Mq 0JpQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j71-20020a63804a000000b00548ff41c779si1703345pgd.156.2023.06.10.03.49.32; Sat, 10 Jun 2023 03:49:46 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230308AbjFJK3W (ORCPT + 99 others); Sat, 10 Jun 2023 06:29:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229639AbjFJK3V (ORCPT ); Sat, 10 Jun 2023 06:29:21 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EE4535B6 for ; Sat, 10 Jun 2023 03:29:20 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4QdYwB5Lhwz18M15; Sat, 10 Jun 2023 18:24:26 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Sat, 10 Jun 2023 18:29:18 +0800 From: YueHaibing To: CC: , , , , YueHaibing Subject: [PATCH -next] kernel: pid_namespace: Remove unused set_memfd_noexec_scope() Date: Sat, 10 Jun 2023 18:28:58 +0800 Message-ID: <20230610102858.31488-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768312470629500309?= X-GMAIL-MSGID: =?utf-8?q?1768312470629500309?= This inline function is unused, remove it. Signed-off-by: YueHaibing --- kernel/pid_sysctl.h | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/pid_sysctl.h b/kernel/pid_sysctl.h index d67a4d45bb42..b26e027fc9cd 100644 --- a/kernel/pid_sysctl.h +++ b/kernel/pid_sysctl.h @@ -52,7 +52,6 @@ static inline void register_pid_ns_sysctl_table_vm(void) } #else static inline void initialize_memfd_noexec_scope(struct pid_namespace *ns) {} -static inline void set_memfd_noexec_scope(struct pid_namespace *ns) {} static inline void register_pid_ns_sysctl_table_vm(void) {} #endif