From patchwork Tue May 16 19:35:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243604 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2758AC77B7F for ; Tue, 16 May 2023 19:37:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B99EA280005; Tue, 16 May 2023 15:37:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B49AC280001; Tue, 16 May 2023 15:37:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A11D0280005; Tue, 16 May 2023 15:37:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 8FFDA280001 for ; Tue, 16 May 2023 15:37:36 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 5FBAD803D4 for ; Tue, 16 May 2023 19:37:36 +0000 (UTC) X-FDA: 80797127712.26.E022F08 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf18.hostedemail.com (Postfix) with ESMTP id 9D6E71C0003 for ; Tue, 16 May 2023 19:37:34 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=mC+M7eKA; spf=pass (imf18.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684265854; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=YfjD1KzlQTMvJPBdsoqXES34XokwhUaAsAx0zsGp04U=; b=hfbfFdbt/M+mtJVe7Om0h4M2zdfWhQzqAm9hW3m1k8JeeJaD3KNzqaFR/MyrBW18tr+NVX mlVkI+opPJVN58DvZtU7qdrTvxeYArOo9Yv4fdBhDordRVoqkMfHA/3+yCAwBe7xWBkXWP 4D+5a8s/+d8CI6TBykSpnXBJzlm6/Gs= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=mC+M7eKA; spf=pass (imf18.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684265854; a=rsa-sha256; cv=none; b=A8Pj97tqimRMlYIUtYgL7nKKpgLgTOrL8hzKc7VPgBD0rYeomfZtz/CPzZJrgxoZ27eMP8 e7+O6MyahejjxQfGdgEwmzoadzciRs01cCD/+b+BsDayN8cEDQb24j2BMdc+GSv3sBkpQv DSpswKjdMMrb99Coy4Xg0aR55ipSVzc= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B40FD63E94; Tue, 16 May 2023 19:37:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B617C4339C; Tue, 16 May 2023 19:37:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265853; bh=VUIVbi0JrRPfajUkNZclAh0STTeBs9rnHGdAvoTKkf0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mC+M7eKABjyFWUz3ahztx+5ej0UDKRHny6IDcOOkOBb7T8TKyoOo1fQHoeIhY+UJr sMwYJWriml+CN5IT55dh+Y3N4Qkk1jy6sqNrI9NQRSoJY9QmUi1UgvCpWOpG8IrCEn JOOcmypp8HYKXesh78Zw9Mn2B1hMfzJ5E0vHwnVhf9EWjHBjng/8AutDQDYVKbiQni nhbYm4YAKuzLx1TphcnEliNa7XAqoVH4gMMnVTi3+fU11+7fSp55kbWmoZSJxYHgWE bkp6SUDmTbzTpuvHIao5LyGY8w2RZRYUNYlNHTF5PTUou4JACCZ0eU58pOVKhjr1zj +aqQ1XVbdlOGQ== From: Arnd Bergmann To: x86@kernel.org Cc: Arnd Bergmann , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Andy Lutomirski , Steven Rostedt , Masami Hiramatsu , Mark Rutland , Juergen Gross , "Srivatsa S. Bhat (VMware)" , Alexey Makhalov , VMware PV-Drivers Reviewers , Peter Zijlstra , Darren Hart , Andy Shevchenko , Boris Ostrovsky , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-pci@vger.kernel.org, platform-driver-x86@vger.kernel.org, xen-devel@lists.xenproject.org, linux-pm@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 14/20] x86: fbdev: include asm/fb.h as needed Date: Tue, 16 May 2023 21:35:43 +0200 Message-Id: <20230516193549.544673-15-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516193549.544673-1-arnd@kernel.org> References: <20230516193549.544673-1-arnd@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 9D6E71C0003 X-Stat-Signature: c49gdxzpzt7mq3hmhpyybto8156fxdnp X-HE-Tag: 1684265854-86547 X-HE-Meta: U2FsdGVkX1+dqsJDI4upUO8UPIf5QRuHZvD3MaOyw3l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cwueef9aOSjvCQKeKmRWCRrXuD9gmTgD+EzcUz3E8Pah3gFP5GYFsPPfjPKXciTdKwrEUf+xMqOeYEDO8LLR+nPdjw8EY3Sog13L7SlF8UzLvzowEIDCYHP3uM6wLu8kx/pLVKswrXIun7xiDm7xmlMOxRZdPwdKE= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Arnd Bergmann fb_is_primary_device() is defined as a global function on x86, unlike the others that have an inline version. The file that defines is however needs to include the declaration to avoid a warning: arch/x86/video/fbdev.c:14:5: error: no previous prototype for 'fb_is_primary_device' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/x86/video/fbdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/video/fbdev.c b/arch/x86/video/fbdev.c index 9fd24846d094..9e9143085d19 100644 --- a/arch/x86/video/fbdev.c +++ b/arch/x86/video/fbdev.c @@ -10,6 +10,7 @@ #include #include #include +#include int fb_is_primary_device(struct fb_info *info) {