From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753465Ab1ASGY0 (ORCPT ); Wed, 19 Jan 2011 01:24:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55202 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751913Ab1ASGYZ (ORCPT ); Wed, 19 Jan 2011 01:24:25 -0500 From: Amerigo Wang To: linux-kernel@vger.kernel.org Cc: lethal@linux-sh.org, WANG Cong , Arnd Bergmann (commit_signer:3/5=60%), Andrew Morton (commit_signer:2/5=40%), Greg Kroah-Hartman (commit_signer:2/5=40%), Yannick Heneault (commit_signer:1/5=20%), Matthew Garrett (commit_signer:1/5=20%), linux-fbdev@vger.kernel.org (open list:FRAMEBUFFER LAYER) Subject: [Patch V2] video: fix some comments in drivers/video/console/vgacon.c Date: Wed, 19 Jan 2011 14:24:02 +0800 Message-Id: <1295418242-19859-1-git-send-email-amwang@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now vgacon_scrollback_startup() uses slab, not bootmem, the comment above it is obsolete, so does __init_refok. Signed-off-by: WANG Cong --- diff --git a/drivers/video/console/vgacon.c b/drivers/video/console/vgacon.c index c97491b..915fd74 100644 --- a/drivers/video/console/vgacon.c +++ b/drivers/video/console/vgacon.c @@ -202,11 +202,7 @@ static void vgacon_scrollback_init(int pitch) } } -/* - * Called only duing init so call of alloc_bootmen is ok. - * Marked __init_refok to silence modpost. - */ -static void __init_refok vgacon_scrollback_startup(void) +static void vgacon_scrollback_startup(void) { vgacon_scrollback = kcalloc(CONFIG_VGACON_SOFT_SCROLLBACK_SIZE, 1024, GFP_NOWAIT); vgacon_scrollback_init(vga_video_num_columns * 2); From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amerigo Wang Date: Wed, 19 Jan 2011 06:24:02 +0000 Subject: [Patch V2] video: fix some comments in drivers/video/console/vgacon.c Message-Id: <1295418242-19859-1-git-send-email-amwang@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-kernel@vger.kernel.org Cc: lethal@linux-sh.org, WANG Cong , Arnd Bergmann , Andrew Morton , Greg Kroah-Hartman , Yannick Heneault , Matthew Garrett , "open list:FRAMEBUFFER LAYER" Now vgacon_scrollback_startup() uses slab, not bootmem, the comment above it is obsolete, so does __init_refok. Signed-off-by: WANG Cong --- diff --git a/drivers/video/console/vgacon.c b/drivers/video/console/vgacon.c index c97491b..915fd74 100644 --- a/drivers/video/console/vgacon.c +++ b/drivers/video/console/vgacon.c @@ -202,11 +202,7 @@ static void vgacon_scrollback_init(int pitch) } } -/* - * Called only duing init so call of alloc_bootmen is ok. - * Marked __init_refok to silence modpost. - */ -static void __init_refok vgacon_scrollback_startup(void) +static void vgacon_scrollback_startup(void) { vgacon_scrollback = kcalloc(CONFIG_VGACON_SOFT_SCROLLBACK_SIZE, 1024, GFP_NOWAIT); vgacon_scrollback_init(vga_video_num_columns * 2);