Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3668067ybk; Tue, 19 May 2020 10:04:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGwJpqEDrWeImfhasowPMkY/VTrtpp8Nm42y0nsogPYnP9Y9Db94S1aX/AK4OIDL0570lG X-Received: by 2002:a17:906:714c:: with SMTP id z12mr146085ejj.435.1589907894071; Tue, 19 May 2020 10:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589907894; cv=none; d=google.com; s=arc-20160816; b=WRMZyvq8FLfGGuSTk0BE4pNQOzioOOV+1Rf+p4T+MR43z8YJs71eEnxPLzOViqAK2a iRUlYe69Fvn4ATlV/se6m4pLNK7c/RwXO8MpsQIxHdCpc/Wk3bhhuTyNEIDTuZh8zzdc qwrprfOvf0qUcSykH+4c0EY7O+bNlP4tqWZTCwpegWNAtU//2xsxkzURhAw3gGXlmyUp QZlnIIWhaBlreVqb84hOHfR8MRLOhTfGEdAusldT6k5W9+WG8He4IfTQ5D8D8cZxlSpC R8SHw4mq1mBadk9j6apBXj7ZPA1l+/lQ6BCMdVZYNQndR49ULHgkG6BpN2ttr8xgLjnj +JNg== 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=om7LCEuWXeDBUQopEccNkeZj6oLy/bTivkYTc0FY2BM=; b=VDZ8EgspemJG2DzGWB8I/DQ4ITGPktpr+I0i5FHI6yfZdW/c7pjc4/QvGj7x+qzGMZ 1rLM5JY67eeVXLMVen1La/eD0X8oWp5nyzm7Uo/PZiRrwn/KQ+rAdrE/7X0rs03WPNYG uEy//YK3+TTjoFpE34Dk2bH3dr4/ZMoLYZ2U1GrThEbjzaY/OBDFBOymhjyZL7xQwabx 1Cvf3xjat2wmY+Am/qHhAW86FiowSQPuaspRleYAG4DRQE0shOUwLGLGJ1Al9x5FX+be tP3PHyoRqP0LsZdvNQAPFb9JOCqDqQP+1G9O5XS8ggqSagWRIbe8RvUrDGFh8/zvHo8X 1Y3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=lFVFyUue; 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 l20si220338eji.236.2020.05.19.10.04.28; Tue, 19 May 2020 10:04:54 -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=lFVFyUue; 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 S1729370AbgESRAr (ORCPT + 99 others); Tue, 19 May 2020 13:00:47 -0400 Received: from mout.gmx.net ([212.227.15.19]:55225 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728725AbgESRAq (ORCPT ); Tue, 19 May 2020 13:00:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1589907565; bh=3kGcF2WlvSw8bGxCId+mveFxPfrt8ZeCxWDEYopxkLg=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=lFVFyUueNYbCYsI0ZHKMplHkSj7COiLcPsjC5WeypZ85z5RuwMJoLXrNagwHjaLt/ 6pHKCXDP5KNdQTjLIFvtOlekjuJR/4y16giJA0ru822y73F9FxLRK6EOsN7DkPw1u/ X02r1LjB+YBY5wDyKGFxulFg8y//f4lPhEePY4Dg= 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 1M7b6l-1jgrPk0ZEj-007zZt; Tue, 19 May 2020 18:59:25 +0200 Date: Tue, 19 May 2020 18:59:11 +0200 From: Oscar Carter To: "Lev R. Oshvang ." Cc: Oscar Carter , Kees Cook , Stefan Richter , Mauro Carvalho Chehab , Clemens Ladisch , Takashi Sakamoto , 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 Subject: Re: [PATCH] firewire: Remove function callback casts Message-ID: <20200519165910.GA3187@ubuntu> References: <20200516173934.31527-1-oscar.carter@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Provags-ID: V03:K1:0J0WtcfxzxFR84Tcrgx30v/9Nawjh8IZRpCrftihGrTqQzOKRSG PitIITQ6EIR4P7ZxPWADYT+xpl4GjpOv305jmagTza1M8Smuw8See9+u4kx7K1qZ81u10vx XaV4hQ6f6gcisxdp+ifA0bu5KH39ciBB/QtgLw7+JCSSpvr3Nv1T4keImRi+O3dI8l3yqtl mNS3zOx8oYUGTJUa7u2+A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:eD9m8/+8xhQ=:+q/C9d6cPE4qJiSZKCXvO4 hWf4bTDr2rlIi6H5bRDj/GDab724U/FkITmQ/UloFTuJOV3Mbz4mzbFsQTskz8772li9wi/Hi E4sgR45NS5HBJfRIkcA4JYYVU65xsTQ4ugZLWCOi+vPuGC+v3i9acpkWGIBbMFi1HV/4Gva0a p0fD221QzTcOpecD/5MjeQPAaxWp9ICimNaGg5UD2XOQYu6O5zAicpI1OSBCbSf7QJ3w5Ap7j mT3zTR8ytagSBDuQG/7u80PhUhcv5g2Kizu0gJ+/X2kt9yPgT1F9jpKeAFPs1imn0uHX3Ip/s VWgtCNhP8+LSGBGQsPE0pCry5S7p0XWVqAYDDtRT6gMQvQE1QqXbe2QB6YPqLEJSIj0XqM5vV gft2LtAVZJ+Pbd5lzlKXHgYA3TZTsNBrHJHy+xvY5+t7jyP19zpKadRyfWCep2yGfuY/dg7Uz sgBQ+sL/kEGzNn6iYf5wok67j0xrYmEncwuDspB6H/AYbgw65md4p/Swqh48p0ddm0CaqfN+U edtsUZXYXyBZ367B2DLmtJMQQDk6uZeZ8KuPmKpWL6vKFKmJxV8a0VCXUVgfEXfosV5k0yD85 AMdv2BDbY72OgD6FRARq/qp1+vbzXfndCRh9LieUeZAzgZy1tC+oPjB/B4xuzSpr3Kca5tR+C 5IElLwr4XTb/83IW6f2SZWHakY/7AgBjdxS15audEE+mStXOoOmWW2fg39O2L7QoYuC3M46ky 8mUEILgywUyiHFFHokEUiGtajfr3JghGqvISBS3raZX15r76DkNBIt63OpuiQL0wJMBAJE4ue eyC+TH8S3AfhZLGxjKyDve9XvVm02agPaJU+hEsKMMPtYpikeNx/QRUTm2wxcFzEl45WpxnYO N/ZOmCvEu6ui6i8j8I7PPuxDim2r49HUwbnByQOnikctTz8B4p7rJdKEmXfyfUfTxpQKmNkPx 1JMM4Xcqu8rQGswIwaCy4AU8PS2YLng32qVg/+SdCycp2q1TLo/XWJ5VRUa0NulIYVpevya2j 3k+26flYB4idzhAzjVrXeRlYRpkqzCGbModPIj0Dx9N1I1NAJ69ED+//SazqHz1HtK8DcHGN0 F9IK+DXYYbJgD40g2uIL0J+BLNbk2LL+j6zCakssiYjbP6eIAJmJaI3cQqwWlKTRHzPSqqP4U 8YntOafyXiCt8Sc4llHHjcMNlkaIB1N0JoQkW9Yk/9j1tc2RiXr4rBv17nCleJ6Br9VQm2n8Q 0Q6DtG455oyXZtWN4 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 17, 2020 at 07:43:21PM +0300, Lev R. Oshvang . wrote: > > Hi Oscar, > I would recommend to explicitly set NULL to _cb and use if elif to > exclude the case where botm _cb paraneters are passed as NULLs : > > + > ctx->callback.mc =3DNULL: > ctx->callback.sc =3D NULL; > > + if (cb_sc) > > + ctx->callback.sc =3D cb_sc; > > > + elif (cb_ms) > > + ctx->callback.mc =3D cb_mc; > > + else > return -EINVAL; Ok, I will do the changes you suggested and I will resend a new version. > Hope you get the point. > Lev Thanks, Oscar Carter