Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2747106ybh; Mon, 5 Aug 2019 06:13:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmqkM79bMOMDF7fA+ZZPzrFBJ05M9wxYZlQaCK0XP0bZxwzTBXEy6Nj/TA/Clb/pxlPtMI X-Received: by 2002:a17:90a:ac0e:: with SMTP id o14mr18386276pjq.142.1565010814552; Mon, 05 Aug 2019 06:13:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565010814; cv=none; d=google.com; s=arc-20160816; b=OC/IXMlVejAHgtPX1EV+LlTcFiaOcKWaPD3GkImG+nrLgNn1HIHYoyOHyRQNP6T593 VTgi3nuPxKlWNW1B1TYWTpAAbsVN/bvfCcq0HWNLrsFAtNsHo+DCJjutWd4OO5D/0+SY v3RfvGzI3+e77szEouMA7iVIyB7BibxVenDvV7yOzZaXuOHG0S53vSeKEJuzgUZuH9c0 RBp9SGGGzXhejzt75RC8Y6ta23PlJnIbidrK6M2kQNBdEKCBy2QgDMIc/V8xLs8+37cJ qBwmhFHdcG8c0272iVwdN7XsEnt0a7yDyL1eLcuk8D8Dkbm8BJp/Q8PgFEgvatD+ge4C /Znw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RuABPHuzz2dRFI+86/G9qtXYDXZOHUYzY7oQ7ozpv1I=; b=n4ekEjW4T5gZEff7dUZGveLXSdhwvS7lmpt/2GpGz/s1VZ/oWs1KUVb4h/fmHPlFc/ ywpgaxC8dQtawgyRScdgW8aZwJOTxzaQXcrXF80oRSLaZlMpjEqLmI4sdf+USwbAYCVR fD8Q8CCebd08cWoccX2IKkVAnFbAUuOmttJVA/lsCAjtLOvLk5uNXWwiLuhNPHaNjyJf O27jhEglCr+LD3YFIL7rcDjk5SeEav9z6FUZ9SQi6NYBTKeOjwxsPb4betvW7asvqMdl pNr9G6otucFWUxvFbF7P4458GETz1QaFFwZLI+HaSaU67PxE94g9MoJbcm9BkXTeTC0e dx+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aTMcYuFe; 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 200si43713551pfy.101.2019.08.05.06.13.18; Mon, 05 Aug 2019 06:13:34 -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=@kernel.org header.s=default header.b=aTMcYuFe; 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 S1729919AbfHENM3 (ORCPT + 99 others); Mon, 5 Aug 2019 09:12:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:49282 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730317AbfHENKW (ORCPT ); Mon, 5 Aug 2019 09:10:22 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BC5E7216F4; Mon, 5 Aug 2019 13:10:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565010621; bh=/0xk2gHnCvIfVuMEUs3c7iLXShhDkwFJ79DbXu5ckCY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aTMcYuFePiog14R60Qrbj5eMBcUEl2Ucq+7/hXqQsNFulZYsu2ls1KxvfBAGpigm9 1pCSWhRY9uC8uC6sISctaGm2Wygsxndbu9XvGq4F+/C9h9d7fcv7TUV17i5zoZz0U4 uYYyYrOjsZenWFls378EiVIvueLdk1Za4SN/YuMg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zhenzhong Duan , Thomas Gleixner , Sasha Levin Subject: [PATCH 4.19 40/74] x86, boot: Remove multiple copy of static function sanitize_boot_params() Date: Mon, 5 Aug 2019 15:02:53 +0200 Message-Id: <20190805124939.100786922@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805124935.819068648@linuxfoundation.org> References: <20190805124935.819068648@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 8c5477e8046ca139bac250386c08453da37ec1ae ] Kernel build warns: 'sanitize_boot_params' defined but not used [-Wunused-function] at below files: arch/x86/boot/compressed/cmdline.c arch/x86/boot/compressed/error.c arch/x86/boot/compressed/early_serial_console.c arch/x86/boot/compressed/acpi.c That's becausethey each include misc.h which includes a definition of sanitize_boot_params() via bootparam_utils.h. Remove the inclusion from misc.h and have the c file including bootparam_utils.h directly. Signed-off-by: Zhenzhong Duan Signed-off-by: Thomas Gleixner Link: https://lkml.kernel.org/r/1563283092-1189-1-git-send-email-zhenzhong.duan@oracle.com Signed-off-by: Sasha Levin --- arch/x86/boot/compressed/misc.c | 1 + arch/x86/boot/compressed/misc.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/boot/compressed/misc.c b/arch/x86/boot/compressed/misc.c index 8dd1d5ccae580..0387d7a96c842 100644 --- a/arch/x86/boot/compressed/misc.c +++ b/arch/x86/boot/compressed/misc.c @@ -17,6 +17,7 @@ #include "pgtable.h" #include "../string.h" #include "../voffset.h" +#include /* * WARNING!! diff --git a/arch/x86/boot/compressed/misc.h b/arch/x86/boot/compressed/misc.h index a423bdb426862..47fd18db6b3bf 100644 --- a/arch/x86/boot/compressed/misc.h +++ b/arch/x86/boot/compressed/misc.h @@ -22,7 +22,6 @@ #include #include #include -#include #define BOOT_BOOT_H #include "../ctype.h" -- 2.20.1