Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3161165ybi; Fri, 5 Jul 2019 02:58:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3KLEQQR3yBCkwoYdUpUmwGJ4eOsZCcRHmA1rwYovw5Rg5x3op8GLThuLcyq63fjckTBjB X-Received: by 2002:a17:90a:246f:: with SMTP id h102mr4285680pje.126.1562320725016; Fri, 05 Jul 2019 02:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562320725; cv=none; d=google.com; s=arc-20160816; b=ej4kxvKvPW3xRfhOZxjHvQTLz8H08+4w1AAJOd37kRa1+h3kalWzIoYoFJ3uDlhNXe NWzcBlHeR/Z9i/vgWxhOfwwleaH6gzlv+izQhdczK767yD+BcMKYFSQHWxC+IEnL5m/C +EI8tCdJBt/34X6BW55ftHK83tHM2QMtr/Loieu/Mvd+tSftEhzPHND2cQHvxWU7bRoJ AuyWl5BPRCXWEaUDIdckKoVjBp5+MssEvWWfRD9Z0wdcxafjFu7LuSJT7zZXnqn2OSiZ kw2Px4LobFYxQ0leRKlca6MpYosE2zG883m407pyD+0/a1lmvl+Pyp9K6r79G8PusrXl aG4A== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=k7JeaJZT9YLEJlXuKXiJcbNBJ0svwTrsoQVxCOdP3dc=; b=kQnVUkn86TU//BeXTjxQCMc4AV6Kf8AjARRU7CxWRNti2sOhreQp50d1Gih4GlTMR4 B2DtNaW212VynxM4Rw3A6Sg6iZ4taaySYDgURpbIyhcch9f3ss5xW/WS4CNKDyIsVDsw CvQDTsDPj1uh8eKZo/1RdRqyfnunb4bV8FL+PNG+D+TOFsFD5RhH20ZyF2LdyWNxrtKY tD2rV/Qy1fZj0Ua+4ijhLFEXQvco7vktO04cQ2TmQFCgDFI4Xq5Jud9PJeU9XS1QdwBi vx8xRLfU4y2vSHLIDdiBkNSyfDvIasGdrcLyQr/AlYNaerb4RjSbUDCXvJ08eEb3L6Rs RKkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=mpEnVSRn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 68si8066582plc.269.2019.07.05.02.58.30; Fri, 05 Jul 2019 02:58:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=mpEnVSRn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728273AbfGEJeB (ORCPT + 99 others); Fri, 5 Jul 2019 05:34:01 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:35398 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728264AbfGEJeB (ORCPT ); Fri, 5 Jul 2019 05:34:01 -0400 Received: by mail-oi1-f196.google.com with SMTP id a127so6736887oii.2 for ; Fri, 05 Jul 2019 02:34:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=k7JeaJZT9YLEJlXuKXiJcbNBJ0svwTrsoQVxCOdP3dc=; b=mpEnVSRnmeyi+d9CXxwfr5p0t/UtYdJ8mHFSB1cfOuZbfj98idtIUKu9MXbcplNKVm Mb5R7Wmsww3eqzijwq/psqqW3JWGMe3WRYcyQDusKrzaKjotLc/mXzF7sSq/HeMz751a mgKUnUsKzIRJfTnMY3LKNeSUUjr6kyHsPFP3uL7+QPKuhWDonVt3mQk2sM7Ma4nH3g6o CmEkCHrxBn5WM7nvbNXYn8sfPsEY49vZ6+BMTnmOL4ShhnMTfeU584fxtXeBHU5ck1/O 4xH/B0kknxH/8HHXnb3kqFSSmbuIakpGcyEa7crP9P+SiqcXM+By/0bDicdQOKYNtuup EjCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=k7JeaJZT9YLEJlXuKXiJcbNBJ0svwTrsoQVxCOdP3dc=; b=o8ZTSIaOP9H9L+n/ZLH6pqxg91cWfB8D380ftVCOk3NDrbZVtfrQkDaHXqEhovLbEz 3ARHIYBkghYApHE0Kf9QKFLOKEYrpCu9WmQnIwb07R2rt6XKalaPjGjgX2iz3nYzGBBk k1b0D/P034lU4M0PC4L730rrnINaMic+1C/H2y3zKILWjFsYdfljQM0dUoULLwPXlNEu kqCD0sDXlW/BjvhBO1sWjwoZ502DIOcRDy0L8bwrNKT8hIR8hrmMWTSskGaF2IN4Y6Cu jZYc96nFIbs4v4Mkeo0nyopCE9/A8LNFUxjCvEhY3U+3feOA2LYr5gWWqlS7optd/yg+ 13gA== X-Gm-Message-State: APjAAAX+ixzrylImiqU9SSV2VBD9Ls0nYQlGlkDqTfJKDaQnkPfMW3L3 8L47bJG6HrA8tzqSgqloOD1GMEuhlssp1RO4scX62w== X-Received: by 2002:aca:b58b:: with SMTP id e133mr1432573oif.147.1562319240426; Fri, 05 Jul 2019 02:34:00 -0700 (PDT) MIME-Version: 1.0 References: <20190704153803.12739-1-bigeasy@linutronix.de> <20190704153803.12739-8-bigeasy@linutronix.de> In-Reply-To: <20190704153803.12739-8-bigeasy@linutronix.de> From: Bartosz Golaszewski Date: Fri, 5 Jul 2019 11:33:49 +0200 Message-ID: Subject: Re: [PATCH 7/7] gpiolib: Use spinlock_t instead of struct spinlock To: Sebastian Andrzej Siewior Cc: LKML , Thomas Gleixner , Peter Zijlstra , Linus Walleij , linux-gpio Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org czw., 4 lip 2019 o 17:38 Sebastian Andrzej Siewior napisa=C5=82(a): > > For spinlocks the type spinlock_t should be used instead of "struct > spinlock". > > Use spinlock_t for spinlock's definition. > > Cc: Linus Walleij > Cc: Bartosz Golaszewski > Cc: linux-gpio@vger.kernel.org > Signed-off-by: Sebastian Andrzej Siewior > --- > drivers/gpio/gpiolib.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h > index 7a65dad43932c..7c52c2442173e 100644 > --- a/drivers/gpio/gpiolib.h > +++ b/drivers/gpio/gpiolib.h > @@ -210,7 +210,7 @@ int gpiod_set_array_value_complex(bool raw, bool can_= sleep, > struct gpio_array *array_info, > unsigned long *value_bitmap); > > -extern struct spinlock gpio_lock; > +extern spinlock_t gpio_lock; > extern struct list_head gpio_devices; > > struct gpio_desc { > -- > 2.20.1 > Thanks for spotting that! Reviewed-by: Bartosz Golaszewski