Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2601349ybx; Fri, 8 Nov 2019 06:42:58 -0800 (PST) X-Google-Smtp-Source: APXvYqyNiIeb5b+BQp/rg+5M/R2QkGEIj21ir5YPwgxsBLebDQUpk6N/VM9EB6R0kvCjrdPUYu3a X-Received: by 2002:a17:906:f209:: with SMTP id gt9mr8874245ejb.241.1573224178398; Fri, 08 Nov 2019 06:42:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573224178; cv=none; d=google.com; s=arc-20160816; b=Dv2NsyzCE0GDvSKKur4mDiLPZW6VsrUo6Q2A3oltXX1G1rIxe91A3X78tviACBzh0A /MW9NTpF3mdPdFsQNU9Oq1JKn3N0Sb+1sZyphQgjwfHoqvXy9ozP5FtnUaCR/TSqxKt8 HKCLcwXLoX9OlK/QSTsmWHWuDIpMr1dJoFCchnlNcz1cSjP+gRLg1b3C4ft3Hnhka9Aw 7mi3vHUIVkRJv1oAelEX9RohxPlg0ML6bQ26Ti/vBflGghtAnuJnZsN3+swZVltCZRqN PEN26I/waQb5GLWONhsA7Jahv2MifX9BymOC+XdJ7Q0UJYRWQee7MYuP+FSASi2am5gM zr/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=WRCpWfnxwI9IkpzX1p5dfM2HQZ4Vsv8ktaxb/cXKeoQ=; b=YRB3TJRjqsH6HdVecee6GGkJPGBjr5eh+Vfs2X3Urscr0YbHZNpK6qzUg7U8MYomIa hZxFdRmBuyM7yJwUfzrdzV7PRm/CJahxKvZ3aNzR6vddT57VgYOuk1T0rKNuauwfwVEZ wtPqL7BMnZ3XJHmIsjboH2mHcPDR2y7lO8dJNw5H+syugVysKaGBGZGVWXI5k2c1yU+E 7ZY1iQSTozUzAy8uQhYVYxWum4bVNnLbid9R8tFjUJ8CPfKbAGgs7aAoXWFoLg+jG0g9 q1uI4xlFu6W3hTJj5NOrV2Fx6fVaCdwL13W8fdhb31bmCaDW5900hnQ6NIdUSNL8wcoZ JH8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=C21Z+1B7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f36si4279223ede.159.2019.11.08.06.42.35; Fri, 08 Nov 2019 06:42:58 -0800 (PST) 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=@samsung.com header.s=mail20170921 header.b=C21Z+1B7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727010AbfKHOjv (ORCPT + 99 others); Fri, 8 Nov 2019 09:39:51 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:43557 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726036AbfKHOjv (ORCPT ); Fri, 8 Nov 2019 09:39:51 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20191108143949euoutp017cf8ad052bfa4d026d51b5463af04e16~VNuH9xgr83040830408euoutp01O for ; Fri, 8 Nov 2019 14:39:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20191108143949euoutp017cf8ad052bfa4d026d51b5463af04e16~VNuH9xgr83040830408euoutp01O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1573223989; bh=WRCpWfnxwI9IkpzX1p5dfM2HQZ4Vsv8ktaxb/cXKeoQ=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=C21Z+1B7T/a716efS4zN5pAstupQdaH2NBcQCIp//eTIzrcMFEHubD0goUrHDV3bQ UReIQtZkbRBevzVAX8zR3Lj3V/qla7f7jkCZg4GmCEtG7FnT4MqO4I7PtuW4evfzm3 LVqoCPRAk1lSH48zUUp+PebyvsaEO5PY+b9iigyY= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20191108143948eucas1p2b2c756dcdd6e0f8791a6282eb71dd3c0~VNuHypcrP0626906269eucas1p2S; Fri, 8 Nov 2019 14:39:48 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id C8.3C.04469.43E75CD5; Fri, 8 Nov 2019 14:39:48 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20191108143948eucas1p29ae2cf253068f2b62af12720669614fb~VNuHThaJv0626906269eucas1p2R; Fri, 8 Nov 2019 14:39:48 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20191108143948eusmtrp140652a1479d6fdc751fec181be2ef06d~VNuHNtxvY1383413834eusmtrp1X; Fri, 8 Nov 2019 14:39:48 +0000 (GMT) X-AuditID: cbfec7f2-54fff70000001175-cd-5dc57e3460f5 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id E7.99.04117.43E75CD5; Fri, 8 Nov 2019 14:39:48 +0000 (GMT) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20191108143947eusmtip2fb7dcbfd588e54581fcccae15248c7ab~VNuGsSw031049310493eusmtip2s; Fri, 8 Nov 2019 14:39:47 +0000 (GMT) Subject: Re: [PATCH 06/46] ARM: pxa: stop using mach/bitfield.h To: Arnd Bergmann Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linus Walleij , dri-devel@lists.freedesktop.org From: Bartlomiej Zolnierkiewicz Message-ID: Date: Fri, 8 Nov 2019 15:39:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191018154201.1276638-6-arnd@arndb.de> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA01Sa0hTYRj22zlnOxMnn/OyV7OkEYHhJcNolFhC1H74I/olleXMk1o6dcd7 ZGZR4gWvIQ5DS8vSUjHzjqWmppaZloWlDRJRc5SXEWrTdnaU/Pe8z/O8l+fjowlpO+VEh6tj GY1aFSEXWpKNvStD7t4pPYH7DcMHFMb8XpEizThHKj4afgkVwzWHFIV/KwWK+h9jlGK0tUSo 0M7bHqOVa6v5SJlTs0QpW7QTIuW3sXah8ntmn0D5vOK6cql+l7KprZI8RZ+x9AlhIsLjGY2n b5BlWOlysSi6wyHxnl6LUlGjNAOJacDekKdrF2YgS1qKHyOo+aOjOEGKlxHUrlG8sIRgZqpN uNXxsHmV5IVKBEPpGyK+0CNoyHwh4Fy2+CjU94+IOGyHd8PdmWmCMxE4SwD3B8tJThDiw5B3 pwpxWIJ9YTZbb8Yk3gNvZ96bsT0OgEVdN8V7bKC/eMrcK8YHoboz18wTWAbjU6UCHrtAk77E vAzwkAjKOmpNAm0qjsObT758BFuY62sQ8dgZBguySN5fg8CYPrPZ3ISgsmB9M/QR6O77Q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YGpobmxubWSiJ83YIHIwREkhPLEnNTk0tSC2C6WPi4JRqYPS72isxq8fm XhX74rBuF1WRO7XLlFnuH059oZ2mYn20/cVC/+ufVv1f/zlzgq9JatkmI7k1LgeS4tyUzscG 7J+uLiEXLvBIm/3dnEOC/avXZu8/IsBlFJ7//2iXhMoMxkLXCcVPP+e7bg7pSJjI15yedcHf 99N3Xpf1zgsKbnnUaPG49DWXKrEUZyQaajEXFScCAH5ir3viAgAA X-CMS-MailID: 20191108143948eucas1p29ae2cf253068f2b62af12720669614fb X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20191018154225epcas4p2b2e722620511ada1014107d9e100ab35 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20191018154225epcas4p2b2e722620511ada1014107d9e100ab35 References: <20191018154052.1276506-1-arnd@arndb.de> <20191018154201.1276638-6-arnd@arndb.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/18/19 5:41 PM, Arnd Bergmann wrote: > There are two identical copies of mach/bitfield.h, one for > mach-sa1100 and one for mach-pxa. The pxafb driver only > makes use of two macros, which can be trivially open-coded > in the header. > > Cc: Bartlomiej Zolnierkiewicz > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Arnd Bergmann Acked-by: Bartlomiej Zolnierkiewicz Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics > --- > arch/arm/mach-pxa/idp.c | 1 - > arch/arm/mach-pxa/include/mach/regs-lcd.h | 5 +++-- > arch/arm/mach-pxa/regs-u2d.h | 2 -- > drivers/video/fbdev/pxafb.c | 1 - > 4 files changed, 3 insertions(+), 6 deletions(-) > > diff --git a/arch/arm/mach-pxa/idp.c b/arch/arm/mach-pxa/idp.c > index 57c0511472bc..525d01ddfbbb 100644 > --- a/arch/arm/mach-pxa/idp.c > +++ b/arch/arm/mach-pxa/idp.c > @@ -30,7 +30,6 @@ > #include "pxa25x.h" > #include "idp.h" > #include > -#include > #include > #include > > diff --git a/arch/arm/mach-pxa/include/mach/regs-lcd.h b/arch/arm/mach-pxa/include/mach/regs-lcd.h > index e2b6e3d1f625..6a434675f84a 100644 > --- a/arch/arm/mach-pxa/include/mach/regs-lcd.h > +++ b/arch/arm/mach-pxa/include/mach/regs-lcd.h > @@ -2,8 +2,6 @@ > #ifndef __ASM_ARCH_REGS_LCD_H > #define __ASM_ARCH_REGS_LCD_H > > -#include > - > /* > * LCD Controller Registers and Bits Definitions > */ > @@ -86,6 +84,9 @@ > #define LCCR0_OUC (1 << 25) /* Overlay Underlay control bit */ > #define LCCR0_LDDALT (1 << 26) /* LDD alternate mapping control */ > > +#define Fld(Size, Shft) (((Size) << 16) + (Shft)) > +#define FShft(Field) ((Field) & 0x0000FFFF) > + > #define LCCR1_PPL Fld (10, 0) /* Pixels Per Line - 1 */ > #define LCCR1_DisWdth(Pixel) (((Pixel) - 1) << FShft (LCCR1_PPL)) > > diff --git a/arch/arm/mach-pxa/regs-u2d.h b/arch/arm/mach-pxa/regs-u2d.h > index fe4c80ad87ec..ab517ba62c9a 100644 > --- a/arch/arm/mach-pxa/regs-u2d.h > +++ b/arch/arm/mach-pxa/regs-u2d.h > @@ -2,8 +2,6 @@ > #ifndef __ASM_ARCH_PXA3xx_U2D_H > #define __ASM_ARCH_PXA3xx_U2D_H > > -#include > - > /* > * USB2 device controller registers and bits definitions > */ > diff --git a/drivers/video/fbdev/pxafb.c b/drivers/video/fbdev/pxafb.c > index ece691a0f18a..e68b8a69db92 100644 > --- a/drivers/video/fbdev/pxafb.c > +++ b/drivers/video/fbdev/pxafb.c > @@ -64,7 +64,6 @@ > #include > #include > #include > -#include > #include > > /* >