## Process this file with automake to produce Makefile.in
if HAS_GNOME
if USING_GNOME2
GNOMECFLAGS = `pkg-config --cflags libgnomeui-2.0 libpanelapplet-2.0 libglade-2.0`
GNOMELINKAGE = `pkg-config --libs libgnomeui-2.0 libpanelapplet-2.0 libglade-2.0|sed -e 's/-lz //'`
else
GNOMECFLAGS = `gnome-config --cflags gnomeui applets libglade`
GNOMELINKAGE = `gnome-config --libs gnomeui applets libglade|sed -e 's/-lz //'`
endif
EXTRA_PROGRAMS = gscope
endif
bin_PROGRAMS = cscope
if USING_LEX
LEXER_SOURCE=scanner.l
else
LEXER_SOURCE=fscanner.l
endif
cscope_SOURCES = $(LEXER_SOURCE) egrep.y alloc.c alloc.h basename.c build.c \
build.h command.c compath.c constants.h crossref.c dir.c display.c edit.c \
exec.c find.c global.h help.c history.c input.c invlib.c invlib.h library.h \
logdir.c lookup.c lookup.h main.c mouse.c mygetenv.c mypopen.c scanner.h \
version.h vp.h vpaccess.c vpfopen.c vpinit.c vpopen.c
EXTRA_cscope_SOURCES = scanner.l fscanner.l
LEXLIB = @LEXLIB@
cscope_LDADD = $(CURSES_LIBS) $(LEXLIB)
AM_CPPFLAGS = $(CURSES_INCLUDEDIR)
## Hack to clean the generated files and not include them in a "make dist".
CLEANFILES = scanner.c fscanner.c egrep.c
#dist-hook:
# rm -f $(distdir)/scanner.c $(distdir)/fscanner.c $(distdir)/egrep.c
EXTRA_DIST = emacs.e gmacs.ml
if HAS_GNOME
GNOME_SWITCH=-DUSING_GNOME_UI
## if we compile gscope under Linux, we need to supply libglade the callback pointers
if GNOME_LINUX
GNOME_LINUX_FLAG = "-rdynamic"
endif
gscope_CFLAGS = $(GNOMECFLAGS) $(GNOME_SWITCH)
gscope_LDADD = $(CURSES_LIBS) $(LEXLIB)
gscope_SOURCES = gscope.c $(cscope_SOURCES)
gscope_LDFLAGS = $(GNOMELINKAGE) $(GNOME_LINUX_FLAG)
endif
s-private-remove&id=0e87e58bf60edb6bb28e493c7a143f41b091a5e5'>refslogtreecommitdiff
blk-mq: improve warning for running a queue on the wrong CPU
__blk_mq_run_hw_queue() currently warns if we are running the queue on a
CPU that isn't set in its mask. However, this can happen if a CPU is
being offlined, and the workqueue handling will place the work on CPU0
instead. Improve the warning so that it only triggers if the batch cpu
in the hardware queue is currently online. If it triggers for that
case, then it's indicative of a flow problem in blk-mq, so we want to
retain it for that case.
Signed-off-by: Jens Axboe <axboe@fb.com>