diff --git a/kernel-patches/for-mainline/coding-style.diff b/kernel-patches/for-mainline/coding-style.diff new file mode 100644 index 000000000..bbfc15c12 --- /dev/null +++ b/kernel-patches/for-mainline/coding-style.diff @@ -0,0 +1,27 @@ +--- + security/apparmor/inline.h | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +Index: linux-2.6/security/apparmor/inline.h +=================================================================== +--- linux-2.6.orig/security/apparmor/inline.h ++++ linux-2.6/security/apparmor/inline.h +@@ -88,7 +88,7 @@ aa_alloc_task_context(struct task_struct + { + struct aa_task_context *cxt; + +- cxt = kzalloc(sizeof(struct aa_task_context), GFP_KERNEL); ++ cxt = kzalloc(sizeof(*cxt), GFP_KERNEL); + if (cxt) { + INIT_LIST_HEAD(&cxt->list); + cxt->task = task; +@@ -110,8 +110,7 @@ static inline struct aa_profile *alloc_a + { + struct aa_profile *profile; + +- profile = (struct aa_profile *)kzalloc(sizeof(struct aa_profile), +- GFP_KERNEL); ++ profile = kzalloc(sizeof(*profile), GFP_KERNEL); + AA_DEBUG("%s(%p)\n", __FUNCTION__, profile); + if (profile) { + profile->parent = profile; diff --git a/kernel-patches/for-mainline/series b/kernel-patches/for-mainline/series index 85ffca2ba..96cdea594 100644 --- a/kernel-patches/for-mainline/series +++ b/kernel-patches/for-mainline/series @@ -101,3 +101,4 @@ security-xattr-file.diff file-handle-ops.diff file-handle-ops-2.diff # unlink.diff +coding-style.diff