From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932222AbcFLHfh (ORCPT ); Sun, 12 Jun 2016 03:35:37 -0400 Received: from smtprelay0122.hostedemail.com ([216.40.44.122]:53114 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753063AbcFLHfP (ORCPT ); Sun, 12 Jun 2016 03:35:15 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:4321:5007:6120:7576:7901:9707:10004:10400:10848:11026:11232:11658:11914:12043:12296:12517:12519:12740:13069:13255:13311:13357:13439:13894:14181:14659:14721:21080:30012:30054:30064:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: woman88_84b166708ea05 X-Filterd-Recvd-Size: 1858 Message-ID: <1465716910.25087.88.camel@perches.com> Subject: Re: [very-RFC 5/8] Add TSN machinery to drive the traffic from a shim over the network From: Joe Perches To: Henrik Austad , linux-kernel@vger.kernel.org Cc: linux-media@vger.kernel.org, alsa-devel@vger.kernel.org, linux-netdev@vger.kernel.org, henrk@austad.us, Henrik Austad , "David S. Miller" Date: Sun, 12 Jun 2016 00:35:10 -0700 In-Reply-To: <1465683741-20390-6-git-send-email-henrik@austad.us> References: <1465683741-20390-1-git-send-email-henrik@austad.us> <1465683741-20390-6-git-send-email-henrik@austad.us> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.2-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2016-06-12 at 00:22 +0200, Henrik Austad wrote: > From: Henrik Austad > > In short summary: > > * tsn_core.c is the main driver of tsn, all new links go through >   here and all data to/form the shims are handled here >   core also manages the shim-interface. [] > diff --git a/net/tsn/tsn_configfs.c b/net/tsn/tsn_configfs.c [] > +static inline struct tsn_link *to_tsn_link(struct config_item *item) > +{ > + /* this line causes checkpatch to WARN. making checkpatch happy, > +  * makes code messy.. > +  */ > + return item ? container_of(to_config_group(item), struct tsn_link, group) : NULL; > +} How about static inline struct tsn_link *to_tsn_link(struct config_item *item) { if (!item) return NULL; return container_of(to_config_group(item), struct tsn_link, group); }