From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BFD78C433F5 for ; Wed, 25 May 2022 23:35:35 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.94.2) (envelope-from ) id 1nu0XL-0006qo-K2; Wed, 25 May 2022 23:35:32 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nu0XK-0006qf-AJ for linux-f2fs-devel@lists.sourceforge.net; Wed, 25 May 2022 23:35:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gtSN5CBHGOf3GsAzSQTKgrK58VlpleWi2gaUGlusx/4=; b=fcrDdWRE3Phsb01/TaRoX+ruaD SiD4OrJdbUocwk0vruFXzvzdbmeOVIU1oF7JZso3a1pHyFfSfSvs/6FRy79zakoLARuMH6533qv8i jTxsMAh04ns/PYdS6Qvo9/gxJ5Vb19peYel880dYWgvtybeHKednLPAowgyz5WSw1+JQ=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=gtSN5CBHGOf3GsAzSQTKgrK58VlpleWi2gaUGlusx/4=; b=Yd+5PFOCQ21D25MfB3eHW8VJ96 MdgUDMIS9BpvNM2pfq+B+qXebLEpAzgZtjgM1xBNuZsQkl1cMnqZ0X1QFmcBihR/Vb88XOkYYF8TZ A74oI1Z21uODspo+qV0gOcGcRsnd2EFY4XuIjY7nPFTwX5255nLTjqLOYu5ff7VS+gCE=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.94.2) id 1nu0XF-0007QL-0O for linux-f2fs-devel@lists.sourceforge.net; Wed, 25 May 2022 23:35:30 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 50BC5615AF for ; Wed, 25 May 2022 23:35:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0F3CC385B8; Wed, 25 May 2022 23:35:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653521716; bh=upTPXFbqhgz0nn9rcT+BQ5pdqS2sN6HP3vrTzzPDk94=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SGwXV+/w/uOYlTJ8TxY7EBB5S3/NXUB/IOnz97SNDFmTKmcS8LUgSaWVj0k8w/zSt O7mS+3UPKw9ZA9UieoI1E7h8Ra0hfPYzVGEJIbUhdeLntt5iunpW8gXm79hml+y7Lp aIoT8bwzLN5wqppMXAbhYbDJNR/lugVFOSBQC4Evd632tKkVT0SMdoU6hSltHD9ax8 i0OTayN6pX4HW8499wQ+KDfbBLU9g/92L/2Riibkrza3hgt/mezZq8TkTq8fyUYX4w DhYzWU8lro/P1ebp3yS4oakGTPEUZwui4+56b9qNOLBoSMsD96c3quW5SveGbixnZv ePiq6GUFynOzQ== From: Jaegeuk Kim To: linux-f2fs-devel@lists.sourceforge.net Date: Wed, 25 May 2022 16:35:10 -0700 Message-Id: <20220525233510.4023217-4-jaegeuk@kernel.org> X-Mailer: git-send-email 2.36.1.124.g0e6072fb45-goog In-Reply-To: <20220525233510.4023217-1-jaegeuk@kernel.org> References: <20220525233510.4023217-1-jaegeuk@kernel.org> MIME-Version: 1.0 X-Headers-End: 1nu0XF-0007QL-0O Subject: [f2fs-dev] [PATCH 4/4] avoid unnecessary function X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jaegeuk Kim Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net libf2fs.c:883:12: warning: unused function 'is_power_of_2' [-Wunused-function] Signed-off-by: Jaegeuk Kim --- lib/libf2fs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libf2fs.c b/lib/libf2fs.c index ad8d1bd03509..36b8c25980ab 100644 --- a/lib/libf2fs.c +++ b/lib/libf2fs.c @@ -880,10 +880,12 @@ static int open_check_fs(char *path, int flag) return open(path, O_RDONLY | flag); } +#ifdef __linux__ static int is_power_of_2(unsigned long n) { return (n != 0 && ((n & (n - 1)) == 0)); } +#endif int get_device_info(int i) { -- 2.36.1.124.g0e6072fb45-goog _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel