Your patch changed buf_block_get_frame from this:
#ifdef UNIV_DEBUG
/*********************************************************************//**
Gets a pointer to the memory frame of a block.
@return pointer to the frame */
UNIV_INLINE
buf_frame_t*
buf_block_get_frame(
/*================*/
const buf_block_t* block) /*!< in: pointer to the control block */ __attribute__((pure));
#else /* UNIV_DEBUG */
# define buf_block_get_frame(block) (block)->frame
#endif /* UNIV_DEBUG */
to this, check the else branch
#ifdef UNIV_DEBUG
848 /*********************************************************************//**
849 Gets a pointer to the memory frame of a block.
850 @return pointer to the frame */
851 UNIV_INLINE
852 buf_frame_t*
853 buf_block_get_frame(
854 /*================*/
855 const buf_block_t* block) /*!< in: pointer to the control block */
856 __attribute__((pure));
857 #else /* UNIV_DEBUG */
858 # define buf_block_get_frame(block) (block ? (block)->frame : 0)
859 #endif /* UNIV_DEBUG */
The warnings about null are from your patch
Your patch changed buf_block_get_frame from this: ******* ******* ******* ******* ******* ******* ******* ******* ******* //** get_frame( ======= ====*/
__attribute_ _((pure) ); get_frame( block) (block)->frame
#ifdef UNIV_DEBUG
/******
Gets a pointer to the memory frame of a block.
@return pointer to the frame */
UNIV_INLINE
buf_frame_t*
buf_block_
/*=====
const buf_block_t* block) /*!< in: pointer to the control block */
#else /* UNIV_DEBUG */
# define buf_block_
#endif /* UNIV_DEBUG */
to this, check the else branch
#ifdef UNIV_DEBUG ******* ******* ******* ******* ******* ******* ******* ******* ******* //** get_frame( ======= ====*/ _((pure) ); get_frame( block) (block ? (block)->frame : 0)
848 /******
849 Gets a pointer to the memory frame of a block.
850 @return pointer to the frame */
851 UNIV_INLINE
852 buf_frame_t*
853 buf_block_
854 /*=====
855 const buf_block_t* block) /*!< in: pointer to the control block */
856 __attribute_
857 #else /* UNIV_DEBUG */
858 # define buf_block_
859 #endif /* UNIV_DEBUG */