Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp511942imn; Thu, 28 Jul 2022 07:31:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tKCgqTo8AexuQgMDZuFxDXavebXdf9CZNZ2bVdrr4VgBEuGT8ItS/+hKD+4EWKr2oDuW1d X-Received: by 2002:a63:5d44:0:b0:419:b8e8:962 with SMTP id o4-20020a635d44000000b00419b8e80962mr22932304pgm.326.1659018667021; Thu, 28 Jul 2022 07:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659018666; cv=none; d=google.com; s=arc-20160816; b=uy8+Zj49spAQnwKLXIcf59nd8tGKfc5wljQ9EY4aeU7/AS2oWckhZvCE41jM1wE0Lf M91Rip8YkojtT4fmXfsJrvOgs8jkUTom1VB/hSD2LUxYK/ndUDQm7GbBMTSqRtA7S7qJ pnfYh34NmseUWgqv67mGueLLQrE+VzAvORB48jUzkJVd1pngqWo0QT7FO+ixiBKHdrFl kzoJ50egNCbA45+x3um3QdzBB3wAAygR6IARLiOusfHkIMVrxxjGC3MQykKd4PS82aWC Ti7anJ/gUEnV360PA9TNUxij6mt7cy5GBioWX6rEAfeIZCZboSEcNLiKgC6wc6q5j2S5 n3rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=p3LundJe/B7kP70p/sHLOn4E+FS4l10QjqFmK00htFE=; b=rpKjVeWCT+99pN3jJ6hVnu0mpIG3wWWbAi1PbBY63IKRHqeWqvRxbluU2NX/H5gPKC VoGS8C45gAR7FDjLvlyan528xeJ1LJEZBekMQTCZHHsdDISTY0qnE+Vow0toUDLQFaX3 HyqC034yo9JF8jfJgnDIwyP8pEgP83MEDRTwxyzTI/GQ5dWwWxC3jxfAjoJ0e/zQZuoM tNSnltBz7UKlkqMtddxt0gplzdypej+sutTGumP7aG/swO7qjuB8SwBuzQgF0/vWTWQU 0XEp32wP7OwsX2rvv4czXFxlY6Judetjpde+v8tkgJ3h2brdWVX42hP8XgQ55snsrNiS z9EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=A1npVQRs; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t35-20020a634463000000b004125360d49bsi1139528pgk.791.2022.07.28.07.30.50; Thu, 28 Jul 2022 07:31:06 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=A1npVQRs; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231688AbiG1OZs (ORCPT + 99 others); Thu, 28 Jul 2022 10:25:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231786AbiG1OZq (ORCPT ); Thu, 28 Jul 2022 10:25:46 -0400 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14CBC3C144; Thu, 28 Jul 2022 07:25:45 -0700 (PDT) Received: by mail-yb1-xb34.google.com with SMTP id 141so3518302ybn.4; Thu, 28 Jul 2022 07:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=p3LundJe/B7kP70p/sHLOn4E+FS4l10QjqFmK00htFE=; b=A1npVQRsIIGhqrLf8k1afl0RnpwTJqtndWJ9zwwdiHBec1qyAdFLwzqHsOSEz3tCvV J33JylIt6+Pd/jdRlsNR8UNmRloDG3G3NH8SDxk+u/mKNySVTad5ytB99iquy75NDEmJ 4mWC5CLDqVkcs4L2XoIG3yXXPEAHHG/8Tcg/Dvv9GYAPEUkBT69Sf5SENvQPZzOzH0sX rfGEF5dzUYaNlMOHu9Bo+MhNb46gjzqbFsnt6Os5CtChAsnh8Oe9HHUf8ZzIl+foGeav 4tev6dNQXoIBnvQvDpzSxoDwu4FxCVkjoAtNixqsdq3d7+awDvcxDaofyreOs9jcFNbc pM7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=p3LundJe/B7kP70p/sHLOn4E+FS4l10QjqFmK00htFE=; b=6RF8NVyqer2ry7KkMbl4IGe3s466k9oAtT8aexLm+GyWJ8LGxFSmOwyN77/S38+3c1 fKKwh2CnoBJL8cg15hV7rxdNiwuSvH+rPXrZGZntlbgnmWQ4y7yi4yAx5kFspcdVe0pr +pByPs6GHVdjawPpGZV0FuOoHi0L5tU0q2NfKxxMibBhfWpUr5HDe5XVX9U5lF6ZadYw /qHuBuHuM2yrtiLfokOHvCGQXCqontHwfRxWYG/FcKKacSIVP9tleGsyDrOCvm/DeoYR b+ucXBpRe03WGawwrsk6EXEOzdEoKDGs0tPFSDZgFbEIq6qDVPpJrJBzhBd4JliSP5kO CUjA== X-Gm-Message-State: AJIora9AUiv+GEFNUaem3B7qlfBZvrywD5GTOgrdxToXQkTak2+zIN/G dB1ZendnebimntracZRkcoXk8sTco+kdtkssDs0= X-Received: by 2002:a25:e401:0:b0:66e:280a:98cd with SMTP id b1-20020a25e401000000b0066e280a98cdmr20245601ybh.540.1659018344244; Thu, 28 Jul 2022 07:25:44 -0700 (PDT) MIME-Version: 1.0 References: <202207190634.ToyhlXSz-lkp@intel.com> <0551a3ad-8c42-78fe-5b50-ebbc003e55e6@intel.com> In-Reply-To: From: Jason Gerecke Date: Thu, 28 Jul 2022 07:26:00 -0700 Message-ID: Subject: Re: [PATCH] i2c: Use u8 type in i2c transfer calls To: Jonathan Cameron , Lars-Peter Clausen , Wolfram Sang Cc: linux-i2c@vger.kernel.org, Ping Cheng , "Tobita, Tatsunosuke" , Jason Gerecke , llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-iio@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 Wed, Jul 20, 2022 at 12:01 PM Jason Gerecke wrote= : > > On Tue, Jul 19, 2022 at 5:21 PM kernel test robot = wrote: > > > > > > Hi Jason, > > > > I love your patch! Yet something to improve: > > > > [auto build test ERROR on wsa/i2c/for-next] > > [also build test ERROR on linus/master v5.19-rc7 next-20220718] > > [If your patch is applied to the wrong git tree, kindly drop us a note. > > And when submitting patch, we suggest to use '--base' as documented in > > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > > > url: > > https://github.com/intel-lab-lkp/linux/commits/Jason-Gerecke/i2c-Use-u8= -type-in-i2c-transfer-calls/20220718-233658 > > base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git > > i2c/for-next > > config: hexagon-randconfig-r026-20220718 > > (https://download.01.org/0day-ci/archive/20220719/202207190634.ToyhlXSz= -lkp@intel.com/config) > > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project > > d74b88c69dc2644bd0dc5d64e2d7413a0d4040e5) > > reproduce (this is a W=3D1 build): > > wget > > https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cros= s > > -O ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # > > https://github.com/intel-lab-lkp/linux/commit/9732240c23a365c0590f05ce8= 3196869235a2ea7 > > git remote add linux-review https://github.com/intel-lab-lkp/l= inux > > git fetch --no-tags linux-review > > Jason-Gerecke/i2c-Use-u8-type-in-i2c-transfer-calls/20220718-233658 > > git checkout 9732240c23a365c0590f05ce83196869235a2ea7 > > # save the config file > > mkdir build_dir && cp config build_dir/.config > > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross= W=3D1 > > O=3Dbuild_dir ARCH=3Dhexagon SHELL=3D/bin/bash drivers/iio/adc/ > > > > If you fix the issue, kindly add following tag where applicable > > Reported-by: kernel test robot > > > > All errors (new ones prefixed by >>): > > > > >> drivers/iio/adc/max1363.c:1645:12: error: incompatible function poin= ter types assigning to 'int (*)(const struct i2c_client *, const char *, in= t)' from 'int (const struct i2c_client *, const u8 *, int)' (aka 'int (cons= t struct i2c_client *, const unsigned char *, int)') [-Werror,-Wincompatibl= e-function-pointer-types] > > st->send =3D i2c_master_send; > > ^ ~~~~~~~~~~~~~~~ > > >> drivers/iio/adc/max1363.c:1646:12: error: incompatible function poin= ter types assigning to 'int (*)(const struct i2c_client *, char *, int)' fr= om 'int (const struct i2c_client *, u8 *, int)' (aka 'int (const struct i2c= _client *, unsigned char *, int)') [-Werror,-Wincompatible-function-pointer= -types] > > st->recv =3D i2c_master_recv; > > ^ ~~~~~~~~~~~~~~~ > > 2 errors generated. > > Wolfram and Jonathan, > > Writing a patch to fix the new warnings generated by my I2C patch is > simple enough, but I'd like some help coordinating getting both > patches landed. Should I wait for the I2C patch to land in "for-next" > before sending the IIO fix, or would it be preferred to send the IIO > fix right now so that both patches can be reviewed simultaneously? It's been pretty quiet, so asking again for any thoughts on how to best address this tangle... Jason