Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1136108ybg; Thu, 4 Jun 2020 01:51:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvjwBk7M4nocaKW1XMqPw1lU7Sj7HXmOE35fkpOWoyotbHhxB/NcaY+yLc4SnHiwonX7eV X-Received: by 2002:a17:906:7855:: with SMTP id p21mr3012032ejm.257.1591260671704; Thu, 04 Jun 2020 01:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591260671; cv=none; d=google.com; s=arc-20160816; b=UD/jVpl/+6Sb/UJncIUYAb8o2cOn6iJzdpAnQ/HxMxx9FJLs47DmTqDxpdrq5gtbiL xUGMORJvQlSS7PxyucsXO5mccZqJOerEpYsYMtIhI/2GI4catmDu07TzGxs9exNRdYwl dd7TE0Mq8ROq1tcp9uVEiunNITFT/e55m5+ek51Y9s8ImlyxRF/69tMCJa+0dxaQY8RY MX1Y0Nh4OHaUiuIlzY8YltKD2tldvsTLwhu0uzsiSA8xLJZtoDELobi7kD0iDLAfvXup UQ2sH0q93V1sOQ0SdCFNZWxP6UAwGVDqUeBtW7qJVSRhmPLxZkb+2g46EpjTojQX5uBr 5iZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=3nBPbJn8MN8bRJC6wsD8Dhg+KJBjTrRlzYWyQhQRxVc=; b=xPSQHMq3gnK0RPzAdDE4VQq45Ji1DHn4KjbBNO/ULkuO8VGJp9gWXgZsmY2/9D3CYa iWcjTkhEBBGW1Oz+1oU4czFTpQSwDKxZYwo4RTBpcW/9VWHiOGqilSPtZW38a2W0fHtg XspCN1GC6uaGPoRX2+SkMVkbaegloqrnV0OWbjdvckUrngJznxwlLRav0Qznk8elGHOr QxKkGbqlgMkr/k74AOsKgOy7+petjXduNzEUZ3rJPzdtD/MR79o1JytM45zIkjiXUknl R3YuWHkd9ir94OItIEWH9lFFaY4P/N5lgR5kVLFpyNF7TLc7AkPQMKG5Id97Dm8SDdph zV4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g32si1425517edd.124.2020.06.04.01.50.49; Thu, 04 Jun 2020 01:51:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728218AbgFDIpf (ORCPT + 99 others); Thu, 4 Jun 2020 04:45:35 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5850 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728021AbgFDIpd (ORCPT ); Thu, 4 Jun 2020 04:45:33 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 9FA35AB0C11E63B23BD3; Thu, 4 Jun 2020 16:45:27 +0800 (CST) Received: from [127.0.0.1] (10.67.102.197) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Thu, 4 Jun 2020 16:45:21 +0800 Subject: Re: [PATCH 13/13] fs: move binfmt_misc sysctl to its own file To: Luis Chamberlain , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , , , , References: <20200529074108.16928-1-mcgrof@kernel.org> <20200529074108.16928-14-mcgrof@kernel.org> From: Xiaoming Ni Message-ID: <6cbba430-a768-72db-bd45-bcbba0376219@huawei.com> Date: Thu, 4 Jun 2020 16:45:20 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <20200529074108.16928-14-mcgrof@kernel.org> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.102.197] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/5/29 15:41, Luis Chamberlain wrote: > This moves the binfmt_misc sysctl to its own file to help remove > clutter from kernel/sysctl.c. > > Signed-off-by: Luis Chamberlain > --- > fs/binfmt_misc.c | 1 + > kernel/sysctl.c | 7 ------- > 2 files changed, 1 insertion(+), 7 deletions(-) > > diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c > index f69a043f562b..656b3f5f3bbf 100644 > --- a/fs/binfmt_misc.c > +++ b/fs/binfmt_misc.c > @@ -821,6 +821,7 @@ static int __init init_misc_binfmt(void) > int err = register_filesystem(&bm_fs_type); > if (!err) > insert_binfmt(&misc_format); > + register_sysctl_empty_subdir("fs", "binfmt_misc"); > return err; > } build error when CONFIG_BINFMT_MISC=m ERROR: modpost: "register_sysctl_empty_subdir" [fs/binfmt_misc.ko] undefined! diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 27f0c9ea..4129dfb 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -2853,6 +2853,7 @@ void register_sysctl_empty_subdir(const char *base, { register_sysctl_subdir(base, subdir, sysctl_mount_point); } +EXPORT_SYMBOL_GPL(register_sysctl_empty_subdir); #endif /* CONFIG_SYSCTL */ Thanks Xiaoming Ni