From patchwork Tue Aug 27 20:39:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 172292 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp6308107ily; Tue, 27 Aug 2019 13:40:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwULwXRcRUvTieTvbyJf/ssRgEH/SWeWamx7l+6pRMXMpzSefKZfUT15fefKYtxK1lPYbAQ X-Received: by 2002:a17:902:26b:: with SMTP id 98mr809142plc.61.1566938430213; Tue, 27 Aug 2019 13:40:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566938430; cv=none; d=google.com; s=arc-20160816; b=pt2bWThU822ZYyoYzH9zLiBpnM3RrMH2zpaVAjF0rlyXSXpIMSVZsoTsiUWsazEB+G wcR9V/htqRaKSLrN6UHT4cdTWtbAgk3zFvkxGA0YrYUuAeWCbH0I5cqt61gHUASkf9OJ K55B+qgbkXaT1rnz4CSiWMMg8rKtuUpEBYy1f/HyfOiTtCZ0MjnTSztHBtFhLm4w8Y6H yCVikQwcNDT7ZOF79zW2bT95IUOHcP9sdHLDP03ASHGjWWOkcQXns8HV5qNxr14wpPz9 rPbsheg/x8gPSQphC/t6RuPLUXsKbMGMifUAjC4WbBJWzXvt8F5sPupRHFq4eyeMlZSI OOSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=J7Ohnds+A9ovXQdZzadUakafh+P4fUUaEWG9NoT89Rg=; b=Q8mVOYZ8Z+LQFEBLcv/ETeIH70ltoYV5xDZ/5NsVNy7Y8b7W+pKpHdbN7YzB6GFZ7Q 6Th/ZJos4hivlXBF6mg614TbQEwYDKCzD4tEeQ64NBaet4vSWHTXovAuI6ziZ75WRDQ5 +UJ7sAv2/E8cbsuf5O93Xf/H/dmQfZLz+BoFtHsz43SfRND1NPnk2pmxOCegWtU5BzA7 BRul7U6ukGbkKI7Y9XiSlFfb0UHMjjrWrz9Wbp5lM/BCJ+GsWSyXBBL1msFuynXNmBt/ hk90SoSSbwR8oiIHs6O2sIV7HHSqs/fHWFW6hsP1nzznVHPDyHxFDV2I0cgUycKKyDOV +hZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=thwZre+v; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m17si307343pgg.539.2019.08.27.13.40.29; Tue, 27 Aug 2019 13:40:30 -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=@google.com header.s=20161025 header.b=thwZre+v; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730518AbfH0Uk2 (ORCPT + 28 others); Tue, 27 Aug 2019 16:40:28 -0400 Received: from mail-vk1-f202.google.com ([209.85.221.202]:45267 "EHLO mail-vk1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726584AbfH0Uk2 (ORCPT ); Tue, 27 Aug 2019 16:40:28 -0400 Received: by mail-vk1-f202.google.com with SMTP id c65so223547vkg.12 for ; Tue, 27 Aug 2019 13:40:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=J7Ohnds+A9ovXQdZzadUakafh+P4fUUaEWG9NoT89Rg=; b=thwZre+vfdeUyR0h7L2yCKuWA2znWIDH+Bw7v7hNIdznHaTRSi2dsWr3wHsdxO5p2G 4gap3akaSI0XfBlo7jufAwxKZ3gFY2xTQhQtb2CtE3fSc4QSPbWt1num9gjZ2SJN9rwk zgs7mEYf1ClluXfrZ+VWcTZvq+mWam6tr+IG43JjpG4tILrmVPlYYsE0Z23N1CRi2r1T pbZ/Q/odS6M9ZxhTIXoh6xKlSJyoNhrnudn7/X0TKXw+A0wazeC0JR/4VrTlrriCrZA1 Vd2mTJjsENlTw4i9LHws9DWjxcQe9KdUbgidIcVOsTZWkhX74cfLGNcDbbXeEjlfha9D dd1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=J7Ohnds+A9ovXQdZzadUakafh+P4fUUaEWG9NoT89Rg=; b=NTR1L0m3zjJn6iqxeawFxc42fxLlfSahJLpyiM77BPLTW9fUdITRQpQVkLih3szRVy Veg8VtEmQGVs0rdRV6QpRgbi54ovY+zQ59Lbr2TksqEg1v94UF+qwAHCbTB6MSkJyc25 +1Z3nk3fk8RAwS7Y4cK7vM/E6lUZy9nprl87yeGXYIWLl6CHtmTp669Nv/LKVoZ/0+gc h0A6y3Yknsm5oynWZtIUgy5i9uacAFMcENB9LlMYkNnHt3c6QGpYkDVLWcav2xEY49P8 bE5003k3rNNzhXc1MsBVy0sRJhbHogYatVK6+tPMzoebjbfvBCMVK8FF0DghDk8rUPFM h+iw== X-Gm-Message-State: APjAAAVED0ET97wwox/hrq0ZoRjuKzqlqD1JbeiyeeECr+d2lrxFuFT/ DhURFWSKOTpKrwRxrk+6vZxY6+e1D3IMmGvaY/g= X-Received: by 2002:a1f:fc0a:: with SMTP id a10mr437887vki.21.1566938426805; Tue, 27 Aug 2019 13:40:26 -0700 (PDT) Date: Tue, 27 Aug 2019 13:39:54 -0700 In-Reply-To: <20190827204007.201890-1-ndesaulniers@google.com> Message-Id: <20190827204007.201890-2-ndesaulniers@google.com> Mime-Version: 1.0 References: <20190827204007.201890-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.23.0.187.g17f5b7556c-goog Subject: [PATCH v2 01/14] s390/boot: perfer __section from compiler_attributes.h From: Nick Desaulniers To: miguel.ojeda.sandonis@gmail.com Cc: sedat.dilek@gmail.com, will@kernel.org, jpoimboe@redhat.com, naveen.n.rao@linux.vnet.ibm.com, davem@davemloft.net, paul.burton@mips.com, clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org, Nick Desaulniers Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org GCC unescapes escaped string section names while Clang does not. Because __section uses the `#` stringification operator for the section name, it doesn't need to be escaped. This antipattern was found with: $ grep -e __section\(\" -e __section__\(\" -r Reported-by: Sedat Dilek Suggested-by: Josh Poimboeuf Signed-off-by: Nick Desaulniers --- arch/s390/boot/startup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.23.0.187.g17f5b7556c-goog diff --git a/arch/s390/boot/startup.c b/arch/s390/boot/startup.c index 7b0d05414618..26493c4ff04b 100644 --- a/arch/s390/boot/startup.c +++ b/arch/s390/boot/startup.c @@ -46,7 +46,7 @@ struct diag_ops __bootdata_preserved(diag_dma_ops) = { .diag0c = _diag0c_dma, .diag308_reset = _diag308_reset_dma }; -static struct diag210 _diag210_tmp_dma __section(".dma.data"); +static struct diag210 _diag210_tmp_dma __section(.dma.data); struct diag210 *__bootdata_preserved(__diag210_tmp_dma) = &_diag210_tmp_dma; void _swsusp_reset_dma(void); unsigned long __bootdata_preserved(__swsusp_reset_dma) = __pa(_swsusp_reset_dma);