]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/opal: Assign numbers to OPAL_MSG macros of enum opal_msg_type
authorVipin K Parashar <vipin@linux.vnet.ibm.com>
Mon, 31 Aug 2015 23:22:43 +0000 (04:52 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 11 Apr 2016 10:30:45 +0000 (20:30 +1000)
commit3e984ac24951acfabebfb43c8c302f2742b3e846
tree1d4a9929751dabbb2ead6051b7ec9038b916428f
parent4a6589c09f64fad68e2e812e1db1e2c762944a1b
powerpc/opal: Assign numbers to OPAL_MSG macros of enum opal_msg_type

This patch assigns numbers to OPAL_MSG macros of enum opal_msg_type
to prevent accidental insertion of any new value in between and thus
break OPAL API. This is also helpful while backporting mainline kernel
changes to distros which run downlevel kernel and thus don't have all
OPAL messages defined, avoiding unnecessary bugs due to enum values
order mismatch.

Signed-off-by: Vipin K Parashar <vipin@linux.vnet.ibm.com>
Acked-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/opal-api.h