From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from newverein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wT4RR6t2pzDqcm for ; Thu, 18 May 2017 18:41:39 +1000 (AEST) Date: Thu, 18 May 2017 10:41:36 +0200 From: Christoph Hellwig To: Arnd Bergmann Cc: Christoph Hellwig , Thomas Gleixner , Mark Gross , Tejun Heo , linuxppc-dev , linux-s390 , Linux Kernel Mailing List Subject: Re: [PATCH 2/9] timers: provide a "modern" variant of timers Message-ID: <20170518084136.GA5331@lst.de> References: <20170516114812.10660-1-hch@lst.de> <20170516114812.10660-3-hch@lst.de> <20170518082448.GB3812@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20170518082448.GB3812@lst.de> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, May 18, 2017 at 10:24:48AM +0200, Christoph Hellwig wrote: > > b) give the union a name (breaks any reference to timer_list->func in C code): > > > > + union { > > + void (*func)(struct timer_list *timer); > > + void (*function)(unsigned long); > > + } u; > > I'll look into that, as it seems a lot safer, and places outside > the timer code shouldn't really touch it (although I bet they do, > so more fixes for this series..) Meh. All the old init_timer users set function directly, so I guess we need to use the other approach.