Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp213811pxu; Fri, 4 Dec 2020 01:08:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwODRE0HgXephntScjqdIdZWICCJ5LmLC59qvpPj2J31cDoMTM8kKyD0wUAhF5zjz+AXOh X-Received: by 2002:a17:906:6c2:: with SMTP id v2mr6212594ejb.387.1607072936114; Fri, 04 Dec 2020 01:08:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607072936; cv=none; d=google.com; s=arc-20160816; b=B2ukpEvZ2IaSWoG2uytIjrJyWAKZbpQd3BcBuk7OFG7TlpVSkHXW2Bm7SNxg9kjqw1 8zvLAFkgXYDYWy4cR5cmSCyQUO8nLHpOIFe/A7vEuAtW10GjyRcqP3LlNd3mpL2kAwC1 cKsZ46mzS24pW8359XF34mThxMyozqk6BWn1PqFsnLTXMBs1PxPeSiyegejAJexrftDT n7BbbTsJK3Y3bqKi/SI5Oi+pxciyJmQPvxEjDHkG9dlMoh+BT5SuUDEbfFbaoKlKm5Hu /kBMBJCVRbY/BYaXSHdP0xzpHOvo76T/Ev1cSX0A0K6IizJFUKztlPp3dWDTv6MC4BjC Nf/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=UkNJaPluVvv+Tgikv99K04Dg3690ZJDLlH87exn6LzY=; b=kyXm7EBUzSctlwbMLevqL4pE/AXoqMq23/YZiyJtFPgy96mHAwKKhWiy9dDcYCcqiZ ttNxuwTXLfafFGQ+UnYWIpAsjDuFfiGw6+PhjhsAZTIWgQev6LSQHBdQ482whf4oSioa LthORhfb0edzZ3QbKsLOv2S4+3KPOgKaHceU4eKz3ulVB0epscpMSvxBysgnX1jeXfcr L2MKbWQkEJTNDpLac+xNRezA5glasRxAHcJT8d5e8tjA//XU4ZCPiY15ivO+ElBYpcSU U4iCBphni24Wg7P2blRCDwJKLpeXDKcORkzazwySFP3bdIsCbAbp/uF6zvnHqeq3RzKi BtwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=JW5j1Xw1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z21si2567442edr.365.2020.12.04.01.08.32; Fri, 04 Dec 2020 01:08:56 -0800 (PST) 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=@walle.cc header.s=mail2016061301 header.b=JW5j1Xw1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729285AbgLDJGx (ORCPT + 99 others); Fri, 4 Dec 2020 04:06:53 -0500 Received: from ssl.serverraum.org ([176.9.125.105]:37821 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbgLDJGw (ORCPT ); Fri, 4 Dec 2020 04:06:52 -0500 Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 982AD22FB3; Fri, 4 Dec 2020 10:06:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1607072770; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UkNJaPluVvv+Tgikv99K04Dg3690ZJDLlH87exn6LzY=; b=JW5j1Xw1BL9NmJQmZ4uE36/eh60zijRhhyEQJRwX0zz2jRUxEhkuOEELk0hupoOHt4Hxtr UBvJ0dJBhNv9hnLNBl/tFYM7ZpkcmpjnR13T/z5nYHWtul/6s+zXfaTg3wUdiZkM0+lrD+ 2zpJ+iCfUh94Sasx1TxTFOg7UAB83CU= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Fri, 04 Dec 2020 10:06:10 +0100 From: Michael Walle To: "Enrico Weigelt, metux IT consult" Cc: "Enrico Weigelt, metux IT consult" , Bartosz Golaszewski , "Michael S. Tsirkin" , LKML , Linus Walleij , Jason Wang , linux-gpio , virtualization@lists.linux-foundation.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH] drivers: gpio: add virtio-gpio guest driver In-Reply-To: <8ab347b9-8b1a-f49f-d194-f98284fa6099@metux.net> References: <20201127183003.2849-1-info@metux.net> <8ab347b9-8b1a-f49f-d194-f98284fa6099@metux.net> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <0dde3c67e0e895b8ce70de910a285fd8@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2020-12-04 09:28, schrieb Enrico Weigelt, metux IT consult: > On 03.12.20 23:35, Michael Walle wrote: >> Am 2020-12-03 20:00, schrieb Enrico Weigelt, metux IT consult: >>> On 02.12.20 15:15, Bartosz Golaszewski wrote: >>>>> +               bufwalk = name_buffer; >>>>> + >>>>> +               while (idx < priv->num_gpios && >>>>> +                      bufwalk < (name_buffer+cf.names_size)) { >>>>> +                       gpio_names[idx] = (strlen(bufwalk) ? >>>>> bufwalk >>>>> : NULL); >>>>> +                       bufwalk += strlen(bufwalk)+1; >>>>> +                       idx++; >>>> >>>> >>>> Something's wrong with indentation here. >>> >>> i dont think so: the "bufwalk ..." line belongs to the while >>> expression >>> and is right under the "idx", as it should be. I didn't want to break >>> up >>> at the "<" operator. shall i do this instead ? >> >> Or don't break the lines at all. Both lines don't add up to more than >> 100 chars, >> right? > > IIRC checkpatch complains at 80 chars. Has that been changed ? yes, https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bdc48fa11e46f867ea4d75fa59ee87a7f48be144 -michael