Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp644713pxb; Tue, 5 Apr 2022 17:07:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTRElqr0q9VUDYD4aZawfZ/Rrh1GF0sXXc8KvqP4rS3fb+5FOhJk6s5I332Kvnvr4CEPa6 X-Received: by 2002:a05:6a00:e0b:b0:4fa:a167:5b35 with SMTP id bq11-20020a056a000e0b00b004faa1675b35mr6257440pfb.69.1649203629620; Tue, 05 Apr 2022 17:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649203629; cv=none; d=google.com; s=arc-20160816; b=wWY3zKNTUnNbJnGwTkfepdCcgOkunfmcccDpuFu3xyfyaiNE+g4hEKKEnDoz3AIxuf 6MqpD2pTQNK2Jd+bT+FoK0Y/d2moRiRRNEPTQIfk78EBJd8giguFJ5a3eI+XTA7jJIwc Nw+LpmGy5w06c2sOfG/AHLs0Py22RVPsXISpcSgRIO7d8oWHqjALni35uD270mcxSNft o4D1WepAQ1Na+N2nIax3IZIIlM19G/5F1RdI4tNik3yODiTQqc69cxFLCxQch4olhFSf qXHTnNQfOlBQJOZ386oCmusX9QSE3SIC+INXW83LFLlQR84heJxOoV6+GyPlno+Em8we 28nA== 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=lkNyd9gw4yZwEEzuKenvfXlRldC8JEm9bMdmywSqEnE=; b=gci+fiRd6oYMocKlWtZ+/YNdOPj2OAHgBqDf7mP0PYi3BlO7+PY2SrDQl4l/a4WFKP pESZf7d8ODhbCqAZ7b2mB6YJQgHOVr60tMh6VG4thCViwB3XW4GfVTZDCuL1MzYuYtEp NJB6FDDh0/NCR6bLsErZ3jU81HMOCbEVCOXSDTLflsQOqNwNMwobCXgryaMZ7bFW91K3 CQtkFKoEf94WOhNL1soj6BOgnEWW1TrgSBBW4Twdz5aer37mgOfwll5qeYKHa7IuSPl+ mFXImdmkDMkfXv640KpgvK0ZSvBV390FaGPEAQ2MbOBKzCaWDhGuC6vH/SPFah+FyUHw GzuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Q18bL4Xu; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m12-20020a170902768c00b00153b2d165b2si12429501pll.442.2022.04.05.17.07.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 17:07:09 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Q18bL4Xu; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 58A7DE7F7E; Tue, 5 Apr 2022 16:51:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389032AbiDEPVD (ORCPT + 99 others); Tue, 5 Apr 2022 11:21:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347021AbiDEJpy (ORCPT ); Tue, 5 Apr 2022 05:45:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94861DCAB2; Tue, 5 Apr 2022 02:32:15 -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 18A6B61368; Tue, 5 Apr 2022 09:32:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A6EEC385A2; Tue, 5 Apr 2022 09:32:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151134; bh=Znaktkp0TlhhTmv22siN8VXYQMsR80xwUmAM0j+apdc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q18bL4XuhWxLox5jJOsAy1UahBegivjT/t0MG+fx8vpq4Jjkh1ClI5B/RJDgz+feO cLt6LVo8NOZBk5RbyJvM28IiSS7k8Qhi09rMzBIHh1x2FlcqLeuubnJwJOYHfrd5sI h49EDUalbGbLRGKr3VJzxcxfCdSC0ssEV9Rce3Ng= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, YueHaibing , Helge Deller , Sasha Levin Subject: [PATCH 5.15 289/913] video: fbdev: controlfb: Fix COMPILE_TEST build Date: Tue, 5 Apr 2022 09:22:31 +0200 Message-Id: <20220405070348.520689482@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: YueHaibing [ Upstream commit 567e44fb51b4f909ae58038a7301352eecea8426 ] If PPC_BOOK3S, PPC_PMAC and PPC32 is n, COMPILE_TEST build fails: drivers/video/fbdev/controlfb.c:70:0: error: "pgprot_cached_wthru" redefined [-Werror] #define pgprot_cached_wthru(prot) (prot) In file included from ./arch/powerpc/include/asm/pgtable.h:20:0, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from drivers/video/fbdev/controlfb.c:37: ./arch/powerpc/include/asm/nohash/pgtable.h:243:0: note: this is the location of the previous definition #define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ Fixes: a07a63b0e24d ("video: fbdev: controlfb: add COMPILE_TEST support") Signed-off-by: YueHaibing Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/controlfb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/fbdev/controlfb.c b/drivers/video/fbdev/controlfb.c index 509311471d51..bd59e7b11ed5 100644 --- a/drivers/video/fbdev/controlfb.c +++ b/drivers/video/fbdev/controlfb.c @@ -67,7 +67,9 @@ #define out_8(addr, val) (void)(val) #define in_le32(addr) 0 #define out_le32(addr, val) (void)(val) +#ifndef pgprot_cached_wthru #define pgprot_cached_wthru(prot) (prot) +#endif #else static void invalid_vram_cache(void __force *addr) { -- 2.34.1