From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C7F1C0650F for ; Mon, 5 Aug 2019 13:23:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1E9662173C for ; Mon, 5 Aug 2019 13:23:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565011399; bh=6u/5CzAsoBRTXh0ATg4gQebDJPRLmvMbCMGyW2Ae3/c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=seCYnaqqm94Wak5M1yIOsy88t3qUbOHt3w1B3NhjieIZ7xWOU3863pdbP68UANeCP 7/UVZe45ETctNqiqzYDLdMWFB7636dNlCqC14JmdqOAnNli59RgHcjQkj+G0i08nZq f+E5Eo/15aEB92EknzaNHufk3gAhQ0ACfY9jvkTM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730793AbfHENXR (ORCPT ); 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