]> 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)
commit9b063888f06d081a1546572f89e2fce3e13fec18
tree1d4a9929751dabbb2ead6051b7ec9038b916428f
parente1a5a4a602fe4450e61e3b4356d8847b862cdb08
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