Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Sep 2019 07:53:49 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r352205 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201909110753.x8B7rn8R068416@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed Sep 11 07:53:49 2019
New Revision: 352205
URL: https://svnweb.freebsd.org/changeset/base/352205

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

Modified:
  head/sys/compat/linuxkpi/common/include/linux/interrupt.h

Modified: head/sys/compat/linuxkpi/common/include/linux/interrupt.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/interrupt.h	Wed Sep 11 07:03:17 2019	(r352204)
+++ head/sys/compat/linuxkpi/common/include/linux/interrupt.h	Wed Sep 11 07:53:49 2019	(r352205)
@@ -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?201909110753.x8B7rn8R068416>