Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp877119ybi; Wed, 17 Jul 2019 06:18:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzt3PgRyMIJDzFQorBKNRsfCfJuJkB58HebXLqdAM1EndjRHviIrXdvpGnt3Fvg71Yr3lGA X-Received: by 2002:a17:90a:2041:: with SMTP id n59mr42224407pjc.6.1563369532255; Wed, 17 Jul 2019 06:18:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563369532; cv=none; d=google.com; s=arc-20160816; b=gFfhikJoIWbitRck3+y8FpYSlSq5y3hI1oG2vXVQcApThqeR/fHzL1+cNCgMO79yIZ Y9N1L97s2jA5g4tuZhtedU6PLB9/mH857oE7Dp/Ew0aumKaO+0f+UpHR47Dnq3eTxtZX efHbh5AS1PE67YFE9JQHq0uw3s+yye1/GmXfKZkBlFEV/H9WYL4Y1Hne9lhlScoOQntx 8nySfkXcR3/AyBeQ0qElodO/hm633wnA8rQpTZ9QU8NbP+xP0glLzb+RdF1Nkd5kw8NE WRM53HC6pKJbM88iP9pPGamOl0s3V6zbkDADjief/YDTU51689XImgurM0jNSRcVWn3V D8Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=MJEwO54lmmPvXRI8FYtOyTN+c7zUXuOQr44nzf5sm7Y=; b=mU0oZkEnm8trQK1AmRsb5rsuVI6n3i11OQgrfy0g+EO030wLu7m01u46E59+7AWwcT yOIrtXBdoWCiQw75eTnaffj7rvNMKedfZ++9JZxV+VPDoboldfaSkeg6X9D9plc2IH+X vyGAuD7SeBWzrKarSWuqyylPH21v8BUF0rYkpDrdcXcU9nzQwR1Hpskj38Kd23fPtRqV gFskP49hv/LyquagrFcnnoHFOHX3FUH6NvhoS7+KFenzlvS+NkmxwtgQFx6adPjLtlnB GlpN746dTc1ayDAw8emscAVuQnMYEjf31smy6/sDjBwITNrJ1yJJq0XmHm+Y2UhY1dOQ /Ngw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=lGia3dcz; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si22254197plb.284.2019.07.17.06.18.35; Wed, 17 Jul 2019 06:18:52 -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=@oracle.com header.s=corp-2018-07-02 header.b=lGia3dcz; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726189AbfGQNQs (ORCPT + 99 others); Wed, 17 Jul 2019 09:16:48 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:34838 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725799AbfGQNQs (ORCPT ); Wed, 17 Jul 2019 09:16:48 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6HDDtDc093407; Wed, 17 Jul 2019 13:16:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2018-07-02; bh=MJEwO54lmmPvXRI8FYtOyTN+c7zUXuOQr44nzf5sm7Y=; b=lGia3dczEYc+Jx5Sud5AixQImtoAKnVWZsB+O63uURD8NR7O6afwJpcZlZsBI4awEVR6 Goc+nlf9G+mPfIQz6OV8XUichp3IsXX8r6GV/DwuA9RM/661uFUygonIO+rXca0CmWHG jaMZgGUL59XSKEH4B2YOJ0KezaWEBWy6Z+u5eNde7huk6JHIvFykbOTCFlosVRIHs0xq bbyHz+kEBaAJKruJNxeKjDFKjkOMUQiNR+cAzhpfj+0gKE7NR75J9srbzC4HDjsNY60H qWHs3y3tzt0bPMUXKHk5xp9JERh8t71zeQTxFAzdRiW7CEZpF7spoMTbYB6tCo5sh+E1 VA== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 2tq78ptjp5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Jul 2019 13:16:24 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6HDCl2G074511; Wed, 17 Jul 2019 13:14:24 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3030.oracle.com with ESMTP id 2tq5bd088x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Jul 2019 13:14:23 +0000 Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x6HDEMeT007829; Wed, 17 Jul 2019 13:14:22 GMT Received: from z2.cn.oracle.com (/10.182.69.87) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 17 Jul 2019 13:14:22 +0000 From: Zhenzhong Duan To: linux-kernel@vger.kernel.org Cc: x86@kernel.org, Zhenzhong Duan , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov Subject: [PATCH] x86, boot: Remove multiple copy of static function sanitize_boot_params() Date: Tue, 16 Jul 2019 21:18:12 +0800 Message-Id: <1563283092-1189-1-git-send-email-zhenzhong.duan@oracle.com> X-Mailer: git-send-email 1.8.3.1 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9320 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907170161 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9320 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907170161 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kernel build reporting warnings: '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 due to they each include misc.h which includes a definition of sanitize_boot_params(). Remove the inclusion from misc.h and have the c file including bootparam_utils.h directly. Signed-off-by: Zhenzhong Duan Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov --- 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 24e65a0..53ac0cb 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 d2f1841..c818139 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 -- 1.8.3.1