From patchwork Fri Jul 24 12:33:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 51437 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by patches.linaro.org (Postfix) with ESMTPS id 48D1B22DA2 for ; Fri, 24 Jul 2015 12:33:18 +0000 (UTC) Received: by lagw2 with SMTP id w2sf7069308lag.3 for ; Fri, 24 Jul 2015 05:33:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=HhM9brdUjfh9e2YFyVMAzywUDPRmKq8EqE2G1VO1BaY=; b=T9cjfK62QGVXwBvovkaNp9yMQZB6kNFcw5B0yrKTbqYvmGeSUhjoPjdE/IP/wSW9+K 4MW8OHBWXksmhhBXzXeZxmBEwH9AGCLhHlfly+WDXrd2Zp1nfb7gX+KXFAMMsGgUbC21 5Iy+cscTdNrZxo/v+Lq/KbpaR+lL6AJaKTWIKTaM7nLeRfNBvpa/WCL8PCWNG/d14DGW JSfcoun4nU7gqaa32Xsqm/scHWkmHXRAYfzO2c+nhuMJlNoFMJhK3FNN1v0LNWWNcIVU dEY49V5berGnnKTU3MRLdrhlxbXw1EpzMNxfhapB5EmIgg8JgtdZcTGZRhlSepMXNwcM 1K0A== X-Gm-Message-State: ALoCoQkfgYvDTrgPdSD92bqbEbPPDCeSF6eLy713aH2xp0TFoo9C11FAZPImODM1cO2TVXClp81k X-Received: by 10.112.173.230 with SMTP id bn6mr6141057lbc.15.1437741197226; Fri, 24 Jul 2015 05:33:17 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.202 with SMTP id 10ls415324law.79.gmail; Fri, 24 Jul 2015 05:33:17 -0700 (PDT) X-Received: by 10.152.6.1 with SMTP id w1mr13256221law.91.1437741197084; Fri, 24 Jul 2015 05:33:17 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id vt9si7425340lac.20.2015.07.24.05.33.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jul 2015 05:33:17 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbbqi7 with SMTP id qi7so14198215lbb.3 for ; Fri, 24 Jul 2015 05:33:17 -0700 (PDT) X-Received: by 10.112.198.74 with SMTP id ja10mr13429020lbc.19.1437741196961; Fri, 24 Jul 2015 05:33:16 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.7.198 with SMTP id l6csp1150265lba; Fri, 24 Jul 2015 05:33:16 -0700 (PDT) X-Received: by 10.152.5.65 with SMTP id q1mr13439792laq.110.1437741196107; Fri, 24 Jul 2015 05:33:16 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id v2si7425373lbk.22.2015.07.24.05.33.15 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 24 Jul 2015 05:33:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::1 as permitted sender) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1ZIcA5-0005Sm-07; Fri, 24 Jul 2015 13:33:13 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Paolo Bonzini , Keith Busch , Kevin Wolf , "Michael S. Tsirkin" , qemu-block@nongnu.org Subject: [PATCH v2 5/6] Remove unused qemu_fls function Date: Fri, 24 Jul 2015 13:33:11 +0100 Message-Id: <1437741192-20955-6-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1437741192-20955-1-git-send-email-peter.maydell@linaro.org> References: <1437741192-20955-1-git-send-email-peter.maydell@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Nothing uses qemu_fls() any more, so delete it. Signed-off-by: Peter Maydell --- include/qemu-common.h | 1 - util/cutils.c | 5 ----- 2 files changed, 6 deletions(-) diff --git a/include/qemu-common.h b/include/qemu-common.h index 237d654..bc6f8f8 100644 --- a/include/qemu-common.h +++ b/include/qemu-common.h @@ -157,7 +157,6 @@ int stristart(const char *str, const char *val, const char **ptr); int qemu_strnlen(const char *s, int max_len); char *qemu_strsep(char **input, const char *delim); time_t mktimegm(struct tm *tm); -int qemu_fls(int i); int qemu_fdatasync(int fd); int fcntl_setfl(int fd, int flag); int qemu_parse_fd(const char *param); diff --git a/util/cutils.c b/util/cutils.c index 5d1c9eb..43aafde 100644 --- a/util/cutils.c +++ b/util/cutils.c @@ -145,11 +145,6 @@ time_t mktimegm(struct tm *tm) return t; } -int qemu_fls(int i) -{ - return 32 - clz32(i); -} - /* * Make sure data goes on disk, but if possible do not bother to * write out the inode just for timestamp updates.