Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2137643ybi; Thu, 20 Jun 2019 09:40:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOkHgGvQfXkvrAZ0894pMVDLqeIT21oB5xoFWENeb3D/st+02XfQ6royxi8KrHaGWdxb8l X-Received: by 2002:a63:6ec1:: with SMTP id j184mr13742805pgc.225.1561048853385; Thu, 20 Jun 2019 09:40:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561048853; cv=none; d=google.com; s=arc-20160816; b=Vk9EUfXri1plyYf2MK2GvyQ5YMxWBlhuL258abVdsjA+IXR64qlSQgARNmVGZYCMAq kPwHiQAZ+xbn9K59ofc8bqTSH1YNyEOahyRgMQIgoOOYH+TpCZJH/aDdS6ywxCk/Dxor oQgkEpTc3d+Ym4IcEBn07oMspJHQddJB9wK37ixfvaM0QCzk5amucVwI4aqnCFRNsJl8 kkY3ByDtVxUHKKccs1qO3CRDPLuxLk9csTGVi7ckj/tJ5Vt/Hg9x+fuL+126ugBE1CoG ljfITRGZfFFKgu7wP55ntMkK08E6coAxb9a8R1AzaTC4Qorc+HFzqNCmVLcrUbahbDRh Gxqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OhzN/904+DissAXfAPIPmhA/Mh2DITjAUhB/4TMIhDo=; b=VJyCS8bdCkw9nMSuhrB+jEfJ+yE8wxXwXcH7pSgqerZJJIquXi2LA+TooFTv5un1gZ cCMEX7B6OLjOqR/FOTH5zBVXZYe/uUmLgCth1XsiL24sE7HQ7tTHKpZ7CPwOp4xG5gH4 vbReHJasPz49XdYG8GxzpPQ+n+B2O11fXnk1hooBp2j+yFU74+qHjGa3pfJsvny+vzVV uRPLGVw+2Q7rkLV7RKx0ktXGDo0FA0d7NWtv/d9VRMQL/3zvuMAZeJpZGhlOC6mNlrnv Ikn/3LLq7jBoznsui+u78uORqWt/hGbibpVhoIVueH83rvS3JNIhnSs+X4xWBd/Jb2EV Pyig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="Sl6Gqtc/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si176686plp.96.2019.06.20.09.40.38; Thu, 20 Jun 2019 09:40:53 -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=pass header.i=@alien8.de header.s=dkim header.b="Sl6Gqtc/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732342AbfFTQjP (ORCPT + 99 others); Thu, 20 Jun 2019 12:39:15 -0400 Received: from mail.skyhub.de ([5.9.137.197]:37176 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732272AbfFTQjF (ORCPT ); Thu, 20 Jun 2019 12:39:05 -0400 Received: from zn.tnic (p200300EC2F07DE00C82F01C813A74C20.dip0.t-ipconnect.de [IPv6:2003:ec:2f07:de00:c82f:1c8:13a7:4c20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id EFEAF1EC09A3; Thu, 20 Jun 2019 18:39:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1561048744; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OhzN/904+DissAXfAPIPmhA/Mh2DITjAUhB/4TMIhDo=; b=Sl6Gqtc/DbQNz3Ib/nch+fSewV0P17RpQqqP2iYeBI3OuYAPnE3ygT+kiyjy8QaJ0xezVu 2KLJr4dVRmlwn/lYy2XCPTIL6MmMXrS7gkBa3BaNE9jzW+4mmWrGeIT5vdcB/iZv6Dx/2W HG45Q8D69UI0WvCg5tKGFfSkGPL99Pk= Date: Thu, 20 Jun 2019 18:39:00 +0200 From: Borislav Petkov To: Tiezhu Yang Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org, vgoyal@redhat.com Subject: Re: [PATCH] kexec: fix warnig of crash_zero_bytes in crash.c Message-ID: <20190620163900.GF28032@zn.tnic> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 15, 2019 at 07:18:20AM +0800, Tiezhu Yang wrote: > This patch fixes the following sparse warning: Avoid having "This patch" or "This commit" in the commit message. It is tautologically useless. Also, do $ git grep 'This patch' Documentation/process for more details. > arch/x86/kernel/crash.c:59:15: > warning: symbol 'crash_zero_bytes' was not declared. Should it be static? > > In addition, crash_zero_bytes is used when CONFIG_KEXEC_FILE is > set, so make it only available under CONFIG_KEXEC_FILE. Otherwise, > if CONFIG_KEXEC_FILE is not set, the following warning will appear: > > arch/x86/kernel/crash.c:59:22: > warning: ‘crash_zero_bytes’ defined but not used [-Wunused-variable] That happens only when you make it static, so please state that in the commit message. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.