Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7147504ybp; Wed, 16 Oct 2019 04:36:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYPxBa9fHDc6ZZsEE3YaqyODMJoJKWMyXc0p8SsQA72gH8RawSwlCdib8AU4DqIMtrbWyt X-Received: by 2002:a17:906:5388:: with SMTP id g8mr39084483ejo.278.1571225814313; Wed, 16 Oct 2019 04:36:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571225814; cv=none; d=google.com; s=arc-20160816; b=ysoD1asEcq1IwehLXiy7mVfdcGqBjbFd5YrBs/3pLEto6mNTzHRN5J7C4wkfQOcMzv 1pZ8FK7+p5DvK9c6WNptwHHEuDVFBmGjj6GOjLTCVAqThxX8hj8W9g7DFnFaLRb1coRT wYk40Q5NrGueapr9Yko11KrAAlzUSccZKQkterVWO8edyaAhuUQ7Gj9GSViTuxzsqCSr 7/DLSOxCGhaSHtlh0LO33OcrTcTA8ScU1K1PM0IZUAXlxhlhVsbvl+lH5PgUT/PhLqQP 2CkmvD0dWenyCBwG71aXOWnvu1gf4gqz6Q3RU32thqTkiIqknXHb4HVpFTbWndNj5WRI MElA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:reply-to; bh=/d/LqoRqwThcNbfNNovn16fn7XPF8Ck9GYlYq91Xv2E=; b=uysJ3Axmh8OWvCMktPhN7O1R6Op/DysKyULtviTWCErmPw+RS1U6sb6CkgeGPX3n6H cipIwdePxlahLbPQv28rqS4au+UYNBksDG8URhPlpTARPFnyh8WpcT23lTGW2clVDlNH IBSIwjRB25EXwngPb+IYDXjPNB+jJSm1ABANzcNNndeug/hypXhJ4LM41eFTdd3UdUsX X1HhtdEjXrhS5msKSv4rmkFoxNNleemVG6AmtzSJoO0siWE1mlbgDZycnmCl+JU5MHKd qFMQhhFmoxuPOVK2KtehScEYOCO4RMngc6MO6Jxrgj0xmgsQY03HDjaHn2wsFcmf8zc0 +YpQ== 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 n6si15079324edq.228.2019.10.16.04.36.31; Wed, 16 Oct 2019 04:36:54 -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 S2391076AbfJPEoo (ORCPT + 99 others); Wed, 16 Oct 2019 00:44:44 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:59094 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389649AbfJPEon (ORCPT ); Wed, 16 Oct 2019 00:44:43 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 46tKTN4W6Pz1rGRY; Wed, 16 Oct 2019 06:44:40 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 46tKTN2mm1z1qvrr; Wed, 16 Oct 2019 06:44:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 1VfeJ8X47Ze6; Wed, 16 Oct 2019 06:44:38 +0200 (CEST) X-Auth-Info: xwmaVoZ2F5eRtD1d1oRFGlQX+Mzrz5/g6FC4U/BJzf0= Received: from [192.168.1.106] (unknown [81.0.126.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 16 Oct 2019 06:44:38 +0200 (CEST) Reply-To: hs@denx.de Subject: Re: [PATCH 2/2] misc: add support for the cc1101 RF transceiver chip from TI To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , Derek Kiernan , Dragan Cvetic , Jonathan Corbet , linux-doc@vger.kernel.org References: <20190922060356.58763-1-hs@denx.de> <20190922060356.58763-3-hs@denx.de> <20191011064342.GA1045420@kroah.com> From: Heiko Schocher Message-ID: Date: Wed, 16 Oct 2019 06:44:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20191011064342.GA1045420@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Greg, Am 11.10.2019 um 08:43 schrieb Greg Kroah-Hartman: > On Sun, Sep 22, 2019 at 08:03:56AM +0200, Heiko Schocher wrote: >> +struct __attribute__ ((packed)) msg_queue_user { >> + int type; /* CC1101_MSG_SET_ */ >> +}; >> + >> +/* CC1101_MSG_DEFINE_CONFIG */ >> +struct __attribute__ ((packed)) config_param { >> + char addr; >> + char val; >> +}; > > {sigh} Sorry for that ... > None of these structures are valid ones to be passing to/from > userspace/kernel at all. Please fix them up to work properly (i.e. use > the correct types and such). I think there's a "how to write a correct > ioctl" document in the documentation directory somewhere, you might want > to search for that. Ok, the driver does not use ioctl only read/write, but the overall question is, has this driver at all a chance to go into mainline? I searched for "write a correct" in Documentation but get: $ grep -lr "write a correct" Documentation/ $ May "Documentation/ioctl/botching-up-ioctls.rst" helps, so I convert to use the __u* types, thanks! bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs@denx.de