From patchwork Sun Dec 7 18:10:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 418486 X-Patchwork-Delegate: michael@ellerman.id.au Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id BAC091400E9 for ; Mon, 8 Dec 2014 05:09:49 +1100 (AEDT) Received: from ozlabs.org (ozlabs.org [103.22.144.67]) by lists.ozlabs.org (Postfix) with ESMTP id 9ECC81A0C81 for ; Mon, 8 Dec 2014 05:09:49 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 398111A09D2 for ; Mon, 8 Dec 2014 05:08:11 +1100 (AEDT) Received: by mail-la0-f46.google.com with SMTP id q1so2944500lam.19 for ; Sun, 07 Dec 2014 10:08:07 -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=iaKrMqVIKDqqQ3mBbquA+K+7jMxK4SEZ81RGZTBbGag=; b=C2ChfTKYTqvUPpKfKoVh4FOa64CNjj2syxITVYILf6qTKjjg+PX7OpNsW3NaiwhiMH CmkuhZ6n0BPxnXvsjvT7jz43Q/CBoB/RbiR6yvEa5BMq1zMm/aXSsw3kAoNi4OcAXkP9 fqV7+Z0RXESOPI4Pb9nBbTnC9e+pvm+kNb4BGcKF+EdZrPbBCbs6tyfCuo9VPHIT1bHg Ob/b5EI3OsixXASkqxsERTDJg2GPTNhFp7EUL4LDwtEbF95PH5/qtXsXuV+gRkocS0r3 GXgXxxShu0HdaHXNnuo1/pGYxwgHmSsa7PK1k//8ReqfdMRB/DWV3CnkZkYP3GfHjtkM 0lOw== X-Gm-Message-State: ALoCoQmHQ8BSk5hh4rcDG/lYt24UtGOChbOMKXmQRuAS+6MzMi98GyHmgFz05HDYboXA7hl7W0zs X-Received: by 10.152.37.201 with SMTP id a9mr12728413lak.53.1417975687092; Sun, 07 Dec 2014 10:08:07 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id is5sm5095912lac.41.2014.12.07.10.08.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Dec 2014 10:08:06 -0800 (PST) From: Rickard Strandqvist To: Benjamin Herrenschmidt , Paul Mackerras Subject: [PATCH] arch: powerpc: mm: slice.c: Remove unused function Date: Sun, 7 Dec 2014 19:10:46 +0100 Message-Id: <1417975847-14153-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Cc: Michael Neuling , "jmarchan@redhat.com" , Rickard Strandqvist , linux-kernel@vger.kernel.org, "Aneesh Kumar K.V" , linuxppc-dev@lists.ozlabs.org, Ian Munsie , Anton Blanchard X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Remove the function slice_set_psize() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- arch/powerpc/mm/slice.c | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c index ded0ea1..0f432a7 100644 --- a/arch/powerpc/mm/slice.c +++ b/arch/powerpc/mm/slice.c @@ -645,35 +645,6 @@ void slice_set_user_psize(struct mm_struct *mm, unsigned int psize) spin_unlock_irqrestore(&slice_convert_lock, flags); } -void slice_set_psize(struct mm_struct *mm, unsigned long address, - unsigned int psize) -{ - unsigned char *hpsizes; - unsigned long i, flags; - u64 *lpsizes; - - spin_lock_irqsave(&slice_convert_lock, flags); - if (address < SLICE_LOW_TOP) { - i = GET_LOW_SLICE_INDEX(address); - lpsizes = &mm->context.low_slices_psize; - *lpsizes = (*lpsizes & ~(0xful << (i * 4))) | - ((unsigned long) psize << (i * 4)); - } else { - int index, mask_index; - i = GET_HIGH_SLICE_INDEX(address); - hpsizes = mm->context.high_slices_psize; - mask_index = i & 0x1; - index = i >> 1; - hpsizes[index] = (hpsizes[index] & - ~(0xf << (mask_index * 4))) | - (((unsigned long)psize) << (mask_index * 4)); - } - - spin_unlock_irqrestore(&slice_convert_lock, flags); - - copro_flush_all_slbs(mm); -} - void slice_set_range_psize(struct mm_struct *mm, unsigned long start, unsigned long len, unsigned int psize) {