Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp611415pxf; Wed, 31 Mar 2021 11:19:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2SML4QU5UiVhjCmGastrYhCHaYwnkiUbUcsTdA7lmEWp4eiL1MkYvIn4BbVgtB0JMIy7X X-Received: by 2002:a17:906:6703:: with SMTP id a3mr4973864ejp.240.1617214792812; Wed, 31 Mar 2021 11:19:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617214792; cv=none; d=google.com; s=arc-20160816; b=ddNQL6IFp4oR3nZOclbU7KSLb8gtfwbZ2yxHUXswWmcmNKeqe+BdKrmKOhVLVecDz2 dPDBI+N3gec2CcaMrEopJYvljZDhYfRr3sxFvZMOVtUj1HTb3yq10rPt6JouoRzLlHrL DvZjQMVbz5fIzTyNNMd5k4IJbqVv7dPvh68tNufdtXX2UTFJ0UAVz7UMbbhuJ8DzLoEa KgFs8fBCtJoQb8NjUPEW9SCjYVyxP6tXdxu+NjWyqoZTUTF5IWNiWm5f1BiGjqeqi1wS DykrUB5yuJCmsB7FdgSupjoG54+0RDgNH/iB1ykfidHcKN9CpOJhGVA/W3W18OKmCl2u YjxQ== 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; bh=3zdVfsVtiZGxj3bz1jQdguINDPfqa4l+NQhsuInl/nk=; b=N6nejIor035Zs6CYH0gtpd70cS0Bd7sO6NbNMdbDrL78Jcpf/im4S43o4koCJkpcTl eCCA1IF+A1XoK0qmctQjX5/Wql1Bl6mN0zXVl2laXYzGiqZ9DdlXfBFPqJANqdGv2ehh MAa8HbtIcO/cN13ZQcQDYkft0/Llx/vcY+W2H0zg6/d+GSI4z+PWLmZFlyEq5/r/gYXj Bg5Cs1DWuMkcITDaecH9UbyuAHyeOPvO1Q++X/5K1j9Xj1fWB5fRM8PFkJdND+7Hm3E1 HXVtiVVBd4ymQGg87DRe5LL6tZVAzJnVbnP+zKlnhFXHaJQ0GkjEAOhKLFVBMStm8krV OqPA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=REJECT sp=NONE dis=NONE) header.from=bme.hu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r19si2159494ejx.700.2021.03.31.11.19.29; Wed, 31 Mar 2021 11:19:52 -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; 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=fail (p=REJECT sp=NONE dis=NONE) header.from=bme.hu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234442AbhCaSSa convert rfc822-to-8bit (ORCPT + 99 others); Wed, 31 Mar 2021 14:18:30 -0400 Received: from mail.sch.bme.hu ([152.66.249.140]:57922 "EHLO mail.sch.bme.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233934AbhCaSR5 (ORCPT ); Wed, 31 Mar 2021 14:17:57 -0400 Received: from mail-lj1-f177.google.com (209.85.208.177) by Exchange2016-1.sch.bme.hu (152.66.249.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.2; Wed, 31 Mar 2021 20:17:48 +0200 Received: by mail-lj1-f177.google.com with SMTP id a1so24990905ljp.2; Wed, 31 Mar 2021 11:17:48 -0700 (PDT) X-Gm-Message-State: AOAM5310OX/qhNEIZhDOh3OCI3AMQPg8M5eniuLCY8M2npC3zTXECgZk d2Z5gt07ED8FljckV6CGR+Vd+/PUVYFpM42eNd0= X-Received: by 2002:a05:651c:124b:: with SMTP id h11mr2852209ljh.401.1617214668164; Wed, 31 Mar 2021 11:17:48 -0700 (PDT) MIME-Version: 1.0 References: <20210318115210.2014204-1-bence98@sch.bme.hu> <20210318115210.2014204-3-bence98@sch.bme.hu> <20210331095820.GA29323@ninjato> In-Reply-To: <20210331095820.GA29323@ninjato> From: =?UTF-8?B?QmVuY2UgQ3PDs2vDoXM=?= Date: Wed, 31 Mar 2021 20:17:36 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 2/2] Adding i2c-cp2615: i2c support for Silicon Labs' CP2615 Digital Audio Bridge To: Wolfram Sang CC: , Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Originating-IP: [209.85.208.177] X-ClientProxiedBy: Exchange2016-1.sch.bme.hu (152.66.249.140) To Exchange2016-1.sch.bme.hu (152.66.249.140) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > drivers/i2c/busses/i2c-cp2615.c:88:21: warning: incorrect type in assignment (different base types) > drivers/i2c/busses/i2c-cp2615.c:88:21: expected unsigned short [usertype] length > drivers/i2c/busses/i2c-cp2615.c:88:21: got restricted __be16 [usertype] > ... Yes, I have already converted to using __be16 where needed, it will be in the next version of the patch I send. > drivers/i2c/busses/i2c-cp2615.c:78:5: warning: symbol 'cp2615_init_iop_msg' was not declared. Should it be static? > drivers/i2c/busses/i2c-cp2615.c:96:5: warning: symbol 'cp2615_init_i2c_msg' was not declared. Should it be static? > drivers/i2c/busses/i2c-cp2615.c:102:5: warning: symbol 'cp2615_check_status' was not declared. Should it be static? I can forward declare these (copying from the header I used in v1 of the patch), but I'm not sure I understand the rationale behind these warnings... > drivers/i2c/busses/i2c-cp2615.c:212:27: warning: symbol 'cp2615_i2c_quirks' was not declared. Should it be static? Especially this. I think I will make this static instead, since it won't ever be exported to any other module. > The missing 'static' are what buildbot also reported and are correct. The lkp bot complained about MODULE_DEVICE_TABLE and MODULE_AUTHOR, which, again, I don't see what is wrong with it. > drivers/i2c/busses/i2c-cp2615.c:244:2: warning: ‘strncpy’ specified bound 48 equals destination size [-Wstringop-truncation] I thought this was the correct way of strncpy... Time to RTFM then, I guess :) > Oh, and are you willing to maintain the driver? If so, please add an > entry to the MAINTAINERS file. Thanks! Sure! I will now send an updated patch, with few additions too.