Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2759817ybh; Mon, 5 Aug 2019 06:24:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZHAXS8CWe3wkRyLV3ceqozcjFB2Rh/ObFLoHbR1iw6CWr6iIKf9VQBrw1TwMes/AlMDSk X-Received: by 2002:a17:902:b909:: with SMTP id bf9mr50335633plb.309.1565011489402; Mon, 05 Aug 2019 06:24:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565011489; cv=none; d=google.com; s=arc-20160816; b=QoKlpsuS/VzSvDWJ1QlaSZw4Gvz5r2pDUnCJim/IRG7w+tnWg7RqZx30HJbuAJeIge iceTFm1GcyRo91NGu/1YkV9viXBX+0Nm57CZaTHjiKROBt5KbZZDwDdX7Ey3UcyblpCd Yl2LoxOyZQQv/DHcIF8Xakv2ALGm8NBPDRroGZHxIsy1zdbCD3Z6GtkrkgQknSLeDhmc XGsUTZ/ED35BsIHd5vpm4/xmllgX0e9R5VdiinkcRXcEYY/yQB1RwUXPy7shgPliJSv2 h7mR6Lhqhy9j7nk0CLpuOfEsl8mu/MmtWn+/Zg8D8z9//VD2YqGPyBidaT/t3vH71t0j WezQ== 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=oJeZlMGAet/awnSAJ8p4XyxlSZNy/ab42eqJ9Cvx5VU=; b=gC4S1UMVWkMLpFc1/aRGwi5MboqcWhWSbRyS+UqQibi5Gaa6k2NUo8zTq5SvS4up/Q ov9Iktmcbsxh3KxR7aCaqVGiiYD5C3nn1jt0DQJYELswmig9/kgWY/Dg0p04FdLnzo5k lDl/goTMobnMWTlsbm6/s3J7WyFqC4VSqdLQs6z/OeknX4fon4D6GdgvNVbrd2pFKxAX PU++clMJtQ7lw8GpIL5wQXbGjAjOkK34TJniocGC/+hP7gGwJIzalmFLys1eqottfznd /B5t7XNmsn3ncc5aXEjDKP9r8tBtmTWOajq8Y3M9RnqF71LYn3Umig3GauRbRt5D3jd7 dOLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Jy2/Gw2U"; 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 3si40513557plh.265.2019.08.05.06.24.34; Mon, 05 Aug 2019 06:24:49 -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="Jy2/Gw2U"; 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 S1730562AbfHENXR (ORCPT + 99 others); Mon, 5 Aug 2019 09:23:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:59858 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729489AbfHENXQ (ORCPT ); Mon, 5 Aug 2019 09:23:16 -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 56CB1214C6; Mon, 5 Aug 2019 13:23:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565011395; bh=6u/5CzAsoBRTXh0ATg4gQebDJPRLmvMbCMGyW2Ae3/c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jy2/Gw2UitFoVsdU/guypWaj0C6r2Mlg4SGz609ZC+i77kqQg2COtR9UGMqJzIbw9 AYzPqZACdri/Q0kbAyxuRwGveE/hfbwLbS2/A6ypB0o0jX5+nVDLRuZSibo9LdsgJE ASizj5qWQUOj4PgKQ66be0WN+d8Q2HKLKYs624BU= 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 5.2 070/131] x86, boot: Remove multiple copy of static function sanitize_boot_params() Date: Mon, 5 Aug 2019 15:02:37 +0200 Message-Id: <20190805124956.205378657@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805124951.453337465@linuxfoundation.org> References: <20190805124951.453337465@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 5a237e8dbf8d5..0de54a1d25c0a 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 d2f184165934c..c8181392f70d7 100644 --- a/arch/x86/boot/compressed/misc.h +++ b/arch/x86/boot/compressed/misc.h @@ -23,7 +23,6 @@ #include #include #include -#include #define BOOT_CTYPE_H #include -- 2.20.1