Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp526665imm; Fri, 29 Jun 2018 01:53:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL/un27FiWIt3wjYOaAh7bpD+/BJQaWakDCFRKwfX7qhM9vgfRrTzDdbvGPrSsuHAPzbcaC X-Received: by 2002:a17:902:5a1:: with SMTP id f30-v6mr14150171plf.167.1530262405478; Fri, 29 Jun 2018 01:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530262405; cv=none; d=google.com; s=arc-20160816; b=Y+0TGUGuS2E7+zm//yrpoBbBOIGi0bCzyIZ07Rf1RNcDmw1uGVB+VAiAB+uZFdkhYG lqjWePsleFsUypwc9eObiLC3KfjxN2t4ExmoDKShg978gwjZjQHxqEdu1b3jZty2/azF aFO2K7bCfUCeR7dSOZH+Oco2ZBR6DVKs/6CCvHiBT9Y/2kRSQMuU0XQ6BJGZNtSBBbcY 1cM9wYrWEjqr8bcuF7e1NK0SubrpZ5aEwrznSmpzhRavbtQpLI5+pXUBdYkpHZZC9c98 IntwR7HNuzSzyoH8Q3VTfvULAO5rQBbqG0yovfPhh1fvDhbsefZmm2SThA7/8OD1rLNp oKtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=Lb1BupLp7bmJ/ShVAW0pv2uZepvxmErenml5ZB98zns=; b=l1vCaOyUZBlehCjTIFmLbCoaR01ZHp9jI45Po0sIiUkdX1M7lsWSEbtoGuH4Ch+9l4 I6yTbdGGoPJ2doyZJGO3fpaoqpQ7NpqSRqN1VuDNmX+a2HRIvmYG2GWAUHLHlz+CEaLC Syx5908Tmvnmcbyd/GPJd0vTt8LnUwTPBJoqJ2bCchPr3QU4HJoTpRmyL8qW5MDNv4mG ciDPd1MpHynX/ScOPqXDiYyK6BPU+JnWLtdtPQuBQrh8VSSIGvnx4ovrTyVlKiugXDLE WNbvvurNOShAPYB0MJ1K7V5x/HuBzwIH8gs2VIap62dlthAmp5E2OWFjguVmapfoKM0i 9PEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5-v6si510631pgq.669.2018.06.29.01.53.10; Fri, 29 Jun 2018 01:53:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030683AbeF2Cbq (ORCPT + 99 others); Thu, 28 Jun 2018 22:31:46 -0400 Received: from smtprelay0058.hostedemail.com ([216.40.44.58]:57942 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S966843AbeF2Cbp (ORCPT ); Thu, 28 Jun 2018 22:31:45 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 4C614182CED34; Fri, 29 Jun 2018 02:31:44 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 40,2.5,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:152:355:379:541:599:973:982:988:989:1042:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1981:2194:2199:2393:2559:2562:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3874:4250:4321:4605:5007:7903:8660:9707:10011:10400:10848:11026:11232:11473:11658:11914:12043:12295:12438:12555:12679:12683:12740:12895:12986:13069:13148:13230:13311:13357:13894:14181:14659:14721:21080:21451:21627:21740:30012:30054:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:1:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: seed24_4928e830c5134 X-Filterd-Recvd-Size: 2617 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf06.hostedemail.com (Postfix) with ESMTPA; Fri, 29 Jun 2018 02:31:42 +0000 (UTC) Message-ID: <4e0802ced7c15f9c750bef76256233ee85897392.camel@perches.com> Subject: Re: [PATCH v5] drivers/staging: Gasket driver framework + Apex driver From: Joe Perches To: Simon Que , linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Ben Chan , Chun-Ta Lin , Zhongze Hu , Rob Springer , John Joseph Date: Thu, 28 Jun 2018 19:31:41 -0700 In-Reply-To: <20180629002430.59486-1-sque@chromium.org> References: <20180629002430.59486-1-sque@chromium.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-06-28 at 20:24 -0400, Simon Que wrote: > The Gasket (Google ASIC Software, Kernel Extensions, and Tools) kernel > framework is a generic, flexible system that supports thin kernel > drivers. Gasket kernel drivers are expected to handle opening and > closing devices, mmap'ing BAR space as requested, a small selection of > ioctls, and handling page table translation (covered below). Any other > functions should be handled by userspace code. As this is not likely to be added to v4.18, it likely would be better to target v4.19 and allow this to be compiled against -next. This currently does not compile correctly against next-20180628 --- $ make drivers/staging/gasket/ CALL scripts/checksyscalls.sh DESCEND objtool CC drivers/staging/gasket/gasket_core.o drivers/staging/gasket/gasket_core.c: In function ‘gasket_mm_unmap_region’: drivers/staging/gasket/gasket_core.c:1433:9: error: void value not ignored as it ought to be return zap_vma_ptes( ^~~~~~~~~~~~~ vma, vma->vm_start + virt_offset, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DIV_ROUND_UP(mappable_region.length_bytes, PAGE_SIZE) * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PAGE_SIZE); ~~~~~~~~~~ drivers/staging/gasket/gasket_core.c:1437:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ scripts/Makefile.build:317: recipe for target 'drivers/staging/gasket/gasket_core.o' failed make[1]: *** [drivers/staging/gasket/gasket_core.o] Error 1 Makefile:1691: recipe for target 'drivers/staging/gasket/' failed make: *** [drivers/staging/gasket/] Error 2