Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2703462ybi; Thu, 18 Jul 2019 12:49:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwG7jSy4dixRVdSVvlXSz9MS2N1rEd4kxRz+BNf4jeCd03wzv1iSomSGdCm2wTqZEL6BZh8 X-Received: by 2002:a17:902:d892:: with SMTP id b18mr48614504plz.165.1563479396563; Thu, 18 Jul 2019 12:49:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563479396; cv=none; d=google.com; s=arc-20160816; b=qx0RDdVqSOW0Dl1mRY3xIDRTBvtBvRKSjgZu/L+O9/ka8Qg6IeGB41zdBvE0PW+fK1 FsfCVnyKBB5D7lK11OcVczxaxpW9RjRfH+Ov0mCEV7CR8xY7qY4Gw0vtiwNbv+1u9Q8/ UEwXq6Hg51i++p7o0JY6FnIBjcXBAxJS1yQ3PIJwnnSmOGeXUsU72aj69kiqUpC7DRBU iIbxCUvlH8fQnPzry0XCU/vj6DLmdNZu0GzusoumkXp4ZZHmpIk0buL5FxGeIhN488up gATHSUkGeiekJ2Za7WQCPY/cW2ZsVxJJPsefMZiwpXMH8qmAfbLuixYYQZzm167jpv63 LrBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=1Je2KUaiTya9zcT84RXi+zABJ3OIOKD3Bvd4vMnat3M=; b=NR8w/tNN1m4o272j0rdlgdU+Iq5xv/uuBbeyukrabPrHqpamyR7ALSBL6oHEjs+Oe9 4j0OX9mokBfZK7kOJq4b3cGYcGdgT0ygZ5T9hNVdvMkC+Qd0k7feZ9lzB3WWhHIZWu/j f2BCLpFH7oIq6nap+5Zk4MwVi2n+mQK6L7StTHuZVU2e/N2/3ectxFGjBy11NiEudK4T 4u1Hrg9hF2rAnPSnl5e/bwzb/rmTBxfibf9/K30qzjLnp53K4rAuvHv6Xu6HLYx8Qi5w zNUqCgssAtIXMAx+CUD2RxDMUkUKR7MsFT8Tc+y+h+PB1EUlg61ntkiYcKWZdjCfatOd OEsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019061801 header.b=ncseqEI2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v63si357541pgd.111.2019.07.18.12.49.41; Thu, 18 Jul 2019 12:49:56 -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=@zytor.com header.s=2019061801 header.b=ncseqEI2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391791AbfGRTr5 (ORCPT + 99 others); Thu, 18 Jul 2019 15:47:57 -0400 Received: from terminus.zytor.com ([198.137.202.136]:57271 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391704AbfGRTr5 (ORCPT ); Thu, 18 Jul 2019 15:47:57 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x6IJloer2136718 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 18 Jul 2019 12:47:50 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x6IJloer2136718 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019061801; t=1563479270; bh=1Je2KUaiTya9zcT84RXi+zABJ3OIOKD3Bvd4vMnat3M=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=ncseqEI2Dv6A4QrQeSmAo0tVV3TtWmiB/vWcumkHlEt19BdWWNNvCGwVctBsjVcRw MBvLlipeS7qn9ybtSiXYh3TUBjRVbjM0QdI0NtpevUke+gbnoxb7gjjaGZF8MHjdhc UJZZkjdoRcqhx3KZA//Vj5ewZb4c2zcLQ9D0oIbiLPuLHr1l8IdB8++LkufwkTa7BX pVcCtPWgkgsH2kQ+4xKiaUT9hq5iwzWmTOiefKlPlcLEGGziDQWmbJURHYl6D8pfdt /sTRYEsB7IbJPTzWZ7HMsMUocfiSvhDZu51TpQz7Wc6Wfnvflz61iOqfSv+dNT1ZrA MUc1NqAFF1xFQ== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x6IJloCZ2136715; Thu, 18 Jul 2019 12:47:50 -0700 Date: Thu, 18 Jul 2019 12:47:50 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Zhenzhong Duan Message-ID: Cc: hpa@zytor.com, zhenzhong.duan@oracle.com, mingo@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de Reply-To: zhenzhong.duan@oracle.com, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de In-Reply-To: <1563283092-1189-1-git-send-email-zhenzhong.duan@oracle.com> References: <1563283092-1189-1-git-send-email-zhenzhong.duan@oracle.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86, boot: Remove multiple copy of static function sanitize_boot_params() Git-Commit-ID: 8c5477e8046ca139bac250386c08453da37ec1ae X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_48_96,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, DKIM_VALID_EF autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 8c5477e8046ca139bac250386c08453da37ec1ae Gitweb: https://git.kernel.org/tip/8c5477e8046ca139bac250386c08453da37ec1ae Author: Zhenzhong Duan AuthorDate: Tue, 16 Jul 2019 21:18:12 +0800 Committer: Thomas Gleixner CommitDate: Thu, 18 Jul 2019 21:41:57 +0200 x86, boot: Remove multiple copy of static function sanitize_boot_params() 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 --- 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 24e65a0f756d..53ac0cb2396d 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 d2f184165934..c8181392f70d 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