Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2674013imc; Tue, 12 Mar 2019 21:06:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXIzWU1GDr19t/7aitgQihTeGMBnsVhSkivpP14LaHLMEn+50nbG3eJFpIXhN9ty6dtpWq X-Received: by 2002:a17:902:728f:: with SMTP id d15mr43698765pll.156.1552449964153; Tue, 12 Mar 2019 21:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552449964; cv=none; d=google.com; s=arc-20160816; b=SeiEi4LHiSvnd1KwYzohXnianie48AGIu2czuDGcCaFyujFQGGm+OiWl9krJ/kbFiX j6uT2nc8740S49i9QT0YjMff2WnPOz0mRofBydZxhcl5JKPXpZ52oygSH6ZtQpt91K18 4M1HMS2AneATv/rsNWb8pqNolzsDfdfgy6atKd5l2Gi0JLQrphAs+tZTNg+MNDW+2ntb CPB3oPVPnJH6RnsDAPJQycIysZ9bi/TsQkJ09UU01kqsNR6tWRm46Zg6gtyZRlJ2pYU/ v1h/2PL47OY6P5/yaEYKqaUQWVe4VCARM/b7BOXUiMv5kidWBSDAeos6BrSO75RMz3G0 GsJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=i1ILd9ksgRjEA1m4zPSbC+ipmHYpBNeikiTJ/Ndcj+g=; b=p5MS63L3Ph4L6TFXfT/Go+D3eci2JtOvcu9VCS/Av9nDHIMOU4R2SyQHOfX2tUxu2k 5o2GwOVuCJgiByt/HEbOu+dPownV0QtqDYkZJqLFRX7hbN+UO2IYE+XUhmmkgYcfHfxV rML7UJ6pcRSB6WrakI2u97iP6QnV5nYKXptQafYdzLigSnx/rM3DeDD8RwvSVvqQEVqU 4DFDn2sUG+z1OTErQA4OQRlW3+NA1QvcFc1MS5hB6iSQ7V9QOuG++rAcSZrYU3BwCxDf /SfH5YYUaIBabuVjnpWN4lLGFTY3WlKQdnY2TpI0NMwE+rSwZ/2SwsBypf+WhLzVwyJO +TYw== ARC-Authentication-Results: i=1; mx.google.com; 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 i21si8914848pgh.123.2019.03.12.21.05.47; Tue, 12 Mar 2019 21:06:04 -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; 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 S1726013AbfCMEFK (ORCPT + 99 others); Wed, 13 Mar 2019 00:05:10 -0400 Received: from ozlabs.org ([203.11.71.1]:33667 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbfCMEFJ (ORCPT ); Wed, 13 Mar 2019 00:05:09 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 44Jysv14rJz9s4V; Wed, 13 Mar 2019 15:05:07 +1100 (AEDT) From: Michael Ellerman To: Christophe Leroy , Mathieu Malaterre Cc: linux-kernel@vger.kernel.org, Nicholas Piggin , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc/64s: Mark 'dummy_copy_buffer' as used In-Reply-To: <38359442-e219-18ad-926b-42a6e5ab4e7d@c-s.fr> References: <20190312202921.31331-1-malat@debian.org> <38359442-e219-18ad-926b-42a6e5ab4e7d@c-s.fr> Date: Wed, 13 Mar 2019 15:05:04 +1100 Message-ID: <8736nr5si7.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe Leroy writes: > On 03/12/2019 08:29 PM, Mathieu Malaterre wrote: >> In commit 07d2a628bc00 ("powerpc/64s: Avoid cpabort in context switch >> when possible") a buffer 'dummy_copy_buffer' was introduced. gcc does >> not see this buffer being used in the inline assembly within function >> '__switch_to', explicitly marked this variable as being used. >> >> Prefer using '__aligned' to get passed line over 80 characters warning >> in checkpatch. > > Powerpc accepts 90 characters, use arch/powerpc/tools/checkpatch.sh > >> >> This remove the following warning: >> >> arch/powerpc/kernel/process.c:1156:17: error: 'dummy_copy_buffer' defined but not used [-Werror=unused-const-variable=] > > commit 2bf1071a8d50 ("powerpc/64s: Remove POWER9 DD1 support") has > removed the fonction using 'dummy_copy_buffer' so you should remove it > completely. Yes that would be better, thanks. cheers