Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp466503ybr; Fri, 22 May 2020 10:46:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaDfmSNd67HmtTyMnkhx+0gEN0mue7RtGbuPetKBDK2slAziB0T1ZVWgt28infFXvzGcqw X-Received: by 2002:a17:906:c01:: with SMTP id s1mr9499586ejf.370.1590169612534; Fri, 22 May 2020 10:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590169612; cv=none; d=google.com; s=arc-20160816; b=Ppd5EYfxGEoV+40em77Qf3xkAT+jD9soN3pTaUBbyV9isY+W3GdL9Sg0ctqVWFXUBI 5EGYJiKpFPaf5Rz34tv7b7010D7R0972mzxZKQjTio39SnC01jo1GK1VbOl80v0xPTGV 7rhoeVL7n0cwQ3YkOHc8IFEq7ud83liPN2/imULOZolJDAsGJPfFH5gsatCZ8Kys+YHv nHejK0lvmsVRHCDy5ieFN6K+A43nBqap+NcxnZ9U63VKif9/wfujuMsZkrvBG3U/voeK V2snQO/kJE1sI/SJe5BW/9lvGkHZ7FZ1k9SascdSbiaBqWQxPkzj7ECIlfkSxnSGxNMH No+w== 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:user-agent :in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:dkim-signature; bh=7erRvSoNhA31wmPB9BbJ7P0hKnwItvhoaIS4kuMC6eU=; b=utT9NAOi0YwQlTseHRXDHhd4CuQ2ZPXbnM8m9qchUQ1emQPXw+umEV3GDEWBLJmm7C OSOXuWAzdFRmFdz4M/P4uj7v1qjR7K70VwHxfPa8LKFX8AOuBjAMx7strEEK3QwPOO1R 87QmpkgIMOpUl5Y5XfhkyxLfLfGRhhquJVnokklTGOsCIRixskzRXcaCNbDf8vJkPE2q Rw+N+x32QJQiY6FJLuWwYJAJRlxYey/ZWgH8BDXG2C255yakX9VncZNuxaZDwwvKJtzK Fq7PONse8eZjeUm3o9S2RK9b+vvXr24wIMDHjrIlbrebmyaBsbn5qshIKMZcvGPPShMw gMlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Hjb4bMhd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j25si5374240ejy.249.2020.05.22.10.46.27; Fri, 22 May 2020 10:46:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Hjb4bMhd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730813AbgEVRpF (ORCPT + 99 others); Fri, 22 May 2020 13:45:05 -0400 Received: from mout.gmx.net ([212.227.15.15]:56431 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726373AbgEVRpE (ORCPT ); Fri, 22 May 2020 13:45:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1590169391; bh=7erRvSoNhA31wmPB9BbJ7P0hKnwItvhoaIS4kuMC6eU=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=Hjb4bMhdlR7sHNtV5d99R1eTX76MUX6R8s19tj8FxXmSqZm7UWLO3ZUNpjUo7IH2o h3bW8Xfb9O/dq0ewfIpoSfoDR+iULVdTEEaTuQpdOJgDNJ6zlv1k1v82zqJHSwKDCf aEtdaMHfhJenrWaYH8+6zqeH1tUdh9Y8OTnWl+/c= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from ubuntu ([83.52.229.196]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MEUzA-1jnmHF0YFG-00G09d; Fri, 22 May 2020 19:43:11 +0200 Date: Fri, 22 May 2020 19:43:08 +0200 From: Oscar Carter To: Takashi Sakamoto Cc: Oscar Carter , Kees Cook , Stefan Richter , Mauro Carvalho Chehab , Clemens Ladisch , Jaroslav Kysela , Takashi Iwai , kernel-hardening@lists.openwall.com, linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, alsa-devel@alsa-project.org, "Lev R . Oshvang ." Subject: Re: [PATCH v2] firewire: Remove function callback casts Message-ID: <20200522174308.GB3059@ubuntu> References: <20200519173425.4724-1-oscar.carter@gmx.com> <20200520061624.GA25690@workstation> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200520061624.GA25690@workstation> User-Agent: Mutt/1.10.1 (2018-07-13) X-Provags-ID: V03:K1:jDAMWBN6i5llv7LuCYMCYADueBSFhw0jntdkKB6FtXgQAyx1hJ0 UK/B3pkqK3wWld06+HtcL3GkrxXPNbPMNAqzx2IiY12Voy7K4SX+svFljoBoq5qXh/T7Rig z25dmI8qQlmwS63YSWgzLAI0IC/I/rDgLrfpj7LYiKY5vHVkg4mYH0yBuPPN1gBnQLtb+F/ AguVGShVfnafJ5CncWSSg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:GoeMsB1jtDE=:f9abdmhLj0xQdohvGCIalV RRr72hC0sw4q03hwh9q6iZsJqgjZL+erf6n/hPv891ZNZ0EmrMajxwVeV1piFHMEQ1PNxe9ZO R0CO+94Jkk6VaWfPzxD9WWVfMD1U4o4Q60bshu6W94Eb+DpNjgwzqbt8XaiXgu4xF/kxgi6AD jTnjNbZ/5YXPsL+VKZk7f1eEjyeJ49Vml8+aKYzKc+M+z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transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, May 20, 2020 at 03:16:24PM +0900, Takashi Sakamoto wrote: > Hi, > > I'm an author of ALSA firewire stack and thanks for the patch. I agree w= ith > your intention to remove the cast of function callback toward CFI build. > > Practically, the isochronous context with FW_ISO_CONTEXT_RECEIVE_MULTICH= ANNEL > is never used by in-kernel drivers. Here, I propose to leave current > kernel API (fw_iso_context_create() with fw_iso_callback_t) as is. > Alternatively, a new kernel API for the context (e.g. > fw_iso_mc_context_create() with fw_iso_mc_callback_t). This idea leaves > current drivers as is and the change is done inner firewire-core driver, > therefore existent kernel API is not changed. > It sounds good to me. > Later I post two patches for the proposal. I'd like you to review it and > I'm glad to receive your comments. > I will take a look at your proposal. Thanks for your time and work. > > Regards > > Takashi Sakamoto Thanks, Oscar Carter