]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
fix kABI breakage from "blk-mq: Shared tag enhancements"
authorDan Duval <dan.duval@oracle.com>
Wed, 8 Jun 2016 18:00:49 +0000 (14:00 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 13 Jul 2016 07:09:49 +0000 (00:09 -0700)
Orabug: 23521058

Commit e92f419 ("blk-mq: Shared tag enhancements") added the element
"cpumask" to struct blk_mq_tags.  This broke kABI.

Currently, this structure is only used by the core blk-mq code.
I don't expect that third-party modules will use it at all.
Even if they do, though, the kernel provides an API that
encapsulates creation/destruction/access for these structures,
and modules that use that API will be unaffected by the change.

So the workaround for the kABI breakage is simply to hide the new
element from the kABI checker by wrapping it in #ifndef __GENKSYMS__.

Signed-off-by: Dan Duval <dan.duval@oracle.com>
block/blk-mq-tag.h

index 75893a34237d2eb2b4d07bd21a70cc35948c172a..cc076a3c2d9c45bfee48f23e810e4c7109c4ffd4 100644 (file)
@@ -44,7 +44,9 @@ struct blk_mq_tags {
        struct list_head page_list;
 
        int alloc_policy;
+#ifndef __GENKSYMS__
        cpumask_var_t cpumask;
+#endif
 };