Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2763498pxb; Sun, 3 Oct 2021 05:11:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrsKdOWrZmthZTzTvcHNnH/oqRZWzyW86m4GIpZ13UBjUHadyRINahdVu9Ys+NELbYfeea X-Received: by 2002:a05:6402:450:: with SMTP id p16mr10680579edw.162.1633263107369; Sun, 03 Oct 2021 05:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633263107; cv=none; d=google.com; s=arc-20160816; b=MNqMjR9GyPhh7ZIuEPj53yy2KCdK7GyMKkTQsLCjhs/F0cAFXYU5BxWffryUmnQBP7 pCAET90AOhHqC0jhrosPdPfKdfFq7rdQo++qokx4RO+C1v7Om19UkxkFCVXgNTcRb7Rs 11QgFs5JECuyvqVdl0J0V79CG00/wOkUoNwBOH0J6HKVIVCe4+/0vO2z652qUelyTMs0 x97zMZWFJdD/8DfxyIsI/xqYycmu6KccedWjaK7ZRxQVqi/ddW2V/LyrsCHCZSbBVfsJ YCXLQjwN3LQsV9hqqMzcx1tUttD+yVKS5gyz4VpQunNBopynQ3S+lEt3NTog68y3O9Dg /C/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=16jv9dHgdRgKVxtGwcKBR5fNJruBm+0ydvDzDv4vhuM=; b=e/ajRfSsGpuNDly+uv/bJJOn0UK57tCdsHo3VAO7ks2YTu+WMGJnwOG52JIzx5YJak NHjZdKtzh1zqNYN6PTyB53Lnl2SCRKvrx0WDak4QWyUDTWP8NnfJdSdkOttjU0AHWTRb TAlXfby7oRNnYxdAWiTJmKkU54GgmNOaCB2lIZGLfgolO3l07JimKc4kj4uzArkmVV3v l/3BLv2ohYr1bXazJTXiGFz8ioa3uoI3P4vGSXQTx1PmXmg6luuUfcxFDfDYajSfpqR9 JNqofN3r78hBIiFSnQOBaI1vYE1AmjcIvfPvbVoxyN/30tPCeR+u9xSGW0uRg++H4KCk wkHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=E4pqZZkP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id r17si17641367edd.389.2021.10.03.05.11.22; Sun, 03 Oct 2021 05:11:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=E4pqZZkP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230136AbhJCMGH (ORCPT + 99 others); Sun, 3 Oct 2021 08:06:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbhJCMGG (ORCPT ); Sun, 3 Oct 2021 08:06:06 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 307F7C0613EC for ; Sun, 3 Oct 2021 05:04:19 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id g8so53473847edt.7 for ; Sun, 03 Oct 2021 05:04:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=16jv9dHgdRgKVxtGwcKBR5fNJruBm+0ydvDzDv4vhuM=; b=E4pqZZkP/UJkcQRg7nI6xnxMpBoPonlviiSF9zun6gj4ihbfUh45gWcEREXdV0d8FY DQQ7Gf9abyRJm0RJE0san48IOsHBeDiW07G87kq0ycOQRCfQJwF+fp1zkpqpIYC1/uvu OpAqOxoIP5nuMlrZy+mFt0xtak8tc5F4TbgbhYkqzfuDLhe4WxYHVED2fvPSNFhLXeOe 0vyBXk2Rz8PBGYIxXmvSc4Os3dGWYOVh+ghqVpSuoikTqLo0atk57/AJ7crdQ2xGtzJd ELl0ehZxDm2wvV3dAKcw8j60ZiUHtCoLbqxX/IOADFDsWqm0QSp4IdRXk72TRY8Tr3jh s8+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=16jv9dHgdRgKVxtGwcKBR5fNJruBm+0ydvDzDv4vhuM=; b=JYPlHm1tCIO4Ma+PELcLv4TZ6wwUTPUDFAT7tPSg2j6BjVZwWyKc/C5kBRgrtJEckP vFqlabWlO4wQu16NNC97oRtA2wUTYFDsQ4y/+sz46S+WsO1U5KRpfrYaB25Fx0gmCuyI RNGtq+KVOMhgqH+mH21C2HWWjR5KBG/E/zeiIDdE4349jUODeGAITgeu4vvbzM7LWJdh /7fJRJM0x0g8cNGzc7sOQvvF9k0EbThnagnL0Kq70AsGRXcjXerLlNj2kugQsiL+H53w MfJ+LLi2y9aIqWHn/s9S9brOZjy5l/QgpQ8E43LWR3dO4LYfRaB+QvifxAFgP2hJaTlk Bhvw== X-Gm-Message-State: AOAM531HVv4788CNiuwAhqXjVlHJgx191nDdeAUGqDeMjVsmYTBy/MZv lx7MLG1cIkWB9uOrJvuyX/tNww24UA== X-Received: by 2002:a50:d84c:: with SMTP id v12mr10458100edj.203.1633262657289; Sun, 03 Oct 2021 05:04:17 -0700 (PDT) Received: from localhost.localdomain ([46.53.253.147]) by smtp.gmail.com with ESMTPSA id s16sm1834229ejf.76.2021.10.03.05.04.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 05:04:17 -0700 (PDT) Date: Sun, 3 Oct 2021 15:04:15 +0300 From: Alexey Dobriyan To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] ELF: simplify STACK_ALLOC macro Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "A -= B; A" is equivalent to "A -= B". Signed-off-by: Alexey Dobriyan --- fs/binfmt_elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -156,7 +156,7 @@ static int padzero(unsigned long elf_bss) #define STACK_ADD(sp, items) ((elf_addr_t __user *)(sp) - (items)) #define STACK_ROUND(sp, items) \ (((unsigned long) (sp - items)) &~ 15UL) -#define STACK_ALLOC(sp, len) ({ sp -= len ; sp; }) +#define STACK_ALLOC(sp, len) (sp -= len) #endif #ifndef ELF_BASE_PLATFORM