From patchwork Sun Jan 11 22:27:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5607361 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0520DC058D for ; Sun, 11 Jan 2015 22:24:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 44B652063F for ; Sun, 11 Jan 2015 22:24:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 19FB720634 for ; Sun, 11 Jan 2015 22:24:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752406AbbAKWYe (ORCPT ); Sun, 11 Jan 2015 17:24:34 -0500 Received: from mail-wg0-f41.google.com ([74.125.82.41]:60302 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752029AbbAKWYd (ORCPT ); Sun, 11 Jan 2015 17:24:33 -0500 Received: by mail-wg0-f41.google.com with SMTP id l18so16447293wgh.0 for ; Sun, 11 Jan 2015 14:24:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=v6XWFhaKD3Y8mCv0jQXtrPfbNr1XLRkcr4r5ZqlMjps=; b=CSvehbpPAsVHVPja2BQOycXhZZTkJeIOXhEOXj32oXBlZfO9DRn6Wc9kUmPpw5bgLw wPBvvd8yixuzLIrS7GLR1ImBRJ3WTlFw2z1n9DfqFRP2oMnKaWJBU/b6nTyCVZFC33Lw C+0zW+hF7rfdhT903ASegtGwLzSjr/UlScVVsRKTMuGMDmTcb05AeUBtdcx+l4pvNEXB XxKYXuTnG71ZVi4o2a2xxPBVCUuDjVvHTEl2ZVR1YyfID7dua7e4t94eP6wfDcYm+Lsx MpKBzL9DwEb9FR/7PSrjXZWC5JSkCsBcX7S64/y5qkBrDx6DFe1mTE3S/+et4Hqe7pNh VsLg== X-Gm-Message-State: ALoCoQkWMXDgiAoLvL6QdZIexgwVLmvYwGC1URniSsXJZkFCxxHk3Z5meTVJNZD1br+5/PETPjMK X-Received: by 10.180.103.201 with SMTP id fy9mr25090205wib.31.1421015072255; Sun, 11 Jan 2015 14:24:32 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id fo2sm7773560wib.10.2015.01.11.14.24.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Jan 2015 14:24:31 -0800 (PST) From: Rickard Strandqvist To: "Rafael J. Wysocki" , Pavel Machek Cc: Rickard Strandqvist , Len Brown , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] kernel: power: snapshot: Remove unused function Date: Sun, 11 Jan 2015 23:27:38 +0100 Message-Id: <1421015258-24472-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove the function get_safe_write_buffer() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist Acked-by: Pavel Machek --- kernel/power/snapshot.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c index 791a618..dac8919 100644 --- a/kernel/power/snapshot.c +++ b/kernel/power/snapshot.c @@ -2309,8 +2309,6 @@ static inline void free_highmem_data(void) free_image_page(buffer, PG_UNSAFE_CLEAR); } #else -static inline int get_safe_write_buffer(void) { return 0; } - static unsigned int count_highmem_image_pages(struct memory_bitmap *bm) { return 0; }