Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp805479ybe; Fri, 13 Sep 2019 06:40:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwaEbP9P562FinzDDeYdsFt3DgvmZyshDwPmer6xjBwjwerKsI/4wvAHJPCbsln+g7oOno8 X-Received: by 2002:a17:907:4301:: with SMTP id nh1mr39167875ejb.245.1568382004610; Fri, 13 Sep 2019 06:40:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568382004; cv=none; d=google.com; s=arc-20160816; b=lZLH6+fKqAqHaI/N5XW5LzOhdmNI/ckquFnMBhSXSebhbtOmMKzLmUlB4Dq1tN65RZ ErQTmEef6DdqULs6qikUPd8w2mhQ3ZSfG+9msFzFCVvL2VOIg8A/m0wpniLdtUqG0muf c2fJGl2IT/yqpIW3GfSZ+UeBrCx08Q7gUjhY6ZYj5NOrqJe7+HBLP3VfNMDeadEsqtHB sjIbWbgN4jBJumVjbkGKChKYR2yn2tG7xasQI+soxwpQADLorEmn/4cC4HE7qUYHGPpD jw6ED0CU4/gj2+RbaLwhVmTXEd6GDb7WYLZTGZFMsJSMhXidlcEKv9TrsLqQueHeIiHW a2rw== 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=cn36qc/jypeAsS227SSQwWQfUXDKqgf23qdvdRb5ACc=; b=nlOXY01G8XEzbu1MPzABNFiwvG2BtztWd7aR1J99R5sneiRDSkKJ1LpIJP0Gble0Bi KA5IdN/z8XR/FBJip32KTh9hbfUW+/Td70g382L8nPPYYolLIOkeORSapuakaOs0p3Ww mIgQBClq6iBGoHl349I0hECahL6NXJD47GJB5T+kAKaAx4JUYJX+x02gBh95Tr3k1Aaw /0ag0TsUEURWr+LrAWU/CUzF8u+K3lF34s1Q+sFE4jempK8vcuzefXVYmGtB9SizJxZ8 lssk2rIdLqgCtcQvCAQocuKFhlTWblnlRcCFd/Kb/nIk38mLoVdvdekFWG5nHqmkhqfN mTXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=d1YX3lB1; 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 m26si16424963edp.100.2019.09.13.06.39.41; Fri, 13 Sep 2019 06:40: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; dkim=pass header.i=@kernel.org header.s=default header.b=d1YX3lB1; 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 S2388390AbfIMNI7 (ORCPT + 99 others); Fri, 13 Sep 2019 09:08:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:33440 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388354AbfIMNI4 (ORCPT ); Fri, 13 Sep 2019 09:08:56 -0400 Received: from localhost (unknown [104.132.45.99]) (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 7D87F208C2; Fri, 13 Sep 2019 13:08:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568380136; bh=18tAscth9FF9plE93REuaZYkwT31wbrMuT8sabAMCe4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d1YX3lB1coAOlgUYIV2UxZ0QLkIib8sNd8IQAX6COMQb4DKKMCr3LmMNZSFebk/61 w3iFMljXtOlXJBNA7KemifQ755mU8Ihgau9tnSAZOAcR4dj49ngtQjW+yl4KKKNbFE 6yASltB8315kiyOq4Yb3Is5tSmHu52soWuJcfVqo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zhenzhong Duan , Thomas Gleixner , Nathan Chancellor Subject: [PATCH 4.4 7/9] x86, boot: Remove multiple copy of static function sanitize_boot_params() Date: Fri, 13 Sep 2019 14:06:57 +0100 Message-Id: <20190913130430.474572665@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190913130424.160808669@linuxfoundation.org> References: <20190913130424.160808669@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 From: Zhenzhong Duan commit 8c5477e8046ca139bac250386c08453da37ec1ae upstream. 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 [nc: Fixed conflict around lack of 67b6662559f7f] Signed-off-by: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- arch/x86/boot/compressed/misc.c | 1 + arch/x86/boot/compressed/misc.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/boot/compressed/misc.c +++ b/arch/x86/boot/compressed/misc.c @@ -11,6 +11,7 @@ #include "misc.h" #include "../string.h" +#include /* WARNING!! * This code is compiled with -fPIC and it is relocated dynamically --- a/arch/x86/boot/compressed/misc.h +++ b/arch/x86/boot/compressed/misc.h @@ -19,7 +19,6 @@ #include #include #include -#include #define BOOT_BOOT_H #include "../ctype.h"