Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6515866ybi; Wed, 29 May 2019 08:56:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWjPgtR9ibmDENRdSd7o3tHaoE6VB3prQXvA/F41jiGfIGRCmYWdpQ3U9R/dvYYc9YPdWK X-Received: by 2002:a63:4815:: with SMTP id v21mr41676160pga.312.1559145381189; Wed, 29 May 2019 08:56:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559145381; cv=none; d=google.com; s=arc-20160816; b=w5LrX7k0cYavoVEzfqhrrMjeCe/ihOImFv3aJOQtnJW+EXgqHG5AMVaPKZlYiWw+3a r88hlGj8Sdcj7gGy6mymS6Kl07CbxjjwK2maIjUHK4m4+EyB7AkrOI3qR8oX+3xcgOv0 wbYXQeU9zcUnxGhNzyiBND+WID2NfDaeheY9VUXqYmGSjQhMvzDGnrnEncNk5cgV2sRX 0rlNDXz44hrx69i5xXJo4HzrUf4fspwbL9yewbQMTZSK4JzsuZz1TKtEUKzhbQvx5UEE ppmnVAqF2XLXUVxr37uMksjT2JvcXuFiKCCvFTSeVEboaQTOwkxcuCrVJ7EYcij3CBBZ /mRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HZPIDMHhUw7CgfVQ/9XO5eI1+3TKH0K2oXJxQv63Hxo=; b=Ynrlc4YND3+V/qBHYm8g8sxWYBv+SLVs6QpFznkVS2dyoRnXPZsV6+VFtpWIU7cCur VvSJg/hJ/8YD5llnQIPorGQy5WpUo7EGpDLvoBcpwWwcam+dm+fK1V76EsRzplIR8gdB LAe4RTvhqfcKe39BORnv1R3NYHCQ9AXoH4QKM0KX/hAzSppMN/f1wy06jlIPxR5LK+yC 3KkVNr51qTWrOU0ztTRRL9KAIxOS0DDzkDTKnBxyjg+DKAVwrHaU7Fnsbu/eTQQtdxcw 7fxBAZgHAB1opX7KpwAYqwd1ZxlswyQpvj8coMNfe2hxvmfAVQrx/Q1G8yX15hIieGzi bj6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nikanor-nu.20150623.gappssmtp.com header.s=20150623 header.b=YLj+z14b; 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 o184si9207pgo.94.2019.05.29.08.56.04; Wed, 29 May 2019 08:56:21 -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; dkim=pass header.i=@nikanor-nu.20150623.gappssmtp.com header.s=20150623 header.b=YLj+z14b; 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 S1727230AbfE2PyZ (ORCPT + 99 others); Wed, 29 May 2019 11:54:25 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:34701 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726240AbfE2PyY (ORCPT ); Wed, 29 May 2019 11:54:24 -0400 Received: by mail-lj1-f194.google.com with SMTP id j24so3021901ljg.1 for ; Wed, 29 May 2019 08:54:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikanor-nu.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=HZPIDMHhUw7CgfVQ/9XO5eI1+3TKH0K2oXJxQv63Hxo=; b=YLj+z14bB4aNZfVxxhFnzHr+IJ0pqDENed4opWRwB3klsdl+zcbbOsZ5Cz+kb8fF3n PYPoAbsciMmnBeh1o3ZEOzy622o6+WWvo1l6+xcYhEBGC1KG2jA+iDGAtAe504we8fuw NI4d8Ws93egDU5nhkdLg5rTL97Ryu8Ksl/k3zgW9NN6D3YHQJNY55kto8DGg1v5rTMPs KW+fDxM3R82Tcht78VcJ51Qfd3xt3w0ZzCmdzrym5zRrab0CHd81011koMd1G6XWAfkg bgzrtoGgdM0nT7faKI/0o9NmgTL1+KPxcF+4fi8bvJBLZfBnNCjJM5Dm96IbByxYodVl TLBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=HZPIDMHhUw7CgfVQ/9XO5eI1+3TKH0K2oXJxQv63Hxo=; b=U5s5NpWslOe7nOXhwz0Oegkset1an58GYJKaI1xQTKoKQhUKosvyI+4xSP4RaUdmQc Ik7epAVSw8CBe3cKfqJBYOmUNA/1dJVUYY4u30eTiqix9w3fctBZ6mo606MWKtevL1jv pxddV/sI9IgaZHtSjy95M1ZVKZcOZJIlg/IABv94THxcXO5iE0UDje0J2HXVQrYsdLI0 XYZh0EBUR2eloPl44oMGiokc9UJBeSM9zVcGPGgNLckRbOszjk9WmRBzmBJFmKc8W11C JBQrwKr/09jZ12PtfYRalGRMU+HOcfw7CIZ0foH0DHzw2sL75qyQ0ecwKKRub5yx3yJu GMpw== X-Gm-Message-State: APjAAAXakoSbzYvkJhyeJe6X0yBu4yAoOSCFtscu/8FWKYNmec2LgmvZ 8YT6Y1SQaVMcMmiz5VvmM4OB3g== X-Received: by 2002:a2e:7001:: with SMTP id l1mr42358017ljc.11.1559145262588; Wed, 29 May 2019 08:54:22 -0700 (PDT) Received: from dev.nikanor.nu (78-72-133-4-no161.tbcn.telia.com. [78.72.133.4]) by smtp.gmail.com with ESMTPSA id y127sm9462lff.34.2019.05.29.08.54.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 May 2019 08:54:21 -0700 (PDT) Date: Wed, 29 May 2019 17:54:19 +0200 From: Simon =?utf-8?Q?Sandstr=C3=B6m?= To: Dan Carpenter Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] staging: kpc2000: add missing spaces in core.c Message-ID: <20190529155419.ego3sfedew65ini5@dev.nikanor.nu> References: <20190524110802.2953-1-simon@nikanor.nu> <20190524110802.2953-4-simon@nikanor.nu> <20190527073159.GX31203@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190527073159.GX31203@kadam> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 27, 2019 at 10:31:59AM +0300, Dan Carpenter wrote: > On Fri, May 24, 2019 at 01:08:01PM +0200, Simon Sandström wrote: > > [..] > > - ret = copy_to_user((void*)ioctl_param, (void*)&temp, sizeof(temp)); > > + ret = copy_to_user((void *)ioctl_param, (void *)&temp, sizeof(temp)); > > if (ret) > > return -EFAULT; > > This should really be written like so: > > if (copy_to_user((void __user *)ioctl_param, &temp, > sizeof(temp))) > return -EFAULT; > > temp is really the wrong name. "temp" is for temperatures. "tmp" means > temporary. But also "tmp" is wrong here because it's not a temporary > variable. It's better to call it "regs" here. > > regards, > dan carpenter > I agree, but I don't think it fits within this patch. I can send a separate patch with this change. Thanks - Simon