From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F951322B; Mon, 16 Dec 2024 03:21:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.35 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734319288; cv=none; b=VPViPxWKVGlBA3PaxLS7AXe3RdyNx2D542yR5MyApdTHPzPTQ6Jd5qqN0KxEGFdpDOVUbcoCpmYkP2MA9j+eSA3hPY07DVrDy+HJGswgwmDg9h1/uMNLMTJc0nd7z3tsFZ5HUGbk8g3G5dwplmVIIt0Cgzi2MEdXhYF9UEAFjgc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734319288; c=relaxed/simple; bh=q1M641oKkjUnlUKdKbYD9g6YcEyzXBLg4OOxWUtUTAE=; h=Message-ID:Date:MIME-Version:CC:Subject:To:References:From: In-Reply-To:Content-Type; b=QPXkjgxHdmIK6pveVh0W59qxg+frokvSvtAjw6wI28tj+acE7SYPRHMrgPIsOd483AT67dRN7XWl+/2oKRC7gmQnHPGjKWgEEBd1REJhwzHMiIKICGMSWVHyEh30WbWCGzn0+zkPga6iAJkvNe4Pr8DO12SRLoTPn5UriDrzzg4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.214]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4YBQBr4hLDz1T7Fg; Mon, 16 Dec 2024 11:18:44 +0800 (CST) Received: from kwepemk100013.china.huawei.com (unknown [7.202.194.61]) by mail.maildlp.com (Postfix) with ESMTPS id 02B9D1A016C; Mon, 16 Dec 2024 11:21:17 +0800 (CST) Received: from [10.67.120.192] (10.67.120.192) by kwepemk100013.china.huawei.com (7.202.194.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 16 Dec 2024 11:21:15 +0800 Message-ID: Date: Mon, 16 Dec 2024 11:21:15 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird CC: , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH V7 net-next 1/7] net: hibmcge: Add debugfs supported in this module To: Jakub Kicinski References: <20241212142334.1024136-1-shaojijie@huawei.com> <20241212142334.1024136-2-shaojijie@huawei.com> <20241215134443.28770bbe@kernel.org> From: Jijie Shao In-Reply-To: <20241215134443.28770bbe@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemk100013.china.huawei.com (7.202.194.61) on 2024/12/16 5:44, Jakub Kicinski wrote: > On Thu, 12 Dec 2024 22:23:28 +0800 Jijie Shao wrote: >> +#define str_true_false(state) ((state) ? "true" : "false") > Didn't notice until I started applying this.. > str_true_false() is an existing helper: > https://elixir.bootlin.com/linux/v6.13-rc2/source/include/linux/string_choices.h#L68 It seems that this header file provides a lot of useful helpers, I will send v8 to use them. Thanks, Jijie Shao