Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2168955rdb; Tue, 3 Oct 2023 12:21:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHm+/xp23sw2y+Qqm6iwNV0RqHEKqYObnOvLYfN4CgeLSynud/n+keIwlH42znAfbIRhgpn X-Received: by 2002:a05:6808:19a6:b0:3a4:4b42:612b with SMTP id bj38-20020a05680819a600b003a44b42612bmr560170oib.42.1696360895444; Tue, 03 Oct 2023 12:21:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696360895; cv=none; d=google.com; s=arc-20160816; b=WVpuQQi3drYqEiFrrMqIZEr034JgqLVnNdNTzDcV2NQpWkK6P8nF91Bjn5iWdwNrrE 7BS/wP8+TuAGOxp+HcsaXfn/m0UYBTKwAj3Q5cGnlEWxeI6piEz7xy+vK0X/xvIlWX+g ldRC41UQFK3au0Vz9kdmXLQwfdP4Hnkx/UFAz2cnSOtuXIlQeNyb87dz8wDoquz1FSLA 4cPnRmuWxWq7LOkBijqr/GzRtOtzZ58Dd/2VIsPLdmTQklAvnYQch0pNDUmt+CplLdD3 dJYLVOa4PGZ19xSeUn7iaifVWK2Z4ccN56DNTIOHDWxVF337TYw8IIhKb1UcQFZnqONV 4eyw== 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=PRLmZRVTxkkTJ2LP1sOlpkuDW1bUMUWcNPbyzAn8W0M=; fh=EtMODyTuJLOG1bIhzP0rlFFPT2Hm9Id4MKOi9GEfU04=; b=hd06h2RhKaQ5TyYDpP3MS5cBCxog7gUnQHEUcD87JPciv/L1NX/QIsDekoKHTpG6Ef w5+sd7D6ocQWL90p7YUq3GEHkNmfufbNaMEKDKP6IU4i+HDO3CxgfIslbr0TAMJ1g0eW W1bigUL6b+PtfL+wOpEwwh6BP3wmlJArnvWEZ+AjKhvDfCEtqFCWzh+qob6JjjjcJUPK g1zTXPp//CR5nHh8EjOkV99jG5zNKFP8OFYpTSMPw5N9ENR483C1f+1CEdYQaUb8tNvE sUL0Vo1wXJzggOl+bL27ttCijnr84NTUowRovm5CettGerzgV8HZR2b/Vfe1aWCgFHCe vwAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id y6-20020a17090a2b4600b00276c22ca6a4si10667126pjc.147.2023.10.03.12.21.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 12:21:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 45BDB818C798; Tue, 3 Oct 2023 12:21:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231966AbjJCTV2 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 3 Oct 2023 15:21:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231389AbjJCTVZ (ORCPT ); Tue, 3 Oct 2023 15:21:25 -0400 Received: from mail-oo1-f43.google.com (mail-oo1-f43.google.com [209.85.161.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E9CF9E; Tue, 3 Oct 2023 12:21:22 -0700 (PDT) Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-57ddba5ba84so110251eaf.0; Tue, 03 Oct 2023 12:21:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696360881; x=1696965681; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=J07arKxPhBE5rnWHs+W7EtnjO5FU638RRkKT7+PaWpg=; b=KmU+P0Lz0Kqcb+CNQQoTEtK4pR6aTDrJK+wzSNoPmp1xLrhMUR3/tCvTJ/lK9+w3Hf ke+E/3vwKJqHOYqngeh7oc1J1hdzzSsryJSAEOzxzke5wGOAlhuzk7rn8e6pvX+KbXP0 ufWsacyVK2a76CtHEEoHoGCa7YgzXJl9UWbzvAou0sRDNX4iZQQkf0eyrK1PPQIJ/rgc BbjRBhY6B73Gv46AYwDQ7PbUykfxb7dri08b1DOaRQiHC8Um4bf7Fx8hX7O5QBy7yLsE fSOY5xyQXevRWHn8caLhoxTx/UfdKAXGnzUPvC0aeU/VPByoa9OOBqdN4h0mPYdD0a9m kFGQ== X-Gm-Message-State: AOJu0Yx/ed/V0yDCZOjrKyfj+jlU9bbzVpROTjsNsS67QCyw8vYAKFLr tXMSpmyuv3Am6UwGgZ7U4DlazkfTaZbQ9LH9POcdeKw8 X-Received: by 2002:a4a:b588:0:b0:578:c2af:45b5 with SMTP id t8-20020a4ab588000000b00578c2af45b5mr331719ooo.0.1696360881692; Tue, 03 Oct 2023 12:21:21 -0700 (PDT) MIME-Version: 1.0 References: <13c70c43.85d.18ad53580c7.Coremail.chenguohua@jari.cn> In-Reply-To: <13c70c43.85d.18ad53580c7.Coremail.chenguohua@jari.cn> From: "Rafael J. Wysocki" Date: Tue, 3 Oct 2023 21:21:10 +0200 Message-ID: Subject: Re: [PATCH] pnp: Clean up errors in pnp.h To: chenguohua@jari.cn Cc: rafael.j.wysocki@intel.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 03 Oct 2023 12:21:33 -0700 (PDT) On Wed, Sep 27, 2023 at 8:31 AM wrote: > > Fix the following errors reported by checkpatch: > > ERROR: "foo * bar" should be "foo *bar" > ERROR: space required after that ';' (ctx:VxV) > > Signed-off-by: GuoHua Cheng > --- > include/linux/pnp.h | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/include/linux/pnp.h b/include/linux/pnp.h > index c2a7cfbca713..267fb8a4fb6e 100644 > --- a/include/linux/pnp.h > +++ b/include/linux/pnp.h > @@ -291,7 +291,7 @@ static inline void pnp_set_drvdata(struct pnp_dev *pdev, void *data) > > struct pnp_fixup { > char id[7]; > - void (*quirk_function) (struct pnp_dev * dev); /* fixup function */ > + void (*quirk_function) (struct pnp_dev *dev); /* fixup function */ > }; > > /* config parameters */ > @@ -419,8 +419,8 @@ struct pnp_protocol { > > /* protocol specific suspend/resume */ > bool (*can_wakeup) (struct pnp_dev *dev); > - int (*suspend) (struct pnp_dev * dev, pm_message_t state); > - int (*resume) (struct pnp_dev * dev); > + int (*suspend) (struct pnp_dev *dev, pm_message_t state); > + int (*resume) (struct pnp_dev *dev); > > /* used by pnp layer only (look but don't touch) */ > unsigned char number; /* protocol number */ > @@ -492,7 +492,7 @@ static inline int pnp_start_dev(struct pnp_dev *dev) { return -ENODEV; } > static inline int pnp_stop_dev(struct pnp_dev *dev) { return -ENODEV; } > static inline int pnp_activate_dev(struct pnp_dev *dev) { return -ENODEV; } > static inline int pnp_disable_dev(struct pnp_dev *dev) { return -ENODEV; } > -static inline int pnp_range_reserved(resource_size_t start, resource_size_t end) { return 0;} > +static inline int pnp_range_reserved(resource_size_t start, resource_size_t end) { return 0; } > > /* protocol helpers */ > static inline int pnp_is_active(struct pnp_dev *dev) { return 0; } > -- Applied as 6.7 material with edited subject and changelog. That said, checkpatch.pl is for checking patches. Applying it to the existing code is questionable and sending patches based on that is even more so. Thanks!