From patchwork Thu Jul 23 11:08:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 51391 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by patches.linaro.org (Postfix) with ESMTPS id 726B022AA0 for ; Thu, 23 Jul 2015 11:09:10 +0000 (UTC) Received: by lagw2 with SMTP id w2sf67380938lag.3 for ; Thu, 23 Jul 2015 04:09:09 -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=X3+NlYH5ZgA+DQkFzNoWKJX13Ll2rQzxudgIl/7H3e7MCegFfA5q2r1EI2se7/31Xp hLPVeB1SkXcOq0IfGdUjg1W/jdUgjK3SFLHg1DBDqU95D/uk4sd74YevqhrZmUi2/51r r1Eev1w5+zhzGYQVnTyCyQbGV991gxt9NaegqZmGSHngGI030BDLP44Rdmu6yqESnbpd xh8qUUlUONH0pZ//c9NUN18wgLPNAGvbNSZs9ADPZGtMspBZ89j6PCGRPAfwuWvVFGx+ r3caRjbxMjpcOqnejJ3byPvxakMULjGIZ5uueyXZ8ZcOhGnP2TRbabO1lSNTGJHMOtvt eiKw== X-Gm-Message-State: ALoCoQl0Qis59mTTSqhBHcj1ZmQ5axACx89I72cmD0cRUZfvjztNegx8aJrLGG6Szbo6h/zxdgfl X-Received: by 10.113.3.8 with SMTP id bs8mr1889418lbd.23.1437649749401; Thu, 23 Jul 2015 04:09:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.163.65 with SMTP id yg1ls194173lab.26.gmail; Thu, 23 Jul 2015 04:09:09 -0700 (PDT) X-Received: by 10.112.139.103 with SMTP id qx7mr7273101lbb.73.1437649749265; Thu, 23 Jul 2015 04:09:09 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id qo3si3892278lbb.122.2015.07.23.04.09.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jul 2015 04:09:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbbyj8 with SMTP id yj8so155290668lbb.0 for ; Thu, 23 Jul 2015 04:09:09 -0700 (PDT) X-Received: by 10.152.37.228 with SMTP id b4mr7159876lak.117.1437649749137; Thu, 23 Jul 2015 04:09:09 -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 l6csp486491lba; Thu, 23 Jul 2015 04:09:08 -0700 (PDT) X-Received: by 10.70.7.162 with SMTP id k2mr17244545pda.128.1437649746571; Thu, 23 Jul 2015 04:09:06 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id nh9si11338538pdb.77.2015.07.23.04.09.04 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 23 Jul 2015 04:09:06 -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 1ZIEN0-0003ck-MF; Thu, 23 Jul 2015 12:08:58 +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 5/5] Remove unused qemu_fls function Date: Thu, 23 Jul 2015 12:08:58 +0100 Message-Id: <1437649738-13885-6-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1437649738-13885-1-git-send-email-peter.maydell@linaro.org> References: <1437649738-13885-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.174 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.