Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5447644rwl; Wed, 28 Dec 2022 19:44:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXsTvITVZIGkXCCVS7rWSQPRx2GNjB9nX5jvfHMtTczTQCWlt28rbiuLmpmjwfBWjem0KYXh X-Received: by 2002:a17:907:a784:b0:78d:f454:ba4c with SMTP id vx4-20020a170907a78400b0078df454ba4cmr22658863ejc.75.1672285459533; Wed, 28 Dec 2022 19:44:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672285459; cv=none; d=google.com; s=arc-20160816; b=V1q1I0lLGf5ooTHTh7uDl7uH/90yZcqoGn/qpIKb1ahQ24nXBXxZIzI+UCFtZ0WmJz GJeKxkNK6tddunHvMytLidJAOeg+SgwZbdnWa6BaPPgggTH+mxJAPgLgnSRcSAxafP+O 2VieNxndxYHcynVJXwr62xl7ZD9f5FmU2zJRXtHSLnMEGZJnCBVQV/lPJumLJykCBiQD EHPGMU3si5ufJh0Iel+zt/fX19Y/ZwoI+16XUjksUTYUIVVIzs84zPJKnFCTqj3Qe184 sp0dfgXA9ifj3Hmd3xshxIFoICrxRtuN8GstBytsZQczNaqzNHlR8sQXchZV88PFwSHb yNGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mmvRXkVVtaqaYs2yoaTeEYQ9ctHUESJNG5qerNoqkcI=; b=fFRLTC9LEEE3nHuJeVL3N7+rPkxzfz7fXDaHbLIkCNLlKXfoWcB/7EKtR5M2PdhoN+ znQJfQZVksQMtCZCUAdoqi3bxs94A4iseyvwEiFPrm/w3xcpS6G9FSlz4uo60TRc45ll 3HkyS+VFDg2IR59Jk1gl+REcGboasRoTWFphV/ynhfHp/kZbEQsDyv3zZ+xLrjvYeT5E YQL2IlG+zUUkM2ngbl3IB3s3fpl9G+tSgdzbru7xZn7wnAzDZMoaO2VAjK3dBXAwiDmt NmGXyw+cHwsZzXxRI1t/2p43fMJPgtLha5/XJNU4psffKmQp6Md/+edaVeMueXVHDFpo yP9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ix5ubWHK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji20-20020a170907981400b007adfe2889efsi15036403ejc.607.2022.12.28.19.44.05; Wed, 28 Dec 2022 19:44:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ix5ubWHK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232809AbiL2CqO (ORCPT + 62 others); Wed, 28 Dec 2022 21:46:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbiL2CqL (ORCPT ); Wed, 28 Dec 2022 21:46:11 -0500 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED87EC760 for ; Wed, 28 Dec 2022 18:46:10 -0800 (PST) Received: by mail-pl1-x62c.google.com with SMTP id s7so17705003plk.5 for ; Wed, 28 Dec 2022 18:46:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=mmvRXkVVtaqaYs2yoaTeEYQ9ctHUESJNG5qerNoqkcI=; b=Ix5ubWHKT4dV/qTkpacuNERdaV/pX2Lv0NSwf2hKn2h50Uafq1sCp8pa7hTFkb0rDY MPN8DXuZlTc5LCMp72LnzbnXg++UeykvHnCrDI1pyW/oAhGr6pyoeuZuzJ10o/XDQtF/ LEFK/9LadKv341M6apxIw7uRxGePY5e4mT/Hg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=mmvRXkVVtaqaYs2yoaTeEYQ9ctHUESJNG5qerNoqkcI=; b=BqT4FvcBF6NRBxa5hrqG9MvaQ/fSfraLZt8s+zoKOSF5XWVJm7aS6Kw24w5iKnttRu BRhmjaGTwaPyzNCOVC7yhC1jiM9uFtjK7hnU1dZKV6MDJdTcxcUSQMtU0DrZtxPjdczp vyQtUkpoBevoffHN6tRD2TX1RguzyTRsmPprL6ty3tQtk8cS/PM1ISum+1uLTYMk1Wnf 2W9elBzIS3Zf5EaMGOG8eBfLIF57aCkA5j7tiMo0M+iFQhg5J3XLWwfkL+Hep47HPFgG IojrLxd0iRDtejQzs2aVqFdktqte2xOHVnUSptdp+QqMjuDzpAInlRN+ge12yZn9qTii Fy0g== X-Gm-Message-State: AFqh2koHVKP86v4lPmdOHwdwolZHrM+z8ZLX/sNoTo35wTnda4oNPMhi jT6Wj94lqLsAwJ26fwVImArY4A== X-Received: by 2002:a17:90a:7443:b0:226:1cd3:163a with SMTP id o3-20020a17090a744300b002261cd3163amr4181143pjk.10.1672281970480; Wed, 28 Dec 2022 18:46:10 -0800 (PST) Received: from google.com (KD124209188001.ppp-bb.dion.ne.jp. [124.209.188.1]) by smtp.gmail.com with ESMTPSA id z15-20020a17090a66cf00b00223ed94759csm12806439pjl.39.2022.12.28.18.46.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Dec 2022 18:46:09 -0800 (PST) Date: Thu, 29 Dec 2022 11:46:05 +0900 From: Sergey Senozhatsky To: Ricardo Ribalda Cc: Yunke Cao , Max Staudt , Mauro Carvalho Chehab , Laurent Pinchart , linux-media@vger.kernel.org, Sergey Senozhatsky , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] media: uvcvideo: Remove void casting for the status endpoint Message-ID: References: <20221214-uvc-status-alloc-v4-0-f8e3e2994ebd@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221214-uvc-status-alloc-v4-0-f8e3e2994ebd@chromium.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (22/12/20 23:56), Ricardo Ribalda wrote: > Make the code more resiliant, by replacing the castings with proper > structure definitions and using offsetof() instead of open coding the > location of the data. > > Suggested-by: Sergey Senozhatsky > Signed-off-by: Ricardo Ribalda Reviewed-by: Sergey Senozhatsky