[2.6 patch] make drivers/mtd/cmdlinepart.c:mtdpart_setup() static



This patch makes the needlessly global mtdpart_setup() static.

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

---

This patch was already sent on:
- 27 Jun 2006

--- linux-2.6.17-mm2-full/drivers/mtd/cmdlinepart.c.old 2006-06-26 23:18:39.000000000 +0200
+++ linux-2.6.17-mm2-full/drivers/mtd/cmdlinepart.c 2006-06-26 23:18:51.000000000 +0200
@@ -346,7 +346,7 @@
*
* This function needs to be visible for bootloaders.
*/
-int mtdpart_setup(char *s)
+static int mtdpart_setup(char *s)
{
cmdline = s;
return 1;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [PATCH 5/8] lguest: trivial guest network driver
    ... This function needs to be passed skb_headlen, ... Patch is below (I renamed the parameter as well, ... for clarity). ... How about just dropping that parameter and using skb_headlen ...
    (Linux-Kernel)
  • Re: [PATCH] Driver Core update for 2.6.4-rc1
    ... propogate errors from misc_register to caller ... The patch to check for / in class_device is not enough. ... The misc_register function needs to check return value of the things it calls! ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • [SUMMARY] RE: Patches
    ... Actually most of the responses were kinda insulting, ... copied the one from the patch to the proper directory, ... I tripple checked the FAQ, and the words showrev or pkginfo ... idiot insisted on sending it to me multiple times are 1.2.3 and the last ...
    (SunManagers)
  • Re: [PATCH] ahci.c: fix ati sb600 sata IRQ_TF_ERR
    ... I should add that on 2.6.22-amd64 the log entry is as ... Andreas John schrieb: ... I you provide a patch, ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: [PATCH] Added CONFIG_VFAT_FS_DUALNAMES option
    ... A FAQ will be posted immediately after this patch to answer the ... int "Default codepage for FAT" ...
    (Linux-Kernel)