Bug 221557 - Kernel does not compile with options DEBUG
Summary: Kernel does not compile with options DEBUG
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-16 09:59 UTC by Sylvain Garrigues
Modified: 2017-09-11 22:33 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain Garrigues 2017-08-16 09:59:58 UTC
Here is the error:

/usr/src/sys/kern/subr_intr.c:1041:49: error: use of undeclared identifier 'irq'
                debugf("irq %u add handler error %d on %s\n", irq, error, name);
                                                              ^
1 error generated.
Comment 1 commit-hook freebsd_committer 2017-08-16 16:52:07 UTC
A commit references this bug:

Author: ian
Date: Wed Aug 16 16:51:55 UTC 2017
New revision: 322580
URL: https://svnweb.freebsd.org/changeset/base/322580

Log:
  Fix compile error with option DEBUG.  This is fallout from some long-ago
  INTRNG refactoring that didn't get caught at the time because code in a
  debugf() statement isn't compiled unless DEBUG is defined.

  PR:		221557

Changes:
  head/sys/kern/subr_intr.c
Comment 2 Sylvain Garrigues 2017-08-16 19:41:52 UTC
Thank you Ian.
Comment 3 commit-hook freebsd_committer 2017-09-11 22:33:08 UTC
A commit references this bug:

Author: ian
Date: Mon Sep 11 22:32:38 UTC 2017
New revision: 323469
URL: https://svnweb.freebsd.org/changeset/base/323469

Log:
  MFC r322580:

  Fix compile error with option DEBUG.  This is fallout from some long-ago
  INTRNG refactoring that didn't get caught at the time because code in a
  debugf() statement isn't compiled unless DEBUG is defined.

  PR:		221557

Changes:
_U  stable/11/
  stable/11/sys/kern/subr_intr.c