OSDN Git Service

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)
commitb3d79eaa6c97b04965fa479652dd0317253f81d1
tree1d4a9929751dabbb2ead6051b7ec9038b916428f
parentef69b03dfd321ffa1bcb4248e9b8744f653e3859
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