Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5225845ybl; Tue, 27 Aug 2019 01:06:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxecd7RyNyDzmD15w/tSOhdnP+oTmo7lJ0Zz1cF2y/vdH7nAqZm9kxKIn7azwJnxZncZxFT X-Received: by 2002:a63:20d:: with SMTP id 13mr20467019pgc.253.1566893203235; Tue, 27 Aug 2019 01:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566893203; cv=none; d=google.com; s=arc-20160816; b=w5/enty9mRmurOWw1ClrlOVZm3MymNV9cX5T+TvTuIVRDBAJU+bKG45sqs/tDHX/N2 er1hu3rxLEPnmWxn+I5AVcRAnc0Gi1H3FfCdXWlKSXcHFFDjylw0I1k9qRWSMCxonPoz j41ACNmGwGnhKGP1wHgxND1LyWT7cwDnAZAk2zVTFk02hBIBlfJr8kaXCRn9Te8xF6za vb4p6RxQDvZbZRmZ3dgAkX2rVJyXodPlR92aLctu77JaFhixR6zkirbro2WABJfJPAOT Nc5bNhwxRVuZM9XsMQF6HXD1ZRopEWByR0972BXktQTgMZlLtGPFcNRNIkl2flQ9jISw ADAA== 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=TdOLHzN+76azER2lo3Vs/kna7pKk4Xo7lOgKgiEEwoc=; b=D5bin1t0NTY6jV9CcrhxAFjCkCyYT0MYge0vOWATQP+UrulyuR2fmgtyZ+RUogwRVD ZInZwh78rDMJYheK+urp4oX6Nb/WBwa/JT/wKXN5HvpQ6ogVR54Xi+zXeEqY1LAH6wLp 9worTSYyCrMWNr7932UBlpAGvalB70cpCIVVge7yREJrZ37EL5C1hAmtmhCjnu4GpWAP GRlD6U/sIRnYn3SW2Qb7iXBOYm0/+CAuP3dpWGFErQdcB3JxuS6su+Vp4cdFFqTW0MEI UT2m8k3nvKZAnFTAwf2Ghh3G46lHuamZcCL/LZZGdAYMTcbHBRVCi4yU9deGnF6+bzwE 9HBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KL+LRDby; 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 n16si3055672pff.23.2019.08.27.01.06.27; Tue, 27 Aug 2019 01:06:43 -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=KL+LRDby; 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 S1732480AbfH0IEK (ORCPT + 99 others); Tue, 27 Aug 2019 04:04:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:33374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731961AbfH0IEF (ORCPT ); Tue, 27 Aug 2019 04:04:05 -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 E93E6206BA; Tue, 27 Aug 2019 08:04:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566893044; bh=zOFzaPp3tC6o+qncWuZ6pg4/tqSgJwxflaLtgkbW6hg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KL+LRDby6EL6caFXckAYL/zLQCB5c4ecI/8dnEJNRosesRTSVlHhDl9EGDR0rIbwD P1BJoDUUuatV6yTkjs/ODPBGkPW44eOvuiNxXOqGhCCyNIqiNcrqvSvYQYg5hNWaNQ 8vUd5oDM/BfKdWFg3V4GjV3By0NqWRDlfyAEpEgM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Valdis Kletnieks , Thomas Gleixner , Sasha Levin Subject: [PATCH 5.2 099/162] x86/lib/cpu: Address missing prototypes warning Date: Tue, 27 Aug 2019 09:50:27 +0200 Message-Id: <20190827072741.681322652@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190827072738.093683223@linuxfoundation.org> References: <20190827072738.093683223@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 04f5bda84b0712d6f172556a7e8dca9ded5e73b9 ] When building with W=1, warnings about missing prototypes are emitted: CC arch/x86/lib/cpu.o arch/x86/lib/cpu.c:5:14: warning: no previous prototype for 'x86_family' [-Wmissing-prototypes] 5 | unsigned int x86_family(unsigned int sig) | ^~~~~~~~~~ arch/x86/lib/cpu.c:18:14: warning: no previous prototype for 'x86_model' [-Wmissing-prototypes] 18 | unsigned int x86_model(unsigned int sig) | ^~~~~~~~~ arch/x86/lib/cpu.c:33:14: warning: no previous prototype for 'x86_stepping' [-Wmissing-prototypes] 33 | unsigned int x86_stepping(unsigned int sig) | ^~~~~~~~~~~~ Add the proper include file so the prototypes are there. Signed-off-by: Valdis Kletnieks Signed-off-by: Thomas Gleixner Link: https://lkml.kernel.org/r/42513.1565234837@turing-police Signed-off-by: Sasha Levin --- arch/x86/lib/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/lib/cpu.c b/arch/x86/lib/cpu.c index 04967cdce5d12..7ad68917a51e8 100644 --- a/arch/x86/lib/cpu.c +++ b/arch/x86/lib/cpu.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only #include #include +#include unsigned int x86_family(unsigned int sig) { -- 2.20.1