Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3258960imc; Wed, 13 Mar 2019 13:01:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3gvdxKPj0UdQvmhD6AC7MykKbqE6Bbl13/t63cMAzS9PIU1oOgPkQtZMq7NHrRvWotTrt X-Received: by 2002:a17:902:be09:: with SMTP id r9mr34090179pls.189.1552507278114; Wed, 13 Mar 2019 13:01:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552507278; cv=none; d=google.com; s=arc-20160816; b=oLzi7o3v64jTou23hCBX1zog9elUN7E/J32rBZhJgrPrPHtjAHzKXGIXQybblGxdBc AAYtLawqxtxwzuiAjXabt6beZO7o12HuslL1K8eB+GavGfjBDGQ0H0ePsBJ9VcobTDG1 4KXMmVoxJqFezOB5vA7ioN7QzhyvsBhOG7myb5TbJ0HUurKGgZmU5S5UG3uDfj3b86zn 2M+IGlfNWHc8LiyWRjCk2RhYevotzKmOwIgPy8GT2pA35Z3sre4brTpOu8XqvxCAwVDd +/26Y2Q2oSvdJ2iZaeN2ayIqe7R5iRxrRhFvKUkL5I1GjoVun25qnPqXM4CAQPcwTBT5 MLlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GCHDAob2L2Ty8cKpbvR0K56/ZQonIWJzTExy3tCtNQ0=; b=xC9QmAtoh9ZrYlOTWTfSm3a5EB9PoQJol/FQGyumMJ5z5llbxrL4gBwxREvuhxRzjX CdDx/cJ7jRAsTI8P2lAthhFuazmXqRo/hsY4YM2+t07vSiJ2DG4tdYP1Ke8HHk+GQJ1V LDmUrpL+h0OzzClwxo8eiLBgQzDO2bNwdfH/5FMbuHB9arfJfdYt8TF/76dw4xrOo0Ul RqlxVQ1uRqW/ZzJG0pJaZUyn0jz3ZKqOv8qrNjHrFIAcW/p3tkIMzV7m7ESl6kCuKbTR 6V7UcG8sZHDUZm7RwsvP6l7mcaiobTx4jp9N+J/gmPXaVeR119RWXkdlionSyqjlmWBZ GlXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=AMgmYD2M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q65si10969759pfi.185.2019.03.13.13.01.01; Wed, 13 Mar 2019 13:01:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=AMgmYD2M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727163AbfCMUAh (ORCPT + 99 others); Wed, 13 Mar 2019 16:00:37 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:35615 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726387AbfCMUAh (ORCPT ); Wed, 13 Mar 2019 16:00:37 -0400 Received: by mail-wm1-f65.google.com with SMTP id y15so539122wma.0 for ; Wed, 13 Mar 2019 13:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GCHDAob2L2Ty8cKpbvR0K56/ZQonIWJzTExy3tCtNQ0=; b=AMgmYD2M3KR8ZZlQiXI7NIS7Yub8S3tYNOIB4za9vqTL5u2+yWf1Bm7SdmxgcypTht ECzhMQ6/9UTfsr1bnzOLHIfiu0x3HOjhIphrshRIRNZ2MJvO1TQisCW1nx2HoIzUuPSM leX+AFydh2ekX3phK+rKfxA089LC5ZTRrDlcGYHeooPKrmLHZR5i27hnaVDhDgEt9Eu3 4Wua+KkCz6qKmm9QnaBEKNGAFfUha7sg4swxfbQgh0jTJzm+lW28sRIbk3588M/umLq/ Jer+etUFn8NwfKN01+wCxcRTAHvRqN0OVdms+PkD51jkropRa8NfVJanbFrSjwAr64dw yEnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=GCHDAob2L2Ty8cKpbvR0K56/ZQonIWJzTExy3tCtNQ0=; b=YeX2esk6UEViLELEHcNiZcOeAOBLAxa9OSnMJm/mCVvVcQTrdsWu4493x/85n/KxSG aWs7zckYpQZuL7Af04ERZuxgf//yYwxlghD7YesqC8DZNGPhywDMC4h1G4eH/zeaUcHq O0UMXgjCCZGuxJZS2mskd0HJLq99c/Pul+QTaLWMmOu4DnPty/CGsK+NvfXN0DZLOyRH qsf2CDt7b7j4HI0HzD43ucVYDJ30zcdbrQDWo8x3KnLNgubRSfFaWVO8Q4cdvFNQpYqX 15jDEEGje0rRuBfR0tvDYiaXUMOpIrlM5s+RG5knEr/bKFvIbekWXH4M4jwpfAyajPmV Yq9A== X-Gm-Message-State: APjAAAXTMme/3uTsdV+jEth3yXGi+Fk59I1ziuih0xnjRhZl0ZOJepSX 001KWu9q7wKLoCLDVPHs1WU= X-Received: by 2002:a1c:f20e:: with SMTP id s14mr3529639wmc.69.1552507234662; Wed, 13 Mar 2019 13:00:34 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-224-134.fbx.proxad.net. [78.225.224.134]) by smtp.gmail.com with ESMTPSA id 26sm4623926wmg.42.2019.03.13.13.00.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Mar 2019 13:00:33 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 787691140A07; Wed, 13 Mar 2019 21:00:32 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Cc: Mathieu Malaterre , Nicholas Piggin , Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] powerpc/64s: Remove 'dummy_copy_buffer' Date: Wed, 13 Mar 2019 21:00:30 +0100 Message-Id: <20190313200030.19145-1-malat@debian.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190312202921.31331-1-malat@debian.org> References: <20190312202921.31331-1-malat@debian.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In commit 2bf1071a8d50 ("powerpc/64s: Remove POWER9 DD1 support") the function __switch_to remove usage for 'dummy_copy_buffer'. Since it is not used anywhere else, remove it completely. This remove the following warning: arch/powerpc/kernel/process.c:1156:17: error: 'dummy_copy_buffer' defined but not used [-Werror=unused-const-variable=] Cc: Nicholas Piggin Suggested-by: Christophe Leroy Signed-off-by: Mathieu Malaterre --- v2: complely remove dummy_copy_buffer instead of marking it as used (since not anymore) arch/powerpc/kernel/process.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 77e44275d025..b2f0daa2fcf1 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c @@ -1151,11 +1151,6 @@ static inline void restore_sprs(struct thread_struct *old_thread, thread_pkey_regs_restore(new_thread, old_thread); } -#ifdef CONFIG_PPC_BOOK3S_64 -#define CP_SIZE 128 -static const u8 dummy_copy_buffer[CP_SIZE] __attribute__((aligned(CP_SIZE))); -#endif - struct task_struct *__switch_to(struct task_struct *prev, struct task_struct *new) { -- 2.20.1