Project

General

Profile

Actions

Bug #14074

closed

sbd: macro expands to multiple statements

Added by Toomas Soome about 1 month ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
kernel
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Build errors on SPARC:

    ../../sun4u/io/sbd.c: In function 'sbd_check_unit_attached':
    ../../sun4u/sys/sbdpriv.h:144:2: error: macro expands to multiple statements [-Werror=multistatement-macros]
      144 |  (ep)->e_errno = EIO; \
          |  ^
    ../../sun4u/io/sbd.c:3933:3: note: in expansion of macro 'SBD_GET_PERR'
     3933 |   SBD_GET_PERR(hdp->h_err, ep);
          |   ^~~~~~~~~~~~
    ../../sun4u/io/sbd.c:3932:2: note: some parts of macro expansion are not guarded by this 'if' clause
     3932 |  if (rv == -1)
          |  ^~
    cc1: all warnings being treated as errors

Testing done: build/istall/boot. However, my test system is sun4v.

Actions

Also available in: Atom PDF