From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5CECEC433ED for ; Mon, 17 May 2021 10:45:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2C37F61221 for ; Mon, 17 May 2021 10:45:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236350AbhEQKq2 (ORCPT ); Mon, 17 May 2021 06:46:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:56118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236273AbhEQKq1 (ORCPT ); Mon, 17 May 2021 06:46:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8047761028; Mon, 17 May 2021 10:45:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621248311; bh=MfBhlIm6ttO2xvDas63oVgDfnITP1qZCHrHI4sM+oEM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=chyQwoC8q/NtCwZkNBAB/oJENFUdQzdsi/FL4WrkTko3bUjXY8PsHReKxlMUt8xV4 VcWqWkXBV+3qBelh0O1jFAn4BlN2TdnEvIQ9WX+deZWijhrLkWvAdkyXzBDnF9oS20 s13p2KAbEqwZtQGy6HcCLyReDdaxS8VvwCb/JRbMHKxsJcRRnvfLh2NNMHM6XTG87y EM9gFE1/A+AVvdFESMaopn2Irp0APzWTyBiF11Ic9JjbJITd4dqNMQeNo4R9Y+txEN Ar29Xv+KiQOrGSJ0jwdfokAufVd2SXCkkATJSOvZVJLPOdXR4aTHxgq0eX9fjoft0j aszM0dYdLoZxQ== Received: by mail-wr1-f53.google.com with SMTP id d11so5844146wrw.8; Mon, 17 May 2021 03:45:11 -0700 (PDT) X-Gm-Message-State: AOAM533tuvWb+Wp+no8NL5hrp0O05OLIpacXncw8ZicNpUjhu8YoUBAm UJiqtqQhaZ9d9C0pMkElzVoxV9Z7H7b3HHV099w= X-Google-Smtp-Source: ABdhPJydTmJ+TdDoabnzD0bVCQmcH8J9rgJ9iTHN3z/Oaaf0fuuf+kmZkxWd76uWziFDIrctGAy+de2BQK2TxZTjth0= X-Received: by 2002:adf:e589:: with SMTP id l9mr4904057wrm.361.1621248310197; Mon, 17 May 2021 03:45:10 -0700 (PDT) MIME-Version: 1.0 References: <20210514100106.3404011-1-arnd@kernel.org> <20210514100106.3404011-9-arnd@kernel.org> In-Reply-To: From: Arnd Bergmann Date: Mon, 17 May 2021 12:44:02 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 08/13] partitions: msdos: fix one-byte get_unaligned() To: Christoph Hellwig Cc: linux-arch , Linus Torvalds , Vineet Gupta , "Richard Russon (FlatCap)" , Jens Axboe , linux-ntfs-dev@lists.sourceforge.net, linux-block , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Mon, May 17, 2021 at 12:28 PM Christoph Hellwig wrote: > > On Fri, May 14, 2021 at 12:00:56PM +0200, Arnd Bergmann wrote: > > /* Borrowed from msdos.c */ > > -#define SYS_IND(p) (get_unaligned(&(p)->sys_ind)) > > +#define SYS_IND(p) ((p)->sys_ind) > > Please just kill this macro entirely. > > > -#define SYS_IND(p) get_unaligned(&p->sys_ind) > > +#define SYS_IND(p) (p->sys_ind) > > Same here. Done, thanks for taking a look. Arnd