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)