Message ID | 20240201115320.684-1-jirislaby@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-48041-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2719:b0:106:209c:c626 with SMTP id hl25csp92362dyb; Thu, 1 Feb 2024 03:53:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/dWIn/sb0sMZQu96ojSNoV1yqLlKp/Tz6JLQS909WnMipyGXvH5DdXVJO3sYkWgTvKKaM X-Received: by 2002:a17:906:5290:b0:a23:6dd6:7eed with SMTP id c16-20020a170906529000b00a236dd67eedmr3054310ejm.77.1706788426552; Thu, 01 Feb 2024 03:53:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706788426; cv=pass; d=google.com; s=arc-20160816; b=wDqJ5bqz0x59Z2djRjdrSXiGnxx/3py0k4iDsf1l6sKPKjC11Wka31lgl6jA1A7EiR P/UB0XDDcCh/NXbzpYyzgDbYsjr5b7t+f5Toj1PjfZj0TJ1N/IpcyUdkW9HgmKgH+uS6 ElEnpQkqw3H8EP6cRJ8Ko4dMMPRGGkaC3uoGrm3II84oE3+TTZGmdg1P7PgmFK9CW2q8 Or+2ZZvmAIikivByXge2IttbY3X4cs8BiJ67G+DsUGeL8kyk9RumX0MxfGb43sNyXMwy f1MO04T3fU2XgbNwgBWQJvCtmUn3z9cAAzfKaRAr4RgyroJeqmuviNV67jOjf0RLYvMR bW2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=2A3lnLYSz0yDliThdUpr5zLYQKQrlE0OopJDm193yCU=; fh=k+CMxb2Wx8bInCrib292V8eDP3ZYOu4v2jR+/TPeHUw=; b=s2xgWZdvD+CvUAGW8gXMtUshrC2t08iyfsD6fA11BYAB+CZkSQ/ubO4z4pFb18/3KQ nAA4aJE43M4UrIrAZSj5NmA1Yioc0yuAa/ORMQUrvw/O4m2I4Doicq5vmSi+L3wG671L F/bLNNDZxgG/5H6G//Qr+FMA6smJ2diF2HK0oBiC0hRQlhG7ABlkVnWGf079/wq7rCrR ZywVSxe6jcLXMp8JUCOWGJicfv7fdQySbzyzTTGY9KbP9xUp35lxhxsUC14a0f4T/8z6 R9P5d6BzzShG+zm1oTR6zR2Tul8xjjRz2zMMPtD8RkZs/rHjLjEFrNRqv7KJKqVTO35u K/jA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I9R0iZ0P; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48041-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48041-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCWBsVEd+ONfE0XTjM6nJwj/7Cvb+u7dt9K/MA+laL2c71MAWNMH2qBPzhLr4lb0Uq2K3GY7xZXxJhQFai6UcYy6FQOZuw== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hg8-20020a170906f34800b00a338fffc21fsi6640130ejb.670.2024.02.01.03.53.46 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 03:53:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48041-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I9R0iZ0P; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48041-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48041-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2C9701F28780 for <ouuuleilei@gmail.com>; Thu, 1 Feb 2024 11:53:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 760C415DBA0; Thu, 1 Feb 2024 11:53:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="I9R0iZ0P" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D24DE15B995; Thu, 1 Feb 2024 11:53:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706788404; cv=none; b=mmsI9yMVH2yKrwdwP3W+46iUZS8SBt1/rnLmUAWEIp5VUtXvcylyMhLt4WS8g0gQM7e+fb8oCPP62XWsyy+4tHhIFO3uIDyhS56hO5zh6J8mYDSHLWnko1uhdJWe4UZzYBjtt9mxpENoe69i9L+WvjSUIerkEib73JvU2dTDxQo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706788404; c=relaxed/simple; bh=lItx3fkUY4BWsDEsLhdSZpmfRs+Sv8dfzuA4Ayj4ctI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=V/q9mx0EuC9vUNPuMJjDvmFla5JgXRp3JhMRT+p3wCXE1XMiyIbTTYy1pwWTk9dj8htgEmsd2uFJUJw60UCDvtph1wptjyJFgxBbpwUMFcYQ/QiBv5kA06P9HMc0TiCujqUyYkkV2fqFTZJl7J+q9GNuCzdqf4NIhDtUWULOLFA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=I9R0iZ0P; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40DEFC433C7; Thu, 1 Feb 2024 11:53:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706788404; bh=lItx3fkUY4BWsDEsLhdSZpmfRs+Sv8dfzuA4Ayj4ctI=; h=From:To:Cc:Subject:Date:From; b=I9R0iZ0P9v2PJQqViWFvvI7RiJpHVYw+qes4Vr8AbbAZT4Qv1KnEdnolVKoxfDeUN +cvRpKBCvvBeNt/cLaACvKqUsnSZbdgxi12bslX/P22elU03USKO1TL/oHNfGOzgrn flKuk9vzvXIqkUiG5ohDcIvgyn9S31StPdMek8UhBP1TKVMdh9E9G9ltKTAHQk5u3+ DjxlV8t5r/r5ZmUzo7axix3WQ+5W7EHg1XyKCB2o3VMhkTcUk/S5yuGTyUI1LjrZ1W MF81wDSxKAHOuClFqnO/HlLYd+48zTXrUvoEbMAr8S1DXXfGDvwScKSjiTlDWdciZx ps3csnL0mxfsw== From: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> To: jikos@kernel.org Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" <jirislaby@kernel.org> Subject: [PATCH 0/7] HID: unused struct members cleanup Date: Thu, 1 Feb 2024 12:53:13 +0100 Message-ID: <20240201115320.684-1-jirislaby@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789697381165097591 X-GMAIL-MSGID: 1789697381165097591 |
Series |
HID: unused struct members cleanup
|
|
Message
Jiri Slaby
Feb. 1, 2024, 11:53 a.m. UTC
Hi, the patches deal with unused members of structures as found by clang-struct. Sometimes even whole structures are removed. Jiri Slaby (SUSE) (7): HID: apple: remove unused members from struct apple_sc_backlight HID: wacom: remove unused hid_data::pressure HID: protect hid_device::bpf by CONFIG_HID_BPF HID: hid-lg3ff: remove unused struct lg3ff_device HID: hid-multitouch: remove unused mt_application::dev_time HID: hid-prodikeys: remove unused struct pcmidi_snd members HID: hid-prodikeys: remove struct pk_device drivers/hid/hid-apple.c | 1 - drivers/hid/hid-lg3ff.c | 4 -- drivers/hid/hid-multitouch.c | 1 - drivers/hid/hid-prodikeys.c | 115 ++++++++++++----------------------- drivers/hid/wacom_wac.h | 1 - include/linux/hid.h | 4 +- 6 files changed, 42 insertions(+), 84 deletions(-)
Comments
On Thu, 1 Feb 2024, Jiri Slaby (SUSE) wrote: > Hi, > > the patches deal with unused members of structures as found by > clang-struct. > > Sometimes even whole structures are removed. Good stuff, thanks. Applied to hid.git#for-6.9/unused-struct-removal.