Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4225109pxj; Tue, 25 May 2021 03:12:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbmg58gshz5Yl1GpHBt4yc26taCFa+bozPsQ9oyEqT96TUVNhohZVj/fXLYxXM/2PJDhjj X-Received: by 2002:a05:6638:4f:: with SMTP id a15mr29637248jap.134.1621937568786; Tue, 25 May 2021 03:12:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621937568; cv=none; d=google.com; s=arc-20160816; b=Y32qhKR2WQYccmd2qi1jZ4O4iEJ3SoCBoB6VrMezyrqpiK7v8LsXvVnx1lPzL3+aoN xpLkj+6dcg+nRjmjuauyVUIzWsnA+LLB3p5tYvnR3wqRelT5qtJHvCoZok57kTxEDWWK WWZ39++uhQ1G2HrpTufHy2pu0G+BIKxeWF1pHdMxy5JIgKkaMFdLiudK8AoLigylhMNw yDY+bj0NaeTaeG9vBGIy2nS+qPogsEtWqSUXwvmf1rzMZvzd6Qpq6Fnw4LmVlcIIm4Wf 4TP29k2yzrCZ48N2D1F3oxukmqcqxiWAS4Jf80Wjo/1zxT+0nL0PtEJwM+Ay2REzBUUI inrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=2sicw7l8N6ylzS5aKum8q+CihOiU0YC+yE2PCatZOiM=; b=tJ54g5xrHXGapGbNnI7KYcdCZjz729Ok1HXOyXcmNWnXL03Q/HXkZUNsgkc0WBhMBM M/w/ujV0HUZTxoJCK0ftBUlsz8J7I4CFD+SBpyJxiZdIdx/XAE20Ihc4bujG0IhRwrOI auny6DHjiG1ynAwYnWvxI7l3QXdvc6snSmtJWEqVnVDnmrZMCfWDLvmFtni32s5TbuaM iyG+Lo3fpeGIrJoXGH0QpRfKFEL+jbZMJ3HklOK5juckwjnnM8xYvWfFJUhCzPO6vE5C 9g2/yJGsHv4426H5JUM1aUEgZkN83kQo9+FtcS0mJrQwldF4i8cf0xBRU8+YS8XbNjpg KcGw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si19088416jaj.50.2021.05.25.03.12.28; Tue, 25 May 2021 03:12:48 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230516AbhEYI3p (ORCPT + 99 others); Tue, 25 May 2021 04:29:45 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5700 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230462AbhEYI3i (ORCPT ); Tue, 25 May 2021 04:29:38 -0400 Received: from dggems704-chm.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Fq6b03qY1z1BRl2; Tue, 25 May 2021 16:25:16 +0800 (CST) Received: from dggpemm500004.china.huawei.com (7.185.36.219) by dggems704-chm.china.huawei.com (10.3.19.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 25 May 2021 16:28:07 +0800 Received: from [10.174.177.91] (10.174.177.91) by dggpemm500004.china.huawei.com (7.185.36.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 25 May 2021 16:28:06 +0800 Subject: Re: [PATCH -next] module: fix build error when CONFIG_SYSFS is disabled To: Stephen Boyd , CC: , , References: <20210525085400.15854-1-cuibixuan@huawei.com> From: Bixuan Cui Message-ID: <03c7a51d-fad4-da67-36d6-5ab501dea3ed@huawei.com> Date: Tue, 25 May 2021 16:28:06 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.91] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500004.china.huawei.com (7.185.36.219) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/5/25 15:36, Stephen Boyd wrote: > Quoting Bixuan Cui (2021-05-25 01:54:00) >> kernel/module.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/kernel/module.c b/kernel/module.c >> index decf4601e943..7287ecc76714 100644 >> --- a/kernel/module.c >> +++ b/kernel/module.c >> @@ -2794,7 +2794,8 @@ static void add_kallsyms(struct module *mod, const struct load_info *info) >> } >> #endif /* CONFIG_KALLSYMS */ >> >> -#if IS_ENABLED(CONFIG_KALLSYMS) && IS_ENABLED(CONFIG_STACKTRACE_BUILD_ID) >> +#if IS_ENABLED(CONFIG_KALLSYMS) && IS_ENABLED(CONFIG_STACKTRACE_BUILD_ID) && \ >> + IS_ENABLED(CONFIG_SYSFS) > Thanks for the report. It is the wrong fix though as we don't care that > sysfs is enabled or not. How about this patch? Hello, your patch solves that problem very well. Will you send a new patch? Thanks Bixuan Cui