Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1841059lqp; Mon, 15 Apr 2024 21:41:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXTxk2mGAKcH4IQINyKDUYB16QgsQK1NiiKEL8d6krBFSfQri3YUq6IxYdqXqTjC5YbEQZTOWA/dWpZqrP/CEMawO1r3fva30NI50C95A== X-Google-Smtp-Source: AGHT+IH4eReK9kgBpbRHKOA7/nPnvxS2dsJUcKj8lYdM1MUjdg46LbSkS6SE3bWFA3hEj8ecmEpC X-Received: by 2002:a05:6870:e990:b0:22e:b382:8b87 with SMTP id r16-20020a056870e99000b0022eb3828b87mr14408752oao.41.1713242502943; Mon, 15 Apr 2024 21:41:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713242502; cv=pass; d=google.com; s=arc-20160816; b=ipt7z+8FnKO77w3EwTg0yxPEQHoo8JTc8g61ZWCrfZXRl1hD4bsV8wHIns6xuPCuiy VL/4V5RGxSMovBgC5QTgRSXOxvbt7+yltiX3j/+lA70Mjitg2Bw4iC4rsCLMXYjwQXlb MoB17yXrbeeP6GAkEseSayAmIoPaDN9vHI8ijH77wFDq0dcTvU8ZpGMiwtkfhvVePlP+ 6QrouYJkG/axCnUXo9HqBIufaKRJk3R9gBEElw3mPPFfQljBCZJzrBH1OoiW1Y89CEdb v0x1uffACsfi4zmqi1gjweGMAATZELEHFC/DUhmbsnsVgzJeoduWG1M+337aOofyL6ql BCYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zlvfKPvFfqMVTjgmkdQ2dgHupdBvuhJAjVeekD23sMY=; fh=CweeEyBn97fJZCGpEDeVInI7G/P4/7NYXou6ElQQxzk=; b=dVhAdQn03WYAokBPaAfS987m/Ums6avnXl1H349GufnhY2QhKMxSPVydZoCHBkVUMe 33YGwL648o0eGdafqpAJ3h50Y634cC3XFNxUaUd6JdwA7K/TvzI/qZmZZOyj6nwHk4Sf 2NolYUBj042p9DKbrmsGPnruxj9rlwz9egGWdIvK1kZUfjKY7aCk+Uk4k9kwsQBinXIQ ehG2rW0+qFyuSIjWHO2UwEJP2RXgZOUws1saPXMH/qehgUK6PeYPuaRoUS8FSIidXF3v k9qBUmSopjYM7HX/aVdCIyBC+mgGv8vPAazVW141jGMA4anTBfyGOjWyzPHsVvgu3SeW oLUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QA+XMZEQ; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-146235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f31-20020a056a000b1f00b006ea871c00e5si8871900pfu.83.2024.04.15.21.41.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 21:41:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QA+XMZEQ; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-146235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 95B9728255C for ; Tue, 16 Apr 2024 04:41:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 421F538385; Tue, 16 Apr 2024 04:41:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="QA+XMZEQ" Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 106E327715 for ; Tue, 16 Apr 2024 04:41:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713242493; cv=none; b=RAni4G0WOJJMKMQbJLFd0MxIqatP6SOPo6Gdy9uVYxfrh0VoeEeyCd4mOUitDOHC6efk78FPyXOfKHB/aCwBcIPz7lP/a52VUPCFtwxybCRrWqLfaNn4xEryQ7V1ySQmQISpg1QHRG3PioxtYBIYoFn8foEDkuW5wdodAFfyVcg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713242493; c=relaxed/simple; bh=DqDyd4MpI+rvYMYAT3Ft5xs95IMJydJhHOHuJjyBxW4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pPbY9i7b0NYgOJOCirJ49oR/xn6/+uXcJBKZSuNZjNtjIfoGZ7hiMENDQMMmTjQNJ/+IW9pDUm7B0A7Ta/A4bGglLNGXNLo9LDElbjL0M35vLlgy1wbugVVsOFAnJzrg+susjv0iADBvxWkaN9U0e9m1SLcQKYJqw7ZyTPx+fLo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=QA+XMZEQ; arc=none smtp.client-ip=209.85.160.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-22fa7e4b0beso2581224fac.1 for ; Mon, 15 Apr 2024 21:41:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713242490; x=1713847290; darn=vger.kernel.org; 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=zlvfKPvFfqMVTjgmkdQ2dgHupdBvuhJAjVeekD23sMY=; b=QA+XMZEQ4TSKlDwKnkstTwNqATtBiFbsIwW6mmZH78ughkAzpgyenMvV1Lpd/vMyHP 7NTsFHch3jvOiJ+obKYa+FzwWUXuVaEChF4zTRRV/GQklNftpHjFe/lFZUezfns1dkt4 k677k7WQs69PISiVPzIYtOUUow0YCd559kxZ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713242490; x=1713847290; 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=zlvfKPvFfqMVTjgmkdQ2dgHupdBvuhJAjVeekD23sMY=; b=TgCLIaywQzzxXrgMMmb27N0yTDWFaUeOzKKRgkj+D8xzx45H1haXusfCE9xHy1gE7U lfLjoVa9clYHXB3yNXN8GIIf11mdsEBH16Gr6PxVYRRaqZuhDuRLRyPkW2wjTLoV77+e stby7+s3yH90/YSJcJP5VtzrR+tXflGCpHref5Ci2WMA8wVBOrPImMHVWvVY3DaxZmJU eUovpVaw5sFzzwElreMVVPDlHNtnaF+0LZm5k9Xp9Hx5N31OWkbnenLDNPcZ7ew5h9Wk Dp3CcJ4qT109lxvGJKl/Gi6vnShjLgZ+/shnWoDTWKlzCMeqNOH1O72/tifkax3KhPhp /0bQ== X-Forwarded-Encrypted: i=1; AJvYcCUZKiDHIbrD4kNe3JI44PnmNKbvHlB3+fhnGGgDWnl4PxwBa7I6QiZHxvqEuA0pmpgYCuFdbh/z7StfhI8UYGS47EhfMWr91n3Ce2gc X-Gm-Message-State: AOJu0Yz3vVJ4kV/2nNlkia+W8G/U6Y2u4+d4EBElL9UGMA8lK3mgrtRy nwg2aqql3xYyN5OqtMoSyUThGXUPld44DCmDicPPltGZPOOuI5ZYOgKb+SaFNw== X-Received: by 2002:a05:6870:89a4:b0:22d:fcf9:bd97 with SMTP id f36-20020a05687089a400b0022dfcf9bd97mr15408827oaq.26.1713242490147; Mon, 15 Apr 2024 21:41:30 -0700 (PDT) Received: from google.com ([2401:fa00:8f:203:1137:d3d7:a09d:5379]) by smtp.gmail.com with ESMTPSA id r4-20020a056a00216400b006edd05e3751sm8284703pff.176.2024.04.15.21.41.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 21:41:29 -0700 (PDT) Date: Tue, 16 Apr 2024 13:41:19 +0900 From: Sergey Senozhatsky To: Ricardo Ribalda Cc: Martin Tuma , Mauro Carvalho Chehab , Laurent Pinchart , Hans Verkuil , Hugues Fruchet , Alain Volmat , Maxime Coquelin , Alexandre Torgue , Paul Kocialkowski , Greg Kroah-Hartman , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Sakari Ailus , Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , Matthias Brugger , AngeloGioacchino Del Regno , Hans Verkuil , Sergey Kozlov , Abylay Ospan , Ezequiel Garcia , Dmitry Osipenko , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Bjorn Andersson , Konrad Dybcio , Benjamin Mugnier , Sylvain Petinot , Jacopo Mondi , Kieran Bingham , Laurent Pinchart , Niklas =?iso-8859-1?Q?S=F6derlund?= , Pavel Machek , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH 04/35] media: uvcvideo: Use max() macro Message-ID: <20240416044119.GB14947@google.com> References: <20240415-fix-cocci-v1-0-477afb23728b@chromium.org> <20240415-fix-cocci-v1-4-477afb23728b@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240415-fix-cocci-v1-4-477afb23728b@chromium.org> On (24/04/15 19:34), Ricardo Ribalda wrote: > It makes the code slightly more clear and makes cocci incredibly happy: > > drivers/media/usb/uvc/uvc_ctrl.c:839:22-23: WARNING opportunity for max() > > Signed-off-by: Ricardo Ribalda Reviewed-by: Sergey Senozhatsky