From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23439C47404 for ; Fri, 11 Oct 2019 06:43:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E513E20650 for ; Fri, 11 Oct 2019 06:43:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570776233; bh=tXOhKyYRMzD2hzw/SdifIbUDRJwUHCrYEYaiWmP8vQI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=n0Vil5eGyP3Ul7lVUSJfom9dNxT6uShavW5xzZevG2ou7AqnwJypmSdOHPkMIJq/R 4c/j99MY7myYAI+c7wA6SV8KWJY1uRE1j5ZIsa+y1a0yWOhSA1Jl1mkDon/j2UL3y/ 4dpz12tI8+fQiM0vQ93bCyc7sezt/zUI4F26/abA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727240AbfJKGnq (ORCPT ); Fri, 11 Oct 2019 02:43:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:52552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726481AbfJKGnp (ORCPT ); Fri, 11 Oct 2019 02:43:45 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9E2B520650; Fri, 11 Oct 2019 06:43:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570776225; bh=tXOhKyYRMzD2hzw/SdifIbUDRJwUHCrYEYaiWmP8vQI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Uu1VhaorDPkEa8GWwA8biMt3VrQKNIcTxWJBxfHAKVG8Udq9FiGTgjcKxF3QJ1JCO zE9JEIiVguOsqlqTdk9fyxSuGcv8J7Pi5FYYTdiy1o64KvNMb+IxIMqqlEKnONIsSX ojphvoPefE+dtSEhfedKWLwJ7yjhanHmx0GJXWHg= Date: Fri, 11 Oct 2019 08:43:42 +0200 From: Greg Kroah-Hartman To: Heiko Schocher Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , Derek Kiernan , Dragan Cvetic , Jonathan Corbet , linux-doc@vger.kernel.org Subject: Re: [PATCH 2/2] misc: add support for the cc1101 RF transceiver chip from TI Message-ID: <20191011064342.GA1045420@kroah.com> References: <20190922060356.58763-1-hs@denx.de> <20190922060356.58763-3-hs@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190922060356.58763-3-hs@denx.de> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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} 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. thanks, greg k-h