@@ -101,7 +101,7 @@ static int have_wrcomb(void)
101101 if (dev -> vendor == PCI_VENDOR_ID_SERVERWORKS &&
102102 dev -> device == PCI_DEVICE_ID_SERVERWORKS_LE &&
103103 dev -> revision <= 5 ) {
104- pr_info ("mtrr: Serverworks LE rev < 6 detected. Write-combining disabled.\n" );
104+ pr_info ("Serverworks LE rev < 6 detected. Write-combining disabled.\n" );
105105 pci_dev_put (dev );
106106 return 0 ;
107107 }
@@ -111,7 +111,7 @@ static int have_wrcomb(void)
111111 */
112112 if (dev -> vendor == PCI_VENDOR_ID_INTEL &&
113113 dev -> device == PCI_DEVICE_ID_INTEL_82451NX ) {
114- pr_info ("mtrr: Intel 450NX MMC detected. Write-combining disabled.\n" );
114+ pr_info ("Intel 450NX MMC detected. Write-combining disabled.\n" );
115115 pci_dev_put (dev );
116116 return 0 ;
117117 }
@@ -313,24 +313,24 @@ int mtrr_add_page(unsigned long base, unsigned long size,
313313 return error ;
314314
315315 if (type >= MTRR_NUM_TYPES ) {
316- pr_warn ("mtrr: type: %u invalid\n" , type );
316+ pr_warn ("type: %u invalid\n" , type );
317317 return - EINVAL ;
318318 }
319319
320320 /* If the type is WC, check that this processor supports it */
321321 if ((type == MTRR_TYPE_WRCOMB ) && !have_wrcomb ()) {
322- pr_warn ("mtrr: your processor doesn't support write-combining\n" );
322+ pr_warn ("your processor doesn't support write-combining\n" );
323323 return - ENOSYS ;
324324 }
325325
326326 if (!size ) {
327- pr_warn ("mtrr: zero sized request\n" );
327+ pr_warn ("zero sized request\n" );
328328 return - EINVAL ;
329329 }
330330
331331 if ((base | (base + size - 1 )) >>
332332 (boot_cpu_data .x86_phys_bits - PAGE_SHIFT )) {
333- pr_warn ("mtrr: base or size exceeds the MTRR width\n" );
333+ pr_warn ("base or size exceeds the MTRR width\n" );
334334 return - EINVAL ;
335335 }
336336
@@ -361,16 +361,15 @@ int mtrr_add_page(unsigned long base, unsigned long size,
361361 } else if (types_compatible (type , ltype ))
362362 continue ;
363363 }
364- pr_warn ("mtrr: 0x%lx000,0x%lx000 overlaps existing"
365- " 0x%lx000,0x%lx000\n" , base , size , lbase ,
364+ pr_warn ("0x%lx000,0x%lx000 overlaps existing 0x%lx000,0x%lx000\n" , base , size , lbase ,
366365 lsize );
367366 goto out ;
368367 }
369368 /* New region is enclosed by an existing region */
370369 if (ltype != type ) {
371370 if (types_compatible (type , ltype ))
372371 continue ;
373- pr_warn ("mtrr: type mismatch for %lx000,%lx000 old: %s new: %s\n" ,
372+ pr_warn ("type mismatch for %lx000,%lx000 old: %s new: %s\n" ,
374373 base , size , mtrr_attrib_to_str (ltype ),
375374 mtrr_attrib_to_str (type ));
376375 goto out ;
@@ -396,7 +395,7 @@ int mtrr_add_page(unsigned long base, unsigned long size,
396395 }
397396 }
398397 } else {
399- pr_info ("mtrr: no more MTRRs available\n" );
398+ pr_info ("no more MTRRs available\n" );
400399 }
401400 error = i ;
402401 out :
@@ -408,8 +407,8 @@ int mtrr_add_page(unsigned long base, unsigned long size,
408407static int mtrr_check (unsigned long base , unsigned long size )
409408{
410409 if ((base & (PAGE_SIZE - 1 )) || (size & (PAGE_SIZE - 1 ))) {
411- pr_warn ("mtrr: size and base must be multiples of 4 kiB\n" );
412- pr_debug ("mtrr: size: 0x%lx base: 0x%lx\n" , size , base );
410+ pr_warn ("size and base must be multiples of 4 kiB\n" );
411+ pr_debug ("size: 0x%lx base: 0x%lx\n" , size , base );
413412 dump_stack ();
414413 return -1 ;
415414 }
@@ -500,22 +499,22 @@ int mtrr_del_page(int reg, unsigned long base, unsigned long size)
500499 }
501500 }
502501 if (reg < 0 ) {
503- pr_debug ("mtrr: no MTRR for %lx000,%lx000 found\n" ,
502+ pr_debug ("no MTRR for %lx000,%lx000 found\n" ,
504503 base , size );
505504 goto out ;
506505 }
507506 }
508507 if (reg >= max ) {
509- pr_warn ("mtrr: register: %d too big\n" , reg );
508+ pr_warn ("register: %d too big\n" , reg );
510509 goto out ;
511510 }
512511 mtrr_if -> get (reg , & lbase , & lsize , & ltype );
513512 if (lsize < 1 ) {
514- pr_warn ("mtrr: MTRR %d not used\n" , reg );
513+ pr_warn ("MTRR %d not used\n" , reg );
515514 goto out ;
516515 }
517516 if (mtrr_usage_table [reg ] < 1 ) {
518- pr_warn ("mtrr: reg: %d has count=0\n" , reg );
517+ pr_warn ("reg: %d has count=0\n" , reg );
519518 goto out ;
520519 }
521520 if (-- mtrr_usage_table [reg ] < 1 )
@@ -776,7 +775,7 @@ void __init mtrr_bp_init(void)
776775 }
777776
778777 if (!mtrr_enabled ()) {
779- pr_info ("MTRR: Disabled\n" );
778+ pr_info ("Disabled\n" );
780779
781780 /*
782781 * PAT initialization relies on MTRR's rendezvous handler.
0 commit comments