Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp33771pxb; Mon, 11 Apr 2022 18:02:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxT3d85Bfzbjn1T1AQIYj0SJ7ahkM73G/VU7rOfR7CdpVIz4gwiXGKY8dWNU+f8L/pEBCtg X-Received: by 2002:a17:907:6092:b0:6e8:abed:7368 with SMTP id ht18-20020a170907609200b006e8abed7368mr2160383ejc.584.1649725345465; Mon, 11 Apr 2022 18:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649725345; cv=none; d=google.com; s=arc-20160816; b=jM2gGSQ2lXsRr433kheg/FJC2rLkB1c2MhoDNWkqZgsxfIpcheOSirDJuKczQMuLv4 p9Ppla0EChRAc0ZaV+PbGX5YM8I2t+dlPO3HBylkyoWcWzkzY8U+NKnVBx7p/LrpWET8 qOPaEAq/K1Jorx37EJv5H3Htv6aqFNEUCx2jLH9UFRt//ftcmhgp5AL/LFPLpRklDFrf 8pb96RZG1ztdrK/ilgNhTgUGr7rPFix2Vjt6Xja4wTe8w+cr6V0M5AJ9Ipv2sepkC4WA d62en4djXC3mRWL83VsHkwd8KHkUEJIcv0OhDAtPWjGyNIeTBFuec6i2x622ouqcWFij sqXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=V8ZzOUBL7xD1yUccl21XOGqXXja/Y5DnANuDg4EUg+4=; b=ixLNWjy1lIsDleFM0sDOQE/bkPXn1qv0KvDAhE/TnRd63zrLhDP5cLLV0ajyNvuYgn XivOsEc57OavXfXcKvXzlOJusiIZ0U1P/pYTaZr1AukBza6LMMBbOnqiHza9Khcunxl3 6c4uNxtxHiLMbq0oNKWe5zvhJwKrQ71rCY8d4xIbGaVYw+e/jWiTItkE2vhX4kdUfxLc 2sx7zOvPQR3kegl2TItKfBNMgFkfP5EHwcD8KE1yxXLqV17H5gxQ6gJ7Xd0F0gs7fmYH TdiS0bT6c5lVmbpdO8xNPg70BDQO7O/Rcq+K0W45VP3AnZMWa5V5nK9QcbrXtqfFTaZ3 LZ5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=BPFkxgPs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m16-20020a50d7d0000000b0041d6da9e85esi6324663edj.379.2022.04.11.18.02.00; Mon, 11 Apr 2022 18:02:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=BPFkxgPs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241035AbiDJUkG (ORCPT + 99 others); Sun, 10 Apr 2022 16:40:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235427AbiDJUkF (ORCPT ); Sun, 10 Apr 2022 16:40:05 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8223A21E25 for ; Sun, 10 Apr 2022 13:37:52 -0700 (PDT) Received: from zn.tnic (p2e55dff8.dip0.t-ipconnect.de [46.85.223.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id AD3881EC02B9; Sun, 10 Apr 2022 22:37:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1649623066; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=V8ZzOUBL7xD1yUccl21XOGqXXja/Y5DnANuDg4EUg+4=; b=BPFkxgPstSR5/P/X7db6tYPIBiAI29xBlCNirXUz45ijMZbOcx9sErW8xObtt5DxNsLCys zFojJ8BOmAhMeiQobD9ofQvf/hHw1si52EEKeoOoT7Dn6WJQqTBvFXTeXWz0UIeqjsqTZR LsF6nbqaRR0J1nkGprDqD/kvq2YIq0w= Date: Sun, 10 Apr 2022 22:37:45 +0200 From: Borislav Petkov To: "Kirill A. Shutemov" Cc: "Kirill A. Shutemov" , tglx@linutronix.de, mingo@redhat.com, dave.hansen@intel.com, luto@kernel.org, peterz@infradead.org, sathyanarayanan.kuppuswamy@linux.intel.com, aarcange@redhat.com, ak@linux.intel.com, dan.j.williams@intel.com, david@redhat.com, hpa@zytor.com, jgross@suse.com, jmattson@google.com, joro@8bytes.org, jpoimboe@redhat.com, knsathya@kernel.org, pbonzini@redhat.com, sdeep@vmware.com, seanjc@google.com, tony.luck@intel.com, vkuznets@redhat.com, wanpengli@tencent.com, thomas.lendacky@amd.com, brijesh.singh@amd.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv8 14/30] x86: Consolidate port I/O helpers Message-ID: References: <20220405232939.73860-1-kirill.shutemov@linux.intel.com> <20220405232939.73860-15-kirill.shutemov@linux.intel.com> <20220410200025.3stf4jjvwfe5oxew@box.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220410200025.3stf4jjvwfe5oxew@box.shutemov.name> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 10, 2022 at 11:00:25PM +0300, Kirill A. Shutemov wrote: > Right. is enough for lib/kaslr.c. > > What about this: > > From 164de295599f8befa2ee1ff05dc03542c02b0800 Mon Sep 17 00:00:00 2001 > From: "Kirill A. Shutemov" > Date: Sun, 10 Apr 2022 22:49:28 +0300 > Subject: [PATCH] x86/kaslr: Fix build warning in KASLR code in boot stub > > lib/kaslr.c used by both the main kernel and the boot stub. It includes > that intended to be used in the main kernel. It leads to > build warnings like this: > > warning: implicit declaration of function 'outl' is invalid in > C99 [-Wimplicit-function-declaration] > > Replace with which is suitable for both > cases. > > Signed-off-by: Kirill A. Shutemov > Fixes: 1e8f93e18379 ("x86: Consolidate port I/O helpers") Reported-by: me > --- > arch/x86/lib/kaslr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/lib/kaslr.c b/arch/x86/lib/kaslr.c > index 2b3eb8c948a3..a58f451a7dd3 100644 > --- a/arch/x86/lib/kaslr.c > +++ b/arch/x86/lib/kaslr.c > @@ -11,7 +11,7 @@ > #include > #include > #include > -#include > +#include > > /* > * When built for the regular kernel, several functions need to be stubbed out > -- Thanks, that works and looks nice too. I'll queue it tomorrow. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette