Re: [PATCH] scsi: ufs: Fix the build for gcc 9 and before

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/1/23 14:52, Nathan Chancellor wrote:
On Tue, Aug 01, 2023 at 01:13:23PM -0700, Bart Van Assche wrote:
  static void ufshcd_check_header_layout(void)
  {
+#if defined(__GNUC__) && __GNUC__ -0 < 10

clang defines __GNUC__ and it does not sound like it is impacted by this
issue? I just built with LLVM 11 through 17 and did not see it. Can this
be made more specific?

Also, can we use IS_ENABLED() and not rely on the preprocessor? This
appears to work for me.

     if (IS_ENABLED(CONFIG_CC_IS_GCC) && CONFIG_GCC_VERSION < 100000)
         return;

Thanks for the feedback. A new version of this patch has been posted.

Bart.




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux