ramoops: Fixup section annotations
PATCH 1/1 ramoops: Fixup section annotations
The compiler complained about missing section annotations. Fix it.
Signed-off-by Hannes Reinecke <[email protected]>
Cc Anton Vorontsov <[email protected]>
Cc Colin Cross <[email protected]>
Cc Kees Cook <[email protected]>
Cc Tony Luck <[email protected]>
--- fs/pstore/ram.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-)
fs/pstore/ram.c +7 -5
@@ -287,8 +287,9 @@ static void ramoops_free_przs(struct ramoops_context *cxt)kfree (cxt->przs); } -static int ramoops_init_przs (struct device *dev,struct ramoops_context *cxt, -phys_addr_t *paddr,size_t dump_mem_sz) +static int __devinit ramoops_init_przs (struct device *dev, +struct ramoops_context *cxt, +phys_addr_t *paddr,size_t dump_mem_sz) {int err = -ENOMEM ;int i;
@@ -326,9 +327,10 @@ fail_prz:return err; } -static int ramoops_init_prz (struct device *dev,struct ramoops_context *cxt, -struct persistent_ram_zone **prz, -phys_addr_t *paddr,size_t sz,u32 sig) +static int __devinit ramoops_init_prz (struct device *dev, +struct ramoops_context *cxt, +struct persistent_ram_zone **prz, +phys_addr_t *paddr,size_t sz,u32 sig) {if (!sz)return 0 ;
Signature · 1 line
1.7.4.2
Quoted 8 lines · Hannes Reinecke
The compiler complained about missing section annotations. Fix it.
Signed-off-by Hannes Reinecke <[email protected]>Cc Anton Vorontsov <[email protected]>Cc Colin Cross <[email protected]>Cc Kees Cook <[email protected]>Cc Tony Luck <[email protected]>
Acked-by Kees Cook <[email protected]>
Thanks for the fix!
-Kees
Signature · 2 lines
Kees Cook Chrome OS Security
Anton Vorontsov
AppliedQuoted 11 lines · Kees Cook
Quoted 8 lines · Hannes Reinecke
The compiler complained about missing section annotations. Fix it.
Signed-off-by Hannes Reinecke <[email protected]>Cc Anton Vorontsov <[email protected]>Cc Colin Cross <[email protected]>Cc Kees Cook <[email protected]>Cc Tony Luck <[email protected]>Acked-by Kees Cook <[email protected]>
Applied, thank you!