Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2900651iog; Mon, 27 Jun 2022 05:23:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tHtvUSPVMKCiqoZs10tBK3lGOOeyM8ta1cX345vJ0SqFuLCe1/qNz/Q0rfe6o4/ZW97hF4 X-Received: by 2002:a17:906:9c82:b0:6df:c5f0:d456 with SMTP id fj2-20020a1709069c8200b006dfc5f0d456mr12719263ejc.287.1656332607622; Mon, 27 Jun 2022 05:23:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656332607; cv=none; d=google.com; s=arc-20160816; b=BZU+unDteCHmw0hiekG7OSiQtm0O9zMkZga+Og9AwR4mLQGw934r2qKJJ2wut5k0Iq BgNyoV+qvnirE1uwHOBzLFkFzmL3yh84wmo/KOoIGLO1gPGimQQMk3FNzL08ey4ild0h xH1Aw2YQqJM9TR7VfiiOH0cYZ8cduHkYuBK1Mv6LUOnqcUqku45gHGZTw3oaGB5L6ISC vNjGt/x0Zq21y1aJJ6GuaL5SQdbLxdC3iLB603063sto7hkEnlYulHyM07lUcw5F9Bkc h4sARnVLlsjSWtHeowtD/1TcppyTCqp69lBd0ZetbKk9t0tce9j96xadoR4rE+4pvrcF aPxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=F1xC2xBaSTAk8G0i3LDvREUbeLa1pyNycgI26G3jrTQ=; b=SdXpv/Mq9f2uW+TzSFK2lWKsBn4GzM1mosHnDOA8kCrgCZVxlr/81FvArC35wMrYht r85KnxgPFV1zZV4VtH5HxYecAoMeiJWAMrPjPZ4yehJ0NH2iNYiFoIy7GVMqBe7dThnO SCdAzeVqWbb7e0YwmGAWWqnD/dfY+xJF9prgGXISU0tylvwyQnl5ZQqcxsTlRMSNDY0R LUMkLKAx18zsDcXaMStH1vTouCHIzxnmDDET/xFxZ/bi40XtSex3WLi0mFpyroJ8UeVK NKj5gSD7nKf31mGufV8DvU4tY+t+bfRzxPIO88yJcejvXAUBfxRGSLqmJ4YozmiEz2aU rFRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZYvy5j8M; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc10-20020a1709078a0a00b00726b827dc70si1547797ejc.340.2022.06.27.05.23.03; Mon, 27 Jun 2022 05:23:27 -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=@linuxfoundation.org header.s=korg header.b=ZYvy5j8M; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235319AbiF0L3n (ORCPT + 99 others); Mon, 27 Jun 2022 07:29:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235389AbiF0L26 (ORCPT ); Mon, 27 Jun 2022 07:28:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14ECFA199; Mon, 27 Jun 2022 04:27:45 -0700 (PDT) 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 A5822614A2; Mon, 27 Jun 2022 11:27:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93C05C341C7; Mon, 27 Jun 2022 11:27:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656329264; bh=4w0rb8WM7fGTNmflEmNCvYh4biFDvlmKXvwa62Cg0+s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZYvy5j8MswRoXls0Q8yPT+FhqpKk87EkkqUa53/fb9I1nGFS3t1ScBUem01pqOjfA y+J6JQ7pL0unWai+gxwRk69OkM8nLc8gbn4iFZEQllxBdzsHNzR3jzlUqC2DrgIsez EYtS3jF6IEEXzjEwXpp01wwDTRAym6meFq0Vk50U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Helge Deller , kernel test robot Subject: [PATCH 5.10 087/102] parisc/stifb: Fix fb_is_primary_device() only available with CONFIG_FB_STI Date: Mon, 27 Jun 2022 13:21:38 +0200 Message-Id: <20220627111936.046180187@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627111933.455024953@linuxfoundation.org> References: <20220627111933.455024953@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Helge Deller commit 1d0811b03eb30b2f0793acaa96c6ce90b8b9c87a upstream. Fix this build error noticed by the kernel test robot: drivers/video/console/sticore.c:1132:5: error: redefinition of 'fb_is_primary_device' arch/parisc/include/asm/fb.h:18:19: note: previous definition of 'fb_is_primary_device' Signed-off-by: Helge Deller Reported-by: kernel test robot Cc: stable@vger.kernel.org # v5.10+ Signed-off-by: Greg Kroah-Hartman --- arch/parisc/include/asm/fb.h | 2 +- drivers/video/console/sticore.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) --- a/arch/parisc/include/asm/fb.h +++ b/arch/parisc/include/asm/fb.h @@ -12,7 +12,7 @@ static inline void fb_pgprotect(struct f pgprot_val(vma->vm_page_prot) |= _PAGE_NO_CACHE; } -#if defined(CONFIG_STI_CONSOLE) || defined(CONFIG_FB_STI) +#if defined(CONFIG_FB_STI) int fb_is_primary_device(struct fb_info *info); #else static inline int fb_is_primary_device(struct fb_info *info) --- a/drivers/video/console/sticore.c +++ b/drivers/video/console/sticore.c @@ -1127,6 +1127,7 @@ int sti_call(const struct sti_struct *st return ret; } +#if defined(CONFIG_FB_STI) /* check if given fb_info is the primary device */ int fb_is_primary_device(struct fb_info *info) { @@ -1142,6 +1143,7 @@ int fb_is_primary_device(struct fb_info return (sti->info == info); } EXPORT_SYMBOL(fb_is_primary_device); +#endif MODULE_AUTHOR("Philipp Rumpf, Helge Deller, Thomas Bogendoerfer"); MODULE_DESCRIPTION("Core STI driver for HP's NGLE series graphics cards in HP PARISC machines");