Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp633825ybm; Wed, 27 May 2020 04:23:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXgyaG1djqp3AaCQIYxVexsJBsOkQ/HzGteXqxIfzFBsEaCN2KNPjexSEKjSZLAR7C58hE X-Received: by 2002:a17:906:33c9:: with SMTP id w9mr5345323eja.284.1590578583937; Wed, 27 May 2020 04:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590578583; cv=none; d=google.com; s=arc-20160816; b=HIEMWkQOHFSFBiBCsSql7Y15ZSHdOECli+FaY9tZNmCNmCns56C6Av5/b3GrvD5zAa NG8L0qPF3KM2XDxU+4a8G/d9E4XAZwg7rngIFV1V98PoVF6dQYri6VZdiBiqDubHmSp6 Zy3e71dRpGYn0tgOX4/CgCrk179z2lC3YwRkwTcSUjF2wWCIqPIafYgmGmwjyEiIqeZU 4YKAShZETDVc7LctR3pbCLe9bJMfwJ9+mrmTSwhYwR4IbGwF30zrvnvOaSSQE0A6GtuH 7I6FxnYaZm5J6bJ48sTmQk83B6sLD0hdvd9pgzyCF/zlGjBGEXJaY4Gsgp3UzQM+FW7m kz+Q== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=+yajX07SZTeoBwXBVFh/Dd0/LKHxWSAv1UJTY3csuCM=; b=Reswr3npvtZZe1GWulkHp7Sz/6Hj2DTA396wvFU0dOPhLR5JB/y2Vy5v808aJe9AGg bKHmDIPDJ8id66Bapug9FWWW/xdLOxDPNSSeS5Vf5HZ0fvp2t+HgGE6c3cs4Zau+yb5H vbYtd4yZ+VKcR7DlHjC+8aYsxaQoHpqxLYtk5H5EwQC00cinbLvSbdlc/bGs5jlLFkoG C7dVoYjePrFuzCcAy+oYPtm1uyr07I7zckjny14vLGPlT/6YU+BoaUbRIHzLllvOH4rD uWKm0Kae16I+hlr5R8HtTer/s2XL7FK1WTsSnUvU8IC1kRXuokWrUcUXyRBExAHAReoN lepg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BvL3nr0E; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h7si1533146ejl.717.2020.05.27.04.22.40; Wed, 27 May 2020 04:23:03 -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=@kernel.org header.s=default header.b=BvL3nr0E; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388258AbgE0Ipb (ORCPT + 99 others); Wed, 27 May 2020 04:45:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:47210 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388173AbgE0Ipb (ORCPT ); Wed, 27 May 2020 04:45:31 -0400 Received: from coco.lan (ip5f5ad5c5.dynamic.kabel-deutschland.de [95.90.213.197]) (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 7BE9B206F1; Wed, 27 May 2020 08:45:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590569131; bh=PrG/wfJu4GEzoVBNL3trG0nXymQ/KbtrGBqZcfWWGJM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BvL3nr0Ex/WOcfNQO+m9Hf/cDDlHB6UM5pSo9kdsQQ/tfXKsxQD5kzMpuLULjIggT UL70kpSxHZgA5Ql5+svLuJJTBouUiGKTB1hZI67qgzqBdjb5XxJYjifNBRd/fZpfxT AhSj2kgf6cum4OsW63T6q7scRbNv8XGLZA+GsDdI= Date: Wed, 27 May 2020 10:45:25 +0200 From: Mauro Carvalho Chehab To: Nathan Chancellor Cc: Sakari Ailus , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH 0/7] media: atomisp: Address several clang warnings Message-ID: <20200527104525.5e6cd93b@coco.lan> In-Reply-To: <20200527071150.3381228-1-natechancellor@gmail.com> References: <20200527071150.3381228-1-natechancellor@gmail.com> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, 27 May 2020 00:11:43 -0700 Nathan Chancellor escreveu: > Hi all, > > This series aims to clean up the code while addressing the majority of > clang warnings in this driver, some found by the 0day bot and others > found by me. > > There are several enum conversion warnings that happen, which I do not > really know how to solve without understanding how exactly this driver > works. I would appreciate some guidance or a solution. Below are the > warnings, sorry for not wrapping them but they would be hard to read > otherwise. ... > ../drivers/staging/media/atomisp//pci/atomisp_compat_css20.h:117:22: note: expanded from macro 'CSS_ID' > #define CSS_ID(val) (IA_ ## val) ... I actually wrote a patch getting rid of this ugly thing: https://git.linuxtv.org/mchehab/experimental.git/commit/?h=atomisp_v3&id=cf6a15543ace1e99364911c0b7a2f6b8f2f43021 This one was already submitted upstream (not merged yet), but there are also lots of other patches on my working tree. I'll try to apply your patch series on it, once I'll be able to fix a bug with mmap support. Thanks, Mauro