Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2749556ybh; Mon, 5 Aug 2019 06:15:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxoHRzJHCNI+8WuDQGOvIzTGYVE1W0tXvivoAtwFxWszdWl7Rq37rquoU97hhBRbgfxmMsb X-Received: by 2002:a63:460d:: with SMTP id t13mr8596925pga.205.1565010936602; Mon, 05 Aug 2019 06:15:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565010936; cv=none; d=google.com; s=arc-20160816; b=BXuKVNRinwBx/SFG3RaMefNcU52qfXjzJwU/P9k1CrBKRgCVRxJx0FnBPW8BPFkzmt Ju+KIS8RAEHq0i+TefIZPveRQXmuJRKrNeHHxQNDCXRL32OxkKzPCmUqjCrJJGyfJdEk ZOjXDIl600GgVqGisVykxoHA0+OoM1NlOvQ//o5xZTvFG9ZlipI6dzVnl2EDO8BiUlb6 58PrLGdGBbbIvuqvd9Ol+XjqSubOiI8W0/p5HFa8QkNUI+KK9QQjlnFn/VCYwZ95sU/k ymeKbuOIQnuh7yGg+R/HqEENf2J/0qqsTmJu59UeAQr3vqaTViYhEVxvvwVav9Eq74fR 80DA== 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=ejS0AHoSy601NhXjT0fPFWu5biQSycjxm6XzerlIuB8=; b=aR551rqXzLPi0/z9OPC4en2tZ7X5xHMsd12ZNDH8fAg/TpXyPpMmCe3c8h5my5f9pQ uVh4Q/f8v0RvgSaheDE5fR4LraOCPYnMi+egMDrITHFChOeyhHY5We/mtzrP0yB0CGyo EV25TQOacTEOqtTbEQ8Ezy4p0vahzwCyGrwXwJB1V6cXslwU9+tcvPltJN5MWUu3lr2x oYzdXTggwC7WVO/PXxfhwhLaxBf4SlHokyICZF7OP3i+pBpXqb1xo0WHiGJtm9kWYVsy LZ5N4rBJ0TXZlVzZqFo2CcyyvSDk9nXtRk4kAlzmirmNPIa4v/D/plb9hZIDxQ3q0/wv 60Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HThqWpUK; 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 j9si44867531pgh.159.2019.08.05.06.15.20; Mon, 05 Aug 2019 06:15:36 -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=HThqWpUK; 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 S1729396AbfHENOr (ORCPT + 99 others); Mon, 5 Aug 2019 09:14:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:45376 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729388AbfHENHl (ORCPT ); Mon, 5 Aug 2019 09:07:41 -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 534192147A; Mon, 5 Aug 2019 13:07:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565010460; bh=grWK2I+nBJkX18PcZ0UgVrOEZQsDYPTm31Twy1iMMXA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HThqWpUKMR8hR4pMf5V+oisI/slTlTKQqMTP4cxipRYAri0lVuIo/jhjL2uy3gW0K Li9zGjTRbZyeRTGAuYDEElmWoErOyvj0TyGJOVHp2Mp9Al1MQFvoljqqPbBt4x2qdd O24KfBBLoa92mWOSVaYvvAVQLpWeo0s3YMQSBE6Q= 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.14 31/53] x86, boot: Remove multiple copy of static function sanitize_boot_params() Date: Mon, 5 Aug 2019 15:02:56 +0200 Message-Id: <20190805124931.532425240@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805124927.973499541@linuxfoundation.org> References: <20190805124927.973499541@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 252fee3208166..fb07cfa3f2f90 100644 --- a/arch/x86/boot/compressed/misc.c +++ b/arch/x86/boot/compressed/misc.c @@ -16,6 +16,7 @@ #include "error.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 32d4ec2e0243c..5380d45b1c6e4 100644 --- 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" -- 2.20.1