Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Sep 2019 07:21:08 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r352472 - stable/12/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201909180721.x8I7L8Ww001634@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed Sep 18 07:21:08 2019
New Revision: 352472
URL: https://svnweb.freebsd.org/changeset/base/352472

Log:
  MFC r352205:
  Fix broken DECLARE_TASKLET() macro after r347852.
  
  Sponsored by:		Mellanox Technologies

Modified:
  stable/12/sys/compat/linuxkpi/common/include/linux/interrupt.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/compat/linuxkpi/common/include/linux/interrupt.h
==============================================================================
--- stable/12/sys/compat/linuxkpi/common/include/linux/interrupt.h	Wed Sep 18 07:16:00 2019	(r352471)
+++ stable/12/sys/compat/linuxkpi/common/include/linux/interrupt.h	Wed Sep 18 07:21:08 2019	(r352472)
@@ -197,8 +197,8 @@ struct tasklet_struct {
 	unsigned long data;
 };
 
-#define	DECLARE_TASKLET(name, func, data)	\
-struct tasklet_struct name = { { NULL, NULL }, func, ATOMIC_INIT(0), data }
+#define	DECLARE_TASKLET(_name, _func, _data)	\
+struct tasklet_struct _name = { .func = (_func), .data = (_data) }
 
 #define	tasklet_hi_schedule(t)	tasklet_schedule(t)
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909180721.x8I7L8Ww001634>