Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1032657ybe; Wed, 4 Sep 2019 11:27:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOZqEZBwu9CmwILJTwVjdw2jM5tK4VDLhD9raoBbiJdusFCY0Xct759HKn6j8ON5XtPRLY X-Received: by 2002:a65:621a:: with SMTP id d26mr29913168pgv.153.1567621634964; Wed, 04 Sep 2019 11:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567621634; cv=none; d=google.com; s=arc-20160816; b=uYuAc+d0Ze0Flt9X5BLYVvTyMmzXQzNrLHc74Sp/sMaLQpNBtw59jW0Q0I/FtFew2Q iV7m/ZG9PA1zrayVQ1dhhyv99AenzLaXDKkk7YSlO/c9vzmrei2RyZAGrTKLK7kwQFNd BjCNrJDbJA3uGjAfqpJnS0HWONfXxEszwu6AxzXzNnMtx/ZeBM6ePQejpXgMc4NpwHav slOvZE5ZBZEbLuOOKsZgu/EsQj7WJR9r5CXoRzkkeLwihhRbMif4xOl5lZg2eAWsRRwn Mb3i8g6nvnMeJx0jiThiZgz63rytvEHIJzkxB1SWmlSUvTIuqc7yIjZ9kJJqjaK01y6K pP+g== 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=oF/lCHTzjQNiHM6n1tHsyKYJXi/AMcumCZBbjR357bc=; b=PEvsYbI9LF/YZA49CbVq0AoZ8U2B5sq8lxROwWJthtq6ERqxv5zEQ7ATqBzwn2p7AY 5a7oluKThyHmE/TDaau8lSNaYIX8+RwOUwTLcW4xDQWz02jibmOtVeKHU3B9wltf5S8V VIx8PFNXJDe5OMsUTdbi7ysWwkuJPLwQjJm+hNFWVW01zdS6uNUL8aCONSWXMc6DrC85 cQQHYNbmrJNR/pA3ktcrl8s61+EWDKNAY/3vO/LrTZI3huzDfz/iW8JF1Pgv3QE+IEbo bmIyNTYuGCQyWaE3ac215BSFIeWTR9/XPnk0ZXTmJdpvUpuqsfBfoAdGLa+VagOjSLzU mCoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GBgnLdVt; 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 59si17934896plp.331.2019.09.04.11.26.59; Wed, 04 Sep 2019 11:27:14 -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=GBgnLdVt; 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 S2387565AbfIDR7e (ORCPT + 99 others); Wed, 4 Sep 2019 13:59:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:38404 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388239AbfIDR7a (ORCPT ); Wed, 4 Sep 2019 13:59:30 -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 7261521883; Wed, 4 Sep 2019 17:59:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567619970; bh=K3sUxwuK4U/+xieBaB5p/JucqXzHSKvpmUsQVWuCUMw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GBgnLdVtJBYUjsrqtHl4UL+K7Ef0Gc5m8VmQKiUEk8A/cWo26O1LeSR4ti5wpNGP3 k9p5JOmvVkKv9+Pqa2eWzXFIQ5jJ70rGw9mc4ID3pbVs8w/o0y2hTnrfo2enbpDp44 wQH3idPTyUdrF0jxU4bR+S/qFP9ynyRBjTX3GC4Q= 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 4.9 24/83] x86/lib/cpu: Address missing prototypes warning Date: Wed, 4 Sep 2019 19:53:16 +0200 Message-Id: <20190904175306.030470019@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190904175303.488266791@linuxfoundation.org> References: <20190904175303.488266791@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 2dd1fe13a37b3..19f707992db22 100644 --- a/arch/x86/lib/cpu.c +++ b/arch/x86/lib/cpu.c @@ -1,5 +1,6 @@ #include #include +#include unsigned int x86_family(unsigned int sig) { -- 2.20.1