Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp899576imm; Wed, 11 Jul 2018 13:01:55 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfsRntgBo3vI1uZod+9R0/Zby2Mq2t8vhXfO7hpRDcrykJVkJepIT7Qwg/zPF3JBb7HygBY X-Received: by 2002:a63:a919:: with SMTP id u25-v6mr33328pge.211.1531339315157; Wed, 11 Jul 2018 13:01:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531339315; cv=none; d=google.com; s=arc-20160816; b=LP3tASM8xjPMpXT9M99gRuvG+U+evR80UFAIQ+rRKsJaCq7ApFsgmm0BzZ5xLIX/uT 35MOe3PG4UIOJh7UJ0MBt89DBDNxFBNCB3ZkOQsv62/7PcUPZT3kYlOqGT71U+uWLTT4 mMZs7o4QtNpobAl006o4hWICRY23lxw8/QWborJL9tq6IgRdxao1dQSFiB8g9Nt/F1Zx +PrlTLNK7sOggffKM36By1qFsD5M8nbTGpuY1F2rjv+W7ilXuHm1E+sK893JvsowKWvn vGuj+5Yw+bNjenf9vfaFfuOK7TJe9jD1hv0iKzoIW0UG3z95Q2PWsC0/0hk6zyOd0fSp cIFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=ZG9VxHsFNKoF0JpBa3POjM5KPFX51KBxIgGzwNghdgE=; b=lULgENCNsMjwGRaUVI/BqJb6VTrF6OeKxrbtJ6UwJ6DnOiBMu9RdsiJ6uzVq2I+qyh JR76Y6F46MiHQfpWdNWcXlScYCOlXwHYmen1mPHre915VwIFziq20vC+QGl4XOoFC1WM fPlk5tdFgsWpF1oN7aViJlezSxqvtE9o1zZqrrycamvK1Z4bpTCtM3e7SjDhurOlpsl9 P/UsQ7PRCJ61H9p5ZbwUacdmPNJXZ8v0xMMWKJ15Zfs0ODj9dPOQDQf+vKJam7HD2Vo8 ArsofQzox0On6YnjbHey6MUJmD2/uIdYEKP71mIIKHEOzjYauVov5/QlPV+m4+HBX1r1 /gUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="i/lFu90c"; 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 d35-v6si20139897pla.116.2018.07.11.13.01.35; Wed, 11 Jul 2018 13:01:55 -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="i/lFu90c"; 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 S2389657AbeGKT2H (ORCPT + 99 others); Wed, 11 Jul 2018 15:28:07 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:37105 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732685AbeGKT2H (ORCPT ); Wed, 11 Jul 2018 15:28:07 -0400 Received: by mail-ed1-f67.google.com with SMTP id v22-v6so20002335edq.4 for ; Wed, 11 Jul 2018 12:22:23 -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; bh=ZG9VxHsFNKoF0JpBa3POjM5KPFX51KBxIgGzwNghdgE=; b=i/lFu90cx26VxOBF6NGX3Bhh+BM0ceT/hzEB4Kxj9RST7y2Sav+MrXUetGkS3trV04 e6i/28iivG9L53CpR/dLQ3+fynSh14NeEIsqo/sNFa9+NYbS7IFP9p76fhWyd77n4pQT eP3gi/nfzfj2looKo9+/eO/gfDMT3aONLBOQApFcPwE4MCGvuMVrMih9VRDv0HI0dDox ukWfUR3co83uIY/pApvpw6nx6AA+sHL8M11fJSI2qyld7Yz32uQaX+XCKgwYUjashq/i O+HOTz1ZBL4pD87QKuThmpin73+SZlWWVU4EOPeoG40/2UeKyKrodELWf/g0z/Zl8QLo Igtw== 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; bh=ZG9VxHsFNKoF0JpBa3POjM5KPFX51KBxIgGzwNghdgE=; b=ZnvsXv2jSGVql25bBBW3waqMIHBsLeAkSoKBxvJ5VMHdUuiHL8/o/da3k4wy+L3eEI rND1FZMqbrzMkE0PIWC8pktF9iCvDwg3aUVf7TDp5IjyCDdlUlU9KJaCX8G4jqOLyiM9 dcJoUVPz1t9/HqYYgyxCtcXoyT8m76ALesfDeNlw4QxH58bEHE/UPnkQstXv+qth7xRe quROji8v/gL0ORFb9f7VoegB67mZfXQij+nN/X62T26Nv6gAtMJmx7HYkesoSPO22+1T EZyYJm0JGd6TL84LGZySmifJJQPM1f6bWjXZlBOZ5YcPIiLQEGQxyiEfcyefhghxGpya 29vw== X-Gm-Message-State: APt69E2B4BupPFeAzKmzY/6N7aYIk3PnCzvwxPpEF4KzpVi9pbE5XSk+ V5UmN/9E5hwm/FbvHfXgnhq4AsS1 X-Received: by 2002:a50:b2c6:: with SMTP id p64-v6mr32701968edd.293.1531336942193; Wed, 11 Jul 2018 12:22:22 -0700 (PDT) Received: from localhost.localdomain ([109.77.228.66]) by smtp.gmail.com with ESMTPSA id e9-v6sm7107787edc.37.2018.07.11.12.22.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jul 2018 12:22:21 -0700 (PDT) From: John Whitmore To: linux-kernel@vger.kernel.org Cc: devel@driverdev.osuosl.org, gregkh@linuxfoundation.org, aastha.gupta4104@gmail.com, keescook@chromium.org, pombredanne@nexb.com, kstewart@linuxfoundation.org, tglx@linutronix.de Subject: [0/10] staging:rtl8192u: One significant change... Date: Wed, 11 Jul 2018 20:21:39 +0100 Message-Id: <20180711192149.21621-1-johnfwhitmore@gmail.com> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The first 9 patches in this series are coding style changes, including a number of patches to remove the "typedef" directive from a number of data structure definitions. This clears the checkpatch warning about defining new data types in the code. The last patch in the series, however, changes the data type of a member variable from a u8 to an enumerated type. Generally in C an enumerated type is implemented by the compiler as an int, but can be changed by compiler directives. Either way the member variable will most probably have its size changed by this patch. I don't think that the structure is mapped to hardware or physical memory location, but is allocated and populated in the rtl8192_usb_probe() function in the file r8192U_core.c. Given that allocation/population I don't think that the size of the member variable is of run time significance, bar the slight increase in size of the overall structure. The reason for doing this is to enable the compiler's checking of assignments to the variable defined as an enumerated type. The alternative is to leave the variable as a u8 and remove the enumerated type, replacing it with #define definitions of the possible values. I raised this issue on the kernel newbies mailing list and of the two alternatives enumerated type won out.