[1/2] staging: greybus: Replace __attribute__((packed)) by __packed in various instances
Message ID | 20240227160113.111264-1-bergh.jonathan@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-83563-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2791627dyb; Tue, 27 Feb 2024 08:02:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU+LvyQazlH3UF7EqnBWck66Ysa1k5RbVyEmezFZlJMoZ6+LsVPGtaxqx5ChlDh0EQYAWAhGGu8240Pcj440oiGEWl7uw== X-Google-Smtp-Source: AGHT+IGAiTy5eZyVNRIYkUCfh+VoU+GSZrHhXHHA01oH1ma6RdUVfbtkxRqF/9bR0iVTBuN3Fwyb X-Received: by 2002:a05:6102:114f:b0:472:6162:41c7 with SMTP id j15-20020a056102114f00b00472616241c7mr998718vsg.9.1709049757429; Tue, 27 Feb 2024 08:02:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709049757; cv=pass; d=google.com; s=arc-20160816; b=R9FKsi7KoyDV8bqPX81EX55LfYKQrQTUiEZSt5Lrl6746dMGtXtWUEYJ16VkVV5KAQ DqlXgPAqM934mf36kd1+ixMGTRPyOVLA0yCZVkUuKr6UzDJ6hMBbUzEO4tQ0yvMI1oPk hZxdKqd6NCzSxAQ0yLcj603+nMYJnDhar9b1mcbh2/7Om2MOT3/H5Q4abR7/jlJlUZ+N IZqk7nHfcpjVTHJLAP77LD8DDEpWy2P8vYevMVtwACyyZxYgY5s5nVg5nmlpSlf1L6y9 cLdLoD1QWYGqQc3TgLodKWW+nF/oSo3FqEaI9az1jBO1fnBNeSzBde7TP0U6ounaUJnc eA8A== 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=X56hJwde2d0DSwQh7BdZYX6K5vlX3nWxYW7Jl2hEtLc=; fh=BnS4cKD1w5rghAc7JjEMu5ErPMGKQUHuWdIy2u/x2cg=; b=ZT3i+z422KtlfFYSyd2VCOJwl8gwZTrhxw1CucZNOxGH3TiiLec22OwZRf5M12aoQ3 gJepoIFFUcXw8cOZTgHSC18hpVVOLByj1yHK5ltKFdfdUCFNiJxRBFXalW5Qlbz+yJDc g92m8CHs0ugfznwj6cmHqnT91ZiKcJ4lq9fWsiAsaexAOoq4uncRcrZB2F9pSkdmnklP jRwtGq5VeR0e5yimApO2us6kHKwbjlM5vFpnCSzqfCToIQ3tFkDHthWYtzQuFWjqzw87 S6UaGtAGFuQUTP332+xEIrBN4Bz8mSz6UiskUxzjNr9zQYiwK3Cn9fNXNpjjtG+D/EyU IWyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ksmKWCJt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-83563-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83563-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bq5-20020a056102534500b00470604ece4fsi1138767vsb.361.2024.02.27.08.02.37 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 08:02:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83563-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ksmKWCJt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-83563-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83563-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 425781C255A1 for <ouuuleilei@gmail.com>; Tue, 27 Feb 2024 16:02:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85884148314; Tue, 27 Feb 2024 16:01:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ksmKWCJt" Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58D5D1482FA for <linux-kernel@vger.kernel.org>; Tue, 27 Feb 2024 16:01:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709049703; cv=none; b=YXzGV/U2R7m42QhSVnZv0eXOEsJav0dFG/q2WS4fKkI/Le27z+FzAbSrFIvfsMIH8J+EPqBlc8b9YvYtoqrw+WebNXgWTDdbWvEKp+Lqpa2O4dLcKhMYFSH3g4tbverjHUK2khsgfrsjYUIkQuhmGUy/oIhygHINtDkkqWjLPlA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709049703; c=relaxed/simple; bh=PfIAZI8U/Ed1rg3JAVmSj9XDKnHNNZKz5arRsiU7nzU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=VlhBRERd6HcRRKRf27Vvxi6eyE2yJty4hYz34u8vsl+FaXXYM85ipUZIC4zv1z2b2IQ3ZJdumIVVT8IBzQ2qRTsOHrK+UD3KNd5zUX2FwM8gOELe4KxG3eAUZv+9qDIAGuMkm6jOBodcyjZ5YN3HPwtAgeNIjS93lIfe7NptkxY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ksmKWCJt; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-512f892500cso2562622e87.3 for <linux-kernel@vger.kernel.org>; Tue, 27 Feb 2024 08:01:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709049699; x=1709654499; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=X56hJwde2d0DSwQh7BdZYX6K5vlX3nWxYW7Jl2hEtLc=; b=ksmKWCJtuZ3X7m86eiWcKjTzHsXMup8aLMclIM0fkFL4rLK1FWfMeAOQr0el6qsq+n P4+IvEEJzBHuR6iBi4fq2RMBi52RIxACKubS17E2YlvsiH3A2pdNLFJYV6uM7zu41rCV W/JMZh+icYRT425cD0+taNkVHUqbCx1ne0baSm6zEXDOOJRDoguxzHJMYz56FTZMe5Qj KmOm+vGQidIxQ6ztxAEZoO1unUZ152jwWD/RNrKdgDAahWsAVsrJHLlB23+o47pkvgNh ZqdQWpH6mNH83Uq0mpOdkNUrzIht4uk5CXqdqRQ5zs68YQtwGUOWywR1y1j9/qdNPZaE Bs1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709049699; x=1709654499; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=X56hJwde2d0DSwQh7BdZYX6K5vlX3nWxYW7Jl2hEtLc=; b=CncOTu/m/c0se+loqGwFU3fwX0GJl7Z+132Wy2Ov3oEiAL5yqH48O08HWlF6pM1U9q jjsYlQUdXAjiOOY9MSxuntIx3SjnsYyjj3adHiMEmrEtNrrul6Xn3dEhBYQ/y6yLy/70 TJcj/2WZG1nCjhGsQdDhiZfK9ANi2kcbI4bi3TQ/U9+9e5m6OmoVcbcRiG52yWr+XjRY kYk63usnoM9AqHw8iblACoRwDLmYbH2IGJ0nRpfxr7jXeHxHHYumVHXj9hYdqRe0F9dW SyBmaxW5iKUYYcBxqERkwy0Zx0eKEs1FiZUsV9rq/Ho/ZbWGnycFjbrdQ+hCexEnw6cI HSGg== X-Forwarded-Encrypted: i=1; AJvYcCWBNg0IV5Tuby/XOdqoKw+JqjeIiif4I+2EiAhnNCdPcboDPhKDWc5rga4VAvQKQFwawOz+DNOOCeQUjg9xGHcaYEho4/n2m93vXfCZ X-Gm-Message-State: AOJu0Yy7BFHcHJU67KFntNuuAdxYiG2BthwdJU1TjnUKYnxKjMqI9OPF ZclRxRMjD7C7c6UHe7Y5itH1duInlaoUBfOjBQkq9zT9TQujw3hK X-Received: by 2002:ac2:5457:0:b0:513:5d5:189a with SMTP id d23-20020ac25457000000b0051305d5189amr1215412lfn.68.1709049699255; Tue, 27 Feb 2024 08:01:39 -0800 (PST) Received: from localhost.localdomain (c83-255-24-248.bredband.tele2.se. [83.255.24.248]) by smtp.googlemail.com with ESMTPSA id x18-20020ac24892000000b005128d0e2a07sm1228190lfc.308.2024.02.27.08.01.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 08:01:38 -0800 (PST) From: Jonathan Bergh <bergh.jonathan@gmail.com> To: vireshk@kernel.org Cc: johan@kernel.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Jonathan Bergh <bergh.jonathan@gmail.com> Subject: [PATCH 1/2] staging: greybus: Replace __attribute__((packed)) by __packed in various instances Date: Tue, 27 Feb 2024 17:01:12 +0100 Message-Id: <20240227160113.111264-1-bergh.jonathan@gmail.com> X-Mailer: git-send-email 2.40.1 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: 1792068558285341404 X-GMAIL-MSGID: 1792068558285341404 |
Series |
[1/2] staging: greybus: Replace __attribute__((packed)) by __packed in various instances
|
|
Commit Message
Jonathan Bergh
Feb. 27, 2024, 4:01 p.m. UTC
This patch makes the following changes:
* Replaces '__attribute__((packed))' by '__packed' in various locations
to remove checkpatch warning
Signed-off-by: Jonathan Bergh <bergh.jonathan@gmail.com>
---
drivers/staging/greybus/greybus_authentication.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/greybus/greybus_authentication.h b/drivers/staging/greybus/greybus_authentication.h index 48b4a9794d3c..ee88f880cfe3 100644 --- a/drivers/staging/greybus/greybus_authentication.h +++ b/drivers/staging/greybus/greybus_authentication.h @@ -44,7 +44,7 @@ /* IOCTL support */ struct cap_ioc_get_endpoint_uid { __u8 uid[8]; -} __attribute__ ((__packed__)); +} __packed; struct cap_ioc_get_ims_certificate { __u32 certificate_class; @@ -53,7 +53,7 @@ struct cap_ioc_get_ims_certificate { __u8 result_code; __u32 cert_size; __u8 certificate[CAP_CERTIFICATE_MAX_SIZE]; -} __attribute__ ((__packed__)); +} __packed; struct cap_ioc_authenticate { __u32 auth_type; @@ -64,7 +64,7 @@ struct cap_ioc_authenticate { __u8 response[64]; __u32 signature_size; __u8 signature[CAP_SIGNATURE_MAX_SIZE]; -} __attribute__ ((__packed__)); +} __packed; #define CAP_IOCTL_BASE 'C' #define CAP_IOC_GET_ENDPOINT_UID _IOR(CAP_IOCTL_BASE, 0, struct cap_ioc_get_endpoint_uid)