From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sam Ravnborg Date: Mon, 20 May 2019 17:08:20 +0000 Subject: Re: [PATCH 10/33] fbcon: call fbcon_fb_(un)registered directly Message-Id: <20190520170820.GA27230@ravnborg.org> List-Id: References: <20190520082216.26273-1-daniel.vetter@ffwll.ch> <20190520082216.26273-11-daniel.vetter@ffwll.ch> In-Reply-To: <20190520082216.26273-11-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Daniel Vetter Cc: linux-fbdev@vger.kernel.org, Bartlomiej Zolnierkiewicz , Greg Kroah-Hartman , Intel Graphics Development , LKML , DRI Development , =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Yisheng Xie , Hans de Goede , Mikulas Patocka , Thomas Zimmermann , Daniel Vetter , Peter Rosin Hi Daniel. While browsing this nice patch series I stumbled upon a detail. On Mon, May 20, 2019 at 10:21:53AM +0200, Daniel Vetter wrote: > With > > commit 6104c37094e729f3d4ce65797002112735d49cd1 > Author: Daniel Vetter > Date: Tue Aug 1 17:32:07 2017 +0200 > > fbcon: Make fbcon a built-time depency for fbdev > > we have a static dependency between fbcon and fbdev, and we can > replace the indirection through the notifier chain with a function > call. > > Signed-off-by: Daniel Vetter > Cc: Bartlomiej Zolnierkiewicz > Cc: Daniel Vetter > Cc: Hans de Goede > Cc: Greg Kroah-Hartman > Cc: "Noralf Trønnes" > Cc: Yisheng Xie > Cc: Peter Rosin > Cc: "Michał Mirosław" > Cc: Thomas Zimmermann > Cc: Mikulas Patocka > Cc: linux-fbdev@vger.kernel.org > --- > diff --git a/include/linux/fb.h b/include/linux/fb.h > index f52ef0ad6781..701abaf79c87 100644 > --- a/include/linux/fb.h > +++ b/include/linux/fb.h > @@ -136,10 +136,6 @@ struct fb_cursor_user { > #define FB_EVENT_RESUME 0x03 > /* An entry from the modelist was removed */ > #define FB_EVENT_MODE_DELETE 0x04 > -/* A driver registered itself */ > -#define FB_EVENT_FB_REGISTERED 0x05 > -/* A driver unregistered itself */ > -#define FB_EVENT_FB_UNREGISTERED 0x06 > /* CONSOLE-SPECIFIC: get console to framebuffer mapping */ > #define FB_EVENT_GET_CONSOLE_MAP 0x07 > /* CONSOLE-SPECIFIC: set console to framebuffer mapping */ This breaks build of arch/arm/mach-pxa/am200epd.c thats uses FB_EVENT_FB_*REGISTERED: if (event = FB_EVENT_FB_REGISTERED) return am200_share_video_mem(info); else if (event = FB_EVENT_FB_UNREGISTERED) return am200_unshare_video_mem(info); Found while grepping for "FB_EVENT" so this is not a build error I triggered. Sam