From patchwork Tue Feb 27 16:01:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Bergh X-Patchwork-Id: 207301 Return-Path: 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 (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 ; 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 ; 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 ; 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 To: vireshk@kernel.org Cc: johan@kernel.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Jonathan Bergh 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792068558285341404 X-GMAIL-MSGID: 1792068558285341404 This patch makes the following changes: * Replaces '__attribute__((packed))' by '__packed' in various locations to remove checkpatch warning Signed-off-by: Jonathan Bergh --- 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) From patchwork Tue Feb 27 16:01:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Bergh X-Patchwork-Id: 207300 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2791421dyb; Tue, 27 Feb 2024 08:02:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWiF5SP1HosJxHm/lQtuD8ZZodnY5V/KmcA6s1D2fwGAE01QdcpRcpV2KRSTzpyQtaz1C5LzVpyXI8C9Q10ctcCCkY6qQ== X-Google-Smtp-Source: AGHT+IFU0lErXSTUMCyVUP7/E2tLLWdxSLzLH+qm4KX+BVkBvxtUCWl8PdCleGPPl7Rqna8S2sgY X-Received: by 2002:a17:906:a3cc:b0:a43:3d07:803a with SMTP id ca12-20020a170906a3cc00b00a433d07803amr4714021ejb.54.1709049745088; Tue, 27 Feb 2024 08:02:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709049745; cv=pass; d=google.com; s=arc-20160816; b=Evsqnqp8YtImx/SLzGWn3TWk/Y8ADJjZ932RlTDyHOVtasR6euQOwKkx3IxD0+vUyG salq40oZaHRiQ/Ku/VTtZ70JA0Pk8wvfAbVY8uG4q6FgXtlMmLj4WmeDoxaToWz7Jnx+ 7BmHWYC1/zzBVlUSMUenk0P4VvWAZGs35k6t3jiY+SppPXFOV9FYuxrEHP+3lj3Qrolf 0mDpJMuTXYjqCTonThZpAGwEKkQRvocFbvG0K9NtUwEgGw7inhRKxDZwv/ns8p085Yg4 kumMzM8/+b80UIsxnCsQkaGq0qqhrOW6xxcCXs11qevczfmyhCz5jxylet+DeAG+I7RW QdDg== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bw+xXvSI28q5RO1dOygG9JjocsqAHut9oZzvrKjoGSM=; fh=unQ7vlaDrWrms/UGbJMfyj8eeFR9z/+fEAMf2Pu18SQ=; b=UKFUK4q1oowJlqjCAv3tOIlXdlkDksYIXAgN/DGw8kO9mSdV5b19PG/d7ohJtRjhSy 6l+DNgzqqUGISAub4BJb6lBhcYCTOALBFn+e3wGYMhhO5lfxNHZ+ZargxBha74KtRzXf syhNIMxXma6Su5CLoBwtXjMf5AM0WFfOB5Zk+EArll0uUg17hoZMpYdhxHQiBQBomAUb cYJDZ99LIxAa0zT9tefQsuwSaz0LOvA4G20JR3nZJ9oEMehAGQwvTXnsXxF7sXqK4Z0k RGTc6dXXhuy1CFtInxmSDTXoV4yczL8BWESxPou5FiLXKLSbZJydR/Us2DAWuhofN0oO T3xg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kjltX1F3; 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-83564-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83564-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x15-20020a170906134f00b00a42f11ff299si807198ejb.624.2024.02.27.08.02.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 08:02:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83564-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kjltX1F3; 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-83564-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83564-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B98E61F2347D for ; Tue, 27 Feb 2024 16:02:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9128B1487DC; Tue, 27 Feb 2024 16:01:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kjltX1F3" Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (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 6EE6E14831E for ; Tue, 27 Feb 2024 16:01:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709049707; cv=none; b=Go18bqZzxNOBOZu5Z0lmRGLf2vudjXGEbwVB1boDYLKVApJDkWH3eiNayj3T+If+fZ/HsqZ+Oda3We62AoGcK6JQnoHCuvDFMhSXWy13LHo+0BluOI9btPAoiIJz960dAHET3Tv+wojNXMKwYvGtnl8JPcQMGUFGXCNXOkMClGQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709049707; c=relaxed/simple; bh=rj5M9NTOw+mlLPuNBzddxSdKcQk7qpqzonx/WQhvBg4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gvZCoOVxuhRAqgZCL85TW5Lye67tbyEGfArhKrrL5lvyx56i5ZsfNvzErzHgHZ53xA27ja6WG9MiGapWWLBCR9ph1ASnzC/+arikeKj/FYgveqX50k7nIDvXAUVy0/e/xFtDdi0cjWyyxRAGxsRbBg0EejDvDfU6EP+Imr14wcY= 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=kjltX1F3; arc=none smtp.client-ip=209.85.208.182 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-lj1-f182.google.com with SMTP id 38308e7fff4ca-2d23d301452so61646541fa.1 for ; Tue, 27 Feb 2024 08:01:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709049703; x=1709654503; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bw+xXvSI28q5RO1dOygG9JjocsqAHut9oZzvrKjoGSM=; b=kjltX1F3ZjTf5cqd9xy6JeNw5OzwHRMjIT9BTV7xrhLoudnYYIKQ9SWZ2E0e+vjzPB GJE65nq86X+ogoN1jrxY0yflcUzmJoI+WXOlaRV9kRhjvD/EBB4VGi0Y0TYpSUgvGh81 5/u3YjMgFzEwigf3NZA2aoxM7uMQM/ZTMDl0qzLD/IW7dRG4MaaTjZa6Aw716cWQTCDV mnWQV38cRabB8grdieQcP2OeuXBWw8EbJIcEY5xllNJiD/tqiQz8TSVklDcSKESOBOJF LtdOmIdJexLH+2eesJsUf6LN8YF3583UfOGF6tLGBt65bffhbo2KB7BXM8GzQQzDicfB CFSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709049703; x=1709654503; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bw+xXvSI28q5RO1dOygG9JjocsqAHut9oZzvrKjoGSM=; b=HY45z53qgVpP/xVtkqOnc7bDtsI4EU1OGsWWUd5fpSP2otqBHSS+7lyj5NMekXZgPB Wh+QgBL0Ra+deWehyFA62KVT9YVxdJwd6Ho7Ir4CMaNtytG7tKM7OjS5smyVNcVNaT4Y I+WVBTO4XQ67Jj4lM4xeWImXeedHuOM5ks8WyqgtjEnkQ5U5EdVLahHHbUEKURZfuctF 9cu4+g3+jFwUoxlHCF1nfhavNzWrPQ42O/u84gIqXBzeznJ2Vx2ZZ5zTBdd4feHDefna Udx2NAR0AQBFPOizuRVF729XZLoFDs63T5oJcDep6SUt5ihy7NSqgb+oJ0TCfia+Y3GQ MJZg== X-Forwarded-Encrypted: i=1; AJvYcCVHXEdeU8CI66UuCOFaLuAqcuwhpA6u7cI6eyensrlcu1xSBB0aPAGSSS+alAHVJVz1QoCTdfh4p817hOLvvdm/og6sDhsca9pe0QiO X-Gm-Message-State: AOJu0YwRIeixGT4LYfEIGIMhuK7zWLphks8eN1b/tdHGgnjKRDxk+SX1 f9LOGsVCxAxP9drYMy6WimaetsRMUuad2bhs5wBJmqFsybVHl4H5 X-Received: by 2002:a05:6512:2216:b0:513:16cd:1377 with SMTP id h22-20020a056512221600b0051316cd1377mr378703lfu.1.1709049703230; Tue, 27 Feb 2024 08:01:43 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 08:01:42 -0800 (PST) From: Jonathan Bergh To: vireshk@kernel.org Cc: johan@kernel.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Jonathan Bergh Subject: [PATCH 2/2] staging: greybus: Replaces directive __attribute__((packed)) by __packed as suggested by checkpatch Date: Tue, 27 Feb 2024 17:01:13 +0100 Message-Id: <20240227160113.111264-2-bergh.jonathan@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240227160113.111264-1-bergh.jonathan@gmail.com> References: <20240227160113.111264-1-bergh.jonathan@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792068545720558488 X-GMAIL-MSGID: 1792068545720558488 This patch makes the following changes: * Replaces '__attribute__((packed))' by '__packed' to remove warning as flagged by checkpatch Signed-off-by: Jonathan Bergh --- drivers/staging/greybus/greybus_firmware.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/greybus/greybus_firmware.h b/drivers/staging/greybus/greybus_firmware.h index f68fd5e25321..b6042a82ada4 100644 --- a/drivers/staging/greybus/greybus_firmware.h +++ b/drivers/staging/greybus/greybus_firmware.h @@ -41,14 +41,14 @@ struct fw_mgmt_ioc_get_intf_version { __u8 firmware_tag[GB_FIRMWARE_U_TAG_MAX_SIZE]; __u16 major; __u16 minor; -} __attribute__ ((__packed__)); +} __packed; struct fw_mgmt_ioc_get_backend_version { __u8 firmware_tag[GB_FIRMWARE_U_TAG_MAX_SIZE]; __u16 major; __u16 minor; __u8 status; -} __attribute__ ((__packed__)); +} __packed; struct fw_mgmt_ioc_intf_load_and_validate { __u8 firmware_tag[GB_FIRMWARE_U_TAG_MAX_SIZE]; @@ -56,12 +56,12 @@ struct fw_mgmt_ioc_intf_load_and_validate { __u8 status; __u16 major; __u16 minor; -} __attribute__ ((__packed__)); +} __packed; struct fw_mgmt_ioc_backend_fw_update { __u8 firmware_tag[GB_FIRMWARE_U_TAG_MAX_SIZE]; __u8 status; -} __attribute__ ((__packed__)); +} __packed; #define FW_MGMT_IOCTL_BASE 'F' #define FW_MGMT_IOC_GET_INTF_FW _IOR(FW_MGMT_IOCTL_BASE, 0, struct fw_mgmt_ioc_get_intf_version)