Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7978883ybi; Tue, 23 Jul 2019 00:37:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAr2LtEsGt8rJJdftkSJ/KW5Dt1bCbt/6UZSKFNg86+P71gfwZ2B6u0NPx+ywqvyWAkodI X-Received: by 2002:a17:90a:b394:: with SMTP id e20mr80265658pjr.76.1563867447009; Tue, 23 Jul 2019 00:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563867447; cv=none; d=google.com; s=arc-20160816; b=W6xdY68tuEn7lJxo1NTZ1nEC2+WYBDn2as0vNGmMmt+I1RdSMuYHVJOfqCQnA4ytLC 26jAz/hqEK8E9/tRGu36VGFutn56UaNw7fE10HqmBuBGoK+Ub4rjZ5pEaKVPdOni6kO4 peikq9DaZJTuXdPD8j+KbXlOQaFnA/ja/vF99PoBTPGuDdrL9ktYqfsTI+flee9wTfp6 wx9pZacwrfCL9A8LqvGqMIyRdeDQDBxIEqUUUGmkJzqwjfy0jECi9XIIsH6Xla4dyrgn py2Hd4F6o8qLFAGE9Mvituy1p19i3h9z8o46lObNc6mFD2IKtphSrV5ghEDk9FOgTcZz h4lQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FENI0QfMNWJ5FelefUZ+G7/NZ/3sRK983AKLe0QVPsY=; b=Uw8byWFYYvr84inE57J21GToVZ7xkb3S4r5GmbLrwmCLBM9xbYTHjYp/D8ZA5cKyp3 62vtNpWt++aTGFXTSulnST9Xl/yKiSziyw0TzIP42gVzoxnQ2Pks14kR44PWQXS0mbIt JV7nuOnUh0FW4sGlgflwUehzXAm8w3xQwbdXAbcfNBwI31KFjA0vl+av3UwLrX6Gbpr+ SvWAuEf62tv26YBxdgaWV1BWGLBuUPWo82vG7jkqi404W4KGkBze702Qxkfd6pkkQVyK 91dCU4VXlKE5AOjlkdm2tJaMXE6iEtlcW75I14bNqLP5RWQLH6c+HDNY79zQlF2PPpDU d/Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=foRZa2mK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 80si13761642pgf.5.2019.07.23.00.36.58; Tue, 23 Jul 2019 00:37:26 -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=@gmail.com header.s=20161025 header.b=foRZa2mK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732921AbfGVVsr (ORCPT + 99 others); Mon, 22 Jul 2019 17:48:47 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:40099 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732820AbfGVVsp (ORCPT ); Mon, 22 Jul 2019 17:48:45 -0400 Received: by mail-ed1-f66.google.com with SMTP id k8so41910815eds.7; Mon, 22 Jul 2019 14:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FENI0QfMNWJ5FelefUZ+G7/NZ/3sRK983AKLe0QVPsY=; b=foRZa2mKuNS0W4zx9VOG2nUDtf+PVaLSKNMRH/WoEqE8A/SBhtWy2nX2RoO68PUWGn 0Fp0d2oGpz6wVH4L9BX/rjXP02fw8e8ycjDwhn60M7dhZD1bR57CvVsP2jXl+Sesvemy 3BgbyMZEIeGgob3bIYEZxgDkM6/xxn1xsRVzYC2/I5+0Jq64tv75TyNNPNsgDctvMxtD Li+GVV3rrPw2DRKepkEJk+j02qz8Ig91R3zwQWUfROA/+0QWctki903r/lUkDDvSu0YK Z5nBuzWDA7oQwWeymApHbiP8+vQnTMLODjCHaGpxU7B5Mws40okzvjLhNNcsKdGc4/FR kTvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FENI0QfMNWJ5FelefUZ+G7/NZ/3sRK983AKLe0QVPsY=; b=htUqq0O1edWQVQXO21VaektRTQyP0KI1kPT+LVZ6EbTC8Wf3KJK9ypEDSS10tCXgHA MaWw0XM2Qr1VD9cSZ2CRNpgLj06KZ20ALRFF5aUs1yWHmMSCoPtMuhhGn93MMbpXblqI sKmD48e1tMdJSooQELJGr+vQihV2LU7jSJVIwH9YxJDkEvkTR2oUf/0CIc7cYr0uSUrC WzloEirT3UQEOvfTSoFtPEHHsnaG/eQX5xermx0OVUr2weYLUhIpTHGiShCkd+ZVlGPi qSFCY2hq3xhdg2JvX+CBB8d8w2P4t2XrNHTRbOfRuP3SGEaGcqvYOmxf5G1SgS980tg3 Kwlg== X-Gm-Message-State: APjAAAVbJFlKkPx8+eHR7GpGJofDOyPVxt90vZa+NFV/ya1mdb+Ev7lL GnIZeHg1jJU5K3v2SUAcpec= X-Received: by 2002:a17:906:3018:: with SMTP id 24mr56168412ejz.187.1563832123314; Mon, 22 Jul 2019 14:48:43 -0700 (PDT) Received: from localhost.localdomain ([65.154.66.198]) by smtp.gmail.com with ESMTPSA id d4sm11315617edb.4.2019.07.22.14.48.41 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 22 Jul 2019 14:48:42 -0700 (PDT) From: stillcompiling@gmail.com To: Joe Perches , Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org (open list:HID CORE LAYER), linux-kernel@vger.kernel.org (open list) Cc: Joshua Clayton Subject: [PATCH v3 2/3] HID: core: Add printk_once variants to hid_warn() etc Date: Mon, 22 Jul 2019 15:48:26 -0600 Message-Id: <20190722214827.29257-2-stillcompiling@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190722214827.29257-1-stillcompiling@gmail.com> References: <20190722163642.10417-2-stillcompiling@gmail.com> <20190722214827.29257-1-stillcompiling@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joshua Clayton hid_warn_once() is needed, add the others as part of the block Signed-off-by: Joshua Clayton --- include/linux/hid.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/linux/hid.h b/include/linux/hid.h index e6c7efdb0458..cd41f209043f 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -1171,4 +1171,15 @@ do { \ #define hid_dbg(hid, fmt, ...) \ dev_dbg(&(hid)->dev, fmt, ##__VA_ARGS__) +#define hid_err_once(hid, fmt, ...) \ + dev_err_once(&(hid)->dev, fmt, ##__VA_ARGS__) +#define hid_notice_once(hid, fmt, ...) \ + dev_notice_once(&(hid)->dev, fmt, ##__VA_ARGS__) +#define hid_warn_once(hid, fmt, ...) \ + dev_warn_once(&(hid)->dev, fmt, ##__VA_ARGS__) +#define hid_info_once(hid, fmt, ...) \ + dev_info_once(&(hid)->dev, fmt, ##__VA_ARGS__) +#define hid_dbg_once(hid, fmt, ...) \ + dev_dbg_once(&(hid)->dev, fmt, ##__VA_ARGS__) + #endif -- 2.21.0